]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
add more hint fields to send to the xml-interface for remote getters.
authorMichael Jerris <mike@jerris.com>
Mon, 25 Sep 2006 15:33:08 +0000 (15:33 +0000)
committerMichael Jerris <mike@jerris.com>
Mon, 25 Sep 2006 15:33:08 +0000 (15:33 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2831 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/dialplans/mod_dialplan_xml/mod_dialplan_xml.c

index e6a84577f8193a451988c353d2156a60c041287d..7e3282fb4f2f467499b91f687e4713b86b757518 100644 (file)
@@ -274,7 +274,14 @@ static switch_caller_extension_t *dialplan_hunt(switch_core_session_t *session)
        switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "Processing %s->%s!\n", caller_profile->caller_id_name,
                                          caller_profile->destination_number);
        
-       snprintf(params, sizeof(params), "context=%s&dest=%s", caller_profile->context, caller_profile->destination_number);
+       snprintf(params, sizeof(params), "context=%s&dest=%s&cid_name=%s&cid_num=%s&netaddr=%s&ani=%s&ani2=%s&rdnis=%s&source=%s&chan_name=%s&uuid=%s", \r
+                       caller_profile->context, caller_profile->destination_number,\r
+                       caller_profile->caller_id_name, caller_profile->caller_id_number,\r
+                       caller_profile->network_addr?caller_profile->network_addr:"", \r
+                       caller_profile->ani?caller_profile->ani:"", \r
+                       caller_profile->ani2?caller_profile->ani2:"",\r
+                       caller_profile->rdnis?caller_profile->rdnis:"", \r
+                       caller_profile->source, caller_profile->chan_name, caller_profile->uuid);\r
 
        if (switch_xml_locate("dialplan", NULL, NULL, NULL, &xml, &cfg, params) != SWITCH_STATUS_SUCCESS) {
                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "open of dialplan failed\n");