From: Rob D. <rk...@rk...> - 2013-04-04 18:57:48
|
On Wednesday 03 Apr 2013 10:37:50 Macias, Horaci wrote: ... > > <recv response="100" optional="true"> > <action> > <assignstr assign_to="1" value="[field0]" /> > <ereg regexpvar="1" search_in="hdr" header="Server:" > check_it="true" assign_to="2" /> <log message="[$1]" /> > <log message="[$2]" /> > <log message="[field0]" /> > </action> > </recv> > > as I said this seems to be working and this is what I need, but I want the > value coming from a field in the csv file, not really from a variable. So you want the XML to be: <recv response="100" optional="true"> <action> <ereg regexpvar="[field0]" search_in="hdr" header="Server:" check_it="true" assign_to="2" /> <log message="[$2]" /> <log message="[field0]" /> </action> </recv> instead? What happens when you try that? [field0] is actually a SIPp 'keyword', not a variable - that may point you in the right direction. Otherwise, it's hard to give much help without seeing the regexpvar= code you've added. Best, Rob |