[asterisk-users] Asterisk is overwriting proxy Via Header

Fernando BERRETTA fberretta at voipgroup.com
Tue Oct 24 12:53:30 MST 2006


Hi, 

I having a problem with my asterisk, it is overwriting the Proxy Via
header with its own ip address and answering to the Proxy with the
modified header, so the Proxy is having problems to route the response.
I've tried with different versions of asterisk and nothing is changing,
and if I try in other Server all works perfect, the problem is related
with this particular server running over "Linux dit_rs_poa_mtz_gw1.local
2.6.18 #1 SMP PREEMPT Fri Sep 22 10:43:25 BRT 2006 i686 i686 i386
GNU/Linux"

The scenary is like this:

IPPhone-----------Proxy1--------------Asterisk

Invite sent by the IPPhone

INVITE sip:05140097506 at 200.X.X.136 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.100:22149;branch=z9hG4bK554e149351ab7a3b
From: "teste" <sip:5551125 at 200.X.X.136>;tag=d772c33c63ebf84c
To: <sip:05140097506 at 200.X.X.136>
Contact: <sip:5551125 at 192.168.1.100:22149>
Supported: replaces
Proxy-Authorization: Digest username="5551125", realm="200.X.X.136",
algorithm=MD5, uri="sip:05140097506 at 200.X.X.136", qop=auth, nc=00000001,
cnonce="eed75407c0d78607", opaque="4c4f15e2744c43bb0790c60a78c00552",
nonce="453778dd3e3c605897e1efdeb823fc53122bc50c",
response="67cab99628290773609250e828628f14"
Call-ID: 0a95be65e1b22dc1 at 192.168.1.100
CSeq: 63837 INVITE
User-Agent: Grandstream BT110 1.0.8.23
Max-Forwards: 70
Allow: INVITE,ACK,CANCEL,BYE,NOTIFY,REFER,OPTIONS,INFO,SUBSCRIBE
Content-Type: application/sdp
Content-Length: 388


Invite sent by the Proxy to *

INVITE sip:40097506 at 200.X.X.131:5060 SIP/2.0
Contact: <sip:5551125 at 201.X.X.212:50386>
CSeq: 63837 INVITE
From: "teste" <sip:5551125 at 200.X.X.136:5060>;tag=d772c33c63ebf84c
Proxy-Authorization: digest username="5551125", realm="200.X.X.136",
nonce="453778dd3e3c605897e1efdeb823fc53122bc50c",
cnonce="eed75407c0d78607", response="67cab99628290773609250e828628f14",
uri="sip:05140097506 at 200.X.X.136",
opaque="4c4f15e2744c43bb0790c60a78c00552", qop="auth", nc=00000001,
algorithm=MD5
To: <sip:05140097506 at 200.X.X.136:5060>
Via: SIP/2.0/UDP 200.X.X.136:5060;branch=z9hG4bKbced0281e38aa078
Via: SIP/2.0/UDP
192.168.1.100:22149;branch=z9hG4bK554e149351ab7a3b;received=201.X.X.212;
rport=50386
Record-Route: <sip:200.X.X.136:5060>
Allow: INVITE,ACK,CANCEL,BYE,NOTIFY,REFER,OPTIONS,INFO,SUBSCRIBE
User-Agent: Grandstream BT110 1.0.8.23
Call-Id: 0a95be65e1b22dc1 at 192.168.1.100
Max-Forwards: 70
Content-Length: 389
supported: replaces
content-type: application/sdp

Trying sent by Asterisk with via modified

SIP/2.0 100 Trying
v: SIP/2.0/UDP
200.X.X.131:5060;branch=z9hG4bKbced0281e38aa078;received=200.X.X.136
v: SIP/2.0/UDP
192.168.1.100:22149;branch=z9hG4bK554e149351ab7a3b;received=201.X.X.212;
rport=50386
f: "teste" <sip:5551125 at 200.X.X.136:5060>;tag=d772c33c63ebf84c
t: <sip:05140097506 at 200.X.X.136:5060>
i: 0a95be65e1b22dc1 at 192.168.1.100
CSeq: 63837 INVITE
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
m: <sip:40097506 at 200.X.X.131>
l: 0


Could someone please tell me why asterisk is replacing proxy ip address
with its own ip address in the last one via header ?? How can I solve it
?

Regards,
Fernando


More information about the asterisk-users mailing list