Hi Edward,
It should work if you put all your actions in a unique <action> tag, like this :
<recv request="INVITE" crlf="true" rrs="true" optional="false" >
<action>
<ereg regexp="Content-Type:.*" search_in="msg" assign_to="2"/>
<log message="received INVITE"/>
</action>
</recv>
Regards,
Olivier Boulkroune
________________________________
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Edward Russell
Envoyé : jeudi 21 juin 2007 16:53
À : [email protected]
Objet : [Sipp-users] Multiple actions in a <recv>
If I have multiple actions within a <recv>, only the first action gets invoked.
For example in the following scenario snippet:
<recv request="INVITE" crlf="true" rrs="true" optional="false" >
<action><ereg regexp="Content-Type:.*" search_in="msg" assign_to="2"/>
</action>
<action><log message="received INVITE"/></action>
</recv>
The ereg action will get invoked, but not the log.
I debugged this in xp_parser.c and the code really seems broken, however I
can't figure out precisely what is wrong or how to fix it.
It seems to have to do with the fact that in xp_open_element() the ptr is taken
from xp_position[xp_stack].
xp_stack gets decremented in xp_close_element so the next call from
load_scenario winds up backtracking and search again earlier in the message and
this screws up other indices.
Any ideas?
Thanks,
Ed
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Sipp-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sipp-users