[SR-Users] Dialog Terminator

Daniel-Constantin Mierla miconda at gmail.com
Mon Mar 12 17:44:51 CET 2018


Hello,


On 09.03.18 17:18, Leonardo Assunção wrote:
> Greetings,
>
> Does Kamailio has a method or variable that indicates who
> cancelled,rejected or terminated a call and, therefore ended the dialog?
>
> Currently i'm looking for the sources of BYE's, CANCEL and replies
> greater than 300 to first INVITE, but i would safer if such a method
> existed.
>
CANCEL can be sent only by caller. The 300 or greater replies can be
sent only by callee.

For BYE, if you enable append from tag in rr module, then you can use
is_direction() from the same module to detect who sent the BYE:

  - http://www.kamailio.org/docs/modules/5.2.x/modules/rr.html#idp27707620

Otherwise, there is no variable that gives the result you are looking for.

Cheers,
Daniel

-- 
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - April 16-18, 2018, Berlin - www.asipto.com
Kamailio World Conference - May 14-16, 2018 - www.kamailioworld.com




More information about the sr-users mailing list