mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-24 05:02:10 +00:00
add sip_hangup_disposition var
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9218 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -122,16 +122,16 @@ void sofia_handle_sip_i_bye(switch_core_session_t *session, int status,
|
||||
{
|
||||
const char *tmp;
|
||||
switch_channel_t *channel;
|
||||
private_object_t *tech_pvt;
|
||||
|
||||
if (!session)
|
||||
return;
|
||||
|
||||
channel = switch_core_session_get_channel(session);
|
||||
|
||||
tech_pvt = switch_core_session_get_private(session);
|
||||
|
||||
if (sip->sip_reason && sip->sip_reason->re_protocol &&
|
||||
(!strcasecmp(sip->sip_reason->re_protocol, "Q.850") || !strcasecmp(sip->sip_reason->re_protocol, "FreeSWITCH")) && sip->sip_reason->re_cause) {
|
||||
private_object_t *tech_pvt = switch_core_session_get_private(session);
|
||||
tech_pvt->q850_cause = atoi(sip->sip_reason->re_cause);
|
||||
}
|
||||
|
||||
@@ -150,7 +150,10 @@ void sofia_handle_sip_i_bye(switch_core_session_t *session, int status,
|
||||
if ((tmp = sofia_glue_get_unknown_header(sip, "P-RTP-Stat"))) {
|
||||
switch_channel_set_variable(channel, "sip_p_rtp_stat", tmp);
|
||||
}
|
||||
|
||||
|
||||
tech_pvt->got_bye = 1;
|
||||
switch_channel_set_variable(channel, "sip_hangup_disposition", "recv_bye");
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user