Change Destination Port within the Same transaction

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

 



Hello,

I was able to find where to change the destination ports.
Its in function pjsip_transport_send(). Replied so that in case someone
else has similar issue, it may be helpful for them.

-Dhar.

On Tue, Jun 5, 2012 at 9:15 AM, Sdhar dhar <svdharr at gmail.com> wrote:

> 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/4c355d05/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