Revision
15408
Author
brian
Date
2009-11-10 09:57:34 -0600 (Tue, 10 Nov 2009)

Log Message

 add pai to responses 

Modified Paths

Diff

Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c (15407 => 15408)


--- freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c	2009-11-10 14:57:08 UTC (rev 15407)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c	2009-11-10 15:57:34 UTC (rev 15408)
@@ -424,6 +424,7 @@
 				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 @@
 
 					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());