]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
MODSOFIA-16
authorAnthony Minessale <anthony.minessale@gmail.com>
Tue, 14 Jul 2009 15:00:26 +0000 (15:00 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Tue, 14 Jul 2009 15:00:26 +0000 (15:00 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14244 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/mod_sofia.c
src/mod/endpoints/mod_sofia/mod_sofia.h

index 71268757f636b6f0a8a164c41e3b6fcab3274cd2..6ce5e9cf0875c312fbe700ca4645aa85a81bb599 100644 (file)
@@ -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;
index e1dbcaf7bc6b18f601fefc0dda42f437a6c98393..bfdd30566b7f1ab190d234828afdb9f70c3fc192 100644 (file)
@@ -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;