[Freeswitch-svn] [commit] r11832 - freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nua

FreeSWITCH SVN mikej at freeswitch.org
Wed Feb 11 09:05:32 PST 2009


Author: mikej
Date: Wed Feb 11 11:05:32 2009
New Revision: 11832

Log:
Thu Jan 15 12:06:29 CST 2009  Pekka Pessi <first.last at nokia.com>
  * check_session.c: make sure To header in ACK to [3456]XX is copied from response



Modified:
   freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nua/check_session.c

Modified: freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nua/check_session.c
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nua/check_session.c	(original)
+++ freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nua/check_session.c	Wed Feb 11 11:05:32 2009
@@ -1663,7 +1663,7 @@
 START_TEST(call_3_1_1)
 {
   nua_handle_t *nh;
-  struct message *invite;
+  struct message *invite, *ack;
 
   s2_case("3.1.1", "Call failure", "Call fails with 403 response");
   nh = nua_handle(nua, NULL, SIPTAG_TO(s2->local),
@@ -1676,10 +1676,15 @@
 
   invite = s2_wait_for_request(SIP_METHOD_INVITE);
   fail_if(!invite);
-  s2_respond_to(invite, NULL, SIP_403_FORBIDDEN, TAG_END());
+  s2_respond_to(invite, NULL, SIP_403_FORBIDDEN,
+		SIPTAG_TO_STR("UAS Changed <sip:To at Header.field.invalid>"),
+		TAG_END());
   s2_free_message(invite);
 
-  fail_unless(s2_check_request(SIP_METHOD_ACK));
+  ack = s2_wait_for_request(SIP_METHOD_ACK);
+  fail_if(!ack);
+  fail_if(strcmp(ack->sip->sip_to->a_display, "UAS Changed"));
+  s2_free_message(ack);
   fail_unless(s2_check_event(nua_r_invite, 403));
   fail_unless(s2_check_callstate(nua_callstate_terminated));
 



More information about the Freeswitch-svn mailing list