VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
larclap at yahoo.com Guest
|
Posted: Wed Jul 08, 2009 4:39 pm Post subject: [Freeswitch-users] Error in my dialplan |
|
|
I receive an error on an inbound call from my dialplan. I don’t have a clue what it means. Can someone help?
from log:
2009-07-08 09:54:50.172590 [DEBUG] switch_core_state_machine.c:78 sofia/external/+13105551212@66.53.188.187 Standard ROUTING
2009-07-08 09:54:50.172590 [INFO] mod_dialplan_xml.c:310 Processing +13105551212->1000 in context default
...
Dialplan: sofia/external/+13105551212@66.53.188.187 parsing [default->Local_Extension_Lars] continue=false
Dialplan: sofia/external/+13105551212@66.53.188.187 Regex (PASS) [Local_Extension_Lars] destination_number(1000) =~ /^(100[0-9])$/ break=on-false
Dialplan: sofia/external/+13105551212@66.53.188.187 Action set(dialed_ext=1000)
Dialplan: sofia/external/+13105551212@66.53.188.187 Action export(dialed_ext=1000)
2009-07-08 09:54:50.173586 [ERR] switch_regex.c:101 COMPILE ERROR: 1 [nothing to repeat][^+13105551212$]
Dialplan: sofia/external/+13105551212@66.53.188.187 Regex (FAIL) [Local_Extension_Lars] destination_number(1000) =~ /^+13105551212$/ break=on-false
Dialplan: sofia/external/+13104647614@66.53.188.187 ANTI-Action bind_meta_app(1 b s execute_extension::dx XML features)
Dialplan: sofia/external/+13104647614@66.53.188.187 ANTI-Action bind_meta_app(2 b s record_session::/usr/local/freeswitch/recordings/${caller_id_number}.${strftime(%Y-%m-%d-%H-%M-%S)}.wav)
...
Caller-Dialplan: [XML]
Caller-Caller-ID-Name: [+13105551212]
Caller-Caller-ID-Number: [+13105551212]
My dialplan:
<extension name="Local_Extension_Lars">
<condition field="destination_number" expression="^(100[0-9])$">
<action application="set" data="dialed_ext=$1"/>
<action application="export" data="dialed_ext=$1"/>
</condition>
<condition field="destination_number" expression="^${caller_id_number}$">
<action application="set" data="voicemail_authorized=${sip_authorized}"/>
<action application="answer"/>
<action application="sleep" data="1000"/>
<action application="voicemail" data="check default $${domain} 1000"/>
<anti-action application="bind_meta_app" data="1 b s execute_extension::dx XML features"/>
<anti-action application="bind_meta_app" data="2 b s record_session::$${base_dir}/recordings/${caller_id_number}.${strf
<anti-action application="bind_meta_app" data="3 b s execute_extension::cf XML features"/>
....
<anti-action application="db" data="insert/call_return/${dialed_ext}/${caller_id_number}"/>
<anti-action application="db" data="insert/last_dial_ext/${dialed_ext}/${uuid}"/>
<anti-action application="bridge" data="user/1000@$${domain},user/1001@$${domain},user/1009@$${domain}"/>
<anti-action application="answer"/>
<!--<anti-action application="send_display" data="Voicemail for ${dialed_ext}"/>-->
<anti-action application="sleep" data="1000"/>
<anti-action application="voicemail" data="default $${domain} 1000"/>
...
Thanks, Lars |
|
Back to top |
|
|
brian at freeswitch.org Guest
|
Posted: Wed Jul 08, 2009 4:47 pm Post subject: [Freeswitch-users] Error in my dialplan |
|
|
You have to escape the + with \+
/b
On Jul 8, 2009, at 4:37 PM, Lars Zeb wrote:
Quote: | 2009-07-08 09:54:50.173586 [ERR] switch_regex.c:101 COMPILE ERROR: 1 [nothing to repeat][^+13105551212$] |
|
|
Back to top |
|
|
rupa at rupa.com Guest
|
Posted: Wed Jul 08, 2009 4:49 pm Post subject: [Freeswitch-users] Error in my dialplan |
|
|
the problem is the + is coming from the network...
On Wed, Jul 8, 2009 at 4:46 PM, Brian West <brian@freeswitch.org (brian@freeswitch.org)> wrote:
--
-Rupa |
|
Back to top |
|
|
brian at freeswitch.org Guest
|
|
Back to top |
|
|
larclap at yahoo.com Guest
|
Posted: Wed Jul 08, 2009 5:15 pm Post subject: [Freeswitch-users] Error in my dialplan |
|
|
Still lost. What is the solution? 1) Remove the ability to login without
password (and the comparison between destination_number and
${caller_id_number}, 2) Create a condition which strips the + sign and
creates a new variable like caller_id_number, or 3) ???
Quote: | -----Original Message-----
From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-
users-bounces@lists.freeswitch.org] On Behalf Of Brian West
Sent: Wednesday, July 08, 2009 2:51 PM
To: freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] Error in my dialplan
Ah yes this line <condition field="destination_number" expression="^$
{caller_id_number}$">
We have since removed that ability to login without password from the
default configs.
/b
On Jul 8, 2009, at 4:48 PM, Rupa Schomaker wrote:
Quote: | the problem is the + is coming from the network...
On Wed, Jul 8, 2009 at 4:46 PM, Brian West <brian@freeswitch.org>
wrote:
You have to escape the + with \+
/b
On Jul 8, 2009, at 4:37 PM, Lars Zeb wrote:
Quote: | 2009-07-08 09:54:50.173586 [ERR] switch_regex.c:101 COMPILE ERROR:
1 [nothing to repeat][^+13105551212$]
|
_______________________________________________
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
users
Quote: | http://www.freeswitch.org
|
_______________________________________________
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
|
_______________________________________________
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 |
|
Back to top |
|
|
rupa at rupa.com Guest
|
Posted: Wed Jul 08, 2009 5:38 pm Post subject: [Freeswitch-users] Error in my dialplan |
|
|
Your choice, but I'd suggest 1 -- you don't want to trust the network callerid for authenticating voicemail access.
On Wed, Jul 8, 2009 at 5:14 PM, Lars Zeb <larclap@yahoo.com (larclap@yahoo.com)> wrote:
--
-Rupa |
|
Back to top |
|
|
brian at freeswitch.org Guest
|
|
Back to top |
|
|
|
|
|
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
|