From: Olivier J. <oja...@gm...> - 2006-05-31 15:03:48
|
On 5/31/06, mleto <ml...@vo...> wrote: > > I would like to get the value of the "contact" field in a SIP header request. > This contact field has the following format: > Contact: <sip:al...@pc...> > I want to get the following value: 'sip:al...@pc...' > > I've tried different regexp like > > <ereg regexp="\<(.*)\>" > search_in="hdr" > header="contact:" > check_it="false" > assign_to="1,2"/> > > sipp returns an "ereg error" message. It should not be possible to use this regexp because it contains the '<' and '>' characters > > <ereg regexp=".{1}(.*).{1}>" > search_in="hdr" > header="contact:" > check_it="false" > assign_to="1,2"/> > > sipp returns an "ereg error" message. This regexp can no be used. > > Any solution ? You can use > and < in place of > and <. Let us know if it works. Olivier. -- HP OpenCall Software http://www.hp.com/go/opencall/ |