eriku/Ianplan
I am running into a similar problem but my setup is a little different. I dont have or need NATing
My setup is as follows:
Phone(X.X.141.32)----(Y.Y.47.149)local-intf-|Asterisk|external-intf(Z.Z.247.106)--------(w.w.158.26)ISP-SIP-Server)----OutsideWorld
I am able to set a call and I have the audio coming from the outside world to my phone but the audio from my Phone IP(X.X)
is not going out to the SIP-Server. In fact I think it is not even reaching the Asterisk server. Here is the reason why?
The SDP in the 180 going to the phone has the IP address of the external-inf(Z.Z)
<--- Transmitting (NAT) to X.X.141.32:5060 --->
SIP/2.0 183 Session Progress^M
Via: SIP/2.0/UDP X.X.141.32;branch=z9hG4bK87468d20000002f44b86a00400006f2b00000166;received=X.X.141.32;rport=5060^M
From: "Irfan Lateef" <sip:2005@Y.Y.47.149>;tag=327f290e2e7^M
To: <sip:99084611234@Y.Y.47.149>;tag=as24228e21^M
Call-ID: 876BAA6B36F644F7B4EF7BE5D4B7E8BD0x87468d20^M
CSeq: 2 INVITE^M
User-Agent: Asterisk PBX 1.6.0.17^M
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO^M
Supported: replaces, timer^M
Require: timer^M
Session-Expires: -1;refresher=uas^M
Contact: <sip:99084611234@Z.Z.247.106>^M
Content-Type: application/sdp^M
Content-Length: 315^M
^M
v=0^M
o=root 1021147583 1021147583 IN IP4 Z.Z.247.106^M
s=Asterisk PBX 1.6.0.17^M
[b]c=IN IP4 Z.Z.247.106[/b]^M
t=0 0^M
m=audio 18702 RTP/AVP 0 8 3 101^M
I have the following in the sip_nat.conf
localnet=Y.Y.47.149/255.255.0.0
externhost=Z.Z.247.106
externrefresh=10
fromdomain=att.com
nat=yes
qualify=yes
canreinvite=no
I think the SDP should have give the Y.Y.47.149 IP on the local net side to the phone. But I am unable to figure how make it do that.
The Asterisk log shows this.
[Feb 25 11:06:30] VERBOSE[1449] logger.c: -- Executing [s@macro-dialout-trunk:19] ^[[1;36;40mDial^[[0;37;40m("^[[1;35;40mSIP/2005-19dc0db8^[[0;37;40m", "^[[1;35;40mSIP/ATT-alpi016-IPFlex1/19084611234,300,^[[0;37;40m") in new stack
[Feb 25 11:06:30] VERBOSE[1449] logger.c: == Using SIP RTP TOS bits 184
[Feb 25 11:06:30] VERBOSE[1449] logger.c: == Using SIP RTP CoS mark 5
[Feb 25 11:06:30] VERBOSE[1449] logger.c: -- Called ATT-alpi016-IPFlex1/19084611234
[Feb 25 11:06:32] VERBOSE[1449] logger.c: -- SIP/ATT-alpi016-IPFlex1-19dda0f8 is making progress passing it to SIP/2005-19dc0db8
[Feb 25 11:06:32] VERBOSE[1449] logger.c: Audio is at Z.Z.247.106 port 18702
[Feb 25 11:06:32] VERBOSE[1449] logger.c: Adding codec 0x4 (ulaw) to SDP
[Feb 25 11:06:32] VERBOSE[1449] logger.c: Adding codec 0x8 (alaw) to SDP
[Feb 25 11:06:32] VERBOSE[1449] logger.c: Adding codec 0x2 (gsm) to SDP
[Feb 25 11:06:32] VERBOSE[1449] logger.c: Adding non-codec 0x1 (telephone-event) to SDP
[Feb 25 11:06:32] VERBOSE[1449] logger.c:
Any help is greatly appreciated.
Thanks and Regards,
Irfan Lateef