A difficulty with receive timeout is that you can only timeout the state you
are in.

So you need to put a timeout in the optional receive as well.

To avoid getting a 20 seconds timeout, you need an on_timeout as well.

Peter

Peter Higginson
Newport Networks Ltd,
Direct line 01494 470694
http://www.newport-networks.com/

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Enrico
Hartung
Sent: 27 November 2006 21:45
To: SIPP
Subject: [Sipp-users] optional reinvite before bye with timeout

Hi,

I'm currently working on a server scenario, that allows reinvites and 
can handle a bye of the caller, but it is still not doing what I want ;-)
The case is, that I run a basic call (invite, 200, ack, bye, 200 - with 
the bye send by the server) on this server.
It works fine if I remove the reinvite part, but as soon as I insert 
this optional invite, the server refuses to send the bye.
Now I wonder whether I made a mistake or this is a bug in SIPp ... What 
do you think?

Here is the (simplified) scenario:

    [INVITE / O.K. / ACK]

    <!-- allow ReINVITEs -->
    <recv request="INVITE" optional="true" rrs="true" next="4">
        <action>
            <ereg regexp="a=.*" search_in="msg" assign_to="1" />
            <ereg regexp="a=rtpmap:0 PCMU/8000" search_in="msg" 
assign_to="3" />
        </action>
    </recv>
 
    <!-- caller sends BYE scenario - start -->
    <recv request="BYE" rrs="true" timeout="10000" ontimeout="2"> </recv>
    <send>[200 O.K.]</send>
    <!-- caller send BYE scenario - end -->
    
    <send>[BYE]</send>
    <recv>[200 O.K.]</recv>


Enrico

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Sipp-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sipp-users


---------------
This e-mail may contain confidential and/or privileged information. If you are 
not the intended recipient (or have received this e-mail in error) please 
notify the sender immediately and delete this e-mail. Any unauthorized copying, 
disclosure or distribution of the contents in this e-mail is strictly forbidden.
---------------


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Sipp-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sipp-users

Reply via email to