[asterisk-users] put the hostname of asterisk in the callerid uri to avoid NAT problems
nik600
nik600 at gmail.com
Sat Feb 7 01:31:47 CST 2009
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
More information about the asterisk-users
mailing list