Hi All,
I'm trying to use dlg_refer to separate to legs of a call and send them to another device,
I think I have setup the system correctly, everything seems to look ok but the call to dlg_refer doesn't do anything , it doesnt even show in the journal that it is failing, just nothing happens
Here is the code: #### REFER caller leg if ($dlg_var(caller_contact) != $null) { xlog("L_INFO", "Sending dlg_refer to caller: $var(conf_uri)\n"); #dlg_refer("caller", "$var(conf_uri)"); xlog("L_INFO", ">>> Attempting dlg_refer to caller: $dlg_var(caller_contact)\n"); if (!dlg_refer("caller", "$var(conf_uri)")) { xlog("L_ERR", "dlg_refer to caller FAILED\n"); } else { xlog("L_INFO", "dlg_refer to caller triggered\n"); } }
The dialog state is 4 before the refer is initiated and can be seen from the kamcmd dlg.list. The caller end point allows REFER
I've ran out of ideas as to where to look, any pointers would be a fantastic help I'm using Kamailio V5.8.6
Thanks Rob
Robert Boardman Solution Architect
Tel: 03330147908 Email: Robert.Boardman@gamma.co.uk
This is an email from Gamma Telecom Ltd, trading as “Gamma”. The contents of this email are confidential to the ordinary user of the email address to which it was addressed. This email is not intended to create any legal relationship. No one else may place any reliance upon it, or copy or forward all or any of it in any form (unless otherwise notified). If you receive this email in error, please accept our apologies, we would be obliged if you would telephone our postmaster on +44 (0) 808 178 9652 or email postmaster@gamma.co.uk
Gamma Telecom Limited, a company incorporated in England and Wales, with limited liability, with registered number 04340834, and whose registered office is at The Scalpel, 18th Floor, 52 Lime Street, London EC3M 7AF and whose principal place of business is at Kings House, Kings Road West, Newbury, Berkshire, RG14 5BY.
Hi,
1. Can you enable debug logs for dialog module and check what it says. 2. some UAC do not support sip-refer, can you check the sip message flow if client is receiving the sip-refer request.
Regards Rajneesh
On Thu, Sep 25, 2025 at 9:22 PM Robert Boardman via sr-users < sr-users@lists.kamailio.org> wrote:
Hi All,
I'm trying to use dlg_refer to separate to legs of a call and send them to another device,
I think I have setup the system correctly, everything seems to look ok but the call to dlg_refer doesn't do anything , it doesnt even show in the journal that it is failing, just nothing happens
Here is the code: #### REFER caller leg if ($dlg_var(caller_contact) != $null) { xlog("L_INFO", "Sending dlg_refer to caller: $var(conf_uri)\n"); #dlg_refer("caller", "$var(conf_uri)"); xlog("L_INFO", ">>> Attempting dlg_refer to caller: $dlg_var(caller_contact)\n"); if (!dlg_refer("caller", "$var(conf_uri)")) { xlog("L_ERR", "dlg_refer to caller FAILED\n"); } else { xlog("L_INFO", "dlg_refer to caller triggered\n"); } }
The dialog state is 4 before the refer is initiated and can be seen from the kamcmd dlg.list. The caller end point allows REFER
I've ran out of ideas as to where to look, any pointers would be a fantastic help I'm using Kamailio V5.8.6
Thanks Rob Robert Boardman Solution Architect Tel: 03330147908 Email: Robert.Boardman@gamma.co.uk This is an email from Gamma Telecom Ltd, trading as “Gamma”. The contents of this email are confidential to the ordinary user of the email address to which it was addressed. This email is not intended to create any legal relationship. No one else may place any reliance upon it, or copy or forward all or any of it in any form (unless otherwise notified). If you receive this email in error, please accept our apologies, we would be obliged if you would telephone our postmaster on +44 (0) 808 178 9652 or email postmaster@gamma.co.uk
Gamma Telecom Limited, a company incorporated in England and Wales, with limited liability, with registered number 04340834, and whose registered office is at The Scalpel, 18th Floor, 52 Lime Street, London EC3M 7AF and whose principal place of business is at Kings House, Kings Road West, Newbury, Berkshire, RG14 5BY. __________________________________________________________ Kamailio - Users Mailing List - Non Commercial Discussions -- sr-users@lists.kamailio.org To unsubscribe send an email to sr-users-leave@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender!
Thanks Ranesh, It was because I didn't have dlg_manage() in the correct place, its all working now.
Regards Rob
Robert Boardman Solution Architect ________________________________ From: Rajneesh Soni rajneesh@daily.co Sent: Thursday, September 25, 2025 17:58 To: Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org Cc: Robert Boardman Robert.Boardman@gamma.co.uk Subject: Re: [SR-Users] using dlg_refer
Hi,
1. Can you enable debug logs for dialog module and check what it says. 2. some UAC do not support sip-refer, can you check the sip message flow if client is receiving the sip-refer request.
Regards Rajneesh
On Thu, Sep 25, 2025 at 9:22 PM Robert Boardman via sr-users <sr-users@lists.kamailio.orgmailto:sr-users@lists.kamailio.org> wrote: Hi All,
I'm trying to use dlg_refer to separate to legs of a call and send them to another device,
I think I have setup the system correctly, everything seems to look ok but the call to dlg_refer doesn't do anything , it doesnt even show in the journal that it is failing, just nothing happens
Here is the code: #### REFER caller leg if ($dlg_var(caller_contact) != $null) { xlog("L_INFO", "Sending dlg_refer to caller: $var(conf_uri)\n"); #dlg_refer("caller", "$var(conf_uri)"); xlog("L_INFO", ">>> Attempting dlg_refer to caller: $dlg_var(caller_contact)\n"); if (!dlg_refer("caller", "$var(conf_uri)")) { xlog("L_ERR", "dlg_refer to caller FAILED\n"); } else { xlog("L_INFO", "dlg_refer to caller triggered\n"); } }
The dialog state is 4 before the refer is initiated and can be seen from the kamcmd dlg.list. The caller end point allows REFER
I've ran out of ideas as to where to look, any pointers would be a fantastic help I'm using Kamailio V5.8.6
Thanks Rob Robert Boardman Solution Architect Tel: 03330147908tel:03330147908 Email: Robert.Boardman@gamma.co.ukmailto:Robert.Boardman@gamma.co.uk [cid:ii_19981cd3559211e16ff1] [cid:ii_19981cd355975e903762] [cid:ii_19981cd3559710ca5313] [cid:ii_19981cd355997b38bb44] This is an email from Gamma Telecom Ltd, trading as “Gamma”. The contents of this email are confidential to the ordinary user of the email address to which it was addressed. This email is not intended to create any legal relationship. No one else may place any reliance upon it, or copy or forward all or any of it in any form (unless otherwise notified). If you receive this email in error, please accept our apologies, we would be obliged if you would telephone our postmaster on +44 (0) 808 178 9652 or email postmaster@gamma.co.ukmailto:postmaster@gamma.co.uk
Gamma Telecom Limited, a company incorporated in England and Wales, with limited liability, with registered number 04340834, and whose registered office is at The Scalpel, 18th Floor, 52 Lime Street, London EC3M 7AF and whose principal place of business is at Kings House, Kings Road West, Newbury, Berkshire, RG14 5BY. __________________________________________________________ Kamailio - Users Mailing List - Non Commercial Discussions -- sr-users@lists.kamailio.orgmailto:sr-users@lists.kamailio.org To unsubscribe send an email to sr-users-leave@lists.kamailio.orgmailto:sr-users-leave@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender!
Hi All, I'm getting this message when trying to route request to a WebSocket client:
#033[0m 21(28) WARNING: ACK|5c4ab3c9-d755-4a7a-aa79-bda94b6e6484| <core> [core/msg_translator.c:2904]: via_builder(): TCP/TLS connection (id: 0) for WebSocket could not be found #033[0m 21(28) ERROR: ACK|5c4ab3c9-d755-4a7a-aa79-bda94b6e6484| <core> [core/msg_translator.c:2044]: build_req_buf_from_sip_req(): could not create Via header #033[0m 21(28) ERROR: ACK|5c4ab3c9-d755-4a7a-aa79-bda94b6e6484| <core> [core/forward.c:588]: forward_request(): building failed #033[0m 21(28) WARNING: ACK|5c4ab3c9-d755-4a7a-aa79-bda94b6e6484| <script>: 5c4ab3c9-d755-4a7a-aa79-bda94b6e6484|message [ACK] returned code [-2] #033[36mkamailio_1 |#033[0m 21(28) ERROR: ACK|5c4ab3c9-d755-4a7a-aa79-bda94b6e6484| sl [sl_funcs.c:415]: sl_reply_error(): stateless error reply used: I'm terribly sorry, server error occurred
The Websocket list looks like this:
Server01:~# kamcmd ws.dump { connections: { 8: wss:245.245.245.245:56291 -> wss:123.123.123.123:4443 (state: OPEN, last used 47s ago, sub-protocol: sip) } info: { wscounter: 1 truncated: no } }
I’m not sure what I’m doing wrong. Any ideas?
[cid:88ec2af2-b56b-4fab-ae03-c4579009ca1f]
Take a look which socket it chose to send ACK to. Socket not found message correlates with wrongly configured destination URI or Request URI.
On Thu, Oct 9, 2025, 08:49 Сергей Приймак via sr-users < sr-users@lists.kamailio.org> wrote:
Hi All, I'm getting this message when trying to route request to a WebSocket client:
#033[0m 21(28) WARNING: ACK|5c4ab3c9-d755-4a7a-aa79-bda94b6e6484| <core> [core/msg_translator.c:2904]: via_builder(): TCP/TLS connection (id: 0) for WebSocket could not be found #033[0m 21(28) ERROR: ACK|5c4ab3c9-d755-4a7a-aa79-bda94b6e6484| <core> [core/msg_translator.c:2044]: build_req_buf_from_sip_req(): could not create Via header #033[0m 21(28) ERROR: ACK|5c4ab3c9-d755-4a7a-aa79-bda94b6e6484| <core> [core/forward.c:588]: forward_request(): building failed #033[0m 21(28) WARNING: ACK|5c4ab3c9-d755-4a7a-aa79-bda94b6e6484|
<script>: 5c4ab3c9-d755-4a7a-aa79-bda94b6e6484|message [ACK] returned code [-2] #033[36mkamailio_1 |#033[0m 21(28) ERROR: ACK|5c4ab3c9-d755-4a7a-aa79-bda94b6e6484| sl [sl_funcs.c:415]: sl_reply_error(): stateless error reply used: I'm terribly sorry, server error occurred The Websocket list looks like this: Server01:~# kamcmd ws.dump { connections: { 8: wss:245.245.245.245:56291 -> wss:123.123.123.123:4443 (state: OPEN, last used 47s ago, sub-protocol: sip) } info: { wscounter: 1 truncated: no } } *I’m not sure what I’m doing wrong. Any ideas?* __________________________________________________________ Kamailio - Users Mailing List - Non Commercial Discussions -- sr-users@lists.kamailio.org To unsubscribe send an email to sr-users-leave@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender!
You can also export TLS encryption keys and decrypt the WebSocket connection. This allows the math IP address and port between PCAP and Kamailio output. Now it completely does not match, public/private IP You can start Kamailio like SSLKEYLOGFILE=tls.keys kamailio
And then inject TLS keys into the pcap https://my.f5.com/manage/s/article/K42350941
After that, you can check call signaling via the WebSocket connection.
On Thu, Oct 9, 2025 at 12:31 PM Yuriy G via sr-users < sr-users@lists.kamailio.org> wrote:
Take a look which socket it chose to send ACK to. Socket not found message correlates with wrongly configured destination URI or Request URI.
On Thu, Oct 9, 2025, 08:49 Сергей Приймак via sr-users < sr-users@lists.kamailio.org> wrote:
Hi All, I'm getting this message when trying to route request to a WebSocket client:
#033[0m 21(28) WARNING: ACK|5c4ab3c9-d755-4a7a-aa79-bda94b6e6484| <core> [core/msg_translator.c:2904]: via_builder(): TCP/TLS connection (id: 0) for WebSocket could not be found #033[0m 21(28) ERROR: ACK|5c4ab3c9-d755-4a7a-aa79-bda94b6e6484| <core> [core/msg_translator.c:2044]: build_req_buf_from_sip_req(): could not create Via header #033[0m 21(28) ERROR: ACK|5c4ab3c9-d755-4a7a-aa79-bda94b6e6484| <core> [core/forward.c:588]: forward_request(): building failed #033[0m 21(28) WARNING: ACK|5c4ab3c9-d755-4a7a-aa79-bda94b6e6484|
<script>: 5c4ab3c9-d755-4a7a-aa79-bda94b6e6484|message [ACK] returned code [-2] #033[36mkamailio_1 |#033[0m 21(28) ERROR: ACK|5c4ab3c9-d755-4a7a-aa79-bda94b6e6484| sl [sl_funcs.c:415]: sl_reply_error(): stateless error reply used: I'm terribly sorry, server error occurred The Websocket list looks like this: Server01:~# kamcmd ws.dump { connections: { 8: wss:245.245.245.245:56291 -> wss:123.123.123.123:4443 (state: OPEN, last used 47s ago, sub-protocol: sip) } info: { wscounter: 1 truncated: no } } *I’m not sure what I’m doing wrong. Any ideas?* __________________________________________________________ Kamailio - Users Mailing List - Non Commercial Discussions -- sr-users@lists.kamailio.org To unsubscribe send an email to sr-users-leave@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender!
Kamailio - Users Mailing List - Non Commercial Discussions -- sr-users@lists.kamailio.org To unsubscribe send an email to sr-users-leave@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender!