[Kamailio-Users] failure route problem - duplicate invites

Iñaki Baz Castillo ibc at in.ilimit.es
Wed Sep 10 10:01:44 CEST 2008


El Wednesday 10 September 2008 09:56:10 Iñaki Baz Castillo escribió:


> Thus, there is something wrong more, but please, take in mind that your
> usage of append_branch is completely wrong.

Also, why do you use "break"?  It's completely WRONG. Read the doc:

  http://www.kamailio.org/dokuwiki/doku.php/core-cookbook:1.3.x#break

---------
break()
  Since v0.10.0-dev3, 'break' can no longer be used to stop the execution of a
  route. The only place to use is to end a 'case' block in a 'switch'
  statement. 'return' must be now used instead of old 'break'. 
  'return' and 'break' have now a similar meaning as in c/shell.
--------

Use "exit" instead:

  http://www.kamailio.org/dokuwiki/doku.php/core-cookbook:1.3.x#exit


Probably your problem is related to this.



-- 
Iñaki Baz Castillo
ibc at in.ilimit.es




More information about the Users mailing list