Hello list,
When the dialog state for a call is < 4, is it possible to use dlg_bye() function to end the call?
Best regards
Abdoul OSSENI Ingénieur DevOps chez Néo-Soft Co-Fondateur de ON SERVICES Tél : +33 601 135 167
Hello,
On 19.07.18 18:15, Abdoul Osséni wrote:
Hello list,
When the dialog state for a call is < 4, is it possible to use dlg_bye() function to end the call?
it should be possible to use it for states 3 and 4.
Lower state than 3 means that the dialog was not answered yet (no 200ok received). While SIP allows BYE at that stage to end a particular branch of the call, dialog module needs the 200ok, as it operates at dialog level, not at transaction/branch level.
Cheers, Daniel
Thank you Daniel. What is the best way to end calls for states 3 and 4 ?
Regards
Abdoul OSSENI Ingénieur DevOps chez Néo-Soft Co-Fondateur de ON SERVICES Tél : +33 601 135 167
2018-07-19 18:49 GMT+02:00 Daniel-Constantin Mierla miconda@gmail.com:
Hello,
On 19.07.18 18:15, Abdoul Osséni wrote:
Hello list,
When the dialog state for a call is < 4, is it possible to use dlg_bye() function to end the call?
it should be possible to use it for states 3 and 4.
Lower state than 3 means that the dialog was not answered yet (no 200ok received). While SIP allows BYE at that stage to end a particular branch of the call, dialog module needs the 200ok, as it operates at dialog level, not at transaction/branch level.
Cheers, Daniel
-- Daniel-Constantin Mierla -- www.asipto.com www.twitter.com/miconda -- www.linkedin.com/in/miconda Kamailio World Conference -- www.kamailioworld.com
ERRATUM.
What is the best way to end calls for states < 3 ?
Abdoul OSSENI Ingénieur DevOps chez Néo-Soft Co-Fondateur de ON SERVICES Tél : +33 601 135 167
2018-07-19 19:19 GMT+02:00 Abdoul Osséni abdoul.osseni@gmail.com:
Thank you Daniel. What is the best way to end calls for states 3 and 4 ?
Regards
Abdoul OSSENI Ingénieur DevOps chez Néo-Soft Co-Fondateur de ON SERVICES Tél : +33 601 135 167
2018-07-19 18:49 GMT+02:00 Daniel-Constantin Mierla miconda@gmail.com:
Hello,
On 19.07.18 18:15, Abdoul Osséni wrote:
Hello list,
When the dialog state for a call is < 4, is it possible to use dlg_bye() function to end the call?
it should be possible to use it for states 3 and 4.
Lower state than 3 means that the dialog was not answered yet (no 200ok received). While SIP allows BYE at that stage to end a particular branch of the call, dialog module needs the 200ok, as it operates at dialog level, not at transaction/branch level.
Cheers, Daniel
-- Daniel-Constantin Mierla -- www.asipto.com www.twitter.com/miconda -- www.linkedin.com/in/miconda Kamailio World Conference -- www.kamailioworld.com
If state < 0, then practically the INVITE transaction is active, it needs to be cancelled or replied with t_reply(...) and a code >=400.
From where you need to terminate this ongoing INVITE, from kamailio.cfg
or from external app?
Cheers, Daniel
On 19.07.18 19:20, Abdoul Osséni wrote:
ERRATUM.
What is the best way to end calls for states < 3 ?
Abdoul OSSENI Ingénieur DevOps chez Néo-Soft Co-Fondateur de ON SERVICES Tél : +33 601 135 167
2018-07-19 19:19 GMT+02:00 Abdoul Osséni <abdoul.osseni@gmail.com mailto:abdoul.osseni@gmail.com>:
Thank you Daniel. What is the best way to end calls for states 3 and 4 ? Regards Abdoul OSSENI Ingénieur DevOps chez Néo-Soft Co-Fondateur de ON SERVICES Tél : +33 601 135 167 2018-07-19 18:49 GMT+02:00 Daniel-Constantin Mierla <miconda@gmail.com <mailto:miconda@gmail.com>>: Hello, On 19.07.18 18:15, Abdoul Osséni wrote: > Hello list, > > When the dialog state for a call is < 4, is it possible to use > dlg_bye() function to end the call? > it should be possible to use it for states 3 and 4. Lower state than 3 means that the dialog was not answered yet (no 200ok received). While SIP allows BYE at that stage to end a particular branch of the call, dialog module needs the 200ok, as it operates at dialog level, not at transaction/branch level. Cheers, Daniel -- Daniel-Constantin Mierla -- www.asipto.com <http://www.asipto.com> www.twitter.com/miconda <http://www.twitter.com/miconda> -- www.linkedin.com/in/miconda <http://www.linkedin.com/in/miconda> Kamailio World Conference -- www.kamailioworld.com <http://www.kamailioworld.com>
Thank you for your help.
We use TLS protocol from mobile networks.
In most cases we have no problems during the three way handshake (invite -> 200Ok -> ACK).
But sometimes, we didn't received the ACK of 200OK (the TCP connection appears broken during the three way handshake per example). In this case, we need to cancel the calls to avoid charging customers.
our goal is to use tpcops (tcp:closed, tcp:reset event routes), htable, dialog and tmx modules to cancel (t_reply_callid) or terminate(dlg_bye) these calls.
May be , is there a better solution?
Abdoul OSSENI Ingénieur DevOps chez Néo-Soft Co-Fondateur de ON SERVICES Tél : +33 601 135 167
2018-07-19 21:21 GMT+02:00 Daniel-Constantin Mierla miconda@gmail.com:
If state < 0, then practically the INVITE transaction is active, it needs to be cancelled or replied with t_reply(...) and a code >=400.
From where you need to terminate this ongoing INVITE, from kamailio.cfg or from external app?
Cheers, Daniel
On 19.07.18 19:20, Abdoul Osséni wrote:
ERRATUM.
What is the best way to end calls for states < 3 ?
Abdoul OSSENI Ingénieur DevOps chez Néo-Soft Co-Fondateur de ON SERVICES Tél : +33 601 135 167
2018-07-19 19:19 GMT+02:00 Abdoul Osséni abdoul.osseni@gmail.com:
Thank you Daniel. What is the best way to end calls for states 3 and 4 ?
Regards
Abdoul OSSENI Ingénieur DevOps chez Néo-Soft Co-Fondateur de ON SERVICES Tél : +33 601 135 167
2018-07-19 18:49 GMT+02:00 Daniel-Constantin Mierla miconda@gmail.com:
Hello,
On 19.07.18 18:15, Abdoul Osséni wrote:
Hello list,
When the dialog state for a call is < 4, is it possible to use dlg_bye() function to end the call?
it should be possible to use it for states 3 and 4.
Lower state than 3 means that the dialog was not answered yet (no 200ok received). While SIP allows BYE at that stage to end a particular branch of the call, dialog module needs the 200ok, as it operates at dialog level, not at transaction/branch level.
Cheers, Daniel
-- Daniel-Constantin Mierla -- www.asipto.com www.twitter.com/miconda -- www.linkedin.com/in/miconda Kamailio World Conference -- www.kamailioworld.com
-- Daniel-Constantin Mierla -- www.asipto.comwww.twitter.com/miconda -- www.linkedin.com/in/miconda Kamailio World Conference -- www.kamailioworld.com