[Freeswitch-users] FreeSWITCH overrides/dose no accept hangup cause

ivdreg ivdreg ivdreg at gmail.com
Tue Oct 5 08:05:48 PDT 2010


Hi Brian,

Correct me if I'm wrong but I thing this is a bug in 1.0.6 that exist also
in 1.0.7.
In src/mod/endpoints/mod_sofia/sofia.c:

void sofia_handle_sip_i_bye(switch_core_session_t *session, int status  ....
.....
.....
        if (sip->sip_reason && sip->sip_reason->re_protocol &&
(!strcasecmp(sip->sip_reason->re_protocol, "Q.850")

|| !strcasecmp(sip->sip_reason->re_protocol, "FreeSWITCH")

|| !strcasecmp(sip->sip_reason->re_protocol, profile->username)) &&
sip->sip_reason->re_cause) {
                tech_pvt->q850_cause = atoi(sip->sip_reason->re_cause);
                cause = tech_pvt->q850_cause;
        } else {
                cause = sofia_glue_sip_cause_to_freeswitch(status);
        }
......

If this if is false default cause for 503 ( returned by
sofia_glue_sip_cause_to_freeswitch ) is NORMAL_TEMPORARY_FAILURE.

Regards


2010/10/5 Brian West <brian at freeswitch.org>

> Everyone running 1.0.6 should be running git head right now it will be
> 1.0.7 any day now.  Stop living in the past!  ;)
>
> /b
>
> On Oct 5, 2010, at 7:14 AM, ivdreg ivdreg wrote:
>
> > SIP Cause of both NORMAL_TEMPORARY_FAILURE and NETWORK_OUT_OF_ORDER is
> 503 and is the same but Q.850 cause is different.
> > Is it normal behavior for 1.0.6 ? Is it also possible first FS to respect
> Q.850 cause ?
> >
> > Thanks
>
>
> _______________________________________________
> 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/20101005/5c050957/attachment.html 


More information about the FreeSWITCH-users mailing list