mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-06 04:45:30 +00:00
off by one
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9140 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
e5bdb11b81
commit
13d880e923
@ -306,7 +306,7 @@ switch_status_t sofia_on_hangup(switch_core_session_t *session)
|
|||||||
bye_headers = stream.data;
|
bye_headers = stream.data;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (cause > 1 && cause < 128) {
|
if (cause > 0 && cause < 128) {
|
||||||
switch_snprintf(reason, sizeof(reason), "Q.850;cause=%d;text=\"%s\"", cause, switch_channel_cause2str(cause));
|
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) {
|
||||||
switch_snprintf(reason, sizeof(reason), "SIP;cause=200;text=\"Call completed elsewhere\"");
|
switch_snprintf(reason, sizeof(reason), "SIP;cause=200;text=\"Call completed elsewhere\"");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user