[Devel] Re: Using drop() in Branch_Route seems to break subsequent branches (bug?)

Bogdan-Andrei Iancu bogdan at voice-system.ro
Thu Apr 6 20:24:11 CEST 2006


Tavis,

the fix is available on CVS head. If everything goes well (read: no side 
effects), I will backport the fix on the 1.0.1 version

regards,
bogdan

Bogdan-Andrei Iancu wrote:

> Hi Tavis,
>
> thanks to your script sample we were able to reproduce and identify 
> the bug. right now we  are working on a fix.
>
> thanks for report and regards,
> bogdan
>
> Tavis P wrote:
>
>> I forgot to mention that i'm using a copy of OpenSER 1.0.0 (1.0.1?)
>> checked out of CVS around Tuesday Apr  4 23:05:56 UTC 2006
>>
>> Tavis P wrote:
>>  
>>
>>> According to the core docs, inside of a OnReply_Route or Branch Route,
>>> the drop() function needs to be used in place of exit() if you want to
>>> discard the message
>>>
>>> I think i've encountered a bug where all subsequent branches that come
>>> after a branch that was "drop()"'d are summarily ignored before with
>>> only the first statement being executed inside the Branch_Route
>>>
>>> I've attached a really simple test script, you will need to change the
>>> "port=15061" line
>>>
>>> Sending an invite through this script will be branched 4 ways, however
>>> at the second branch i execute drop() and all subsequent branches are
>>> simply left as it (they do not process any of the logic in the
>>> branch_route except for the first line)
>>>
>>>
>>> thanks!
>>>
>>> tavis
>>>
>>>
>
>
> _______________________________________________
> Devel mailing list
> Devel at openser.org
> http://openser.org/cgi-bin/mailman/listinfo/devel
>




More information about the Devel mailing list