[Freeswitch-users] Freeswitch not terminating call after receiving "503 Service not available" response.

Camila Troncoso ctroncoso at redvoiss.net
Wed Apr 16 17:03:20 MSD 2014


Hi,



My dialplan is like this, mi call matches "to_LCR_condition9":



<context name="default">



        <extension name="header_test_extension" continue="true">

                <condition field="${sip_user_agent}" expression="AddPac SIP
Gateway">

                        <action application="export"
data="sdp_m_per_ptime=false"/>

                </condition>

        </extension>



        <extension name="to_LCR_condition1">

                <condition field="network_addr"
expression="^64\.76\.154\.110$"/>

                <condition field="${switch_r_sdp}"
expression="/(.*)(a=fmtp:18 annexb=no)(.*)/s"/>

                <condition field="${switch_r_sdp}"
expression="/(.*)(a=fmtp:4 annexa=no)(.*)/s">

                        <action application="export"
data="sip_append_audio_sdp=a=fmtp:18 annexb=no"/>

                        <action application="export"
data="sip_force_audio_fmtp=annexa=no"/>

                        <action application="set" data="call_timeout=50"/>

                        <action application="set"
data="hangup_after_bridge=true"/>

                        <action application="export"
data="nolocal:absolute_codec_string=G729,G723"/>

                        <action application="set"
data="inherit_codec=true"/>

                        <action application="set" data="sip_invite_domain=
siplcr.redvoiss.net"/>

                        <action application="bridge"
data="sofia/$${domain}/${destination_number}@siplcr.redvoiss.net"/>

                </condition>

        </extension>





        <extension name="to_LCR_condition2">

                <condition field="network_addr"
expression="^64\.76\.154\.110$"/>

                <condition field="${switch_r_sdp}"
expression="/(.*)(a=fmtp:18 annexb=yes)(.*)/s"/>

                <condition field="${switch_r_sdp}"
expression="/(.*)(a=fmtp:4 annexa=yes)(.*)/s">

                        <action application="set" data="call_timeout=50"/>

                        <action application="set"
data="hangup_after_bridge=true"/>

                        <action application="export"
data="nolocal:absolute_codec_string=G729,G723"/>

                        <action application="set"
data="inherit_codec=true"/>

                        <action application="set" data="sip_invite_domain=
siplcr.redvoiss.net"/>

                        <action application="bridge"
data="sofia/$${domain}/${destination_number}@siplcr.redvoiss.net"/>

                </condition>

       </extension>



        <extension name="to_LCR_condition3">

                <condition field="network_addr"
expression="^64\.76\.154\.110$"/>

                <condition field="${switch_r_sdp}"
expression="/(.*)(a=fmtp:18 annexb=no)(.*)/s"/>

                <condition field="${switch_r_sdp}"
expression="/(.*)(a=fmtp:4 annexa=yes)(.*)/s">

                        <action application="export"
data="sip_append_audio_sdp=a=fmtp:18 annexb=no"/>

                        <action application="set" data="call_timeout=50"/>

                        <action application="set"
data="hangup_after_bridge=true"/>

                        <action application="export"
data="nolocal:absolute_codec_string=G729,G723"/>

                        <action application="set"
data="inherit_codec=true"/>

                        <action application="set" data="sip_invite_domain=
siplcr.redvoiss.net"/>

                        <action application="bridge"
data="sofia/$${domain}/${destination_number}@siplcr.redvoiss.net"/>

                </condition>

       </extension>





        <extension name="to_LCR_condition4">

                <condition field="network_addr"
expression="^64\.76\.154\.110$"/>

                <condition field="${switch_r_sdp}"
expression="/(.*)(a=fmtp:18 annexb=yes)(.*)/s"/>

                <condition field="${switch_r_sdp}"
expression="/(.*)(a=fmtp:4 annexa=no)(.*)/s">

                        <action application="export"
data="sip_force_audio_fmtp=annexa=no"/>

                        <action application="set" data="call_timeout=50"/>

                        <action application="set"
data="hangup_after_bridge=true"/>

                        <action application="export"
data="nolocal:absolute_codec_string=G729,G723"/>

                        <action application="set"
data="inherit_codec=true"/>

                        <action application="set" data="sip_invite_domain=
siplcr.redvoiss.net"/>

                        <action application="bridge"
data="sofia/$${domain}/${destination_number}@siplcr.redvoiss.net"/>

                </condition>

        </extension>



        <extension name="to_LCR_condition5">

                <condition field="network_addr"
expression="^64\.76\.154\.110$"/>

                <condition field="${switch_r_sdp}"
expression="/(.*)(a=fmtp:18 annexb=no)(.*)/s">

                        <action application="export"
data="sip_force_audio_fmtp=annexb=no"/>

                        <action application="export"
data="sip_append_audio_sdp=a=fmtp:4 annexa=no"/>

                        <action application="set" data="call_timeout=50"/>

                        <action application="set"
data="hangup_after_bridge=true"/>

                        <action application="export"
data="nolocal:absolute_codec_string=G729,G723"/>

                        <action application="set"
data="inherit_codec=true"/>

                        <action application="set" data="sip_invite_domain=
siplcr.redvoiss.net"/>

                        <action application="bridge"
data="sofia/$${domain}/${destination_number}@siplcr.redvoiss.net"/>

                </condition>

        </extension>



        <extension name="to_LCR_condition6">

                <condition field="network_addr"
expression="^64\.76\.154\.110$"/>

                <condition field="${switch_r_sdp}"
expression="/(.*)(a=fmtp:18 annexb=yes)(.*)/s">

                        <action application="export"
data="sip_append_audio_sdp=a=fmtp:4 annexa=no"/>

                        <action application="set" data="call_timeout=50"/>

                        <action application="set"
data="hangup_after_bridge=true"/>

                        <action application="export"
data="nolocal:absolute_codec_string=G729,G723"/>

                        <action application="set"
data="inherit_codec=true"/>

                        <action application="set" data="sip_invite_domain=
siplcr.redvoiss.net"/>

                        <action application="bridge"
data="sofia/$${domain}/${destination_number}@siplcr.redvoiss.net"/>

                </condition>

        </extension>



        <extension name="to_LCR_condition7">

                <condition field="network_addr"
expression="^64\.76\.154\.110$"/>

                <condition field="${switch_r_sdp}"
expression="/(.*)(a=fmtp:4 annexa=no)(.*)/s">

                        <action application="export"
data="sip_force_audio_fmtp=annexa=no"/>

                        <action application="export"
data="sip_append_audio_sdp=a=fmtp:18 annexb=no"/>

                        <action application="set" data="call_timeout=50"/>

                        <action application="set"
data="hangup_after_bridge=true"/>

                        <action application="export"
data="nolocal:absolute_codec_string=G729,G723"/>

                        <action application="set"
data="inherit_codec=true"/>

                        <action application="set" data="sip_invite_domain=
siplcr.redvoiss.net"/>

                        <action application="bridge"
data="sofia/$${domain}/${destination_number}@siplcr.redvoiss.net"/>

                </condition>

        </extension>



        <extension name="to_LCR_condition8">

                <condition field="network_addr"
expression="^64\.76\.154\.110$"/>

                <condition field="${switch_r_sdp}"
expression="/(.*)(a=fmtp:4 annexa=yes)(.*)/s">

                        <action application="export"
data="sip_append_audio_sdp=a=fmtp:18 annexb=no"/>

                        <action application="set" data="call_timeout=50"/>

                        <action application="set"
data="hangup_after_bridge=true"/>

                        <action application="export"
data="nolocal:absolute_codec_string=G729,G723"/>

                        <action application="set"
data="inherit_codec=true"/>

                        <action application="set" data="sip_invite_domain=
siplcr.redvoiss.net"/>

                        <action application="bridge"
data="sofia/$${domain}/${destination_number}@siplcr.redvoiss.net"/>

                </condition>

        </extension>



        <extension name="to_LCR_condition9">

                <condition field="network_addr"
expression="^64\.76\.154\.110$">

                        <action application="set" data="call_timeout=50"/>

                        <action application="set"
data="hangup_after_bridge=true"/>

                        <action application="export"
data="nolocal:absolute_codec_string=G729,G723"/>

                        <action application="set" data="sip_invite_domain=
siplcr.redvoiss.net"/>

                        <action application="bridge"
data="{sip_append_audio_sdp='a=rtpmap:18 G729/8000\n' 'a=fmtp:18
annexb=no\n' 'a=rtpmap:4 G723/8000\n' 'a=fmtp:4
annexa=no\n'}sofia/$${domain}/${destination_number}@siplcr.redvoiss.net"/>

                </condition>

        </extension>



        <extension name="to_PROXY_BORDE">

                <condition field="network_addr"
expression="^64\.76\.154\.36$">

                        <action application="set" data="call_timeout=50"/>

                        <action application="set"
data="hangup_after_bridge=true"/>

                        <action application="set"
data="sip_invite_domain=64.76.154.110"/>

                        <action application="export"
data="nolocal:absolute_codec_string=G729,PCMU,PCMA,iLBC"/>

                        <action application="bridge"
data="{sip_append_audio_sdp='a=rtpmap:18 G729/8000\n' 'a=fmtp:18
annexb=no\n'}sofia/$${domain}/${destination_number}@64.76.154.110"/>

                </condition>

        </extension>



        <extension name="to_PROXY_BORDE_2">

                <condition field="network_addr"
expression="^64\.76\.154\.198$">

                        <action application="set" data="call_timeout=50"/>

                        <action application="set"
data="hangup_after_bridge=true"/>

                        <action application="set"
data="sip_invite_domain=64.76.154.110"/>

                        <action application="export"
data="nolocal:absolute_codec_string=G729,PCMU,PCMA,iLBC"/>

                        <action application="bridge"
data="{sip_append_audio_sdp='a=rtpmap:18 G729/8000\n' 'a=fmtp:18
annexb=no\n'}sofia/$${domain}/${destination_number}@64.76.154.110"/>

                </condition>

        </extension>



</context>



*De:* freeswitch-users-bounces at lists.freeswitch.org [mailto:
freeswitch-users-bounces at lists.freeswitch.org] *En nombre de *Steven Ayre
*Enviado el:* martes, 15 de abril de 2014 18:46
*Para:* FreeSWITCH Users Help
*Asunto:* Re: [Freeswitch-users] Freeswitch not terminating call after
receiving "503 Service not available" response.



What does your dialplan look like?



A bridge with a 503 reply will fail. If FS is sending another INVITE that
suggests it's doing another bridge when the first fails.



On 15 April 2014 22:02, Camila Troncoso <ctroncoso at redvoiss.net> wrote:

Hi,



I have this scenario:



Proxy - FS -- LCR



I make a call from an user register in my proxy, passing trough freeswitch
( for media transcoding) , to my LCR server.

The LCR looks for one route for my call, but I doesn't found any, so It
replays "503 Service not available, no more gateways".

When FS receives this response , *it sends a re invite* to the LCR server,
falling again in the same error reply.



In my case I don't what FS to send the re invite , I need it to pass the
reply ("503 Service not available, no more gateways") to the proxy.



How can I manage this?



Regards,



Camila












*Camila Troncoso Solar **|* Ingeniero de Desarollo

+56 2 22408535 *·* +56 9 97327220  |   ctroncoso at redvoiss.net

Badajoz 130, piso 16, Las Condes   |  Santiago  - CHILE   |  *www.redvoiss.com
<http://www.redvoiss.com>*






_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting at freeswitch.org
http://www.freeswitchsolutions.com




Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20140416/c98f78c8/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 2894 bytes
Desc: not available
Url : http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20140416/c98f78c8/attachment-0001.gif 


Join us at ClueCon 2013 Aug 6-8, 2013
More information about the FreeSWITCH-users mailing list