Dialplan extension using Caller-ID-Name not matching condition
http://pastebin.freeswitch.org/9365 I do not know what I am doing wrong. I am trying to set the effective_caller_id_name and _number depending on the originating extension. I tried: <condition field=${caller_id_number}$ expression="^100[09]$" break="on-true"> and <condition field=${Caller-ID-Name}$ expression="^100[09]$" break="on-true"> and <condition field=${sip_from_user}$ expression="^100[09]$" break="on-true"> But each got substituted with the name of the extension in the log: Dialplan: sofia/internal/1000@192.168.10.29 Regex (FAIL) [Long Distance - flowroute] () =~ /^100[09]$/ break=on-true where the extension looks like: <extension name="Long Distance - flowroute"> Info from the log shows variable_sip_from_user: [1000] Caller-Caller-ID-Number: [1000] Can anyone help? Thanks, Lars
try destination_number /b On Jun 11, 2009, at 1:04 PM, Larry Marshall wrote:
http://pastebin.freeswitch.org/9365
I do not know what I am doing wrong. I am trying to set the effective_caller_id_name and _number depending on the originating extension.
I tried: <condition field=${caller_id_number}$ expression="^100[09]$" break="on-true"> and <condition field=${Caller-ID-Name}$ expression="^100[09]$" break="on-true"> and <condition field=${sip_from_user}$ expression="^100[09]$" break="on-true">
Brian West brian@freeswitch.org -- Meet us at ClueCon! http://www.cluecon.com
Your syntax is also wrong, it should be <condition field="${variablename}" expression="...." /> and NOT field=${varname}$ Math On 11-Jun-09, at 2:07 PM, Brian West wrote:
try destination_number
/b
On Jun 11, 2009, at 1:04 PM, Larry Marshall wrote:
http://pastebin.freeswitch.org/9365
I do not know what I am doing wrong. I am trying to set the effective_caller_id_name and _number depending on the originating extension.
I tried: <condition field=${caller_id_number}$ expression="^100[09]$" break="on-true"> and <condition field=${Caller-ID-Name}$ expression="^100[09]$" break="on-true"> and <condition field=${sip_from_user}$ expression="^100[09]$" break="on-true">
Brian West brian@freeswitch.org
-- Meet us at ClueCon! http://www.cluecon.com
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (3)
-
Brian West
-
Larry Marshall
-
Mathieu Rene