Hello Joseph,

yes sub-regular expressions are supported by SIPp.
http://sipp.sourceforge.net/doc/reference.html#Regular+expressions
The following example should help you:

<ereg regexp="o=([[:alnum:]]*) ([[:alnum:]]*) ([[:alnum:]]*)"
           search_in="msg"
           check_it=i"true"
           assign_to="3,4,5,8"/>

If the SIP message contains the line

o=user1 53655765 2353687637 IN IP4 127.0.0.1

variable 3 contains "o=user1 53655765 2353687637", variable 4 contains
"user1", variable 5 contains "53655765" and variable 8 contains
"2353687637".

Olivier.

On 5/5/07, Joseph Shiao <[EMAIL PROTECTED]> wrote:

I have a vender B2BUA machine, they handle the BYE
process like this:
....
1. OUA -> BYE -> B2BUA
2. B2BUA -> 200 -> OUA
3. B2BUA -> INVITE (Cseq:2 INVITE) -> TUA
4. TUA -> 200 -> B2BUA
5. B2BUA -> ACK -> TUA
6. B2BUA -> BYE -> TUA
7. TUA -> 200 -> B2BUA
In my stress testing, some of the calls will get
BYE(#6) before ACK (#5), in that case, I can't use the
[last_via:] to response the BYE on the 200OK, because
of the branch tag in the Via header is not matched.
Any possible to get the branch tag in this kind case?

Thanks,
Joseph

For example
<action>
    <ereg regexp="BYE (.*)" search_in="msg"
regexp=(.*) search_in="hdr" header="Via:"
check_it="true" assign_to="1" />
    </action>
BYE sip:[EMAIL PROTECTED]:5060 SIP/2.0
Via: SIP/2.0/UDP 2.2.2.2:5060;branch=abc123


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

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




--
HP OpenCall Software
http://www.hp.com/go/opencall/
-------------------------------------------------------------------------
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