using 5060 source port for both stun(UDP) and SIP(UDP) transport

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

 



>From the top of my head, I think that in PJSUA a UDP socket is simply
opened, the stun server name is resolved, then pjsip_get_mapped_addr is
performed on that socket. Finally, the socket is attached to the
transport.

See create_sip_udp_sock in pjsua_core.c, line 1552 in pjsip-1.4

On Fri, 2009-08-28 at 16:01 +0200, Klaus Darilion wrote:
> You could take a look at pjsua-lib how it is implemented their.
> 
> regards
> klaus
> 
> vinay n schrieb:
> > Hi  All,
> >  
> > I am facing an issue in using stun for our project. i am using  
> > stun_sock.c file API for stun and pjsip-core and pjsip-simpe API for 
> > SIP.now i have to use 5060 port for both stun(UDP) and SIP(UDP) 
> > transport as a source port , which i am not able do.can any body 
> > suggest  me .. how  to use  stun and SIP on same port.  
> >  
> >  
> > Thanks and Regards
> >  
> >  
> > Vinay N
> > 
> > 
> > ------------------------------------------------------------------------
> > 
> > _______________________________________________
> > 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
> 
> _______________________________________________
> 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




[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