[Freeswitch-users] Hangup: Always the same Q.850 cause code

Peter P GMX Prometheus001 at gmx.net
Fri Sep 18 00:53:26 PDT 2009


Hello ,

I try  to hangup aa call with a certain cause code.

If the user dials a number which we currently do not serve we send
    <action application="set" data="sip_ignore_remote_cause=true"/>
    <action application="hangup" data="NO_ANSWER"/>
which gives a
    "SIP/2.0 480 Temporarily Unavailable." Message , which is fine.

For the target number being busy or having another state, we use this.
    <anti-action application="set" data="sip_ignore_remote_cause=true"/>
    <anti-action application="hangup" data="${hangup_cause}"/>
which gives a
    "SIP/2.0 486 Busy Here."" Message , which is fine in case of Busy.

However in both cases the SIP mssage has the following cause code:
    Reason: Q.850;cause=16;text="NORMAL_CLEARING".
which can lead to problems when forwarding to a PSTN Gateway.

How can we achieve, that the cause code is in sync with the deiivered
message?

We are on Trunk 14741M.

Best regards
Peter




More information about the FreeSWITCH-users mailing list