freeswitch icon indicating copy to clipboard operation
freeswitch copied to clipboard

Cannot send sip message "181 Call is being forwarded" via "respond"

Open Dgeka25594 opened this issue 3 years ago • 1 comments

Describe the bug I'm setting up a test lab IMS kamailio (IMS core) + FS (Application Server) and I want to get forwarding. Everything works as it should except FreeSWITCH cannot send sip message "181 Call is being forwarded" via "respond"

To Reproduce Steps to reproduce the behavior:

  1. dialplan config:
<extension name="local_call_ims" continue="true" uuid="ed335d98-d6df-4357-9529-39c3e0448b5c">
	<condition field="destination_number" expression="^(\d{3,16})$">
		<action application="export" data="call_direction=inbound" inline="true"/>
		<action application="set" data="domain_uuid=5adf1663-d133-4e8c-9e5d-21c71ea1454e" inline="true"/>
		<action application="set" data="domain_name=ims.mnc001.mcc001.3gppnetwork.org" inline="true"/>
		<action application="set" data="forwarding_number=79160000113"/>
		<action application="respond" data="181"/>
		<action application="set" data="sip_h_History-Info=<sip:${destination_number}@${domain_name}?Reason=SIP%3Bcause%3D302>index=1,<sip:${}@${forwarding_number};user=phone>;index=1.1"/>
		<action application="bridge" data="sofia/external_TAS/${forwarding_number}@${domain_name}"/>
	</condition>
</extension>
  1. Subscriber A calls subscriber B, who is forwarded to subscriber C
  2. The config specifies that the FreeSWITCH should send subscriber A sip response status 183
  3. In the FreeSWITCH logs, the message
EXECUTE [depth=0] sofia/external_TAS/[email protected] respond(181)
2022-07-06 16:43:12.790869 96.97% [DEBUG] mod_sofia.c:2351 Responding with 181 [Call Is Being Forwarded]
2022-07-06 16:43:12.790869 96.97% [WARNING] mod_sofia.c:2419 Cannot respond.

and no more error information is visible.

Expected behavior FreeSWITCH sends a response with status 183 to subscriber A

Package version or git hash

  • FreeSWITCH Version 1.10.7-release~64bit (-release 64bit)

Trace logs Attache fs_log.txt

Dgeka25594 avatar Jul 06 '22 13:07 Dgeka25594

Does anyone have any idea how to get more information or how to deal with this error? 2022-07-06 16:43:12.790869 96.97% [WARNING] mod_sofia.c:2419 Cannot respond. The problem is with sending informational messages 1xxx, if you send messages for an example of type 4xx, then FS sends them

Dgeka25594 avatar Jul 08 '22 09:07 Dgeka25594

according this link to code

its not gonna work with codes less then 399

zusrut avatar Aug 25 '22 13:08 zusrut

Hi @Dgeka25594,

I'm trying to integrate also the Kamailio IMS and FS. Can you share how you configure the Kamailio and FS?

justinmarkr avatar Sep 14 '22 07:09 justinmarkr

I'm trying to integrate also the Kamailio IMS and FS. Can you share how you configure the Kamailio and FS?

Thanks, I saw it in the code.

Dgeka25594 avatar Sep 16 '22 10:09 Dgeka25594

Hi @Dgeka25594,

I'm trying to integrate also the Kamailio IMS and FS. Can you share how you configure the Kamailio and FS?

Hello! this is not the topic of this topic, I close the question, but you can write to me about Kamailio IMS + FS by mail [email protected]. Whatever I can, I'll help.

Dgeka25594 avatar Sep 16 '22 10:09 Dgeka25594

Hi @Dgeka25594

I've send an email regarding my questions about Kamailio IMS + FS. Thank you

justinmarkr avatar Sep 19 '22 00:09 justinmarkr