Hi,

 

We have got sofia-SIP to work when no NAT is involved but now we need a NAT 
solution using STUN. So far I have added the STUN define and changed my 
register from:

 

nua = nua_create(root,  /* Event loop */

      callback,         /* Callback for processing events */

      (void*)this,      /* Additional data to pass to callback */

      NUTAG_URL("sip:0.0.0.0:0"),

      NTATAG_SIP_T1X64( 10* NTA_SIP_T1),

      NUTAG_SESSION_TIMER(1800),

      TAG_END()); 

 

to:

nua = nua_create(root,  /* Event loop */

      callback,         /* Callback for processing events */

      (void*)this,      /* Additional data to pass to callback */

      STUNTAG_SERVER("69.0.208.27"),

      NTATAG_SIP_T1X64( 10* NTA_SIP_T1),

      NUTAG_SESSION_TIMER(1800),

      TAG_END()); 

 

But no real success. It does use STUN but more that once even if the server 
always reply according to wireshark for some reason. Even if the STUN server is 
responding with a correct IP the REGISTER sent with a strange contact header 
"<sip:DBDaDaacBBDaBcDc.is.invalid:5060;transport=udp>". Sofia SIP prints out 
this during the process:

stun: Timeout no. 1, retransmitting.

tport_stun_bind_cb: stun_discovery_done

stun: Timeout no. 1, retransmitting.

tport_stun_bind_cb: stun_discovery_done

stun: Timeout no. 2, retransmitting.

stun: Timeout no. 3, retransmitting.

stun: Timeout no. 4, retransmitting.

 

Is there any examples on how to enable STUN since it seems that I do something 
wrong but I cannot figure out what. Any help is very much appreciated.

 

Regards,

Bengt Werstén

 

------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel

Reply via email to