< Previous by Date Date Index Next by Date >
< Previous in Thread Thread Index  

Re: [reSIProcate-users] Auto-assigned IP Address


Hello John,
use one of the overlaoded methods for the DUM::addTransport,
you can use smthg like that:

    being default_ip_add and resip::Data with a VALID ip-address in string format (i.e "10.198.2.3")

         {
         m_pClientDum->addTransport(UDP, local_port , V4,default_ip_add/** The function expects an IP-address there*/);
         m_pClientDum->addTransport(TCP, local_port, V4,default_ip_add);
         }
    
       instead of

         {
         m_pClientDum->addTransport(UDP, local_port , V4);
         m_pClientDum->addTransport(TCP, local_port, V4);
         }

/J

----- Mensaje original ----
De: John Melton <johnmelton55@xxxxxxxxx>
Para: resiprocateusers <resiprocate-users@xxxxxxxxxxxxxxxxxxxx>
Enviado: miércoles, 17 de octubre, 2007 23:02:07
Asunto: [reSIProcate-users] Auto-assigned IP Address

Is there a way to have the SIP stack automatically assign an IP address for a given transport?  In particular, I'm using the UDP transport.  I see the addTransport function has an
assert( port > 0).
 
Passing in 0 to the addTransport will allow the OS (Windows in this case) to automatically assign a port number, however the port number is not set up correctly in all outbound SIP messages.
 
Thanks,
John

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com





Sé un Mejor Amante del Cine
¿Quieres saber cómo? ¡Deja que otras personas te ayuden! .