Tonny <mail2tonny-sipp <at> yahoo.com.hk> writes: > > > Hi,I'm new to sipp, and I encounter a problem when trying to store the Via headers with multiple line using regexp.Here's the call scenario on the uas side:----> INVITE<---- 180----> PRACK<---- 200 (PRACK)<---- 200 (INVITE)----> ACKThe format of the Via header I'm using is like this:Via: SIP/2.0/UDP 130.100.100.1:5060;branch=z9hG4bK9ohfjksa, SIP/2.0/UDP 130.100.101.1:5060;branch=z9hG4bK45fs54eWhat I'm trying to do is to store the Via header in the INVITE so I can insert it back in the 200 OK for the INVITE.In the XML file I tried:<recv request="INVITE" crlf="true"> <action> <ereg regexp="Via: .*"> search_in="hdr" assign_to="1"/> > </action></recv>This only stores the first line of the Via header. And I have tried many other regexp but with no luck, like: <ereg regexp="Via: (.*)[\n](.*)">I guess the problem is also I can't seem to find which is the "newline" character.\n, \z, \Z and $ all don't seems to work.Please let me know what I did wrong, or if there is any other way to store this.Best Regards,Tonny
Hey Tony, I'm facing the same issue. Were you able to figure it out ? Regards, Pd ------------------------------------------------------------------------------ Is your legacy SCM system holding you back? Join Perforce May 7 to find out: • 3 signs your SCM is hindering your productivity • Requirements for releasing software faster • Expert tips and advice for migrating your SCM now http://p.sf.net/sfu/perforce _______________________________________________ Sipp-users mailing list Sipp-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sipp-users