[Freeswitch-svn] [commit] r3295 - freeswitch/trunk/src/mod/endpoints/mod_sofia

Freeswitch SVN mikej at freeswitch.org
Thu Nov 9 12:19:16 EST 2006


Author: mikej
Date: Thu Nov  9 12:19:15 2006
New Revision: 3295

Modified:
   freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c

Log:
work around sofia bug where you need to set contact using tag on response to invite after you have done an outbound reg.  This still needs to be fixed right in the sofia lib.

Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c	(original)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c	Thu Nov  9 12:19:15 2006
@@ -1844,7 +1844,7 @@
 		}
 		break;
 	case SWITCH_MESSAGE_INDICATE_RINGING:
-		nua_respond(tech_pvt->nh, SIP_180_RINGING, TAG_END());
+		nua_respond(tech_pvt->nh, SIP_180_RINGING, SIPTAG_CONTACT_STR(tech_pvt->profile->url), TAG_END());
 		break;
 	case SWITCH_MESSAGE_INDICATE_PROGRESS: {
 		struct private_object *tech_pvt;
@@ -1875,12 +1875,14 @@
 			if (msg->message_id == SWITCH_MESSAGE_INDICATE_RINGING) {
 				nua_respond(tech_pvt->nh,
 							SIP_180_RINGING,
+							SIPTAG_CONTACT_STR(tech_pvt->profile->url),
 							SOATAG_USER_SDP_STR(tech_pvt->local_sdp_str),
 							SOATAG_AUDIO_AUX("cn telephone-event"),
 							TAG_END());
 			} else {
 				nua_respond(tech_pvt->nh,
 							SIP_183_SESSION_PROGRESS,
+							SIPTAG_CONTACT_STR(tech_pvt->profile->url),
 							SOATAG_USER_SDP_STR(tech_pvt->local_sdp_str),
 							SOATAG_AUDIO_AUX("cn telephone-event"),
 							TAG_END());



More information about the Freeswitch-svn mailing list