[SR-Users] serial forking kamailio - twilio

Filippo Graziola filippo.graziola at gmail.com
Mon Jul 19 18:18:24 CEST 2021


Hi all,

I have a question for my kamailio configuration which works like this:

- INVITE arrives to kamailio
- HTTP async request to API endpoint
- Resume, use of rtjson module for parallel forking and loop to kamailio
itself
- One of the invite is "transformed" in serial forking with rtjson module
and it is sent with a delay to TWILIO SIP Domain (landline/mobile phone
numbers)

Twilio is giving me some troubles because it answers with a 200 OK but the
call it is still in establishing/ringing on the "landline" side and as
expected when reaching the timeout (no answer from phone number on TWILIO
side) kamailio is receiving a BYE.

Now the question, how to handle next number to call through Twilio?
I was thinking of using rtjson_next_route() when handling the in-dialog BYE
but as it is not a failure route so it does not work, or I'm doing it wrong.

Thanks in advance for any help/hint.

Filippo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20210719/cc49942c/attachment.htm>


More information about the sr-users mailing list