I am new to sipp and am trying to write a scenario that needs to function like 
an if-then-else statement.

I need to find a string “conf-id" in the Request-Line and if present need to 
send a 488 otherwise send a 200 OK. Below is my latest try. What am I missing?


<recv request="INVITE" crlf="true" rrs="true">

      <action>

          <ereg regexp=“conf-id" search_in="msg" assign_to="1"/>

          <strcmp assign_to="result" variable="1" value=“conf-id" />

          <test assign_to="not_empty" variable="result" compare="equal" 
value="0.0"/>

      </action>

  </recv>

  <Reference variables="not_empty" />


   <nop condexec="not_empty”>

          <send>

            <![CDATA[


              SIP/2.0 488

              [last_Via:]

              [last_From:]

              [last_To:];tag=[call_number]

              [last_Call-ID:]

              Min-SE: 1800

              [last_CSeq:]

              Content-Length: 0


            ]]>

          </send>

   </nop>


      <send retrans="500">

        <![CDATA[


          SIP/2.0 200 OK

          [last_Via:]

          [last_From:]

          [last_To:];tag=[call_number]

          [last_Call-ID:]

          [last_CSeq:]

          Contact: 
<sip:[local_ip]:[local_port];transport=[transport]>;x-cisco-conf-id=034ed8a6-d47f-4f69-a690-a63ca3c51b15

          [last_Record-Route:]

          Content-Type: application/sdp

          Content-Length: [len]


          v=0

          o=user1 53655765 2353687637 IN IP[local_ip_type] [local_ip]

          s=-

          c=IN IP[media_ip_type] [media_ip]

          t=0 0

          m=audio [media_port] RTP/AVP 0

          a=rtpmap:0 PCMU/8000

        ]]>

      </send>


------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Sipp-users mailing list
Sipp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sipp-users

Reply via email to