[Freeswitch-users] RFC3326 Reason Header field

Brian West brian at freeswitch.org
Wed Mar 3 16:32:28 PST 2010


Yes if the call was to say 10 phones at once... and the person answers they hangup with LOSE_RACE which results in the reason header doing that.

in mod_sofia

            if (cause > 0 && cause < 128) {                                                                                                                     
                switch_snprintf(reason, sizeof(reason), "Q.850;cause=%d;text=\"%s\"", cause, switch_channel_cause2str(cause));                                  
            } else if (cause == SWITCH_CAUSE_PICKED_OFF || cause == SWITCH_CAUSE_LOSE_RACE) {
                                                                                   switch_snprintf(reason, sizeof(reason), "SIP;cause=200;text=\"Call completed elsewhere\"");                                                     
            } else {                                                                                                                                            
                switch_snprintf(reason, sizeof(reason), "%s;cause=%d;text=\"%s\"", tech_pvt->profile->username, cause, switch_channel_cause2str(cause));        
            }                                                                                                                                         


/b


On Mar 3, 2010, at 6:20 PM, Helmut Kuper wrote:

> Hi Brian,
> 
> does this work for serial calls as well ?
> 
> 
> Am 03.03.2010 19:21, schrieb Brian West:
>> FreeSWITCH already does this for you on cancel when the call is answered elsewhere.
>> 
>> /b





More information about the FreeSWITCH-users mailing list