Jan,
The failure_route is set up for the new leg. In this test, I cancelled the
call before the new leg was set up. Below is the SIP message log for the
call. It does show everything worked properly (as far as I can tell). The
only funny thing is the very last two (2) messages are the Busy/ACK which
were from the original leg of the call.
Regards,
Paul
U 2005/06/22 11:30:09.877341 71.99.100.101:1105 <http://71.99.100.101:1105>->
10.2.20.21:5060 <http://10.2.20.21:5060>
INVITE sip:3215550000@sip.mycompany.com SIP/2.0.
Via: SIP/2.0/UDP 10.99.47.102:5060 <http://10.99.47.102:5060>
;branch=z9hG4bK845928821.
From: 4075559999 <sip:4075559999@sip.mycompany.com>;tag=3734116179.
To: <sip:3215550000@sip.mycompany.com>.
Call-ID: 1206868322(a)10.99.47.102.
CSeq: 300 INVITE.
Contact: <sip:4075559999@10.99.47.102:5060>.
max-forwards: 70.
Allow: INVITE, ACK, CANCEL, BYE, REFER, NOTIFY.
Content-Type: application/sdp.
Content-Length: 178.
.
v=0.
o=- 10231 3023 IN IP4 10.99.47.102 <http://10.99.47.102>.
s=-.
c=IN IP4 10.99.47.102 <http://10.99.47.102>.
t=0 0.
m=audio 13456 RTP/AVP 0 8 2 4 18 101.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-15.
a=ptime:20.
U 2005/06/22 11:30:09.886368 10.2.20.21:5060 <http://10.2.20.21:5060> ->
71.99.100.101:1105 <http://71.99.100.101:1105>
SIP/2.0 407 Proxy Authentication Required.
Via: SIP/2.0/UDP 10.99.47.102:5060 <http://10.99.47.102:5060>
;branch=z9hG4bK845928821;rport=1105;received=71.99.100.101<http://71.99.100.101>
.
From: 4075559999 <sip:4075559999@sip.mycompany.com>;tag=3734116179.
To: <sip:3215550000@sip.mycompany.com>;tag=
1fe477f7999553e49c27ea343e9a9216.a61e.
Call-ID: 1206868322(a)10.99.47.102.
CSeq: 300 INVITE.
Proxy-Authenticate: Digest
realm="sip.mycompany.com<http://sip.mycompany.com>",
nonce="42b9852d9bf1f9e07dce81b5f490cd7db9c3a5cb", qop="auth".
Content-Length: 0.
.
U 2005/06/22 11:30:10.039330 71.99.100.101:1105 <http://71.99.100.101:1105>->
10.2.20.21:5060 <http://10.2.20.21:5060>
ACK sip:3215550000@sip.mycompany.com SIP/2.0.
Via: SIP/2.0/UDP 10.99.47.102:5060 <http://10.99.47.102:5060>
;branch=z9hG4bK845928821.
From: 4075559999 <sip:4075559999@sip.mycompany.com>;tag=3734116179.
To: <sip:3215550000@sip.mycompany.com>;tag=
1fe477f7999553e49c27ea343e9a9216.a61e.
Call-ID: 1206868322(a)10.99.47.102.
CSeq: 300 ACK.
Content-Length: 0.
.
U 2005/06/22 11:30:10.161309 71.99.100.101:1105 <http://71.99.100.101:1105>->
10.2.20.21:5060 <http://10.2.20.21:5060>
INVITE sip:3215550000@sip.mycompany.com SIP/2.0.
Via: SIP/2.0/UDP 10.99.47.102:5060 <http://10.99.47.102:5060>
;branch=z9hG4bK256996988.
From: 4075559999 <sip:4075559999@sip.mycompany.com>;tag=3734116179.
To: <sip:3215550000@sip.mycompany.com>.
Call-ID: 1206868322(a)10.99.47.102.
CSeq: 301 INVITE.
Contact: <sip:4075559999@10.99.47.102:5060>.
Proxy-Authorization: Digest username="4075559999",
realm="sip.mycompany.com<http://sip.mycompany.com>",
nonce="42b9852d9bf1f9e07dce81b5f490cd7db9c3a5cb", uri="
sip:3215550000@sip.mycompany.com",
response="4d1076d3f8b4e348ea1666ec45351a42", algorithm=MD5,
cnonce="2bddf808d944c1ac18add98d49b8c031", qop=auth, nc=00000005.
max-forwards: 70.
Allow: INVITE, ACK, CANCEL, BYE, REFER, NOTIFY.
Content-Type: application/sdp.
Content-Length: 178.
.
v=0.
o=- 10231 3023 IN IP4 10.99.47.102 <http://10.99.47.102>.
s=-.
c=IN IP4 10.99.47.102 <http://10.99.47.102>.
t=0 0.
m=audio 13456 RTP/AVP 0 8 2 4 18 101.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-15.
a=ptime:20.
U 2005/06/22 11:30:10.226992 10.2.20.21:5060 <http://10.2.20.21:5060> ->
71.99.100.101:1105 <http://71.99.100.101:1105>
SIP/2.0 100 Trying.
Via: SIP/2.0/UDP 10.99.47.102:5060 <http://10.99.47.102:5060>
;branch=z9hG4bK256996988;rport=1105;received=71.99.100.101<http://71.99.100.101>
.
From: 4075559999 <sip:4075559999@sip.mycompany.com>;tag=3734116179.
To: <sip:3215550000@sip.mycompany.com>.
Call-ID: 1206868322(a)10.99.47.102.
CSeq: 301 INVITE.
Content-Length: 0.
.
U 2005/06/22 11:30:10.227613 10.2.20.21:5060 <http://10.2.20.21:5060> ->
66.90.46.29:9534 <http://66.90.46.29:9534>
INVITE sip:3215550000@66.90.46.29:9534;user=phone SIP/2.0.
Record-Route: <sip:10.3.0.42:5060 <http://10.3.0.42:5060>;lr>.
Via: SIP/2.0/UDP 10.3.0.42 <http://10.3.0.42>;branch=z9hG4bK1cca.129837b2.0.
Via: SIP/2.0/UDP 10.99.47.102:5060 <http://10.99.47.102:5060>
;rport=1105;received=71.99.100.101 <http://71.99.100.101>
;branch=z9hG4bK256996988.
From: 4075559999 <sip:4075559999@sip.mycompany.com>;tag=3734116179.
To: <sip:3215550000@sip.mycompany.com>.
Call-ID: 1206868322(a)10.99.47.102.
CSeq: 301 INVITE.
Contact: <sip:4075559999@71.99.100.101:1105>.
max-forwards: 16.
Allow: INVITE, ACK, CANCEL, BYE, REFER, NOTIFY.
Content-Type: application/sdp.
Content-Length: 175.
P-hint: Local Destination.
.
v=0.
o=- 10231 3023 IN IP4 10.99.47.102 <http://10.99.47.102>.
s=-.
c=IN IP4 10.3.0.44 <http://10.3.0.44>.
t=0 0.
m=audio 36144 RTP/AVP 0 8 2 4 18 101.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-15.
a=ptime:20.
U 2005/06/22 11:30:10.356381 66.90.46.29:9534 <http://66.90.46.29:9534> ->
10.2.20.21:5060 <http://10.2.20.21:5060>
SIP/2.0 100 Trying.
Via: SIP/2.0/UDP 10.3.0.42 <http://10.3.0.42>;branch=z9hG4bK1cca.129837b2.0.
Via: SIP/2.0/UDP 10.99.47.102:5060 <http://10.99.47.102:5060>
;rport=1105;received=71.99.100.101 <http://71.99.100.101>
;branch=z9hG4bK256996988.
From: 4075559999 <sip:4075559999@sip.mycompany.com>;tag=3734116179.
To: <sip:3215550000@sip.mycompany.com>.
Call-ID: 1206868322(a)10.99.47.102.
CSeq: 301 INVITE.
User-Agent: Grandstream BT100 1.0.5.22 <http://1.0.5.22>.
Content-Length: 0.
.
U 2005/06/22 11:30:10.365636 66.90.46.29:9534 <http://66.90.46.29:9534> ->
10.2.20.21:5060 <http://10.2.20.21:5060>
SIP/2.0 486 Busy.
Via: SIP/2.0/UDP 10.3.0.42 <http://10.3.0.42>;branch=z9hG4bK1cca.129837b2.0.
Via: SIP/2.0/UDP 10.99.47.102:5060 <http://10.99.47.102:5060>
;rport=1105;received=71.99.100.101 <http://71.99.100.101>
;branch=z9hG4bK256996988.
Record-Route: <sip:10.3.0.42:5060 <http://10.3.0.42:5060>;lr>.
From: 4075559999 <sip:4075559999@sip.mycompany.com>;tag=3734116179.
To: <sip:3215550000@sip.mycompany.com>;tag=6052578f448e8c60.
Call-ID: 1206868322(a)10.99.47.102.
CSeq: 301 INVITE.
User-Agent: Grandstream BT100 1.0.5.22 <http://1.0.5.22>.
Content-Length: 0.
.
U 2005/06/22 11:30:10.366767 10.2.20.21:5060 <http://10.2.20.21:5060> ->
66.90.46.29:9534 <http://66.90.46.29:9534>
ACK sip:3215550000@66.90.46.29:9534;user=phone SIP/2.0.
Via: SIP/2.0/UDP 10.3.0.42 <http://10.3.0.42>;branch=z9hG4bK1cca.129837b2.0.
From: 4075559999 <sip:4075559999@sip.mycompany.com>;tag=3734116179.
Call-ID: 1206868322(a)10.99.47.102.
To: <sip:3215550000@sip.mycompany.com>;tag=6052578f448e8c60.
CSeq: 301 ACK.
Content-Length: 0.
.
U 2005/06/22 11:30:10.387854 10.2.20.21:5060 <http://10.2.20.21:5060> ->
66.90.46.29:5060 <http://66.90.46.29:5060>
INVITE sip:3215591422@66.90.46.29:5060;user=phone SIP/2.0.
Record-Route: <sip:10.3.0.42:5060 <http://10.3.0.42:5060>;lr>.
Via: SIP/2.0/UDP 10.3.0.42 <http://10.3.0.42>;branch=z9hG4bK1cca.129837b2.1.
Via: SIP/2.0/UDP 10.99.47.102:5060 <http://10.99.47.102:5060>
;rport=1105;received=71.99.100.101 <http://71.99.100.101>
;branch=z9hG4bK256996988.
From: 4075559999 <sip:4075559999@sip.mycompany.com>;tag=3734116179.
To: <sip:3215550000@sip.mycompany.com>.
Call-ID: 1206868322(a)10.99.47.102.
CSeq: 301 INVITE.
Contact: <sip:4075559999@71.99.100.101:1105>.
max-forwards: 16.
Allow: INVITE, ACK, CANCEL, BYE, REFER, NOTIFY.
Content-Type: application/sdp.
Content-Length: 175.
P-hint: Local Destination.
P-hint: Forward Busy.
.
v=0.
o=- 10231 3023 IN IP4 10.99.47.102 <http://10.99.47.102>.
s=-.
c=IN IP4 10.3.0.44 <http://10.3.0.44>.
t=0 0.
m=audio 36144 RTP/AVP 0 8 2 4 18 101.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-15.
a=ptime:20.
U 2005/06/22 11:30:10.515511 66.90.46.29:5060 <http://66.90.46.29:5060> ->
10.2.20.21:5060 <http://10.2.20.21:5060>
SIP/2.0 100 Trying.
Via: SIP/2.0/UDP 10.3.0.42 <http://10.3.0.42>;branch=z9hG4bK1cca.129837b2.1.
Via: SIP/2.0/UDP 10.99.47.102:5060 <http://10.99.47.102:5060>
;rport=1105;received=71.99.100.101 <http://71.99.100.101>
;branch=z9hG4bK256996988.
From: 4075559999 <sip:4075559999@sip.mycompany.com>;tag=3734116179.
To: <sip:3215550000@sip.mycompany.com>.
Call-ID: 1206868322(a)10.99.47.102.
CSeq: 301 INVITE.
User-Agent: Grandstream BT100 1.0.6.3 <http://1.0.6.3>.
Content-Length: 0.
.
U 2005/06/22 11:30:10.524907 66.90.46.29:5060 <http://66.90.46.29:5060> ->
10.2.20.21:5060 <http://10.2.20.21:5060>
SIP/2.0 180 Ringing.
Via: SIP/2.0/UDP 10.3.0.42 <http://10.3.0.42>;branch=z9hG4bK1cca.129837b2.1.
Via: SIP/2.0/UDP 10.99.47.102:5060 <http://10.99.47.102:5060>
;rport=1105;received=71.99.100.101 <http://71.99.100.101>
;branch=z9hG4bK256996988.
Record-Route: <sip:10.3.0.42:5060 <http://10.3.0.42:5060>;lr>.
From: 4075559999 <sip:4075559999@sip.mycompany.com>;tag=3734116179.
To: <sip:3215550000@sip.mycompany.com>;tag=79fe39bbac0500c1.
Call-ID: 1206868322(a)10.99.47.102.
CSeq: 301 INVITE.
User-Agent: Grandstream BT100 1.0.6.3 <http://1.0.6.3>.
Content-Length: 0.
.
U 2005/06/22 11:30:10.525545 10.2.20.21:5060 <http://10.2.20.21:5060> ->
71.99.100.101:1105 <http://71.99.100.101:1105>
SIP/2.0 180 Ringing.
Via: SIP/2.0/UDP 10.99.47.102:5060 <http://10.99.47.102:5060>
;rport=1105;received=71.99.100.101 <http://71.99.100.101>
;branch=z9hG4bK256996988.
Record-Route: <sip:10.3.0.42:5060 <http://10.3.0.42:5060>;lr>.
From: 4075559999 <sip:4075559999@sip.mycompany.com>;tag=3734116179.
To: <sip:3215550000@sip.mycompany.com>;tag=79fe39bbac0500c1.
Call-ID: 1206868322(a)10.99.47.102.
CSeq: 301 INVITE.
User-Agent: Grandstream BT100 1.0.6.3 <http://1.0.6.3>.
Content-Length: 0.
.
U 2005/06/22 11:30:14.217891 71.99.100.101:1105 <http://71.99.100.101:1105>->
10.2.20.21:5060 <http://10.2.20.21:5060>
CANCEL sip:3215550000@sip.mycompany.com SIP/2.0.
Via: SIP/2.0/UDP 10.99.47.102:5060 <http://10.99.47.102:5060>
;branch=z9hG4bK256996988.
From: 4075559999 <sip:4075559999@sip.mycompany.com>;tag=3734116179.
To: <sip:3215550000@sip.mycompany.com>.
Call-ID: 1206868322(a)10.99.47.102.
CSeq: 301 CANCEL.
max-forwards: 70.
Content-Length: 0.
.
U 2005/06/22 11:30:14.231433 10.2.20.21:5060 <http://10.2.20.21:5060> ->
66.90.46.29:5060 <http://66.90.46.29:5060>
CANCEL sip:3215591422@66.90.46.29:5060;user=phone SIP/2.0.
Record-Route: <sip:10.3.0.42:5060 <http://10.3.0.42:5060>;lr>.
Via: SIP/2.0/UDP 10.3.0.42 <http://10.3.0.42>;branch=z9hG4bK1cca.129837b2.1.
Via: SIP/2.0/UDP 10.99.47.102:5060 <http://10.99.47.102:5060>
;rport=1105;received=71.99.100.101 <http://71.99.100.101>
;branch=z9hG4bK256996988.
From: 4075559999 <sip:4075559999@sip.mycompany.com>;tag=3734116179.
To: <sip:3215550000@sip.mycompany.com>.
Call-ID: 1206868322(a)10.99.47.102.
CSeq: 301 CANCEL.
max-forwards: 16.
Content-Length: 0.
P-hint: Local Destination.
.
U 2005/06/22 11:30:14.236203 10.2.20.21:5060 <http://10.2.20.21:5060> ->
71.99.100.101:1105 <http://71.99.100.101:1105>
SIP/2.0 200 canceling.
Via: SIP/2.0/UDP 10.99.47.102:5060 <http://10.99.47.102:5060>
;branch=z9hG4bK256996988;rport=1105;received=71.99.100.101<http://71.99.100.101>
.
From: 4075559999 <sip:4075559999@sip.mycompany.com>;tag=3734116179.
To: <sip:3215550000@sip.mycompany.com
;tag=6310aaf6cb6aa68cca9add6fbfab6d5f-84ff.
Call-ID: 1206868322(a)10.99.47.102.
CSeq: 301 CANCEL.
Content-Length: 0.
.
U 2005/06/22 11:30:14.357391 66.90.46.29:5060 <http://66.90.46.29:5060> ->
10.2.20.21:5060 <http://10.2.20.21:5060>
SIP/2.0 200 OK.
Via: SIP/2.0/UDP 10.3.0.42 <http://10.3.0.42>;branch=z9hG4bK1cca.129837b2.1.
Via: SIP/2.0/UDP 10.99.47.102:5060 <http://10.99.47.102:5060>
;rport=1105;received=71.99.100.101 <http://71.99.100.101>
;branch=z9hG4bK256996988.
Record-Route: <sip:10.3.0.42:5060 <http://10.3.0.42:5060>;lr>.
From: 4075559999 <sip:4075559999@sip.mycompany.com>;tag=3734116179.
To: <sip:3215550000@sip.mycompany.com>;tag=ea9d53a35f368d2c.
Call-ID: 1206868322(a)10.99.47.102.
CSeq: 301 CANCEL.
User-Agent: Grandstream BT100 1.0.6.3 <http://1.0.6.3>.
Contact: <sip:3215591422@172.31.130.83;user=phone>.
Allow: INVITE,ACK,CANCEL,BYE,NOTIFY,REFER,OPTIONS,INFO,SUBSCRIBE.
Supported: replaces.
Content-Length: 0.
.
U 2005/06/22 11:30:14.363088 66.90.46.29:5060 <http://66.90.46.29:5060> ->
10.2.20.21:5060 <http://10.2.20.21:5060>
SIP/2.0 487 Request Cancelled.
Via: SIP/2.0/UDP 10.3.0.42 <http://10.3.0.42>;branch=z9hG4bK1cca.129837b2.1.
Via: SIP/2.0/UDP 10.99.47.102:5060 <http://10.99.47.102:5060>
;rport=1105;received=71.99.100.101 <http://71.99.100.101>
;branch=z9hG4bK256996988.
Record-Route: <sip:10.3.0.42:5060 <http://10.3.0.42:5060>;lr>.
From: 4075559999 <sip:4075559999@sip.mycompany.com>;tag=3734116179.
To: <sip:3215550000@sip.mycompany.com>;tag=131981a71ac26bed.
Call-ID: 1206868322(a)10.99.47.102.
CSeq: 301 INVITE.
User-Agent: Grandstream BT100 1.0.6.3 <http://1.0.6.3>.
Content-Length: 0.
.
U 2005/06/22 11:30:14.363534 10.2.20.21:5060 <http://10.2.20.21:5060> ->
66.90.46.29:5060 <http://66.90.46.29:5060>
ACK sip:3215591422@66.90.46.29:5060;user=phone SIP/2.0.
Via: SIP/2.0/UDP 10.3.0.42 <http://10.3.0.42>;branch=z9hG4bK1cca.129837b2.1.
From: 4075559999 <sip:4075559999@sip.mycompany.com>;tag=3734116179.
Call-ID: 1206868322(a)10.99.47.102.
To: <sip:3215550000@sip.mycompany.com>;tag=131981a71ac26bed.
CSeq: 301 ACK.
Content-Length: 0.
.
U 2005/06/22 11:30:14.363910 10.2.20.21:5060 <http://10.2.20.21:5060> ->
71.99.100.101:1105 <http://71.99.100.101:1105>
SIP/2.0 486 Busy.
Via: SIP/2.0/UDP 10.99.47.102:5060 <http://10.99.47.102:5060>
;rport=1105;received=71.99.100.101 <http://71.99.100.101>
;branch=z9hG4bK256996988.
Record-Route: <sip:10.3.0.42:5060 <http://10.3.0.42:5060>;lr>.
From: 4075559999 <sip:4075559999@sip.mycompany.com>;tag=3734116179.
To: <sip:3215550000@sip.mycompany.com>;tag=6052578f448e8c60.
Call-ID: 1206868322(a)10.99.47.102.
CSeq: 301 INVITE.
User-Agent: Grandstream BT100 1.0.5.22 <http://1.0.5.22>.
Content-Length: 0.
.
U 2005/06/22 11:30:14.598784 71.99.100.101:1105 <http://71.99.100.101:1105>->
10.2.20.21:5060 <http://10.2.20.21:5060>
ACK sip:3215550000@sip.mycompany.com SIP/2.0.
Via: SIP/2.0/UDP 10.99.47.102:5060 <http://10.99.47.102:5060>
;branch=z9hG4bK256996988.
From: 4075559999 <sip:4075559999@sip.mycompany.com>;tag=3734116179.
To: <sip:3215550000@sip.mycompany.com>;tag=6052578f448e8c60.
Call-ID: 1206868322(a)10.99.47.102.
CSeq: 301 ACK.
Content-Length: 0.
On 6/22/05, Jan Janak <jan(a)iptel.org> wrote:
On 22-06-2005 08:53, Java Rockx wrote:
Hi All.
I'm using t_check_status() to do call forwarding on 486 Busy responses.
I
have an odd thing happening where SER receives
the 486 Busy message (for
which SER properly sends an ACK response) and then the failure_route
calls
append_branch() and t_relay() to try another
destination.
After the new leg of the call is setup and then torn down, the original
486
Busy seems to be hung in the tm module, because
it magically appears in
ngrep, which shows it being sent back to the caller as if the
append_branch() never took place.
Is there anything special that I should be doing to "swallow" the 486
Busy
response to prevent it from being sent to the
caller UA?
What was the reply received on the new leg ? Did you setup
failure_route again for the new leg ?
Jan.