Below are 2 example sections of ser.cfg and the only difference it moving
the rewritehostport from route[0] default to route[1]. This seems to cause
issues with the BYE messages. When I have it in route[1] the call doesn't
hang-up correctly and I see the 481 when looking at ngrep. From what I can
make out from the docs both should be valid methods of sending call to the
PSTN. Please help me understand the fault in my logic. The reason I am
trying to track this issue down it that in my more complex configs with all
of the possibilities it would be nice to be able to include certain function
in route sub routines.
Thanks
See Capture1 below for ngrep port 5060 capture of config in example 1
See Capture2 below for ngrep port 5060 capture of config in example 2
Example 1:
if (uri==myself) {
if (method=="REGISTER") {
# Uncomment this if you want to use digest authentication
# if (!www_authorize("iptel.org", "subscriber"))
{
# www_challenge("iptel.org", "0");
# break;
# };
save("location");
break;
};
lookup("aliases");
if (uri=~"^sip:[0-9]{10}@") {
rewritehostport("209.163.109.7:7021");
route(1);
break;
};
if (!uri==myself) {
append_hf("P-hint: outbound alias\r\n");
route(1);
break;
};
# native SIP destinations are handled using our USRLOC DB
if (!lookup("location")) {
sl_send_reply("404", "Not Found");
break;
};
};
append_hf("P-hint: usrloc applied\r\n");
route(1);
}
route[1]
{
# send it out now; use stateful forwarding as it works reliably
# even for UDP2TCP
if (!t_relay()) {
sl_reply_error();
};
}
Example 2:
if (uri==myself) {
if (method=="REGISTER") {
# Uncomment this if you want to use digest authentication
# if (!www_authorize("iptel.org", "subscriber"))
{
# www_challenge("iptel.org", "0");
# break;
# };
save("location");
break;
};
lookup("aliases");
if (uri=~"^sip:[0-9]{10}@") {
route(1);
break;
};
if (!uri==myself) {
append_hf("P-hint: outbound alias\r\n");
route(1);
break;
};
# native SIP destinations are handled using our USRLOC DB
if (!lookup("location")) {
sl_send_reply("404", "Not Found");
break;
};
};
append_hf("P-hint: usrloc applied\r\n");
route(1);
}
route[1]
{
# send it out now; use stateful forwarding as it works reliably
# even for UDP2TCP
rewritehostport("209.163.109.7:7021");
if (!t_relay()) {
sl_reply_error();
};
}
Capture 1:
#
U 162.33.165.203:5060 -> 162.33.165.197:5060
INVITE sip:4102959745@sipdemo.routerboy.com SIP/2.0..
Via: SIP/2.0/UDP 162.33.165.203..
From: "ToadNet Testbed 5"
<sip:7003@sipdemo.routerboy.com>;tag=b45ee895-d03c-de8e-caa4-a149eb26e6e8..
To: <sip:4102959745@sipdemo.routerboy.com>..
Contact: <sip:7003@162.33.165.203>..
Call-ID: 10e079f5-5d15-7807-f095-7021e89597c2(a)162.33.165.203..
CSeq: 15616 INVITE..
User-Agent: Grandstream SIP UA 1.0.3.81..
Max-Forwards: 70..
Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, OPTIONS, INFO, SUBSCRIBE..
Content-Type: application/sdp..
Content-Length: 234..
..
v=0..
o=7003 0 0 IN IP4 162.33.165.203..
s=-..
c=IN IP4 162.33.165.203..
t=0 0..
m=audio 5004 RTP/AVP 0
8 4 18 15..
a=ptime:20..
a=rtpmap:0 PCMU/8000..
a=rtpmap:8 PCMA/8000..
a=rtpmap:4 G723/8000..
a=rtpmap:18 G729/8000..
a=rtpmap:15 G728/8000..
#
U 162.33.165.197:5060 -> 162.33.165.203:5060
SIP/2.0 100 trying -- your call is important to us..
Via: SIP/2.0/UDP 162.33.165.203..
From: "ToadNet Testbed 5"
<sip:7003@sipdemo.routerboy.com>;tag=b45ee895-d03c-de8e-caa4-a149eb26e6e8..
To: <sip:4102959745@sipdemo.routerboy.com>..
Call-ID: 10e079f5-5d15-7807-f095-7021e89597c2(a)162.33.165.203..
CSeq: 15616 INVITE..
Server: Sip EXpress router (0.8.12-dev-23-merged (i386/linux))..
Content-Length: 0..
Warning: 392 162.33.165.197:5060 "Noisy feedback tells: pid=8102
req_src_ip=162.33.165.203 req_src_port=5060 in_
uri=sip:4102959745@sipdemo.routerboy.com
out_uri=sip:4102959745@209.163.109.7:7021 via_cnt==1"..
..
#
U 162.33.165.197:5060 -> 209.163.109.7:7021
INVITE sip:4102959745@209.163.109.7:7021 SIP/2.0..
Record-Route:
<sip:4102959745@162.33.165.197;ftag=b45ee895-d03c-de8e-caa4-a149eb26e6e8;lr=
on>..
Via: SIP/2.0/UDP 162.33.165.197;branch=z9hG4bK36e6.3c2402d6.0..
Via: SIP/2.0/UDP 162.33.165.203..
From: "ToadNet Testbed 5"
<sip:7003@sipdemo.routerboy.com>;tag=b45ee895-d03c-de8e-caa4-a149eb26e6e8..
To: <sip:4102959745@sipdemo.routerboy.com>..
Contact: <sip:7003@162.33.165.203>..
Call-ID: 10e079f5-5d15-7807-f095-7021e89597c2(a)162.33.165.203..
CSeq: 15616 INVITE..
User-Agent: Grandstream SIP UA 1.0.3.81..
Max-Forwards: 69..
Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, OPTIONS, INFO, SUBSCRIBE ..
Content-Type: application/sdp..
Content-Length: 234..
..
v=0..
o=7003 0 0 IN IP4 162.33.165.203..
s=-..
c=IN IP4 162.33.165.203..
t=0 0..
m=audio 5004 RTP/AVP 0 8 4 18 15..
a=ptime:20..
a=rtpmap:0 PCMU/8000..
a=rtpmap:8 PCMA/8000..
a=rtpmap:4 G723/8000..
a=rtpmap:18 G729/8000..
a=rtpmap:15 G728/8000..
#
U 209.163.109.7:7021 -> 162.33.165.197:5060
SIP/2.0 100 Trying..
Via: SIP/2.0/UDP 162.33.165.197:5060;branch=z9hG4bK36e6.3c2402d6.0..
Via: SIP/2.0/UDP 162.33.165.203:5060..
To: <sip:4102959745@sipdemo.routerboy.com>..
From: "ToadNet Testbed
5"<sip:7003@sipdemo.routerboy.com>;tag=b45ee895-d03c-de8e-caa4-a149eb26e6e8.
.
Call-ID: 10e079f5-5d15-7807-f095-7021e89597c2(a)162.33.165.203..
CSeq: 15616 INVITE..
Content-Length: 0..
..
#
U 209.163.109.7:7021 -> 162.33.165.197:5060
SIP/2.0 183 Session Progress..
Via: SIP/2.0/UDP 162.33.165.197:5060;branch=z9hG4bK36e6.3c2402d6.0..
Via: SIP/2.0/UDP 162.33.165.203:5060..
To: <sip:4102959745@sipdemo.routerboy.com>;tag=DDEA1874-1898..
From: "ToadNet Testbed
5"<sip:7003@sipdemo.routerboy.com>;tag=b45ee895-d03c-de8e-caa4-a149eb26e6e8.
.
Date: Fri, 05 Dec 2003 18:01:23 GMT..
Call-ID: 10e079f5-5d15-7807-f095-7021e89597c2(a)162.33.165.203..
CSeq: 15616 INVITE..
Server: Cisco-SIPGateway/IOS-12.x..
Content-Disposition: session;handling=required..
Content-Type: application/sdp..
Content-Length: 219..
Allow-Events: telephone-event..
..
v=0..
o=CiscoSystemsSIP-GW-UserAgent 5092 3331 IN I
P4 209.163.109.9..
s=SIP Call..
c=IN IP4 209.163.109.9..
t=0 0..
m=audio 17708 RTP/AVP 0 100..
a=rtpmap:0 PCMU/8000..
a=rtpmap:100 X-NSE/8000..
a=fmtp:100 192-194..
a=ptime:20..
#
U 162.33.165.197:5060 -> 162.33.165.203:5060
SIP/2.0 183 Session Progress..
Via: SIP/2.0/UDP 162.33.165.203:5060..
To: <sip:4102959745@sipdemo.routerboy.com>;tag=DDEA1874-1898..
From: "ToadNet Testbed
5"<sip:7003@sipdemo.routerboy.com>;tag=b45ee895-d03c-de8e-caa4-a149eb26e6e8.
.
Date: Fri, 05 Dec 2003 18:01:23 GMT..
Call-ID: 10e079f5-5d15-7807-f095-7021e89597c2(a)162.33.165.203..
CSeq: 15616 INVITE..
Server: Cisco-SIPGateway/IOS-12.x..
Content-Disposition: session;handling=required..
Content-Type: application/sdp..
Content-Length: 219..
Allow-Events: telephone-event..
..
v=0..
o=CiscoSystemsSIP-GW-UserAgent 5092 3331 IN IP4 209.163.109.9..
s=SIP Call..
c=IN IP4 209.163.109.9..
t=0 0..
m=audio 17708 RTP/AVP 0 100..
a=rtpmap:0 PCMU/8000..
a=rtpmap:100 X-NSE/8000..
a=fmtp:100 192-194..
a=ptime:20..
#
U 209.163.109.7:7021 -> 162.33.165.197:5060
SIP/2.0 200 OK..
Via: SIP/2.0/UDP 162.33.165.197:5060;branch=z9hG4bK36e6.3c2402d6.0..
Via: SIP/2.0/UDP 162.33.165.203:5060..
To: <sip:4102959745@sipdemo.routerboy.com>;tag=DDEA1874-1898..
From: "ToadNet Testbed
5"<sip:7003@sipdemo.routerboy.com>;tag=b45ee895-d03c-de8e-caa4-a149eb26e6e8.
.
Date: Fri, 05 Dec 2003 18:01:23 GMT..
Call-ID: 10e079f5-5d15-7807-f095-7021e89597c2(a)162.33.165.203..
CSeq: 15616 INVITE..
Server: Cisco-SIPGateway/IOS-12.x..
Record-Route:
<sip:238014102959745@209.163.109.7:5067;maddr=209.163.109.7>,<sip:4102959745
@209.163.109.7:7021;maddr=209.163.109.7>,<sip:4102959745@162.33.165.197;ftag
=b45ee895-d03c-de8e-caa4-a149eb26e6e8;lr=on>..
Contact: <sip:238014102959745@209.163.109.9:5060;user=phone>..
Content-Type: application/sdp..
Content-Length: 219..
Allow-Events: telephone-event..
..
v=0..
o=CiscoSystemsSIP-GW-UserAgent 5092 3331 IN IP4 209.163.109.9..
s=SIP Call..
c=IN IP4 209.163.109.9..
t=0 0..
m=audio 17708 RTP/AVP 0 100..
a=rtpmap:0 PCMU/8000..
a=rtpmap:100 X-NSE/8000..
a=fmtp:100 192-194..
a=ptime:20..
#
U 162.33.165.197:5060 -> 162.33.165.203:5060
SIP/2.0 200 OK..
Via: SIP/2.0/UDP 162.33.165.203:5060..
To: <sip:4102959745@sipdemo.routerboy.com>;tag=DDEA1874-1898..
From: "ToadNet Testbed
5"<sip:7003@sipdemo.routerboy.com>;tag=b45ee895-d03c-de8e-caa4-a149eb26e6e8.
.
Date: Fri, 05 Dec 2003 18:01:23 GMT..
C all-ID: 10e079f5-5d15-7807-f095-7021e89597c2(a)162.33.165.203..
CSeq: 15616 INVITE..
Server: Cisco-SIPGateway/IOS-12.x..
Record-Route:
<sip:238014102959745@209.163.109.7:5067;maddr=209.163.109.7>,<sip:4102959745
@209.163.109.7:7021;maddr=209.163.109.7>,<sip:4102959745@162.33.165.197;ftag
=b45ee895-d03c-de8e-caa4-a149eb26e6e8;lr=on>..
Contact: <sip:238014102959745@209.163.109.9:5060;user=phone>..
Content-Type: application/sdp..
Content-Length: 219..
Allow-Events: telephone-event..
..
v=0..
o=CiscoSystemsSIP-GW-UserAgent 5092 3331 IN IP4 209.163.109.9..
s=SIP Call..
c=IN IP4 209.163.109.9..
t=0 0..
m=audio 17708 RTP/AVP 0 100..
a=rtpmap:0 PCMU/8000 ..
a=rtpmap:100 X-NSE/8000..
a=fmtp:100 192-194..
a=ptime:20..
#
U 162.33.165.203:5060 -> 162.33.165.197:5060
ACK sip:238014102959745@209.163.109.9:5060 SIP/2.0..
Via: SIP/2.0/UDP 162.33.165.203..
Route:
<sip:4102959745@162.33.165.197;ftag=b45ee895-d03c-de8e-caa4-a149eb26e6e8;lr=
on>..
Route: <sip:4102959745@209.163.109.7:7021;maddr=209.163.109.7>..
Route: <sip:238014102959745@209.163.109.7:5067;maddr=209.163.109.7>..
From: "ToadNet Testbed 5"
<sip:7003@sipdemo.routerboy.com>;tag=b45ee895-d03c-de8e-caa4-a149eb26e6e8..
To: <sip:4102959745@sipdemo.routerboy.com>;tag=DDEA1874-1898..
Contact: <sip:7003@162.33.165.203>..
Call-ID: 10e079f5-5d15-7807-f095-7021e89597c2(a)162.33.165.203..
CSeq: 15616 ACK..
User-Agent: Grandstream SIP UA 1.0.3.81..
Max-Forwards: 70..
Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, OPTIONS, INFO, SUBSCRIBE..
Content-Length: 0..
..
#
U 162.33.165.197:5060 -> 209.163.109.7:7021
ACK sip:4102959745@209.163.109.7:7021;maddr=209.163.109.7 SIP/2.0..
Record-Route:
<sip:238014102959745@162.33.165.197;ftag=b45ee895-d03c-de8e-caa4-a149eb26e6e
8;lr=on>..
Via: SIP/2.0/UDP 162.33.165.197;branch=0..
Via: SIP/2.0/UDP 162.33.165.203..
Route: <sip:238014102959745@209.163.109.7:5067;maddr=209.163.109.7>..
From: "ToadNet Testbed 5"
<sip:7003@sipdemo.routerboy.com>;tag=b45ee895-d03c-de8e-caa4-a149eb26e6e8..
To: <sip:4102959745@sipdemo.routerboy.com>;tag=DDEA1874-1898..
Contact: <sip:7003@162.33.165.203> ..
Call-ID: 10e079f5-5d15-7807-f095-7021e89597c2(a)162.33.165.203..
CSeq: 15616 ACK..
User-Agent: Grandstream SIP UA 1.0.3.81..
Max-Forwards: 69..
Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, OPTIONS, INFO, SUBSCRIBE..
Content-Length: 0..
Route: <sip:238014102959745@209.163.109.9:5060>..
P-hint: rr-enforced..
..
#
U 209.163.109.7:7021 -> 162.33.165.197:5060
BYE sip:4102959745@162.33.165.197:5060 SIP/2.0..
Via: SIP/2.0/UDP
209.163.109.7:7021;branch=z9hG4bK774aea783c1494ea3869b17500fb9d20.4..
Via: SIP/2.0/UDP
209.163.109.7:5067;branch=z9hG4bK860578b098c2e73149eab3e067750477.2..
Via: SIP/2.0/UDP 209.163.109.9:5060..
To: "ToadNet Testbed
5"<sip:7003@sipdemo.routerboy.com>;tag=b45ee895-d03c-de8e-caa4-a149eb26e6e8.
.
From: <sip:4102959745@sipdemo.routerboy.com>;tag=DDEA1874-1898..
Date: Fri, 05 Dec 2003 18:01:31 GMT..
Call-ID: 10e079f5-5d15-7807-f095-7021e89597c2(a)162.33.165.203..
CSeq: 101 BYE..
Max-Forwards: 5..
Route: <sip:7003@162.33.165.203:5060>..
Timestamp: 1070647369..
User-Agent: Cisco-SIPGateway/IOS-12.x..
Content-Length: 0..
..
#
U 162.33.165.197:5060 -> 162.33.165.203:5060
BYE sip:7003@162.33.165.203:5060 SIP/2.0..
Record-Route: <sip:4102959745@162.33.165.197;ftag=DDEA1874-1898;lr=on>..
Via: SIP/2.0/ UDP 162.33.165.197;branch=z9hG4bK2906.7cd4e111.0..
Via: SIP/2.0/UDP
209.163.109.7:7021;branch=z9hG4bK774aea783c1494ea3869b17500f
b9d20.4..
Via: SIP/2.0/UDP
209.163.109.7:5067;branch=z9hG4bK860578b098c2e73149eab3e067750477.2..
Via: SIP/2.0/UDP 209.163.109.9:5060..
To: "ToadNet Testbed
5"<sip:7003@sipdemo.routerboy.com>;tag=b45ee895-d03c-de8e-caa4-a149eb26e6e8.
.
From: <sip:4102959745@sipdemo.routerboy.com>;tag=DDEA1874-1898..
Date: Fri, 05 Dec 2003 18:01:31 GMT..
Call-ID: 10e079f5-5d15-7807-f095-7021e89597c2(a)162.33.165.203..
CSeq: 101 BYE..
Max-Forwards: 4..
Timestamp: 1070647369..
User-Agent: Cisco-SIPGateway/IOS-12.x..
Content-Length: 0..
P-hint: rr-enforced..
..
#
U 162.33.165.203:5060 -> 162.33.165.197:5060
SIP/2.0 200 OK..
Via: SIP/2.0/UDP 162.33.165.197;branch=z9hG4bK2906.7cd4e111.0..
Via: SIP/2.0/UDP
209.163.109.7:7021;branch=z9hG4bK774aea783c1494ea3869b17500fb9d20.4..
Via: SIP/2.0/UDP
209.163.109.7:5067;branch=z9hG4bK860578b098c2e73149eab3e067750477.2..
Via: SIP/2.0/UDP 209.163.109.9:5060..
Record-Route: <sip:4102959745@162.33.165.197;ftag=DDEA1874-1898;lr=on>..
From: <sip:4102959745@sipdemo.routerboy.com>;tag=DDEA1874-1898..
To: "ToadNet Testbed
5"<sip:7003@sipdemo.routerboy.com>;tag=b45ee895-d03c-de8e-caa4-a149eb26e6e8.
.
Call-ID: 10e079f5-5d15-7807-f095-7021e89597c2(a)162.33.165.203..
CSeq: 101 BYE..
User-Agent: Grandstream SIP UA 1.0.3.81..
Contact: <sip:7003@162.33.165.203>..
Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, OPTIONS, INFO, SUBSCRIBE..
Content-Length: 0..
..
#
U 162.33.165.197:5060 -> 209.163.109.7:7021
SIP/2.0 200 OK..
Via: SIP/2.0/UDP
209.163.109.7:7021;branch=z9hG4bK774aea783c1494ea3869b17500fb9d20.4..
Via: SIP/2.0/UDP
209.163.109.7:5067;branch=z9hG4bK860578b098c2e73149eab3e067750477.2..
Via: SIP/2.0/UDP 209.163.109.9:5060..
Record-Route: <sip:4102959745@162.33.165.197;ftag=DDEA1874-1898;lr=on>..
From: <sip:4102959745@sipdemo.routerboy.com>;tag=DDEA1874-1898..
To: "ToadNet Testbed
5"<sip:7003@sipdemo.routerboy.com>;tag=b45ee895-d03c-de8e-caa4-a149eb26e6e8.
.
Call-ID: 10e079f5-5d15-7807-f095-7021e89597c2(a)162.33.165.203..
CSeq: 101 BYE..
User-Agent: Grandstream SIP UA 1.0.3.81..
Contact: <sip:7003@162.33.165.203>..
Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, OPTIONS, INFO, SUBSCRIBE..
Content-Length: 0..
..
#
U 162.33.165.196:29479 -> 162.33.165.197:5060
..
Capture 2:
[root@serv1 ser]# ngrep port 5060
interface: eth0 (162.33.165.192/255.255.255.240)
filter: ip and ( port 5060 )
#
U 162.33.165.203:5060 -> 162.33.165.197:5060
INVITE sip:4102959745@sipdemo.routerboy.com SIP/2.0..
Via: SIP/2.0/UDP 162.33.165.203..
From: "ToadNet Testbed 5"
<sip:7003@sipdemo.routerboy.com>;tag=2b00806c-495b-b6c0-cceb-682930719843..
To: <sip:4102959745@sipdemo.routerboy.com>..
Contact: <sip:7003@162.33.165.203>..
Call-ID: 5aa02b3f-1d95-0f2f-dd55-aca6806cbcd7(a)162.33.165.203..
CSeq: 63249 INVITE..
User-Agent: Grandstream SIP UA 1.0.3.81..
Max-Forwards: 70..
Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, OPTIONS, INFO, SUBSCRIBE..
Content-Type: application/sdp..
Content-Length: 234..
..
v=0..
o=7003 0 0 IN IP4 162.33.165.203..
s=-..
c=IN IP4 162.33.165.203..
t=0 0..
m=audio 5004 RTP/AVP 08 4 18 15..
a=ptime:20..
a=rtpmap:0 PCMU/8000..
a=rtpmap:8 PCMA/8000..
a=rtpmap:4 G723/8000..
a=rtpmap:18 G729/8000..
a=rtpmap:15 G72
8/8000..
#
U 162.33.165.197:5060 -> 162.33.165.203:5060
SIP/2.0 100 trying -- your call is important to us..
Via: SIP/2.0/UDP 162.33.165.203..
From: "ToadNet Testbed 5"
<sip:7003@sipdemo.routerboy.com>;tag=2b00806c-495b-b6c0-cceb-682930719843..
To: <sip:4102959745@sipdemo.routerboy.com>..
Call-ID: 5aa02b3f-1d95-0
f2f-dd55-aca6806cbcd7(a)162.33.165.203..
CSeq: 63249 INVITE..
Server: Sip EXpress router (0.8.12-dev-23-merged (i386/linux))..
Content-Length: 0..
Warning: 392 162.33.165.197:5060 "Noisy feedback tells: pid=8060
req_src_ip=162.33.165.203 req_src_port=5060 in_
uri=sip:4102959745@sipdemo.routerboy.com
out_uri=sip:4102959745@209.163.109.7:7021 via_cnt==1"..
..
#
U 162.33.165.197:5060 -> 209.163.109.7:7021
INVITE sip:4102959745@209.163.109.7:7021 SIP/2.0..
Record-Route:
<sip:4102959745@162.33.165.197;ftag=2b00806c-495b-b6c0-cceb-682930719843;lr=
on>..
Via: SIP/2.0/UDP 162.33.165.197;branch=z9hG4bK4cc4.32dfa471.0..
Via: SIP/2.0/UDP 162.33.165.203..
From: "ToadNet Testbed 5"
<sip:7003@sipdemo.routerboy.com>;tag=2b00806c-495b-b6c0-cceb-682930719843..
To: <sip:4102959745@sipdemo.routerboy.com>..
Contact: <sip:7003@162.33.165.203>..
Call-ID: 5aa02b3f-1d95-0f2f-dd55-aca6806cbcd7(a)162.33.165.203..
CSeq: 63249 INVITE..
User-Agent: Grandstream SIP UA 1.0.3.81..
Max-Forwards: 69..
Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, OPTIONS, INFO, SUBSCRIBE..
Content-Type: application/sdp..
Content-Length: 234..
..
v=0..
o=7003 0 0 IN IP4 162.33.165.203..
s=-..
c=IN IP4 162.33.165.203..
t=0 0..
m=audio 5004 RTP/AVP 0 8 4 18 15..
a=ptime:20..
a=rtpmap:0 PCMU/8000..
a=rtpmap:8 PCMA/8000..
a=rtpmap:4 G723/8000..
a=rtpmap:1
8 G729/8000..
a=rtpmap:15 G728/8000..
#
U 209.163.109.7:7021 -> 162.33.165.197:5060
SIP/2.0 100 Trying..
Via: SIP/2.0/UDP 162.33.165.197:5060;branch=z9hG4bK4cc4.32dfa471.0..
Via: SIP/2.0/UDP 162.33.165.203:5060..
To: <sip:4102959745@sipdemo.routerboy.com>..
From: "ToadNet Testbed
5"<sip:7003@sipdemo.routerboy.com>;tag=2b00806c-495b-b6c0-cceb-682930719843.
.
Call-ID: 5aa02b3f-1d95-0f2f-dd55-aca6806cbcd7(a)162.33.165.203..
CSeq: 63249 INVITE..
Content-Length: 0..
..
#
U 209.163.109.7:7021 -> 162.33.165.197:5060
SIP/2.0 183 Session Progress..
Via: SIP/2.0/UDP 162.33.165.197:5060;branch=z9hG4bK4cc4.32dfa471.0..
Via: SIP/2.0/UDP 162.33.165.203:5060..
To: <sip:4102959745@sipdemo.routerboy.com>;tag=DDDC4048-2260..
From: "ToadNet Testbed
5"<sip:7003@sipdemo.routerboy.com>;tag=2b00806c-495b-b6c0-cceb-682930719843.
.
Date: Fri, 05 Dec 2003 17:46:15 GMT..
Call-ID: 5aa02b3f-1d95-0f2f-dd55-aca6806cbcd7(a)162.33.165.203..
CSeq: 63249 INVITE..
Server: Cisco-SIPGateway/IOS-12.x..
Content-Disposition: session;handling=required..
Content-Type: application/sdp..
Content-Length: 219..
Allow-Events: telephone-event..
..
v=0..
o=CiscoSystemsSIP-GW-UserAgent 1002 2938 IN IP4 209.163.109.9..
s=SIP Call..
c=IN IP4 209.163.109.9..
t=0 0..
m=audio 17976 RTP/AVP 0 100..
a=rtpmap:0 PCMU/8000..
a=rtpmap:100 X-NSE/8000..
a=fmtp:100 192-194..
a=ptime:20..
#
U 162.33.165.197:5060 -> 162.33.165.203:5060
SIP/2.0 183 Session Progress..
Via: SIP/2.0/UDP 162.33.165.203:5060..
To: <sip:4102959745@sipdemo.routerboy.com>;tag=DDDC4048-2260..
From: "ToadNet Testbed
5"<sip:7003@sipdemo.routerboy.com>;tag=2b00806c-495b-b6c0-cceb-682930719843.
.
Date: Fri, 05 Dec 2003 17:46:15 GMT..
Call-ID: 5aa02b3f-1d95-0f2f-dd55-aca6806cbcd7(a)162.33.165.203..
CSeq: 63249 INVITE..
Server: Cisco-SIPGateway/IOS-12.x..
Content-Disposition: session;handling=required..
Content-Type: application/sdp..
Content-Length: 219..
Allow-Events: telephone-event..
..
v=0..
o=CiscoSystemsSIP-GW-UserAgent 1002 2938 IN IP4 209.163.109.9..
s=SIP Call..
c=IN IP4 209.163.109.9..
t=0 0..
m=audio 17976 RTP/AVP 0 100..
a=rtpmap:0 PCMU/8000..
a=rtpmap:100 X-NSE/8000..
a=fmtp:100 192-194..
a=ptime:20..
#
U 209.163.109.7:7021 -> 162.33.165.197:5060
SIP/2.0 200 OK..
Via: SIP/2.0/UDP 162.33.165.197:5060;branch=z9hG4bK4cc4.32dfa471.0..
Via: SIP/2.0/UDP 162.33.165.203:5060..
To: <sip:4102959745@sipdemo.routerboy.com>;tag=DDDC4048-2260..
From: "ToadNet Testbed
5"<sip:7003@sipdemo.routerboy.com>;tag=2b00806c-495b-b6c0-cceb-682930719843.
.
Date: Fri, 05 Dec 2003 17:46:15 GMT..
Call-ID: 5aa02b3f-1d95-0f2f-dd55-aca6806cbcd7(a)162.33.165.203..
CSeq: 63249 INVITE..
Server: Cisco-SIPGateway/IOS-12.x..
Record-Route: <sip:238014102959745@209.163.109.7:5067;maddr=209.163.10
9.7>,<sip:4102959745@209.163.109.7:7021;maddr=209.163.109.7>,<sip:4102959745
@162.33.165.197;ftag=2b00806c-495b-b6c0-cceb-682930
719843;lr=on>..
Contact: <sip:238014102959745@209.163.109.9:5060;user=phone>..
Content-Type: application/sdp..
Content-Length: 219..
Allow-Events: telephone-event..
..
v=0..
o=CiscoSystemsSIP-GW-UserAgent 1002 2938 IN IP4 209.163.109.9..
s=SIP Call..
c=IN IP4 209.163.109.9..
t=0 0..
m=audio 17976 RTP/AVP 0 100..
a=rtpmap:0 PCMU/8000..
a=rtpmap:100 X-NSE/8000..
a=fmtp:100 192-194..
a=ptime:20..
#
U 162.33.165.197:5060 -> 162.33.165.203:5060
SIP/2.0 200 OK..
Via: SIP/2.0/UDP 162.33.165.203:5060..
To: <sip:4102959745@sipdemo.routerboy.com>;tag=DDDC4048-2260..
From: "ToadNet Testbed
5"<sip:7003@sipdemo.routerboy.com>;tag=2b00806c-495b-b6c0-cceb-682930719843.
.
Date: Fri, 05 Dec 2003 17:46:15 GMT..
Call-ID: 5aa02b3f-1d95-0f2f-dd55-aca6806cbcd7(a)162.33.165.203..
CSeq: 63249 INVITE..
Server: Cisco-SIPGateway/IOS-12.x..
Record-Route:
<sip:238014102959745@209.163.109.7:5067;maddr=209.163.109.7>,<sip:4102959745
@209.163.109.7:7021;maddr=209.163.109.7>,<sip:41
02959745(a)162.33.165.197;ftag=2b00806c-495b-b6c0-cceb-682930719843;lr=on>gt;..
Contact: <sip:238014102959745@209.163.109.9:5060;user=phone>..
Content-Type: application/sdp..
Content-Length: 219..
Allow-Events: telephone-event..
..
v=0..
o=CiscoSystemsSIP-GW-UserAgent 1002 2938 IN IP4 209.163.109.9..
s=SIP Call..
c=IN IP4 209.163.109.9..
t=0 0..
m=audio 17976 RTP/AVP 0 100..
a=rtpmap:0 PCMU/8000..
a=rtpmap:100 X-NSE/8000..
a=fmtp:100 192-194..
a=ptime:20..
#
U 162.33.165.203:5060 -> 162.33.165.197:5060
ACK sip:238014102959745@209.163.109.9:5060 SIP/2.0..
Via: SIP/2.0/UDP 162.33.165.203..
Route:
<sip:4102959745@162.33.165.197;ftag=2b00806c-495b-b6c0-cceb-682930719843;lr=
on>..
Route: <sip:4102959745@209.163.109.7:7021;maddr=209.163.109.7>..
Route: <sip:238014102959745@209.163.109.7:5067;maddr=209.163.109.7>..
From: "ToadNet Testbed 5"
<sip:7003@sipdemo.routerboy.com>;tag=2b00806c-495b-b6c0-cceb-682930719843..
To: <sip:4102959745@sipdemo.routerboy.com>;tag=DDDC4048-2260..
Contact: <sip:7003@162.33.165.203>..
Call-ID: 5aa02b3f-1d95-0f2f-dd55-aca6806cbcd7(a)162.33.165.203..
CSeq: 63249 ACK..
User-Agent: Grandstream SIP UA 1.0.3.81..
Max-Forwards: 70..
Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, OPTIONS, INFO, SUBSCRIBE..
Content-Length: 0..
..
#
U 162.33.165.197:5060 -> 209.163.109.7:7021
ACK sip:4102959745@209.163.109.7:7021;maddr=209.163.109.7 SIP/2.0..
Record-Route:
<sip:238014102959745@162.33.165.197;ftag=2b00806c-495b-b6c0-cceb-68293071984
3;lr=on>..
Via: SIP/2.0/UDP 162.33.165.197;branch=0..
Via: SIP/2.0/UDP 162.33.165.203..
Route: <sip:238014102959745@209.163.109.7:5067;maddr=209.163.109.7>..
From: "ToadNet Testbed 5"
<sip:7003@sipdemo.routerboy.com>;tag=2b00806c-495b-b6c0-cceb-682930719843..
To: <sip:4102959745@sipdemo.routerboy.com>;tag=DDDC4048-2260..
Contact: <sip:7003@162.33.165.203> ..
Call-ID: 5aa02b3f-1d95-0f2f-dd55-aca6806cbcd7(a)162.33.165.203..
CSeq: 63249 ACK..
User-Agent: Grandstream SIP UA 1.0.3.81..
Max-Forwards: 69..
Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, OPTIONS, INFO, SUBSCRIBE..
Content-Length: 0..
Route: <sip:238014102959745@209.163.109.9:5060>..
P-hint: rr-enforced..
..
#
U 162.33.165.196:29479 -> 162.33.165.197:5060
..
#
U 162.33.165.196:29479 -> 162.33.165.197:5060
REGISTER
sip:sipdemo.routerboy.com SIP/2.0..
Via: SIP/2.0/UDP
192.168.0.2:5060;rport;branch=z9hG4bKC78EBEF51E6D4C34BC4E11711EE4502D..
From: ser <sip:7000@sipdemo.routerboy.com>..
To: ser <sip:7000@sipdemo.routerboy.com>..
Contact: "ser" <sip:7000@192.168.0.2:5060>..
Call-ID: 6FD5B609AF1C44AB8A3BF67AE2147DA7(a)sipdemo.routerboy.com..
CSeq: 2471 REGISTER..
Expires: 1800..
Max-Forwards: 70..
User-Agent: X-Lite build 1082..
Content-Length: 0..
..
#
U 162.33.165.197:5060 -> 162.33.165.196:29479 SIP/2.0 200 OK..
Via: SIP/2.0/UDP
192.168.0.2:5060;rport=29479;branch=z9hG4bKC78EBEF51E6D4C34BC4E11711EE4502D;
received=162.33.16
5.196..
From: ser <sip:7000@sipdemo.routerboy.com>..
To: ser
<sip:7000@sipdemo.routerboy.com>;tag=b27e1a1d33761e85846fc98f5f3a7e58.5f3a..
Call-ID: 6FD5B609AF1C44AB8A3BF67AE2147DA7(a)sipdemo.routerboy.com..
CSeq: 2471 REGISTER..
Contact: <sip:7000@192.168.0.2:5060>;q=0.00;expires=1800..
Server: Sip EXpress router (0.8.12-dev-23-merged (i386/linux))..
Content-Length: 0..
Warning: 392 162.33.165.197:5060 "Noisy feedback tells: pid=8063
req_src_ip=162.33.165.196 req_src_port=29479
in_uri=sip:sipdemo.routerboy.com ou
t_uri=sip:sipdemo.routerboy.com via_cnt==1"..
..
#
U 209.163.109.7:7021 -> 162.33.165.197:5060
BYE sip:4102959745@162.33.165.197:5060 SIP/2.0..
Via: SIP/2.0/UDP
209.163.109.7:7021;branch=z9hG4bK4408d945c5dec2a7eb659cd67e038a06.4..
Via: SIP/2.0/UDP
209.163.109.7:5067;branch=z9hG4bKe55a1f5fae81e5bff090c078ade18373.2..
Via: SIP/2.0/UDP 209.163.109.9:5060..
To: "ToadNet Testbed
5"<sip:7003@sipdemo.routerboy.com>;tag=2b00806c-495b-b6c0-cceb-682930719843.
.
From: <sip:4102959745@sipdemo.routerboy.com>;tag=DDDC4048-2260..
Date: Fri, 05 Dec 2003 17:46:23 GMT..
Call-ID: 5aa02b3f-1d95-0f2f-dd55-aca6806cbcd7(a)162.33.165.203..
CSeq: 101 BYE..
Max-Forwards: 5..
Route: <sip:7003@162.33.165.203:5060>..
Timestamp: 1070646430..
User-Agent: Cisco-SIPGateway/IOS-12.x..
Content-Length: 0..
..
#
U 162.33.165.197:5060 -> 209.163.109.7:7021
BYE sip:7003@209.163.109.7:7021 SIP/2.0..
Record-Route: <sip:4102959745@162.33.165.197;ftag=DDDC4048-2260;lr=on>..
Via: SIP/2.0/UDP 162.33.165.197;branch=z9hG4bKf207.24777037.0..
Via: SIP/2.0/UDP
209.163.109.7:7021;branch=z9hG4bK4408d945c5dec2a7eb659cd67e038a06.4..
Via: SIP/2.0/UDP
209.163.109.7:5067;branch=z9hG4bKe55a1f5fae81e5bff090c078ade18373.2..
Via: SIP/2.0/UDP 209.163.109.9:5060..
To: "ToadNet Testbed
5"<sip:7003@sipdemo.routerboy.com>;tag=2b00806c-495b-b6c0-cceb-682930719843.
.
From: <sip:4102959745@sipdemo.routerboy.com>;tag=DDDC4048-2260..
Date: Fri, 05 Dec 2003 17:46:23 GMT..
Call-ID: 5aa02b3f-1d95-0f2f-dd55-aca6806cbcd7(a)162.33.165.203..
CSeq: 101 BYE..
Max-Forwards: 4..
Timestamp: 1070646430..
User-Agent: Cisco-SIPGateway/IOS-12.x..
Content-Length: 0..
P-hint: rr-enforced..
..
#
U 209.163.109.7:7021 -> 162.33.165.197:5060
SIP/2.0 482 Loop Detected..
Via: SIP/2.0/UDP 162.33.165.197:5060;branch=z9hG4bKf207.24777037.0..
Via: SIP/2.0/UDP
209.163.109.7:7021;branch=z9hG4bK4408d945c5dec2a7eb659cd67e038a06.4..
Via: SIP/2.0/UDP
209.163.109.7:5067;branch=z9hG4bKe55a1f5fae81e5bff090c078ade18373.2..
Via: SIP/2.0/UDP 209.163.109.9:5060..
To: "ToadNet Testbed
5"<sip:7003@sipdemo.routerboy.com>;tag=2b00806c-495b-b6c0-cceb-682930719843.
.
From: <sip:4102959745@sipdemo.routerboy.com>;tag=DDDC4048-2260..
Call-ID: 5aa02b3f-1d95-0f2f-dd55-aca6806cbcd7(a)162.33.165.203..
CSeq: 101 BYE..
Content-Length: 0..
..
#
U 162.33.165.197:5060 -> 209.163.109.7:7021
SIP/2.0 482 Loop Detected..
Via: SIP/2.0/UDP
209.163.109.7:7021;branch=z9hG4bK4408d945c5dec2a7eb659cd67e038a06.4..
Via: SIP/2.0/UDP
209.163.109.7:5067;branch=z9hG4bKe55a1f5fae81e5bff090c078ade18373.2..
Via: SIP/2.0/UDP 209.163.109.9:5060..
To: "ToadNet Testbed
5"<sip:7003@sipdemo.routerboy.com>;tag=2b00806c-495b-b6c0-cceb-682930719843.
.
From: <sip:4102959745@sipdemo.routerboy.com>;tag=DDDC4048-2260..
Call-ID: 5aa02b3f-1d95-0f2f-dd55-aca6806cbcd7(a)162.33.165.203..
CSeq: 101 BYE..
Content-Length: 0..
..
#
U 162.33.165.203:5060 -> 162.33.165.197:5060
BYE sip:238014102959745@209.163.109.9:5060 SIP/2.0..
Via: SIP/2.0/UDP 162.33.165.203..
Route:
<sip:4102959745@162.33.165.197;ftag=2b00806c-495b-b6c0-cceb-682930719843;lr=
on>..
Route: <sip:4102959745@209.163.109.7:7021;maddr=209.163.109.7>..
Route: <sip:238014102959745@209.163.109.7:5067;maddr=209.163.109.7>..
From: "ToadNet Testbed 5"
<sip:7003@sipdemo.routerboy.com>;tag=2b00806c-495b-b6c0-cceb-682930719843..
To: <sip:4102959745@sipdemo.routerboy.com>;tag=DDDC4048-2260..
Contact: <sip:7003@162.33.165.203>..
Call-ID: 5aa02b3f-1d95-0f2f-dd55-aca6806cbcd7(a)162.33.165.203..
CSeq: 63250 BYE..
User-Agent: Grandstream SIP UA 1.0.3.81..
Max-Forwards: 70..
Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, OPTIONS, INFO, SUBSCRIBE..
Content-Length: 0..
..
#
U 162.33.165.197:5060 -> 209.163.109.7:7021
BYE sip:4102959745@209.163.109.7:7021;maddr=209.163.109.7 SIP/2.0..
Record-Route:
<sip:238014102959745@162.33.165.197;ftag=2b00806c-495b-b6c0-cceb-68293071984
3;lr=on>..
Via: SIP/2.0/UDP 162.33.165.197;branch=z9hG4bKdbc4.259c2b9.0..
Via: SIP/2.0/UDP 162.33.165.203..
Route: <sip:238014102959745@209.163.109.7:5067;maddr=209.163.109.7>..
From: "ToadNet Testbed 5"
<sip:7003@sipdemo.routerboy.com>;tag=2b00806c-495b-b6c0-cceb-682930719843..
To: <sip:4102959745@sipdemo.routerboy.com>;tag=DDDC4048-2260..
Contact: <sip:7003@162.33.165.203>..
Call-ID: 5aa02b3f-1d95-0f2f-dd55-aca6806cbcd7(a)162.33.165.203..
CSeq: 63250 BYE..
User-Agent: Grandstream SIP UA 1.0.3.81..
Max-Forwards: 69..
Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, OPTIONS, INFO, SUBSCRIBE..
Content-Length: 0..
Route: <sip:238014102959745@209.163.109.9:5060>..
P-hint: rr-enforced..
..
#
U 162.33.165.197:5060 -> 209.163.109.7:7021
BYE sip:4102959745@209.163.109.7:7021;maddr=209.163.109.7 SIP/2.0..
Record-Route:
<sip:238014102959745@162.33.165.197;ftag=2b00806c-495b-b6c0-cceb-68293071984
3;lr=on>..
Via: SIP/2.0/UDP 162.33.165.197;branch=z9hG4bKdbc4.259c2b9.0..
Via: SIP/2.0/UDP 162.33.165.203..
Route: <sip:238014102959745@209.163.109.7:5067;maddr=209.163.109.7>..
From: "ToadNet Testbed 5"
<sip:7003@sipdemo.routerboy.com>;tag=2b00806c-495b-b6c0-cceb-682930719843..
To: <sip:4102959745@sipdemo.routerboy.com>;tag=DDDC4048-2260..
Contact: <sip:7003@162.33.165.203>..
Call-ID: 5aa02b3f-1d95-0f2f-dd55-aca6806cbcd7(a)162.33.165.203..
CSeq: 63250 BYE..
User-Agent: Grandstream SIP UA 1.0.3.81..
Max-Forwards: 69..
Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, OPTIONS, INFO, SUBSCRIBE..
Content-Length: 0..
Route: <sip:238014102959745@209.163.109.9:5060>..
P-hint: rr-enforced..
..
#
U 209.163.109.7:7021 -> 162.33.165.197:5060
SIP/2.0 481 Call Leg/Transaction Does Not Exist..
Via: SIP/2.0/UDP 162.33.165.197:5060;branch=z9hG4bKdbc4.259c2b9.0..
Via: SIP/2.0/UDP 162.33.165.203:5060..
To: <sip:4102959745@sipdemo.routerboy.com>;tag=DDDC4048-2260..
From: "ToadNet Testbed
5"<sip:7003@sipdemo.routerboy.com>;tag=2b00806c-495b-b6c0-cceb-682930719843.
.
Call-ID: 5aa02b3f-1d95-0f2f-dd55-aca6806cbcd7(a)162.33.165.203..
CSeq: 63250 BYE..
Content-Length: 0..
..
#
U 162.33.165.197:5060 -> 162.33.165.203:5060
SIP/2.0 481 Call Leg/Transaction Does Not Exist..
Via: SIP/2.0/UDP 162.33.165.203:5060..
To: <sip:4102959745@sipdemo.routerboy.com>;tag=DDDC4048-2260..
From: "ToadNet Testbed
5"<sip:7003@sipdemo.routerboy.com>;tag=2b00806c-495b-b6c0-cceb-682930719843.
.
Call-ID: 5aa02b3f-1d95-0f2f-dd55-aca6806cbcd7(a)162.33.165.203..
CSeq: 63250 BYE..
Content-Length: 0..
..
#
U 162.33.165.200:5060 -> 162.33.165.197:5060
..
exit