]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
add pai to responses
authorBrian West <brian@freeswitch.org>
Tue, 10 Nov 2009 15:57:34 +0000 (15:57 +0000)
committerBrian West <brian@freeswitch.org>
Tue, 10 Nov 2009 15:57:34 +0000 (15:57 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15408 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/mod_sofia.c

index 7f0dd93815f937c3071d965a9bb3186299288007..03b70611049c63712398499ed9ae8d4561764143 100644 (file)
@@ -424,6 +424,7 @@ switch_status_t sofia_on_hangup(switch_core_session_t *session)
                                if (!sofia_test_flag(tech_pvt, TFLAG_BYE)) {
                                        nua_respond(tech_pvt->nh, sip_cause, sip_status_phrase(sip_cause), 
                                                                SIPTAG_REASON_STR(reason), 
+                                                               SIPTAG_HEADER_STR(generate_pai_str(session)),
                                                                TAG_IF(!zstr(bye_headers), SIPTAG_HEADER_STR(bye_headers)),
                                                                TAG_END());
                                }
@@ -1550,6 +1551,7 @@ static switch_status_t sofia_receive_message(switch_core_session_t *session, swi
 
                                        nua_respond(tech_pvt->nh, code, su_strdup(nua_handle_home(tech_pvt->nh), reason), TAG_IF(to_uri, SIPTAG_CONTACT_STR(to_uri)),
                                                                SIPTAG_SUPPORTED_STR(NULL), SIPTAG_ACCEPT_STR(NULL),
+                                                               SIPTAG_HEADER_STR(generate_pai_str(session)),
                                                                TAG_IF(!zstr(extra_headers), SIPTAG_HEADER_STR(extra_headers)),
                                                                TAG_IF(!zstr(max_forwards), SIPTAG_MAX_FORWARDS_STR(max_forwards)), TAG_END());