[Serdev] CANCEL not work with serial failure_route

Raymond Chen rchen at cityabove.net
Wed Mar 16 04:29:11 UTC 2005


Guys, 

 

We've found the problem with serial PSTN failure_route didn't properly
terminate the call and SER continue to send call to the next fail_route.
It's because when the 487 request cancelled message is received, SER didn't
reply the 487 back so t_check_status didn't catch the cancelled message.

 

failure_route[5] {

 

        # Check reply status 486=busy, 487=request terminated(CANCEL),
484=Address Incomplete

        if (t_check_status("486|487")) {

                .......

                break;

        } else {

 

                if (!next_gw()) {

 

                        .....                        

                        t_relay();

                        break;

 

                };

                t_on_failure("5");

                t_relay();

                break;

 

        };

 

}

 

U 192.168.1.48:5000 -> 192.168.1.44:5160

  CANCEL sip:13711664230 at broadz.net SIP/2.0..Via: SIP/2.0/UDP
192.168.1.168:5060;rport;branch=z9hG4bK8E1E3DEA462C443DBB2230E241A6

  743A..From: Raymond Chen <sip:862061241200 at broadz.net>;tag=3698281310..To:
<sip:13711664230 at broadz.net>;tag=8FC0828-11C0..Conta

  ct: <sip:862061241200 at 192.168.1.168:5060>..Call-ID:
8D0DD6A8-9755-4E33-AE1A-1305FFA932F4 at 192.168.1.168..CSeq: 13526 CANCEL..Use

  r-Agent: X-PRO build 1082..Content-Length: 0....


#

U 192.168.1.44:5160 -> 192.168.1.30:5060

  CANCEL sip:9012862013711664230 at 192.168.1.30:5060 SIP/2.0..Max-Forwards:
10..Record-Route: <sip:192.168.1.44:5160;ftag=369828

  1310;lr=on>..Via: SIP/2.0/UDP
192.168.1.44:5160;branch=z9hG4bK888d.eaa180c3.1..Via: SIP/2.0/UDP
192.168.1.168:5060;received=20

 
3.88.192.48;rport=5000;branch=z9hG4bK8E1E3DEA462C443DBB2230E241A6743A..From:
Raymond Chen <sip:862061241200 at broadz.net>;tag=369

  8281310..To: <sip:13711664230 at broadz.net>..Contact:
<sip:862061241200 at 192.168.1.48:5000>..Call-ID: 8D0DD6A8-9755-4E33-AE1A-130

  5FFA932F4 at 192.168.1.168..CSeq: 13526 CANCEL..User-Agent: X-PRO build
1082..Content-Length: 0..P-hint: Proxied..P-hint: GATEWAY.

  ...


#

U 192.168.1.44:5160 -> 192.168.1.48:5000

  SIP/2.0 200 canceling..Via: SIP/2.0/UDP
192.168.1.168:5060;rport=5000;branch=z9hG4bK8E1E3DEA462C443DBB2230E241A6743A
;received=2

  03.88.192.48..From: Raymond Chen
<sip:862061241200 at broadz.net>;tag=3698281310..To:
<sip:13711664230 at broadz.net>;tag=8FC0828-11C

  0..Call-ID: 8D0DD6A8-9755-4E33-AE1A-1305FFA932F4 at 192.168.1.168..CSeq:
13526 CANCEL..Server: Sip EXpress router (1.0.0 (i386/lin

  ux))..Content-Length: 0....


#

U 192.168.1.42:5160 -> 192.168.1.44:5190

  NOTIFY sip:prompt-wrongnumber at 192.168.1.44:5190 SIP/2.0..Record-Route:
<sip:192.168.1.42:5160;ftag=82e074dbd2ca507do1;lr=on>.

  .Via: SIP/2.0/UDP 192.168.1.42:5160;branch=z9hG4bK200f.5bae0cb1.0..Via:
SIP/2.0/UDP 219.136.111.222:1295;rport=1064;branch=z9h

  G4bK-6b2ef4c9..From: 862038291117
<sip:862038291117 at broadz.net:5160>;tag=82e074dbd2ca507do1..To:
<sip:broadz.net:5160>..Call-ID

  : 6c15d3b9-a3b2512b at 192.168.1.244..CSeq: 28825 NOTIFY..Max-Forwards:
16..Event: keep-alive..User-Agent: Sipura/SPA2000-2.0.11(g

  )..Content-Length: 0..P-hint: Proxied....


#

U 192.168.1.48:5000 -> 192.168.1.44:5160

  ..


#

U 192.168.1.30:5060 -> 192.168.1.44:5160

  SIP/2.0 487 Request Cancelled..Via: SIP/2.0/UDP
192.168.1.44:5160;branch=z9hG4bK888d.eaa180c3.1,SIP/2.0/UDP
192.168.1.168:5060

 
;received=192.168.1.48;rport=5000;branch=z9hG4bK8E1E3DEA462C443DBB2230E241A6
743A..From: Raymond Chen <sip:862061241200 at broadz.

  net>;tag=3698281310..To:
<sip:13711664230 at broadz.net>;tag=8FC0828-11C0..Date: Wed, 16 Mar 2005
04:13:24 GMT..Call-ID: 8D0DD6A8-

  9755-4E33-AE1A-1305FFA932F4 at 192.168.1.168..Server:
Cisco-SIPGateway/IOS-12.x..CSeq: 13526 INVITE..Allow-Events: telephone-event

  ..Content-Length: 0....


#

U 192.168.1.44:5160 -> 192.168.1.30:5060

  ACK sip:9012862013711664230 at 192.168.1.30:5060 SIP/2.0..Via: SIP/2.0/UDP
192.168.1.44:5160;branch=z9hG4bK888d.eaa180c3.1..Fro

  m: Raymond Chen <sip:862061241200 at broadz.net>;tag=3698281310..Call-ID:
8D0DD6A8-9755-4E33-AE1A-1305FFA932F4 at 192.168.1.168..To: 

  <sip:13711664230 at broadz.net>;tag=8FC0828-11C0..CSeq: 13526
ACK..User-Agent: Sip EXpress router(1.0.0 (i386/linux))..Content-Len

  gth: 0....


#

U 192.168.1.44:5160 -> 192.168.1.39:5060

  INVITE sip:6000862013711664230 at 192.168.1.39:5060 SIP/2.0..Record-Route:
<sip:192.168.1.44:5160;ftag=3698281310;lr=on>..Via: S

  IP/2.0/UDP 192.168.1.44:5160;branch=z9hG4bK888d.eaa180c3.2..Via:
SIP/2.0/UDP 192.168.1.168:5060;received=192.168.1.48;rport=5

  000;branch=z9hG4bK8E1E3DEA462C443DBB2230E241A6743A..From: Raymond Chen
<sip:862061241200 at broadz.net>;tag=3698281310..To: <sip:1

  3711664230 at broadz.net>..Contact:
<sip:862061241200 at 192.168.1.48:5000>..Call-ID:
8D0DD6A8-9755-4E33-AE1A-1305FFA932F4 at 192.168.1

  .168..CSeq: 13526 INVITE..Max-Forwards: 16..Content-Type:
application/sdp..User-Agent: X-PRO build 1082..Content-Length: 346..P

  -hint: Proxied..P-hint: GATEWAY....v=0..o=862061241200 6688447 6688447 IN
IP4 192.168.1.168..s=X-PRO..c=IN IP4 192.168.1.168..t

  =0 0..m=audio 8000 RTP/AVP 98 18 3 0 8 97 101..a=rtpmap:0
pcmu/8000..a=rtpmap:8 pcma/8000..a=rtpmap:3 gsm/8000..a=rtpmap:18 G72

  9/8000..a=rtpmap:98 iLBC/8000..a=rtpmap:97 speex/8000..a=rtpmap:101
telephone-event/8000..a=fmtp:101 0-15..a=direction:active.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.iptel.org/pipermail/serdev/attachments/20050316/00a9ca6a/attachment.html


More information about the Serdev mailing list