git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14203 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris
2009-07-10 20:32:23 +00:00
parent ff44ec8482
commit 1ccd61b097
3 changed files with 18 additions and 8 deletions
+4 -1
View File
@@ -383,7 +383,10 @@ switch_status_t sofia_on_hangup(switch_core_session_t *session)
} 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));
switch_snprintf(reason, sizeof(reason), "%s;cause=%d;text=\"%s\"",
tech_pvt->profile->username,
cause,
switch_channel_cause2str(cause));
}
if (switch_channel_test_flag(channel, CF_ANSWERED)) {