create_rtp_rtcp_sock reports default IP-address instead of the bound address

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

 



Dear all,
 
When having more than one network interface create_rtp_rtcp_sock starts
listening to the address specified in bound_addr (after ticket 429),
but it reports through PJ_LOG still the default IP-address.
I do not use STUN, and do not have a "cfg->public_addr".
 
I have solved this in create_rtp_rtcp_sock as follows:
 
Replace:
        pj_in_addr addr;

        

        /* Get local IP address. */

        status = pj_gethostip(&addr);

        if (status != PJ_SUCCESS)

            goto on_error;

 

        for (i=0; i<2; ++i)

            mapped_addr[i].sin_addr = addr;

 

By:

        for (i=0; i<2; ++i)

            mapped_addr[i].sin_addr = bound_addr.sin_addr; 

 

 

Regards,

 

Arie Velthoen

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20071217/4dc79fe3/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