Add \* to the default dial_string to make freeswitch look for users in all domains.

Adjust a few white spaces in some of the other files.
This commit is contained in:
Mark Crane 2012-09-03 21:48:16 +00:00
parent 9122d58c3c
commit ec9f6e025c
3 changed files with 3 additions and 2 deletions

View File

@ -41,6 +41,7 @@ else {
require_once "includes/header.php";
require_once "includes/paging.php";
//xml cdr include
$rows_per_page = 100;
require_once "xml_cdr_inc.php";

View File

@ -145,7 +145,7 @@
if (string.len(row.dial_string) > 0) then
dial_string = row.dial_string;
else
dial_string = "{sip_invite_domain=${domain_name},presence_id=${dialed_user}@${domain_name}}${sofia_contact(${dialed_user}@${domain_name})}";
dial_string = "{sip_invite_domain=${domain_name},presence_id=${dialed_user}@${domain_name}}${sofia_contact(*/${dialed_user}@${domain_name})}";
end
end);

View File

@ -1666,7 +1666,7 @@ function save_extension_xml() {
$extension = preg_replace("/[\*\:\\/\<\>\|\'\"\?]/", "", $extension);
$dial_string = $row['dial_string'];
if (strlen($dial_string) == 0) {
$dial_string = "{sip_invite_domain=\${domain_name},presence_id=\${dialed_user}@\${dialed_domain}}\${sofia_contact(\${dialed_user}@\${dialed_domain})}";
$dial_string = "{sip_invite_domain=\${domain_name},presence_id=\${dialed_user}@\${dialed_domain}}\${sofia_contact(*/\${dialed_user}@\${dialed_domain})}";
}
$xml .= "<include>\n";