I tried this and it worked,
  <recv response="200" timeout="10000">
<action>
<ereg regexp="tag=([[:alnum:]\-]*)" search_in="hdr" header="To" check_it="true" assign_to="3,4"/>
</action>
  </recv>
Then i use the variable 4.
Thank you.


2011/6/7 Peter Fabian <peter.w.fabian@gmail.com>
I was just trying to do a similar thing.  Grab the tag= parameter from the From header and add it as the To: tag for a REInvite

  <recv request="INVITE" crlf="true">
   <action>
    <ereg regexp="tag=(.*)" search_in="hdr" header="From:" assign_to="1"/>
   </action>
  </recv>


Hope that helps
Peter Fabian | Senior Voice Engineer


On Mon, Jun 6, 2011 at 6:22 AM, Othman EL YOUBI <othmanelyoubi@gmail.com> wrote:
Hello everybody
I want to use regular expressions to select the value of a Call_id and a tag parametre, just the value without the name of the parametre. Does anyone know how to do that?
Thank you for your responses

------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Discover what all the cheering's about.
Get your free trial download today.
http://p.sf.net/sfu/quest-dev2dev2
_______________________________________________
Sipp-users mailing list
Sipp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sipp-users