> -----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

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
Callweaver-users mailing list
[email protected]
http://lists.callweaver.org/mailman/listinfo/callweaver-users

Reply via email to