For a retarded endpoint (an old ISDN PBX behind a Smartnode) I need to insert a 180 reply before sending a 183 (with SDP), otherwise the PBX fails to playback the inband audio to the caller behind the PBX.
I can't find hints on how to do this. uac_req_send() can be used to start a new transaction, but I only need to generate a 180 based on the 183 in the on_reply route.
Current Q&D hack is to send a 180 on the initial INVITE, works but not ideal.
sl_send_reply("180", "Make this retarded endpoint ring");
Emmanuel
Le 2018-02-20 à 16:13, Daniel Tryba a écrit :
For a retarded endpoint (an old ISDN PBX behind a Smartnode) I need to insert a 180 reply before sending a 183 (with SDP), otherwise the PBX fails to playback the inband audio to the caller behind the PBX.
I can't find hints on how to do this. uac_req_send() can be used to start a new transaction, but I only need to generate a 180 based on the 183 in the on_reply route.
Current Q&D hack is to send a 180 on the initial INVITE, works but not ideal.
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
On Tue, Feb 20, 2018 at 05:41:49PM +0100, Emmanuel BUU wrote:
sl_send_reply("180", "Make this retarded endpoint ring");
Well, this is embarrassing :)
This is so obvious that I didn't even try. I was under the impression that a send_reply in on_reply would send to the source of the reply.
onreply_route[MANAGE_REPLY] { if(status=="183") { send_reply("180","Ringing."); } ...
Does the job.
Thank you very much Emmanuel.
Just a small detail ...
I noticed that by doing so, K create a "totag" parameter in the "To" header of 180 Ringing reply. That tag parameter is part of the dialog identification.
Then then 183 Session progress that will be forwarded will also have a "totag". It will be different because it is generated by the called party. Some picky SIP stacks in the calling end-points may enforce strict dialog identification and therefore would not recognise 183 Session progress and the subsequent 200 OK as part of your current call.
In case this happends, you know where the issue comes from.
Emmanuel
Le 2018-02-20 à 18:24, Daniel Tryba a écrit :
On Tue, Feb 20, 2018 at 05:41:49PM +0100, Emmanuel BUU wrote:
sl_send_reply("180", "Make this retarded endpoint ring");
Well, this is embarrassing :)
This is so obvious that I didn't even try. I was under the impression that a send_reply in on_reply would send to the source of the reply.
onreply_route[MANAGE_REPLY] { if(status=="183") { send_reply("180","Ringing."); } ...
Does the job.
Thank you very much Emmanuel.
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users