From: Anthony Minessale Date: Tue, 14 Jul 2009 15:00:26 +0000 (+0000) Subject: MODSOFIA-16 X-Git-Tag: v1.0.4~173 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fc4a5f8498efee00f0b28d1473554b5f20c61ef9;p=thirdparty%2Ffreeswitch.git MODSOFIA-16 git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14244 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/endpoints/mod_sofia/mod_sofia.c b/src/mod/endpoints/mod_sofia/mod_sofia.c index 71268757f6..6ce5e9cf08 100644 --- a/src/mod/endpoints/mod_sofia/mod_sofia.c +++ b/src/mod/endpoints/mod_sofia/mod_sofia.c @@ -2658,6 +2658,10 @@ static switch_call_cause_t sofia_outgoing_channel(switch_core_session_t *session } gateway_ptr->ob_calls++; + + if (!switch_strlen_zero(gateway_ptr->from_domain)) { + switch_channel_set_variable(nchannel, "sip_invite_domain", gateway_ptr->from_domain); + } if (gateway_ptr->ob_vars) { switch_event_header_t *hp; diff --git a/src/mod/endpoints/mod_sofia/mod_sofia.h b/src/mod/endpoints/mod_sofia/mod_sofia.h index e1dbcaf7bc..bfdd30566b 100644 --- a/src/mod/endpoints/mod_sofia/mod_sofia.h +++ b/src/mod/endpoints/mod_sofia/mod_sofia.h @@ -356,6 +356,7 @@ struct sofia_gateway { char *register_context; char *expires_str; char *register_url; + char *from_domain; sofia_transport_t register_transport; uint32_t freq; time_t expires;