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}.${strft ime(%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
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:
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 http://www.freeswitch.org
-- -Rupa
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:
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:
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 http://www.freeswitch.org
-- -Rupa _______________________________________________ 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
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) ???
-----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:
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:
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 http://www.freeswitch.org
-- -Rupa _______________________________________________ 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
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> wrote:
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) ???
-----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:
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:
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 http://www.freeswitch.org
-- -Rupa _______________________________________________ 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
_______________________________________________ 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
-- -Rupa
participants (3)
-
Brian West
-
Lars Zeb
-
Rupa Schomaker