[SR-Users] Hangup a call after a certain time from 183

Alex Balashov abalashov at evaristesys.com
Tue Jun 14 02:10:25 CEST 2022


Hi,

I think the approach you are contemplating is unnecessarily complicated.
:-) Take a look at this option:

https://kamailio.org/docs/modules/5.6.x/modules/tm.html#tmp.p.fr_inv_timer

If you want to start the timer from the moment of a 183 specifically and
not any other non-100 1xx provisional reply, then catch the 183 in an
onreply_route, and then use t_set_fr():

https://kamailio.org/docs/modules/5.6.x/modules/tm.html#tm.f.t_set_fr

to set the fr_inv_timer to your desired value from that point. Leave the
background value as some other default, and set restart_fr_on_each_reply to
false.

-- Alex

-- 
Alex Balashov | Principal | Evariste Systems LLC

Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free)
Web: http://www.evaristesys.com/, http://www.csrpswitch.com/

-- 
Alex Balashov | Principal | Evariste Systems LLC

Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free)
Web: http://www.evaristesys.com/, http://www.csrpswitch.com/


On Mon, Jun 13, 2022 at 6:41 PM Antonio Couto <couto.a at gmail.com> wrote:

> I need to hang up a call after some seconds after received 183 provisional
> response but before any other SIP message.
> I am using "rtimer" module to set a callback on time, but how can I search
> for a call on transaction module in order to terminate the call?
>
> I think I am missing something to prepare the transaction data before I
> can use this data to terminate the call.
>
> I am thinking of storing the call-Id of all transactions to use on timeout
> callback, I don't know if it's possible.
>
> Thanks in advance.
> Antonio
> __________________________________________________________
> Kamailio - Users Mailing List - Non Commercial Discussions
>   * sr-users at lists.kamailio.org
> Important: keep the mailing list in the recipients, do not reply only to
> the sender!
> Edit mailing list options or unsubscribe:
>   * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20220613/bd47def2/attachment.htm>


More information about the sr-users mailing list