From: Brian West Date: Thu, 6 Nov 2008 02:07:44 +0000 (+0000) Subject: tweak this because lose race really means it was answered elsewhere X-Git-Tag: v1.0.2~622 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b7b8570429ab964cce86fcf47fb452b9e6058518;p=thirdparty%2Ffreeswitch.git tweak this because lose race really means it was answered elsewhere git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10263 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/endpoints/mod_sofia/mod_sofia.c b/src/mod/endpoints/mod_sofia/mod_sofia.c index 8da4f5bea1..14bd72e268 100644 --- a/src/mod/endpoints/mod_sofia/mod_sofia.c +++ b/src/mod/endpoints/mod_sofia/mod_sofia.c @@ -331,7 +331,7 @@ switch_status_t sofia_on_hangup(switch_core_session_t *session) 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) { + } 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), "FreeSWITCH;cause=%d;text=\"%s\"", cause, switch_channel_cause2str(cause));