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.
Thanks in advance
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