Hi, Franz Edler

The script given by you for registration is for MD5, i modified and used once the system encounters [authentication....] header field my system is throwing error "Syntax error or invalid [keyword] in scenario". I have attached my aka_uac.xml, sipp file. Please see and let me know how to overcome this problem.

Thanks in advance

Regards,
Bhanuprasad KS

----- Original Message ----- From: "Franz Edler" <[EMAIL PROTECTED]> To: "'Bhanuprasad K S'" <[EMAIL PROTECTED]>; <[email protected]>
Sent: Wednesday, January 24, 2007 10:08 AM
Subject: RE: [Sipp-users] AKA registration scenario


I am trying to simulate AKA registration using SIPP. Below is UAC scenario
script file. when my sipp script received 401 from proxy it is exiting
from executing and displaying message "Syntax error or invalid [keyword]
in scenario".

Looking into the manual I see the "0x" prepended before the strings akak_OP,
aka_K and aka_AMF. I assume that is the problem.

example: [authentication username=HappyFeet
aka_OP=0xCDC202D5123E20F62B6D676AC72CB318
aka_K=0x465B5CE8B199B49FAA5F0A2EE238A6BC aka_AMF=0xB9B9])

I did not face the problem during my own tests because I omitted the
aka-specific parameters and therefore SIPp uses some default values. It
works fine with Open Source IMS. I have attached my registration scenario
file.

Cheers
-franz

Attachment: register-bob-net1.sh
Description: Binary data

<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE scenario SYSTEM "sipp.dtd">

<scenario name="registration">
	
<send retrans="500">
<![CDATA[
REGISTER sip:net1.test SIP/2.0
Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
Max-Forwards: 20
From: "bob" <sip:[EMAIL PROTECTED]>;tag=[call_number]
To: "bob" <sip:[EMAIL PROTECTED]>
P-Access-Network-Info: 3GPP-UTRAN-TDD;utran-cell-id-3gpp=C359A3913B20E
Call-ID: reg1///[call_id]
CSeq: 1 REGISTER
Contact: <sip:[EMAIL PROTECTED]:[local_port]>
Expires: 300
Content-Length: 0
User-Agent: Sipp v1.1-TLS, version 20061124
Authorization: Digest username="[EMAIL PROTECTED]", realm="net1.test"
Supported: path
]]>
</send>

<recv response="401" auth="true" rtd="true">
<action>
<ereg regexp=".*" search_in="hdr" header="Service-Route" assign_to="1" />
</action>
</recv>
	
<send retrans="500">
<![CDATA[
REGISTER sip:net1.test SIP/2.0
Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
Route: [$1]
Max-Forwards: 20
From: "bob" <sip:[EMAIL PROTECTED]>;tag=[call_number]
To: "bob" <sip:[EMAIL PROTECTED]>
P-Access-Network-Info: 3GPP-UTRAN-TDD;utran-cell-id-3gpp=C359A3913B20E
Call-ID: reg2///[call_id]
CSeq: 1 REGISTER
Contact: <sip:[EMAIL PROTECTED]:[local_port]>
Expires: 300
Content-Length: 0
User-Agent: Sipp v1.1-TLS, version 20061124
[authentication [EMAIL PROTECTED] password=bob]
Supported: path
]]>
</send>
	
<recv response="200">
</recv>

<ResponseTimeRepartition value="10, 20"/>
<CallLengthRepartition value="10"/>
	
</scenario>

<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE scenario SYSTEM "sipp.dtd">

<!-- This program is free software; you can redistribute it and/or      -->
<!-- modify it under the terms of the GNU General Public License as     -->
<!-- published by the Free Software Foundation; either version 2 of the -->
<!-- License, or (at your option) any later version.                    -->
<!--                                                                    -->
<!-- This program is distributed in the hope that it will be useful,    -->
<!-- but WITHOUT ANY WARRANTY; without even the implied warranty of     -->
<!-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the      -->
<!-- GNU General Public License for more details.                       -->
<!--                                                                    -->
<!-- You should have received a copy of the GNU General Public License  -->
<!-- along with this program; if not, write to the                      -->
<!-- Free Software Foundation, Inc.,                                    -->
<!-- 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA             -->
<!--                                                                    -->
<!--                 Sipp default 'uac' scenario.                       -->
<!--                                                                    -->

<scenario name="Basic Sipstone UAC">

<send retrans="500">
<![CDATA[
REGISTER sip:[field10] SIP/2.0
Via: SIP/2.0/UDP [local_ip]:[local_port]
Max-Forwards: 70
From: "bob" <sip:[EMAIL PROTECTED]>;tag=[call_number]
To: "bob" <sip:[EMAIL PROTECTED]>
P-Access-Network-Info: 3GPP-UTRAN-TDD;utran-cell-id-3gpp=C359A3913B20E
Call-ID: [call_id]
CSeq: 1 REGISTER
Contact: <sip:[EMAIL PROTECTED]:[local_port]>
Expires: 3600
Content-Length: 0
Authorization: Digest username="[EMAIL PROTECTED]", realm="[field10]"
Supported: path
]]>
</send>

<recv response="401" auth="true" rtd="true">
<action>
<ereg regexp=".*" search_in="hdr" header="Service-Route" assign_to="1"/>
</action>
</recv>
	
<send retrans="500">
<![CDATA[
REGISTER sip:[field10] SIP/2.0
Via: SIP/2.0/UDP [local_ip]:[local_port]
Max-Forwards: 70
Route: [$1]
From: "bob" <sip:[EMAIL PROTECTED]>;tag=[call_number]
To: "bob" <sip:[EMAIL PROTECTED]>
P-Access-Network-Info: 3GPP-UTRAN-TDD;utran-cell-id-3gpp=C359A3913B20E
[last_Call-ID:]
CSeq: 2 REGISTER
Contact: <sip:[EMAIL PROTECTED]:[local_port]>
Expires: 3600
Content-Length: 0
[authentication username=1234 aka_OP=0xoed47545168eafe2c39c075829a7b61f aka_K=0x00112233445566778899AABBCCDDEEFF aka_AMF=0x00000000006f]
Authorization: Digest username="[EMAIL PROTECTED]", realm="172.16.8.113"
Supported: path
]]>
</send>

<recv response="200">
</recv>

<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>

This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely 
for the use of the addressee(s). If you are not the intended recipient, please 
notify the sender by e-mail and delete the original message.Global Edge 
Software Ltd has taken every reasonable precaution to minimize this risk, but 
is not liable for any damage you may sustain as a result of any virus in this 
e-mail. You should carry out your own virus checks before opening the e-mail or 
attachment. Global Edge Software Ltd reserves the right to monitor and review 
the content of all messages sent to or from this e-mail address
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Sipp-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sipp-users

Reply via email to