I tried this and it worked,
  <recv response="200" timeout="10000">
<ereg regexp="tag=([[:alnum:]\-]*)" search_in="hdr" header="To" check_it="true" assign_to="3,4"/>
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">
    <ereg regexp="tag=(.*)" search_in="hdr" header="From:" assign_to="1"/>

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.
Sipp-users mailing list