]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
add proto_specific_hangup_cause to both legs
authorAnthony Minessale <anthony.minessale@gmail.com>
Fri, 5 Dec 2008 16:36:26 +0000 (16:36 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Fri, 5 Dec 2008 16:36:26 +0000 (16:36 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10614 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/sofia.c

index 6076ae1de21a3efc60654309904924e824e85e45..5ae270c367f1aced2d9f646143d644d031b3435e 100644 (file)
@@ -3049,6 +3049,7 @@ static void sofia_handle_sip_i_state(switch_core_session_t *session, int status,
                                        switch_channel_set_variable(channel, "sip_term_status", st);
                                        switch_snprintf(st, sizeof(st), "sip:%d", status);
                                        switch_channel_set_variable_partner(channel, SWITCH_PROTO_SPECIFIC_HANGUP_CAUSE_VARIABLE, st);
+                                       switch_channel_set_variable(channel, SWITCH_PROTO_SPECIFIC_HANGUP_CAUSE_VARIABLE, st);
                                        if (phrase) {
                                                switch_channel_set_variable_partner(channel, "sip_hangup_phrase", phrase);
                                        }