One thing I remember about the interaction between "optional" and "timeout" is 
that you can never be sure about which state/step you are in/on. (Long time ago 
I wrote the original feature but I have not kept up with the recent code.)
 
In fact you are probably sitting at the first optional and need the timeout and 
ontimeout there - but for safety I would add it to both of the optional lines 
as well as the last one.
 
I hope that helps,
Peter

Date: Tue, 18 Nov 2008 15:59:55 +0100From: [EMAIL PROTECTED]: [EMAIL 
PROTECTED]: [EMAIL PROTECTED]: Re: [Sipp-users] Receive a set of SIP 
messages?I've already tried this method, it does not work. Thanks.Do you have 
any other ideas?Regards,Tuan Viet Nguyen
On Tue, Nov 18, 2008 at 2:55 PM, Long Ngo Dl <[EMAIL PROTECTED]> wrote:


Try this:
 
<label id="loop"/>  
<recv request="INFO" optional="true" next="process_info"></recv>
 <recv request="INVITE" optional="true" next="process_reinvite"></recv><recv 
request="INFO" timeout="100" ontimeout="send_bye" next="process_info"></recv>
 
BR,
 
Long Ngo


From: Tuan Viet Nguyen [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 18, 
2008 1:52 PMTo: Manish SapariyaCc: [EMAIL PROTECTED]: Re: [Sipp-users] Receive 
a set of SIP messages?


Thanks for your help.As I mentioned earlier, the optional attribute works 
well.But when I use this attribute in a loop, it does not work. For example, I 
want to create a loopwaiting for INFO & reINVITE messages after establishing a 
call. If no INFO nor reINVITE received,my sipp process will send a BYE to 
another end-point......<label id="loop"/> 
<recv request="INFO" optional="true" next="process_info"></recv>


 <recv request="INVITE" optional="true" next="process_reinvite"></recv><recv 
request="INFO" timeout="100" ontimeout="send_bye" 
next="process_info"></recv><label id="send_bye"/><send><!-- Send BYE here 
-->......</send><label id="process_reinvite"/>+ send 100 Trying+ send 200 
OK<recv request="ACK" next="loop"></recv<label id="process_info"/>+ send 200 OK 
with next="loop"In this example:1/ After establishing the call, if my sipp 
receives an INVITE, it will go to the "process_reinvite" label.After processing 
this message, it returns to the "loop" label and waits for another INVITE/INFO 
message.If none of theses messages are received, it has to send a BYE. But it 
does not and always waits for INVITE/INFO in the loop2/ If I use the timeout 
attribute in stead of the optional attribute in receiving INVITE in the loop, 
it works. But another problem comes, that is if an INFO is received before 
receiving an INVITE in the loop,the sipp process will exit with error "message 
unexpected while expecting for INVITE...."Do you have any ideas?Thank youTuan 
Viet NGUYEN



On Tue, Nov 18, 2008 at 6:21 AM, Manish Sapariya <[EMAIL PROTECTED]> wrote:
You can mark the message optional if you expect one of many messages.e.g. <recv 
response="100" optional="true"> </recv> <recv response="180" optional="true"> 
</recv>i have not tried it for request packets, but believe it should 
work.-manishTuan Viet Nguyen wrote:



Hello,I'm new to sipp and I would like to know if in sipp xml scenario we 
canexpect to receive a set of messages instead of receiving A message 
eachtime?Example:<recv request="INVITE,INFO" ....></recv>Thank you.Tuan Viet 
NGUYEN-------------------------------------------------------------------------------------------------------------------------------------------------This
 SF.Net email is sponsored by the Moblin Your Move Developer's challengeBuild 
the coolest Linux based applications with Moblin SDK & win great prizesGrand 
prize is a trip for two to an Open Source event anywhere in the 
worldhttp://moblin-contest.org/redirect.php?banner_id=100&url=/------------------------------------------------------------------------_______________________________________________Sipp-users
 mailing [EMAIL PROTECTED]://lists.sourceforge.net/lists/listinfo/sipp-users
_________________________________________________________________
BigSnapSearch.com - 24 prizes a day, every day - Search Now!
http://clk.atdmt.com/UKM/go/117442309/direct/01/
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Sipp-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sipp-users

Reply via email to