[Serusers] SER + Asterisk Voicmail forward on failure

Muhammad Nasim muhammad at telappliant.com
Mon Jul 5 13:50:36 CEST 2004


Ok I am calling from 8001 to 8002. Both phones have external ip
addresses and are Snom 200s. I am enclosing the trace from the
destination phone 8002.

There is a CANCEL message but then another INVITE is sent from SER for
some reason even though I do not dial again or anything.

Received from udp:217.14.132.171:5060 at 2/7/2004 20:21:27:154 (1103
bytes):

INVITE sip:8002 at 62.3.220.72:5060;line=xpyent8j SIP/2.0
Record-Route: <sip:8002 at 217.14.132.171;ftag=cdwfwaa0yn;lr=on>
Via: SIP/2.0/UDP 217.14.132.171;branch=z9hG4bK0025.4c00bf37.0
Via: SIP/2.0/UDP 80.254.236.54:5060;branch=z9hG4bK-ch6u5dfvgqq6
From: "8001" <sip:8001 at telth3.dyndns.org>;tag=cdwfwaa0yn
To: <sip:8002 at telth3.dyndns.org;user=phone>
Call-ID: 3c30253dbf80-rb6it812yf1g at 80-254-236-54
CSeq: 1 INVITE
Max-Forwards: 69
Contact: <sip:8001 at 80.254.236.54:5060;line=tttr4hak>
P-Key-Flags: keys="3"
User-Agent: snom200-2.05c
Accept-Language: en
Accept: application/sdp
Allow: INVITE, ACK, CANCEL, BYE, REFER, OPTIONS, NOTIFY, SUBSCRIBE,
PRACK, MESSAGE, INFO
Allow-Events: talk, hold, refer
Supported: timer, 100rel, replaces
Session-Expires: 7200
Content-Type: application/sdp
Content-Length: 283

v=0
o=root 1288172798 1288172798 IN IP4 80.254.236.54
s=call
c=IN IP4 80.254.236.54
t=0 0
m=audio 10656 RTP/AVP 0 8 3 18 101
a=rtpmap:0 pcmu/8000
a=rtpmap:8 pcma/8000
a=rtpmap:3 gsm/8000
a=rtpmap:18 g729/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=sendrecv



------------------------------------------------------------------------
--------

Sent to udp:217.14.132.171:5060 at 2/7/2004 20:21:27:218 (618 bytes):

SIP/2.0 180 Ringing
Via: SIP/2.0/UDP 217.14.132.171;branch=z9hG4bK0025.4c00bf37.0
Via: SIP/2.0/UDP 80.254.236.54:5060;branch=z9hG4bK-ch6u5dfvgqq6
Record-Route: <sip:8002 at 217.14.132.171;ftag=cdwfwaa0yn;lr=on>
From: "8001" <sip:8001 at telth3.dyndns.org>;tag=cdwfwaa0yn
To: <sip:8002 at telth3.dyndns.org;user=phone>;tag=ufkt4pmqom
Call-ID: 3c30253dbf80-rb6it812yf1g at 80-254-236-54
CSeq: 1 INVITE
Contact: <sip:8002 at 62.3.220.72:5060;line=xpyent8j>
Require: 100rel
RSeq: 1
Allow: INVITE, ACK, CANCEL, BYE, REFER, OPTIONS, NOTIFY, SUBSCRIBE,
PRACK, MESSAGE, INFO
Allow-Events: talk, hold, refer
Content-Length: 0




------------------------------------------------------------------------
--------

Received from udp:217.14.132.171:5060 at 2/7/2004 20:21:27:368 (663
bytes):

PRACK sip:8002 at 62.3.220.72:5060;line=xpyent8j SIP/2.0
Record-Route: <sip:8002 at 217.14.132.171;ftag=cdwfwaa0yn;lr=on>
Via: SIP/2.0/UDP 217.14.132.171;branch=z9hG4bKdf15.cbd9da25.0
Via: SIP/2.0/UDP 80.254.236.54:5060;branch=z9hG4bK-8kfa6d9stdpq
From: "8001" <sip:8001 at telth3.dyndns.org>;tag=cdwfwaa0yn
To: <sip:8002 at telth3.dyndns.org;user=phone>;tag=ufkt4pmqom
Call-ID: 3c30253dbf80-rb6it812yf1g at 80-254-236-54
CSeq: 2 PRACK
Max-Forwards: 69
Contact: <sip:8001 at 80.254.236.54:5060;line=tttr4hak>
RAck: 1 1 INVITE
Allow: INVITE, ACK, CANCEL, BYE, REFER, OPTIONS, NOTIFY, SUBSCRIBE,
PRACK, MESSAGE, INFO
Allow-Events: talk, hold, refer
Content-Length: 0




------------------------------------------------------------------------
--------

Sent to udp:217.14.132.171:5060 at 2/7/2004 20:21:27:382 (463 bytes):

SIP/2.0 200 Ok
Via: SIP/2.0/UDP 217.14.132.171;branch=z9hG4bKdf15.cbd9da25.0
Via: SIP/2.0/UDP 80.254.236.54:5060;branch=z9hG4bK-8kfa6d9stdpq
Record-Route: <sip:8002 at 217.14.132.171;ftag=cdwfwaa0yn;lr=on>
From: "8001" <sip:8001 at telth3.dyndns.org>;tag=cdwfwaa0yn
To: <sip:8002 at telth3.dyndns.org;user=phone>;tag=ufkt4pmqom
Call-ID: 3c30253dbf80-rb6it812yf1g at 80-254-236-54
CSeq: 2 PRACK
Contact: <sip:8002 at 62.3.220.72:5060;line=xpyent8j>
Content-Length: 0




------------------------------------------------------------------------
--------

Received from udp:217.14.132.171:5060 at 2/7/2004 20:21:41:980 (371
bytes):

CANCEL sip:8002 at 62.3.220.72:5060;line=xpyent8j SIP/2.0
Via: SIP/2.0/UDP 217.14.132.171;branch=z9hG4bK0025.4c00bf37.0
From: "8001" <sip:8001 at telth3.dyndns.org>;tag=cdwfwaa0yn
Call-ID: 3c30253dbf80-rb6it812yf1g at 80-254-236-54
To: <sip:8002 at telth3.dyndns.org;user=phone>
CSeq: 1 CANCEL
User-Agent: Sip EXpress router(0.8.12-tcp_nonb (i386/linux))
Content-Length: 0




------------------------------------------------------------------------
--------

Sent to udp:217.14.132.171:5060 at 2/7/2004 20:21:42:001 (284 bytes):

SIP/2.0 200 OK
Via: SIP/2.0/UDP 217.14.132.171;branch=z9hG4bK0025.4c00bf37.0
From: "8001" <sip:8001 at telth3.dyndns.org>;tag=cdwfwaa0yn
To: <sip:8002 at telth3.dyndns.org;user=phone>;tag=ufkt4pmqom
Call-ID: 3c30253dbf80-rb6it812yf1g at 80-254-236-54
CSeq: 1 CANCEL
Content-Length: 0




------------------------------------------------------------------------
--------

Sent to udp:217.14.132.171:5060 at 2/7/2004 20:21:42:080 (417 bytes):

SIP/2.0 487 Request Terminated
Via: SIP/2.0/UDP 217.14.132.171;branch=z9hG4bK0025.4c00bf37.0
Via: SIP/2.0/UDP 80.254.236.54:5060;branch=z9hG4bK-ch6u5dfvgqq6
From: "8001" <sip:8001 at telth3.dyndns.org>;tag=cdwfwaa0yn
To: <sip:8002 at telth3.dyndns.org;user=phone>;tag=ufkt4pmqom
Call-ID: 3c30253dbf80-rb6it812yf1g at 80-254-236-54
CSeq: 1 INVITE
Contact: <sip:8002 at 62.3.220.72:5060;line=xpyent8j>
Content-Length: 0




------------------------------------------------------------------------
--------

Received from udp:217.14.132.171:5060 at 2/7/2004 20:21:42:144 (1284
bytes):

INVITE sip:8002 at 62.3.220.72:5060;line=xpyent8j SIP/2.0
Record-Route: <sip:8002 at 217.14.132.171;ftag=cdwfwaa0yn;lr=on>
Via: SIP/2.0/UDP 217.14.132.171;branch=z9hG4bKdf15.dbd9da25.0
Via: SIP/2.0/UDP 80.254.236.54:5060;branch=z9hG4bK-tm87ieaevg8l
From: "8001" <sip:8001 at telth3.dyndns.org>;tag=cdwfwaa0yn
To: <sip:8002 at telth3.dyndns.org;user=phone>
Call-ID: 3c30253dbf80-rb6it812yf1g at 80-254-236-54
CSeq: 2 INVITE
Max-Forwards: 69
Contact: <sip:8001 at 80.254.236.54:5060;line=tttr4hak>
P-Key-Flags: keys="3"
User-Agent: snom200-2.05c
Accept-Language: en
Accept: application/sdp
Allow: INVITE, ACK, CANCEL, BYE, REFER, OPTIONS, NOTIFY, SUBSCRIBE,
PRACK, MESSAGE, INFO
Allow-Events: talk, hold, refer
Supported: timer, 100rel, replaces
Session-Expires: 7200
Proxy-Authorization: Digest
username="8001",realm="asterisk",nonce="032718ae",uri="sip:8002 at telth3.d
yndns.org;user=phone",response="ad458c68cafe4662063a56d198dee0a0",algori
thm=md5
Content-Type: application/sdp
Content-Length: 283

v=0
o=root 1288172798 1288172798 IN IP4 80.254.236.54
s=call
c=IN IP4 80.254.236.54
t=0 0
m=audio 10656 RTP/AVP 0 8 3 18 101
a=rtpmap:0 pcmu/8000
a=rtpmap:8 pcma/8000
a=rtpmap:3 gsm/8000
a=rtpmap:18 g729/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=sendrecv



------------------------------------------------------------------------
--------

Sent to udp:217.14.132.171:5060 at 2/7/2004 20:21:42:209 (618 bytes):

SIP/2.0 180 Ringing
Via: SIP/2.0/UDP 217.14.132.171;branch=z9hG4bKdf15.dbd9da25.0
Via: SIP/2.0/UDP 80.254.236.54:5060;branch=z9hG4bK-tm87ieaevg8l
Record-Route: <sip:8002 at 217.14.132.171;ftag=cdwfwaa0yn;lr=on>
From: "8001" <sip:8001 at telth3.dyndns.org>;tag=cdwfwaa0yn
To: <sip:8002 at telth3.dyndns.org;user=phone>;tag=5zof1ywigy
Call-ID: 3c30253dbf80-rb6it812yf1g at 80-254-236-54
CSeq: 2 INVITE
Contact: <sip:8002 at 62.3.220.72:5060;line=xpyent8j>
Require: 100rel
RSeq: 1
Allow: INVITE, ACK, CANCEL, BYE, REFER, OPTIONS, NOTIFY, SUBSCRIBE,
PRACK, MESSAGE, INFO
Allow-Events: talk, hold, refer
Content-Length: 0




------------------------------------------------------------------------
--------

Received from udp:217.14.132.171:5060 at 2/7/2004 20:21:42:355 (380
bytes):

ACK sip:8002 at 62.3.220.72:5060;line=xpyent8j SIP/2.0
Via: SIP/2.0/UDP 217.14.132.171;branch=z9hG4bK0025.4c00bf37.0
From: "8001" <sip:8001 at telth3.dyndns.org>;tag=cdwfwaa0yn
Call-ID: 3c30253dbf80-rb6it812yf1g at 80-254-236-54
To: <sip:8002 at telth3.dyndns.org;user=phone>;tag=ufkt4pmqom
CSeq: 1 ACK
User-Agent: Sip EXpress router(0.8.12-tcp_nonb (i386/linux))
Content-Length: 0




------------------------------------------------------------------------
--------

Received from udp:217.14.132.171:5060 at 2/7/2004 20:21:42:389 (663
bytes):

PRACK sip:8002 at 62.3.220.72:5060;line=xpyent8j SIP/2.0
Record-Route: <sip:8002 at 217.14.132.171;ftag=cdwfwaa0yn;lr=on>
Via: SIP/2.0/UDP 217.14.132.171;branch=z9hG4bKef15.0c2383b1.0
Via: SIP/2.0/UDP 80.254.236.54:5060;branch=z9hG4bK-n0eybk6vz0ld
From: "8001" <sip:8001 at telth3.dyndns.org>;tag=cdwfwaa0yn
To: <sip:8002 at telth3.dyndns.org;user=phone>;tag=5zof1ywigy
Call-ID: 3c30253dbf80-rb6it812yf1g at 80-254-236-54
CSeq: 3 PRACK
Max-Forwards: 69
Contact: <sip:8001 at 80.254.236.54:5060;line=tttr4hak>
RAck: 1 2 INVITE
Allow: INVITE, ACK, CANCEL, BYE, REFER, OPTIONS, NOTIFY, SUBSCRIBE,
PRACK, MESSAGE, INFO
Allow-Events: talk, hold, refer
Content-Length: 0




------------------------------------------------------------------------
--------

Sent to udp:217.14.132.171:5060 at 2/7/2004 20:21:42:409 (463 bytes):

SIP/2.0 200 Ok
Via: SIP/2.0/UDP 217.14.132.171;branch=z9hG4bKef15.0c2383b1.0
Via: SIP/2.0/UDP 80.254.236.54:5060;branch=z9hG4bK-n0eybk6vz0ld
Record-Route: <sip:8002 at 217.14.132.171;ftag=cdwfwaa0yn;lr=on>
From: "8001" <sip:8001 at telth3.dyndns.org>;tag=cdwfwaa0yn
To: <sip:8002 at telth3.dyndns.org;user=phone>;tag=5zof1ywigy
Call-ID: 3c30253dbf80-rb6it812yf1g at 80-254-236-54
CSeq: 3 PRACK
Contact: <sip:8002 at 62.3.220.72:5060;line=xpyent8j>
Content-Length: 0




------------------------------------------------------------------------
--------

Received from udp:217.14.132.171:5060 at 2/7/2004 20:21:42:428 (663
bytes):

PRACK sip:8002 at 62.3.220.72:5060;line=xpyent8j SIP/2.0
Record-Route: <sip:8002 at 217.14.132.171;ftag=cdwfwaa0yn;lr=on>
Via: SIP/2.0/UDP 217.14.132.171;branch=z9hG4bKef15.1c2383b1.0
Via: SIP/2.0/UDP 80.254.236.54:5060;branch=z9hG4bK-9xq7m10s97a8
From: "8001" <sip:8001 at telth3.dyndns.org>;tag=cdwfwaa0yn
To: <sip:8002 at telth3.dyndns.org;user=phone>;tag=5zof1ywigy
Call-ID: 3c30253dbf80-rb6it812yf1g at 80-254-236-54
CSeq: 3 PRACK
Max-Forwards: 69
Contact: <sip:8001 at 80.254.236.54:5060;line=tttr4hak>
RAck: 1 2 INVITE
Allow: INVITE, ACK, CANCEL, BYE, REFER, OPTIONS, NOTIFY, SUBSCRIBE,
PRACK, MESSAGE, INFO
Allow-Events: talk, hold, refer
Content-Length: 0




------------------------------------------------------------------------
--------

Sent to udp:217.14.132.171:5060 at 2/7/2004 20:21:42:430 (463 bytes):

SIP/2.0 200 Ok
Via: SIP/2.0/UDP 217.14.132.171;branch=z9hG4bKef15.0c2383b1.0
Via: SIP/2.0/UDP 80.254.236.54:5060;branch=z9hG4bK-n0eybk6vz0ld
Record-Route: <sip:8002 at 217.14.132.171;ftag=cdwfwaa0yn;lr=on>
From: "8001" <sip:8001 at telth3.dyndns.org>;tag=cdwfwaa0yn
To: <sip:8002 at telth3.dyndns.org;user=phone>;tag=5zof1ywigy
Call-ID: 3c30253dbf80-rb6it812yf1g at 80-254-236-54
CSeq: 3 PRACK
Contact: <sip:8002 at 62.3.220.72:5060;line=xpyent8j>
Content-Length: 0




------------------------------------------------------------------------
--------

Received from udp:217.14.132.171:5060 at 2/7/2004 20:21:42:969 (663
bytes):

PRACK sip:8002 at 62.3.220.72:5060;line=xpyent8j SIP/2.0
Record-Route: <sip:8002 at 217.14.132.171;ftag=cdwfwaa0yn;lr=on>
Via: SIP/2.0/UDP 217.14.132.171;branch=z9hG4bKef15.1c2383b1.0
Via: SIP/2.0/UDP 80.254.236.54:5060;branch=z9hG4bK-9xq7m10s97a8
From: "8001" <sip:8001 at telth3.dyndns.org>;tag=cdwfwaa0yn
To: <sip:8002 at telth3.dyndns.org;user=phone>;tag=5zof1ywigy
Call-ID: 3c30253dbf80-rb6it812yf1g at 80-254-236-54
CSeq: 3 PRACK
Max-Forwards: 69
Contact: <sip:8001 at 80.254.236.54:5060;line=tttr4hak>
RAck: 1 2 INVITE
Allow: INVITE, ACK, CANCEL, BYE, REFER, OPTIONS, NOTIFY, SUBSCRIBE,
PRACK, MESSAGE, INFO
Allow-Events: talk, hold, refer
Content-Length: 0




------------------------------------------------------------------------
--------

Sent to udp:217.14.132.171:5060 at 2/7/2004 20:21:42:971 (463 bytes):

SIP/2.0 200 Ok
Via: SIP/2.0/UDP 217.14.132.171;branch=z9hG4bKef15.0c2383b1.0
Via: SIP/2.0/UDP 80.254.236.54:5060;branch=z9hG4bK-n0eybk6vz0ld
Record-Route: <sip:8002 at 217.14.132.171;ftag=cdwfwaa0yn;lr=on>
From: "8001" <sip:8001 at telth3.dyndns.org>;tag=cdwfwaa0yn
To: <sip:8002 at telth3.dyndns.org;user=phone>;tag=5zof1ywigy
Call-ID: 3c30253dbf80-rb6it812yf1g at 80-254-236-54
CSeq: 3 PRACK
Contact: <sip:8002 at 62.3.220.72:5060;line=xpyent8j>
Content-Length: 0




------------------------------------------------------------------------
--------

Received from udp:217.14.132.171:5060 at 2/7/2004 20:21:44:991 (663
bytes):

PRACK sip:8002 at 62.3.220.72:5060;line=xpyent8j SIP/2.0
Record-Route: <sip:8002 at 217.14.132.171;ftag=cdwfwaa0yn;lr=on>
Via: SIP/2.0/UDP 217.14.132.171;branch=z9hG4bKef15.1c2383b1.0
Via: SIP/2.0/UDP 80.254.236.54:5060;branch=z9hG4bK-9xq7m10s97a8
From: "8001" <sip:8001 at telth3.dyndns.org>;tag=cdwfwaa0yn
To: <sip:8002 at telth3.dyndns.org;user=phone>;tag=5zof1ywigy
Call-ID: 3c30253dbf80-rb6it812yf1g at 80-254-236-54
CSeq: 3 PRACK
Max-Forwards: 69
Contact: <sip:8001 at 80.254.236.54:5060;line=tttr4hak>
RAck: 1 2 INVITE
Allow: INVITE, ACK, CANCEL, BYE, REFER, OPTIONS, NOTIFY, SUBSCRIBE,
PRACK, MESSAGE, INFO
Allow-Events: talk, hold, refer
Content-Length: 0




------------------------------------------------------------------------
--------

Sent to udp:217.14.132.171:5060 at 2/7/2004 20:21:44:993 (463 bytes):

SIP/2.0 200 Ok
Via: SIP/2.0/UDP 217.14.132.171;branch=z9hG4bKef15.0c2383b1.0
Via: SIP/2.0/UDP 80.254.236.54:5060;branch=z9hG4bK-n0eybk6vz0ld
Record-Route: <sip:8002 at 217.14.132.171;ftag=cdwfwaa0yn;lr=on>
From: "8001" <sip:8001 at telth3.dyndns.org>;tag=cdwfwaa0yn
To: <sip:8002 at telth3.dyndns.org;user=phone>;tag=5zof1ywigy
Call-ID: 3c30253dbf80-rb6it812yf1g at 80-254-236-54
CSeq: 3 PRACK
Contact: <sip:8002 at 62.3.220.72:5060;line=xpyent8j>
Content-Length: 0



Muhammad Nasim
TelAppliant Ltd 
Tel: 020 7740 3492
Int: +44 20 7740 3492
Main: 0845 004 4040
Fax: 0845 004 4041 
www.telappliant.com 

 
TelAppliant is the UK's provider of IP telephony solutions for small and
medium-sized businesses 

  _____  

The information in this message is confidential and may be legally
privileged. It is intended solely for the addressee. Access to this
message by anyone else is unauthorized. If you are not the intended
recipient, any disclosure, copying or distribution or any action taken
or omitted to be taken in reliance on it is prohibited and may be
unlawful. 

-----Original Message-----
From: Klaus Darilion [mailto:klaus.mailinglists at pernau.at] 
Sent: 30 June 2004 17:01
To: Muhammad Nasim
Cc: serusers at lists.iptel.org
Subject: Re: [Serusers] SER + Asterisk Voicmail forward on failure

use ethereal to watch if there is a CANCEL sent from ser to your UA 
after 15s.

klaus

Muhammad Nasim wrote:
> Having searched the groups I have come up with the following in
ser.cfg
> to forward calls from SER to Asterisk voicemail on timeout.
> 
> The system should work as follows. E.g dial 8003. Ring phone at 8003
for
> 15 seconds then go to voicemail (at asterisk).
> 
> Phenomena:
> 
> 1. When the failure_route is exited though I can see some traffic
> hitting asterisk, the original phone at 8003 continues to ring.
> 
> 2. If I press Deny on the phone at 8003 TWICE then the call goes to
> voicemail
> 
> 3. If 8003 is on the offhook, call automatically goes to voicemail 
> 
> Points 2 and 3 are pretty much what I want.
> 
> But in point 1, what am I doing wrong that doesn't cause the
> t_on_failure to stop ringing the destination phone.
> 
> I include the relevant part of my ser.cfg below
> 
> ............................
> 
>            
>         log("\nMARKER VOICEMAIL ATTEMPT STARTS HERE\n");
>         t_on_failure("1");#send to voicemail now
>         log("\nMARKER VOICEMAIL ATTEMPT STOPS HERE\n");
> 
> ............................
> ............................
> 
> 
> failure_route[1] {
> 
> 
>       log("\n MARKER IN FAILURE ROUTE START");
>       if(t_check_status("408")){
>          log("\nMARKER We have hit second status 408\n");
>       };
>       revert_uri();
>       rewritehostport("telth3.dyndns.org:5061");
>       append_branch();
>       log("\n MARKER IN FAILURE ROUTE AFTER APPEND BRANCH\n");
>       t_relay_to_udp("telth3.dyndns.org","5061");
>       log("\n MARKER IN FAILURE ROUTE END");
>       break;
>     
> 
> }
> 
> ~
> 
> Muhammad Nasim
> TelAppliant Ltd 
> Tel: 020 7740 3492
> Int: +44 20 7740 3492
> Main: 0845 004 4040
> Fax: 0845 004 4041 
> www.telappliant.com 
> 
>  
> TelAppliant is the UK's provider of IP telephony solutions for small
and
> medium-sized businesses 
> 
>   _____  
> 
> The information in this message is confidential and may be legally
> privileged. It is intended solely for the addressee. Access to this
> message by anyone else is unauthorized. If you are not the intended
> recipient, any disclosure, copying or distribution or any action taken
> or omitted to be taken in reliance on it is prohibited and may be
> unlawful. 
> 
> 
> _______________________________________________
> Serusers mailing list
> serusers at lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers
> 
> 




More information about the sr-users mailing list