[Astpp-commit] SF.net SVN: astpp:[2300] trunk/freeswitch/astpp-fs-xml.pl
Brought to you by:
darrenkw
From: <dar...@us...> - 2010-02-10 05:33:52
|
Revision: 2300 http://astpp.svn.sourceforge.net/astpp/?rev=2300&view=rev Author: darrenkw Date: 2010-02-10 05:33:45 +0000 (Wed, 10 Feb 2010) Log Message: ----------- Fixed DID support Modified Paths: -------------- trunk/freeswitch/astpp-fs-xml.pl Modified: trunk/freeswitch/astpp-fs-xml.pl =================================================================== --- trunk/freeswitch/astpp-fs-xml.pl 2010-01-13 01:30:42 UTC (rev 2299) +++ trunk/freeswitch/astpp-fs-xml.pl 2010-02-10 05:33:45 UTC (rev 2300) @@ -244,6 +244,14 @@ did => $params->{'Caller-Destination-Number'} ); $xml .= $returned_data; + $xml .= "</condition>\n"; + $xml .= "</extension>\n"; + $xml .= "</context>\n"; + $xml .= "<context name=\"default\">\n"; + $xml .= "<extension name=\"" . $arg{destination_number} . "\">\n"; + $xml .= "<condition field=\"destination_number\" expression=\"" . $arg{destination_number} . "\">\n"; + $xml .= $returned_data; + } else { # Get the list of routes for the phone number. my @outboundroutes = This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |