From a6f6c7637a8f0a19dc85cb6988b53d724d69dcc6 Mon Sep 17 00:00:00 2001 From: Benny Prijono Date: Mon, 23 Mar 2009 13:11:05 +0000 Subject: Ticket #727: backported changes from ticket #726 git-svn-id: http://svn.pjsip.org/repos/pjproject/branches/1.0@2536 74dad513-b988-da41-8d7b-12977e46ad98 --- tests/pjsua/scripts-sendto/110_tel_uri.py | 46 +++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 tests/pjsua/scripts-sendto/110_tel_uri.py (limited to 'tests') diff --git a/tests/pjsua/scripts-sendto/110_tel_uri.py b/tests/pjsua/scripts-sendto/110_tel_uri.py new file mode 100644 index 00000000..1d5e645c --- /dev/null +++ b/tests/pjsua/scripts-sendto/110_tel_uri.py @@ -0,0 +1,46 @@ +# $Id$ +import inc_sip as sip +import inc_sdp as sdp + +# Handling of incoming tel: URI. +complete_msg = \ +"""INVITE tel:+2065551212 SIP/2.0 +Via: SIP/2.0/UDP $LOCAL_IP:$LOCAL_PORT;rport;x-route-tag="tgrp:cococisco1";branch=z9hG4bK61E05 +From: $FROM_TAG +To: +Date: Thu, 12 Feb 2009 18:32:33 GMT +Call-ID: 58F8F7D6-F86A11DD-8013D591-5694EF79 +Supported: 100rel,timer,resource-priority +Min-SE: 86400 +Cisco-Guid: 1492551325-4167700957-2148586897-1452601209 +User-Agent: Cisco-SIPGateway/IOS-12.x +Allow: INVITE, OPTIONS, BYE, CANCEL, ACK, PRACK, UPDATE, REFER, SUBSCRIBE, NOTIFY, INFO, REGISTER +CSeq: 101 INVITE +Max-Forwards: 70 +Timestamp: 1234463553 +Contact: +Contact: +Record-Route: +Expires: 180 +Allow-Events: telephone-event +Content-Type: application/sdp +Content-Disposition: session;handling=required +Content-Length: 265 + +v=0 +o=CiscoSystemsSIP-GW-UserAgent 1296 9529 IN IP4 X.X.X.X +s=SIP Call +c=IN IP4 $LOCAL_IP +t=0 0 +m=audio 18676 RTP/AVP 0 101 19 +c=IN IP4 $LOCAL_IP +a=rtpmap:0 PCMU/8000 +a=rtpmap:101 telephone-event/8000 +a=fmtp:101 0-16 +a=rtpmap:19 CN/8000 +a=ptime:20 +""" + +sendto_cfg = sip.SendtoCfg( "tel: URI", "--null-audio --auto-answer 200", + "", 200, complete_msg=complete_msg) + -- cgit v1.2.3