[Devel] [ openser-Bugs-1599656 ] next_branches fails if no AVP's are set

SourceForge.net noreply at sourceforge.net
Mon Nov 20 13:06:39 CET 2006


Bugs item #1599656, was opened at 2006-11-20 13:06
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=1599656&group_id=139143

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: core
Group: ver 1.1.x
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: axlh (axlh)
Assigned to: Nobody/Anonymous (nobody)
Summary: next_branches fails if no AVP's are set

Initial Comment:
The new core function next_branches should, according to the message on -devel from Bogdan-Andrei Iancu, be compatible with next_contacts. The behaviour is different though. next_branches returns false if no AVP's are set with serialize_branches while next_contacts returns true.


Quoting the example in the message from Bogdan-Andrei Iancu:

    1) enum doing serial forking:
       {
          .....
          enum_query("e164.arpa.","voice");
          serialize_branches(1);
          if (!next_branches()) {
              sl_send_reply(...no enum found...);
              exit;
          }
          t_on_failure("1");
          t_relay();
       }

       failure_route[1] {
          if (next_branches()) {
              t_relay();
          }
       }


The first next_branches above will fail if enum_query returns exactly 1 result, as serialize_branches will do 'nothing' and the AVP stays empty.

I think next_branches should also return true in that case.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=1599656&group_id=139143



More information about the Devel mailing list