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

nik600 nik600 at gmail.com
Tue Feb 10 04:36:09 CST 2009


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

-- 
/*************/
nik600
http://www.kumbe.it



More information about the asterisk-users mailing list