I have installed sipp and i am trying my hand at getting a phone
successfully registered. (first step)

I was hoping that if i explain my tactic and the plan someone could guide
me to my steps i need to complete.


I have logs of a phone registering to the sip-server and I understand the
messages that are passes back and forth, but i don't know what variables
need to be set and how they are set.

here is the template i found on the net for a registration and the log
example of a phone registering to my sip server.


Registration Process:

 xxx=110

yyy=111

16:05:37.298558 IP 216.211.232.xxx.sip > 216.211.232.yyy.sip: SIP, length:
854

E..r...........n...o.....^v.REGISTER sip:216.211.232.yyy SIP/2.0

Via: SIP/2.0/UDP 216.211.232.xxx:5060;branch=z9hG4bK2ecgt5309goglecke600.1

From: "4498499" <sip:4498...@216.211.232.yyy>;tag=5FEB9B0A-E463B813

To: <sip:4498...@216.211.232.yyy>

CSeq: 5244 REGISTER

Call-ID: 3325a62f-c43ba6a4-7150b545@172.18.4.79

Contact: 
<sip:4498...@216.211.232.xxx:5060;ep=172.18.4.79;transport=udp>;methods="INVITE,
ACK, BYE, CANCEL, OPTIONS, INFO, MESSAGE, SUBSCRIBE, NOTIFY, PRACK, UPDATE,
REFER"

User-Agent: PolycomSoundPointIP-SPIP_450-UA/4.0.3.7562

Accept-Language: en

Authorization: Digest username="4498499", realm="216.211.232.yyy",
nonce="***********************************************************************",
qop=auth, cnonce="***********************", nc=00000003,
uri="sip:216.211.232.yyy",
response="***********************************************", algorithm=MD5

Max-Forwards: 69

Expires: 3600

Content-Length: 0





16:05:37.298689 IP 216.211.232.yyy.sip > 216.211.232.xxx.sip: SIP, length:
336

E..l..@.@......o...n.....X..SIP/2.0 100 Trying

Via: SIP/2.0/UDP 216.211.232.xxx:5060;branch=z9hG4bK2ecgt5309goglecke600.1

From: "4498499" <sip:4498...@216.211.232.yyy>;tag=5FEB9B0A-E463B813

To: <sip:4498...@216.211.232.yyy>

CSeq: 5244 REGISTER

Call-ID: 3325a62f-c43ba6a4-7150b545@172.18.4.79

Server: OpenSIPS (1.6.3-notls (i386/linux))

Content-Length: 0





16:05:37.299508 IP 216.211.232.yyy.sip > 216.211.232.xxx.sip: SIP, length:
516

E.. ..@.@..7...o...n......iESIP/2.0 401 Unauthorized

Via: SIP/2.0/UDP 216.211.232.xxx:5060;branch=z9hG4bK2ecgt5309goglecke600.1

From: "4498499" <sip:4498...@216.211.232.yyy>;tag=5FEB9B0A-E463B813

To: <sip:4498...@216.211.232.yyy>;tag=536d8556d42fa6225e8539674fb7fd4f.846d

CSeq: 5244 REGISTER

Call-ID: 3325a62f-c43ba6a4-7150b545@172.18.4.79

WWW-Authenticate: Digest realm="216.211.232.yyy",
nonce="***********************************************************************",
qop="auth", stale=true

Server: OpenSIPS (1.6.3-notls (i386/linux))

Content-Length: 0





16:05:37.329185 IP 216.211.232.xxx.sip > 216.211.232.yyy.sip: SIP, length:
854

E..r...........n...o.....^9.REGISTER sip:216.211.232.yyy SIP/2.0

Via: SIP/2.0/UDP 216.211.232.xxx:5060;branch=z9hG4bK2uijve309om17fsbi641.1

From: "4498499" <sip:4498...@216.211.232.yyy>;tag=5FEB9B0A-E463B813

To: <sip:4498...@216.211.232.yyy>

CSeq: 5245 REGISTER

Call-ID: 3325a62f-c43ba6a4-7150b545@172.18.4.79

Contact: 
<sip:4498...@216.211.232.xxx:5060;ep=172.18.4.79;transport=udp>;methods="INVITE,
ACK, BYE, CANCEL, OPTIONS, INFO, MESSAGE, SUBSCRIBE, NOTIFY, PRACK, UPDATE,
REFER"

User-Agent: PolycomSoundPointIP-SPIP_450-UA/4.0.3.7562

Accept-Language: en

Authorization: Digest username="4498499", realm="216.211.232.yyy",
nonce="**********************************", qop=auth, cnonce="*********",
nc=00000001, uri="sip:216.211.232.yyy",
response="************************", algorithm=MD5

Max-Forwards: 69

Expires: 3600

Content-Length: 0





16:05:37.329329 IP 216.211.232.yyy.sip > 216.211.232.xxx.sip: SIP, length:
336

E..l..@.@......o...n.....X..SIP/2.0 100 Trying

Via: SIP/2.0/UDP 216.211.232.xxx:5060;branch=z9hG4bK2uijve309om17fsbi641.1

From: "4498499" <sip:4498...@216.211.232.yyy>;tag=5FEB9B0A-E463B813

To: <sip:4498...@216.211.232.yyy>

CSeq: 5245 REGISTER

Call-ID: 3325a62f-c43ba6a4-7150b545@172.18.4.79

Server: OpenSIPS (1.6.3-notls (i386/linux))

Content-Length: 0





16:05:37.329839 IP 216.211.232.yyy.sip > 216.211.232.xxx.sip: SIP, length:
460

E.....@.@..o...o...n......e.SIP/2.0 200 OK

Via: SIP/2.0/UDP 216.211.232.xxx:5060;branch=z9hG4bK2uijve309om17fsbi641.1

From: "4498499" <sip:4498...@216.211.232.yyy>;tag=5FEB9B0A-E463B813

To: <sip:4498...@216.211.232.yyy>;tag=536d8556d42fa6225e8539674fb7fd4f.62f4

CSeq: 5245 REGISTER

Call-ID: 3325a62f-c43ba6a4-7150b545@172.18.4.79

Contact: <sip:4498...@216.211.232.xxx
:5060;ep=172.18.4.79;transport=udp>;expires=600

Server: OpenSIPS (1.6.3-notls (i386/linux))

Content-Length: 0



I know i will have to edit this to follow the encryption we are doing but
my question is more to the way i pass the variables.

 ******************************XML*Template*********************************
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE scenario SYSTEM "sipp.dtd">
<scenario name="REGISTER">
   <label id="register"/>
   <send retrans="500">
     <![CDATA[
       REGISTER sip:[remote_ip]:[remote_port] SIP/2.0
       Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
      From:
<sip:[service]@[remote_ip]:[remote_port]>;tag=[pid]SIPpTag00[call_number]
       To: <sip:[service]@[remote_ip]:[remote_port]>
      Contact: <sip:[service]@[local_ip]:[local_port];transport=[transport]>
       Expires: 15
      Call-ID: [call_id]
      CSeq: 1 REGISTER
       Content-Length: 0
     ]]>
  </send>
   <recv response="200" optional="true" next="register-done"/>
   <recv response="401" optional="true" next="register-with-auth"
auth="true"/>
   <recv response="407" auth="true"/>
   <label id="register-with-auth"/>
   <send retrans="500">
    <![CDATA[
       REGISTER sip:[remote_ip]:[remote_port] SIP/2.0
      Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
       From:
<sip:[service]@[remote_ip]:[remote_port]>;tag=[pid]SIPpTag00[call_number]
      To: <sip:[service]@[remote_ip]:[remote_port]>
       Contact:
<sip:[service]@[local_ip]:[local_port];transport=[transport]>
      Expires: 15
      [authentication]
       Call-ID: [call_id]
      CSeq: 2 REGISTER
      Content-Length: 0
     ]]>
  </send>
   <recv response="200"/>
   <label id="register-done"/>
 </scenario>
-- 
Sincerely,

JD Wells
QA Engineer/Developer
------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Sipp-users mailing list
Sipp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sipp-users

Reply via email to