View previous topic :: View next topic |
Author |
Message |
lcm at marshap.com Guest
|
Posted: Thu Jun 11, 2009 1:05 pm Post subject: [Freeswitch-users] Dialplan extension using Caller-ID-Name n |
|
|
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 |
|
Back to top |
|
|
mrene_lists at avgs.ca Guest
|
Posted: Thu Jun 11, 2009 1:39 pm Post subject: [Freeswitch-users] Dialplan extension using Caller-ID-Name n |
|
|
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:
|
|
Back to top |
|
|
brian at freeswitch.org Guest
|
Posted: Thu Jun 11, 2009 1:48 pm Post subject: [Freeswitch-users] Dialplan extension using Caller-ID-Name n |
|
|
try destination_number
/b
On Jun 11, 2009, at 1:04 PM, Larry Marshall wrote:
Quote: | 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 (brian@freeswitch.org)
-- Meet us at ClueCon! http://www.cluecon.com |
|
Back to top |
|
|
|