Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] Dialplan extension using Caller-ID-Name not matching condition


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
lcm at marshap.com
Guest





PostPosted: Thu Jun 11, 2009 1:05 pm    Post subject: [Freeswitch-users] Dialplan extension using Caller-ID-Name n Reply with 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">

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





PostPosted: Thu Jun 11, 2009 1:39 pm    Post subject: [Freeswitch-users] Dialplan extension using Caller-ID-Name n Reply with quote

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:
Quote:
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








_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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
Back to top
brian at freeswitch.org
Guest





PostPosted: Thu Jun 11, 2009 1:48 pm    Post subject: [Freeswitch-users] Dialplan extension using Caller-ID-Name n Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services