[asterisk-users] put the hostname of asterisk in the callerid uri to avoid NAT problems

Steven J. Douglas stevend at moij.biz
Tue Feb 10 19:49:43 CST 2009


Hi,

Have you tried using "externip" in your sip.conf? By setting the correct 
"localnet", any SIP packets that goes elsewhere will use the value in 
"externip". This might solve your problem.

Regards,
Steve

nik600 wrote:
> On Sat, Feb 7, 2009 at 8:31 AM, nik600 <nik600 at gmail.com> wrote:
>   
>> hi
>>
>> is it possible to set up in the dialplan (on in sip.conf, or something
>> else) the hostname of the outgoing uri call?
>>
>> This is my scenario:
>> - CCM integrated with Asterisk via h323
>> - SIP user registerd to Asterisk
>> - Asterisk is behind NAT
>> - Asterisk ip is 10.10.10.2
>> - SIP user view Asterisk as 10.10.15.2 (Asterisk is behind NAT)
>>
>> When the CCM calls the SIP user the call works perfectly.
>>
>> The problem is that the SIP user receives the call with this uri:
>> <sip:xxx at 10.10.10.2>
>>
>> The call works properly and the audio goes in both directios, BUT if
>> the SIP user does a redial (after the hangup) the call is forwarded to
>> xxx at 10.10.10.2 that is the wrong address.
>>
>> I've tried to force SIP_HEADER(CONTACT) in the dialplan with a Set but
>> it seems that i can't due to security reason.
>>
>> Is it possible to avoid this problem?
>>
>> Thanks
>>
>> --
>> /*************/
>> nik600
>> http://www.kumbe.it
>>
>>     
>
> Do you think that is a bug or a miss configuration, or simply is not
> possible to avoid that because it is hard-coded?
>
> Thanks
>
>   





More information about the asterisk-users mailing list