Hi Everyone,
I currently have an xml script running, that receives calls from PBX.
However, I had to combine the response to register, options, and
invite request and simply reply the same same message to all those
requests. Please find attached the script.
I would like to separate the response to register, options, and invite
requests, however when I tried separating them, it only sent response
to register request only, but not to options and invite requests.
Could anyone help?
Thanks so much in advanced.
Ian
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE scenario SYSTEM "sipp.dtd">
<scenario name="branch_server">
<recv request="REGISTER|OPTIONS|INVITE" regexp_match="true">
</recv>
<send>
<![CDATA[
SIP/2.0 200 OK
[last_Via:]
[last_To:];tag=88382ca6-071d-416d-b9d9b3aa532aaa31
[last_From:]
[last_Call-ID:]
[last_CSeq:]
Server: Sphericall/6.4.0 Build/690
Allow: INVITE,ACK,CANCEL,OPTIONS,REFER,BYE,REGISTER,SUBSCRIBE,NOTIFY,UPDATE,PRACK,MESSAGE,INFO
Contact: "Analog Trunk" <sip:[email protected];transport=udp>
P-Asserted-Identity: "Analog Trunk" <sip:[email protected]>
Call-Info: <sip:192.168.152.10>;sphere-call-id=16784252
Content-Type: application/sdp
Content-Length: 173
v=0
o=sphericall 536557661 536557661 IN IP[local_ip_type] 192.168.152.10
s=-
c=IN IP[media_ip_type] 192.168.152.103
t=0 0
m=audio 49456 RTP/AVP 0
a=maxptime:20
a=sendrecv
a=rtpmap:0 PCMU/8000
]]>
</send>
<recv request="ACK"
optional="true"
rtd="true"
crlf="true">
</recv>
<recv request="BYE"
rtd="true"
crlf="true">
</recv>
<send>
<![CDATA[
SIP/2.0 200 OK
[last_Via:]
[last_From:]
[last_To:]
[last_Call-ID:]
[last_CSeq:]
Contact: <sip:[local_ip]:[local_port];transport=[transport]>
Content-Length: 0
]]>
</send>
<!-- Keep the call open for a while in case the 200 is lost to be -->
<!-- able to retransmit it if we receive the BYE again. -->
<pause milliseconds="4000"/>
<!-- Definition of the response time repartition table (unit is ms) -->
<ResponseTimeRepartition value="10, 20, 30, 40, 50, 100, 150, 200"/>
<!-- Definition of the call length repartition table (unit is ms) -->
<CallLengthRepartition value="10, 50, 100, 500, 1000, 5000, 10000"/>
</scenario>
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Sipp-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sipp-users