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]

 



You're right, again. I've fixed this in r1636.

thanks,
  -benny

Velthoen, Arie wrote:
> 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
> 
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Visit our blog: http://blog.pjsip.org
> 
> pjsip mailing list
> pjsip at lists.pjsip.org
> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org


-- 
Benny Prijono
http://www.pjsip.org



[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