I would suggest to use following as the last message in the loop:
<recv request="INFO" optional="true" timeout="100" ontimeout="send_bye"
next="process_info">
</recv>
Thanks
Dhana
On Wed, Nov 19, 2008 at 4:06 AM, Tuan Viet Nguyen
<[EMAIL PROTECTED]>wrote:
> Thanks Peter & Long.
>
> @Peter: If you would add it to both of the optional lines as well as the
> last one, that was the problem. I did try like that too but it does work
> only in the case where an INFO message is received AFTER receiving reINVITE.
> If we receive an INFO message BEFORE an reINVITE message, sipp will exit
> with error "unexpected message ...."
>
> BG,
> Tuan Viet Nguyen
>
>
> On Wed, Nov 19, 2008 at 7:29 AM, Long Ngo Dl <[EMAIL PROTECTED]>wrote:
>
>> Please, send me the xml files, A and B. I shall check that for you.
>>
>> ------------------------------
>> *From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] *On Behalf Of *Tuan
>> Viet Nguyen
>> *Sent:* Tuesday, November 18, 2008 4:00 PM
>> *To:* Long Ngo Dl
>>
>> *Cc:* [email protected]
>> *Subject:* 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 PM
>>> *To:* Manish Sapariya
>>> *Cc:* [email protected]
>>> *Subject:* 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 loop
>>> waiting 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 loop
>>>
>>> 2/ 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 you
>>> Tuan 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.
>>>>
>>>> -manish
>>>>
>>>> Tuan Viet Nguyen wrote:
>>>>
>>>>> Hello,
>>>>>
>>>>> I'm new to sipp and I would like to know if in sipp xml scenario we can
>>>>> expect to receive a set of messages instead of receiving A message each
>>>>> time?
>>>>>
>>>>> Example:
>>>>>
>>>>> <recv request="INVITE,INFO" ....>
>>>>> </recv>
>>>>>
>>>>> Thank you.
>>>>> Tuan Viet NGUYEN
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------
>>>>>
>>>>>
>>>>> -------------------------------------------------------------------------
>>>>> 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
>>>>>
>>>>
>>>
>>
>
> -------------------------------------------------------------------------
> 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
>
>
-------------------------------------------------------------------------
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