to grab the user part of the To: header. The To: header looks like this:
To: <sip:2082221234;[EMAIL PROTECTED];user=phone>
I've defined the re to look like this:
<ereg regexp="<sip:([^;@]*)" search_in="hdr" header="To:" assign_to="1,2" />
Where the idea is to match only the portion following the sip: using a RE
sub-match with (). In this case SIPp is placing all of the matching
characters for the entire RE into $1 and the sub-match in $2. I later use
[$2] when I want to recall the user portion of the To header. It all works
except....
SIPp refuses to start unless I use both variables somewhere in the scenario.
I really do not need $1; it is just an artifact of the RE behavior, yet I
must some how "refer" to $1 or I receive the following error:
Variable $1 is referenced 1 times!
I built a fake reference like this:
<assign assign_to="1" variable="2" />
That just creates a second reference to variable 1 and SIPp is happy but
this seems like a real waste.
Michael
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Sipp-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sipp-users