> -----Messaggio originale----- > Da: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Per conto di > Andrea Lanza > Inviato: lunedì 22 ottobre 2007 13.22 > A: 'Users Mailing List - Non-Commercial Discussion' > Oggetto: [Callweaver-users] R: Sip NAT question > > > > > -----Messaggio originale----- > > Da: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] Per conto > di Andrea > > Lanza > > Inviato: lunedì 22 ottobre 2007 13.17 > > A: 'Users Mailing List - Non-Commercial Discussion' > > Oggetto: [Callweaver-users] Sip NAT question > > > > Hi all, I am fighting with t38gateway, also providing logs > and other. > > > > The question here is another: why I alwais read these kind of lines > > into my log ??? > > > > Oct 22 09:36:19 DEBUG[3059461008] chan_sip.c: Check nat > (client is on > > local net/peer nat=No/global > > nat=RFC3581/Channel:--) Oct 22 09:36:19 DEBUG[3059461008] > > chan_sip.c: Nat is needed (condition 4) > > > > Why NAT is needed ? > > > > I defined sip peer as nat=never > > > > if I type: > > sip show peers 5177777 > > * Name : 5177777 > > ... (omissis) > > Insecure : no > > Nat : No > > ACL : No > > ....(omissis) > > DTMFmode : inband > > > > > > callweaver ip: 192.168.100.108/24 > > ata ip: 192.168.100.145/24 > > > > > > so why NAT is needed ??? What does it mean (condition 4) > > > > Should I specify nat=no instead of nat = never ???? > > > > [5177777] > > ;sip phone test ht 386 > > username=5177777 > > secret=5177777 > > type=friend > > qualify=yes > > nat=never > > host=dynamic > > port=5060 > > context=from-internal > > canreinvite=no > > dial=SIP/5177777 > > callerid=ata handytone 386 5177777<5177777> > > > > thanks in advance, > > > > ANdrea > > > > looking at chan_sip.c source code I can read: > if ( (opbx_test_flag(&global_flags, SIP_NAT) & SIP_NAT_ALWAYS) ) { > if ( option_debug > 5 ) > opbx_log(LOG_DEBUG,"Nat is needed (condition 4)\n"); > return 1; > } > > so it seems that I setup a global flag about this.... where > are setup for this global flag ? > > Andrea > > Anwering again, further information:
I discovered I had no nat=??? setting into general section of sip.conf doing sip show settings, i see: NAT : RFC3581 meaning that nat=no was assumed by default setting nat=never into that general section, I see: Default Settings: ----------------- Context: default Nat: No DTMF: inband .... and now, into full log: Oct 22 13:29:45 DEBUG[3059260304] chan_sip.c: Check nat (client is on local net/peer nat=No/global nat=No/Channel:--) Oct 22 13:29:45 DEBUG[3059260304] chan_sip.c: Nat is not needed (default) Oct 22 13:29:45 DEBUG[3059260304] chan_sip.c: opbx_sip_ouraddrfor debug (no stun) 0 Oct 22 13:29:45 DEBUG[3059260304] chan_sip.c: opbx_sip_ouraddrfor returning 0 Oct 22 13:29:45 DEBUG[3059260304] chan_sip.c: Check nat (client is on local net/peer nat=No/global nat=No/Channel:--) Oct 22 13:29:45 DEBUG[3059260304] chan_sip.c: Nat is not needed (default) Oct 22 13:29:45 VERBOSE[3059260304] logger.c: Transmitting (no NAT) to 192.168.100.144:5060: So the problem, according to me, is that ******************************************************************* nat setting per peer does not override default global nat setting ******************************************************************* it seems to me a bug, but...... Andrea
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Callweaver-users mailing list [email protected] http://lists.callweaver.org/mailman/listinfo/callweaver-users
