Change Destination Port within the Same transaction

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Everyone,

I am trying to register a contact where-in Server wants Register to be sent
on a different port other than standard port for second register when proxy
sends 401.

1st Register - Send to 5060 of Server (Client also sends port on which it
expects 200 Ok, say 6003)
401             - Server sends with new port(say 5002) on which it expects
to receive second Register with Challenge response.
2nd Register- Send to 5002 of Server
200 Ok        - Server sends back response to 6003.

I was able to bind to two transports at PJSIP Client, by using
pjsua_transport_create().

But when i try to change the dest port for 2nd REGISTER, pjsip doesnt send
to new port. I changed the destination port in get_dest_info() function of
sip_util.c.

Appreciate anyone help me on this.

-Dhar.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20120605/53f63d6c/attachment.html>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux