On Tue, Jan 10, 2012 at 3:21 PM, raojlist <raojl...@163.com> wrote:
> **
> hello every body.
>
> i want to batch register into asterisk (v 1.4.2) in use sipp (v 3.2).
> but when coming OPTIONS message from asterisk, the sipp can not handle it.
>
>
> Options__________________________________________________________________________________________________________________________
> OPTIONS sip:3007@10.8.103.216:5060 SIP/2.0
> Via: SIP/2.0/UDP 10.8.103.254:5060;branch=z9hG4bK36df69a8;rport
> From: "Unknown" <sip:Unknown@10.8.103.254:5060>;tag=as3a872d19
> To: <sip:3007@10.8.103.216:5060>
> Contact: <sip:Unknown@10.8.103.254>
> Call-ID: 149396b64ce3ff4824d9a91d4adb6865@10.8.103.254:5060
> CSeq: 102 OPTIONS
> User-Agent: HOLLYUC PBX
> Max-Forwards: 70
> Date: Thu, 23 Sep 2010 06:17:44 GMT
> Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
> Supported: replaces
> Content-Length: 0
>
> my reg.xml
> ------------------------------------------------
> <?xml version="1.0" encoding="ISO-8859-1" ?>
> <scenario name="Basic Sipstone UAC">
> <send retrans="1000">
> <![CDATA[
> REGISTER sip:[field0]@[remote_ip]:[remote_port] SIP/2.0
> Via: SIP/2.0/[transport] [local_ip]:[local_port]
> Contact: <sip:[field0]@[local_ip]:[local_port]>
> Max-Forwards: 70
> From: "[field0]"<sip:[field0]@[local_ip]:[local_port]>;tag=[call_number]
> To: "[field0]"<sip:[field0]@[remote_ip]:[remote_port]>
> Call-ID: [call_id]
> CSeq: 1 REGISTER
> Expires: 3600
> Content-Length: 0
>
>
> ]]>
> </send>
> <recv response="100" ></recv>
> <recv response="401" auth="true"></recv>
> <send retrans="500">
> <![CDATA[
>
> REGISTER sip:[remote_ip] SIP/2.0
> Via: SIP/2.0/[transport] [local_ip]:[local_port]
> Max-Forwards: 70
> Contact: <sip:[field0]@[local_ip]:[local_port]>
> To: "[field0]"<sip:[field0]@[remote_ip]>
> From: "[field0]"<sip:[field0]@[remote_ip]:[local_port]>;tag=[call_number]
> Call-ID: [call_id]
> CSeq: 2 REGISTER
> Expires: 3600
> [field1]
> Allow: INVITE,ACK,CANCEL,OPTIONS,BYE,REFER,NOTIFY,MESSAGE,SUBSCRIBE,INFO
> Content-Length: 0
> ]]>
> </send>
> <recv response="100" optional="true"></recv>
> <recv response="200" optional="true"></recv>
> <label id= "1" />
> *<recv request="102" timeout="10000" ontimeout="1"></recv>*
>
request="102" will wait for a request named 102 and not OPTIONS, so you
should use request="OPTIONS". But actually, you don't need to wait for it
as it will be handled by sipp as an out-of-call message.
http://sipp.sourceforge.net/doc/reference.html#UAC+Out-of-call+Messages
So just remove the above line.
regards,
takeshi
------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create
new or port existing apps to sell to consumers worldwide. Explore the
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
Sipp-users mailing list
Sipp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sipp-users