In my receive  INVITE below I'm trying to collect all the VIA headers 
coming in. I want to store the VIA headers to use later on in the script. 
The ereg same to collect all the VIA header including any preceeding 
headers coming in on the INVITE.  How can I fix this so that I just store 
the VIA headers on the inbound request?

Environment Setup:    SIPp uac <----> Proxy-1 <----> Proxy-2 < ---> 
Proxy-3  <---> Proxy-2 <---> Proxy-1 <---> SIPp uas

UAS Script:
  <recv request="INVITE" crlf="true" rrs="true">
   <action>
     <ereg regexp="[Vv][Ii][Aa][        ]*:[    ](.*)$"
           search_in="msg"
           check_it="true"
           assign_to="5"/>
     <ereg regexp="(.*)"
           search_in="hdr"
           header="CSeq:"
           check_it="true"
           assign_to="6"/>
   </action>

Thanks,

Ronnie
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Sipp-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sipp-users

Reply via email to