Hi,all. There have any STUN spport for asterisk? thanks,,, -- Jeffery `? ?? ?^r^??)~ iaxtel Num: 1-700-576-1311 fwdnet Num: 728150 http://www.diaip.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060606/3c52a449/attachment.htm
On Tue, 2006-06-06 at 15:17 +0800, Chen Fan wrote:> Hi,all. > > There have any STUN spport for asterisk? > thanks,,,where asterisk queries a stun server or where asterisk acts like a stun server? Becuase stun is totally self contained it would be silly (in my opinion anyway) to have a stun server built in. There are many free ones out there, stunner is one example. As for stun client support, afaik asterisk doesnt really do that yet. and it should have a periodic timeout if it does, but it would be a chan_sip addition. There is also an RTP patch that gets rid on 99% of NAT problems with SIP by technically violating the RFC but given the way networks work 99.99% of the time it would work perfectly (so if it were an option it would be good for everyone). What it does is on the RTP port if it receives a packet it will use that IP instead of whatever is specified. This fixes NAT problems on the other end at least, but for some reason it never made it into the source tree :/>-- Trixter http://www.0xdecafbad.com Bret McDanel Belfast IE +44 28 9099 6461 DE +49 801 777 555 3402 Utrecht NL +31 306 553058 US WA +1 360 207 0479 US NY +1 516 687 5200 FreeWorldDialup: 635378 http://www.trxtel.com we pay you to terminate calls with us! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20060606/3a2d65b2/attachment.pgp
hi, We need STUN client support for asterisk... becasue the service provider only offer STUN interface,, so i can not connect asterisk to their server,,,, i have found that there someone is develop res_stun.c ..but still not release... regards On 6/6/06, trixter aka Bret McDanel <trixter@0xdecafbad.com> wrote:> > On Tue, 2006-06-06 at 15:17 +0800, Chen Fan wrote: > > Hi,all. > > > > There have any STUN spport for asterisk? > > thanks,,, > > where asterisk queries a stun server or where asterisk acts like a stun > server? > > Becuase stun is totally self contained it would be silly (in my opinion > anyway) to have a stun server built in. There are many free ones out > there, stunner is one example. > > As for stun client support, afaik asterisk doesnt really do that yet. > and it should have a periodic timeout if it does, but it would be a > chan_sip addition. > > There is also an RTP patch that gets rid on 99% of NAT problems with SIP > by technically violating the RFC but given the way networks work 99.99% > of the time it would work perfectly (so if it were an option it would be > good for everyone). What it does is on the RTP port if it receives a > packet it will use that IP instead of whatever is specified. This fixes > NAT problems on the other end at least, but for some reason it never > made it into the source tree :/ > > > > > -- > Trixter http://www.0xdecafbad.com Bret McDanel > Belfast IE +44 28 9099 6461 DE +49 801 777 555 3402 > Utrecht NL +31 306 553058 US WA +1 360 207 0479 > US NY +1 516 687 5200 FreeWorldDialup: 635378 > http://www.trxtel.com we pay you to terminate calls with us! > > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.3 (GNU/Linux) > > iD8DBQBEhTCp+1olxlzQw5cRAlMcAJ9kRP+x6pEF3FlQj1KQj+vXJNx7XwCfUAw+ > Rh9enc6pLooaEai9EgLC5jQ> =StPS > -----END PGP SIGNATURE----- > > > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > Asterisk-Users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users > > >-- Jeffery `? ?? ?^r^??)~ iaxtel Num: 1-700-576-1311 fwdnet Num: 728150 http://www.diaip.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060606/c753fee9/attachment.htm
On Tue, 2006-06-06 at 16:12 +0800, Chen Fan wrote:> hi, > > We need STUN client support for asterisk... > becasue the service provider only offer STUN interface,, so i can not > connect asterisk to their server,,,, >all stun does is resolve your external IP by sending data to a foreign server which looks at the IP and returns it back to you. It has nothing to do with the channel used other than SIP will then use that IP (which can be defined by either externhost or externip - dont forget localnet too in sip.conf).> i have found that there someone is develop res_stun.c ..but still not > release... >likely that is just going to replace the externip value in the chan_sip driver. I cant imagine that it would do much more than that. Have you set both externip and localnet in sip.conf and checked to see if that works? If you dont do NAT on your end it wont even be required.>-- Trixter http://www.0xdecafbad.com Bret McDanel Belfast IE +44 28 9099 6461 DE +49 801 777 555 3402 Utrecht NL +31 306 553058 US WA +1 360 207 0479 US NY +1 516 687 5200 FreeWorldDialup: 635378 http://www.trxtel.com we pay you to terminate calls with us! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20060606/7e48e0c9/attachment.pgp
HI, There is a parameter NAT can be set in the configuration file. Is it the way that we can use to support NAT by setting nat=yes in the file instead using other NAT resolving tools like stun? On 6/6/06, trixter aka Bret McDanel <trixter@0xdecafbad.com> wrote:> On Tue, 2006-06-06 at 16:12 +0800, Chen Fan wrote: > > hi, > > > > We need STUN client support for asterisk... > > becasue the service provider only offer STUN interface,, so i can not > > connect asterisk to their server,,,, > > > all stun does is resolve your external IP by sending data to a foreign > server which looks at the IP and returns it back to you. It has nothing > to do with the channel used other than SIP will then use that IP (which > can be defined by either externhost or externip - dont forget localnet > too in sip.conf). > > > > i have found that there someone is develop res_stun.c ..but still not > > release... > > > likely that is just going to replace the externip value in the chan_sip > driver. I cant imagine that it would do much more than that. > > Have you set both externip and localnet in sip.conf and checked to see > if that works? If you dont do NAT on your end it wont even be required. > > > > > -- > Trixter http://www.0xdecafbad.com Bret McDanel > Belfast IE +44 28 9099 6461 DE +49 801 777 555 3402 > Utrecht NL +31 306 553058 US WA +1 360 207 0479 > US NY +1 516 687 5200 FreeWorldDialup: 635378 > http://www.trxtel.com we pay you to terminate calls with us! > > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.3 (GNU/Linux) > > iD8DBQBEhUFA+1olxlzQw5cRAoDtAKCK5ufDIpmsXG/p2ydcj3VDqxA7jgCcCAHi > bpFsVQ8FJuxF+crAEm2hwZE> =VQtX > -----END PGP SIGNATURE----- > > > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > Asterisk-Users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users > > >
hi, actully, i need asterisk as a stun client... have any idea > On 6/6/06, unplug <maillisting@gmail.com> wrote:> HI, > > There is a parameter NAT can be set in the configuration file. Is > it the way that we can use to support NAT by setting nat=yes in the > file instead using other NAT resolving tools like stun? > > On 6/6/06, trixter aka Bret McDanel <trixter@0xdecafbad.com> wrote: > > On Tue, 2006-06-06 at 16:12 +0800, Chen Fan wrote: > > > hi, > > > > > > We need STUN client support for asterisk... > > > becasue the service provider only offer STUN interface,, so i can not > > > connect asterisk to their server,,,, > > > > > all stun does is resolve your external IP by sending data to a foreign > > server which looks at the IP and returns it back to you. It has nothing > > to do with the channel used other than SIP will then use that IP (which > > can be defined by either externhost or externip - dont forget localnet > > too in sip.conf). > > > > > > > i have found that there someone is develop res_stun.c ..but still not > > > release... > > > > > likely that is just going to replace the externip value in the chan_sip > > driver. I cant imagine that it would do much more than that. > > > > Have you set both externip and localnet in sip.conf and checked to see > > if that works? If you dont do NAT on your end it wont even be required. > > > > > > > > > -- > > Trixter http://www.0xdecafbad.com Bret McDanel > > Belfast IE +44 28 9099 6461 DE +49 801 777 555 3402 > > Utrecht NL +31 306 553058 US WA +1 360 207 0479 > > US NY +1 516 687 5200 FreeWorldDialup: 635378 > > http://www.trxtel.com we pay you to terminate calls with us! > > > > > > -----BEGIN PGP SIGNATURE----- > > Version: GnuPG v1.4.3 (GNU/Linux) > > > > iD8DBQBEhUFA+1olxlzQw5cRAoDtAKCK5ufDIpmsXG/p2ydcj3VDqxA7jgCcCAHi > > bpFsVQ8FJuxF+crAEm2hwZE> > =VQtX > > -----END PGP SIGNATURE----- > > > > > > _______________________________________________ > > --Bandwidth and Colocation provided by Easynews.com -- > > > > Asterisk-Users mailing list > > To UNSUBSCRIBE or update options visit: > > http://lists.digium.com/mailman/listinfo/asterisk-users > > > > > > > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > Asterisk-Users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >-- Jeffery ??`? ?? ???^r^??)~ iaxtel Num: 1-700-576-1311 fwdnet Num: 728150 http://www.diaip.com