[Freeswitch-users] failure_causes and DC code...

Brian West brian at freeswitch.org
Thu Nov 13 16:50:35 MSK 2014


Here is some data that may help you understand the cause code mappings in
SIP:

map QSIG cause codes to SIP from RFC4497 section 8.4.1

see mod_sofia.c: hangup_cause_to_sip

map sip responses to QSIG cause codes ala RFC4497 section 8.4.4

see sofia_glue.c: sofia_glue_sip_cause_to_freeswitch

You would also need to look at the logs, you've provided no context.




On Thu, Nov 13, 2014 at 4:42 AM, Vladimir Getmanshchuk <vladget at gmail.com>
wrote:

> Looks like failure_causes do something wrong...
>
> dialplan:
>
> <context name="default">
>
>   <extension name="default">
>
>     <condition field="destination_number" expression="^\+?(.*)$">
>
>       <action application="set" data="failure_causes=17"/>
>
>        <action application="bridge"
> data="error/normal_circuit_congestion"/>
>
>       <action application="hangup" data="${last_bridge_hangup_cause}"/>
>
>     </condition>
>
>   </extension>
>
> </context>
>
>
> At sip:
>
> SIP/2.0 480 Temporarily Unavailable.
>
> Reason: Q.850;cause=16;text="NORMAL_CLEARING".
>
> Content-Length: 0.
> with commented <!-- <action application="set" data="failure_causes=17"/>
> -->
>
> at sip 503 with 34 as expected...
>
> --
> Yours sincerely,
> Vladimir Getmanshchuk
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.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
>



-- 

*Brian West*
brian at freeswitch.org


*Twitter: @FreeSWITCH , @briankwest*
http://www.freeswitchbook.com
http://www.freeswitchcookbook.com

*T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378)
*iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20141113/6018888b/attachment-0001.html 


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