Displaying 20 results from an estimated 11000 matches similar to: "How to encode plus sign in REGEX function in dialplan?"
2015 Nov 09
2
How to encode plus sign in REGEX function in dialplan?
On 06.11.2015 14:06, Rusty Newton wrote:
>
> It should be able to handle typical regular expression. I don't see
> anything wrong with what you are doing. Please file a bug at
> issues.asterisk.org/jira. Do include a debug log on the issue
> captured when Asterisk attempts to execute these extensions.
>
>
2004 Aug 27
2
Using regular expression in dialplan
Hi all,
Did anyone manage to make the GotoIf command work with regular expression ?
I would like to make the following thing:
${DTMSeq} contains a menu choice. Only 1, 2 and 3 are allowed menu choices.
If
DTMFSeq contains 1 or 2 or 3 => OK, Goto 4
else
Goto 2
I've tried the follwoing syntax but it is alway going to 2 whatever
the value of DTMFSeq:
exten =>
2010 Apr 28
2
dialplan
Hi guys:
i need to set an extension in my dialplan?in which?it divert calls if?the extension?contain specific series ,For example?:
I need to divert calls which contain 3333 to specific? extension?(contain ,not start or end with), as i know i should set Gotoif command but i?dont know what to set after that,Any help will be appreciated.???
-------------- next part --------------
An HTML
2009 Sep 23
3
Simple dialplan issue
I have an issue where a particular dialplan works but another doesn't. I'm
not sure why. To me they look identical and it has me stumped.
This works:
[to-test]
exten => _X., 1, SetCallerPres(allowed)
exten => _X., 2, Monitor(wav,/tmp/test-${UNIQUEID},mb)
exten => _X., 3, Ringing
exten => _X., 4, Dial(SIP/9330 at a-test,20,ro)
exten => _X., 5,
2009 Sep 22
2
Problem with dialplan -> gotoif ?
Hi
This is the output from show dialplan dial-sipmnf-sippt-pstn
[ Context 'dial-sipmnf-sippt-pstn' created by 'pbx_config' ]
's' => 1. Verbose(1,Dialing ${ARG1} on mnf pt pstn) [pbx_config]
2. Dial(SIP/${ARG1}@${SIPMNF},${ARG2},${OUTBDIAL}) [pbx_config]
3. Set(GLOBAL(FOUNDME)=${DIALSTATUS}) [pbx_config]
2006 Oct 26
3
dialplan issue - 1& 0 should be evaluated false
Helo List,
Sorry I missed the rest of my email in my previous post. Please see below.
I'm having an issue using the AND (&) operator evaluation in the code of my
dialplan. The dial plan is coded to detect inbound DTMF digits from callers.
key "1" is equivalent to "yes" and key "2" is equivalent to "no" in two
diferent contexts in the dial plan.
2013 Apr 18
5
ODBC dialplan looping problem
All,
Thank you in advance for any help.
I have a customer in need of a conferencing system. A requirement is for
users to each have their own PIN for the same bridge.
So, I put the list of users, PINs bridges into a MYSQL DB and used an ODBC
connector to parse the table.
Asterisk is connected and reads the rows as expected. The problem is that
if a user enters a PIN that is NOT in the table,
2007 Aug 15
3
Dialplan / AGI autoanswer question
Hi. I've got a working dial plan on my home system but there are problems
with it and I was hoping someone more comfortable with dial plans might be
able to help. In a nutshell here's what I'm currently doing on an incoming
outside phone call
[default]
Set(TIMEOUT(digit)=3
Set(TIMEOUT(response)=60
exten => s,1,NoOp(Answering in default context)
exten =>
2007 Jun 12
4
GotoIf Dialplan inquiry
Hi all,
I have the following in my extensions.conf:
exten => s,4,GotoIf($["${CALLERID(number)}" = "8585979857" |
"8585970327"]?15:5)
The numbers listed above are known spammer numbers. However, when I call
from any other CALLERID, it still directs me to s,15 which is the
Hangup() application. Here are logs from the asterisk CLI:
-- Executing
2004 Aug 17
6
dialplan woes
I am making some changes to the dial plan at the request of the company
president and have run into some problems. I have a couple of layers of
menu's and I am not sure how to handle them.
Here is how it should work (sorry for the crappy diagram)
main menu
--------Dial 1 for support
| Dial 2 for special
| Dial 3 sales
2006 Apr 11
1
Centos 4.x, gnome & key "repeating"
Hi,
I have a strange problem with Centos 4 (all kernels so far). When i am
running gnome (havent tried KDE) and i go into a browser or even just a
console window and type something a letter repeates it self 10-20 times
(likeeeeee thhhhhhissssss). I can turn this of the the keyboard settings
(repeating keys) but then i cant hold down backspace and so on ....I
think this is some kind of
2006 May 16
2
Using REGEX function
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<font face="Arial">Greetings,<br>
<br>
I'm running
2009 Oct 08
4
Dialplan problem
Hi people,
I have the following dialplan, but it doesn't have the behavior that I think it should have.
[default]
exten => 2001,1,Answer
exten => 2001,n,Dial(local/3005)
exten => 2001,n,Hangup
exten => 3005,1,Set(__RINGTIMER=10)
exten => 3005,n,Macro(exten-vm,novm,3005)
exten => 3005,n,Hangup
When I execute the Originate (AMI) with the argument Channel=local/2001, It rings
2006 Apr 07
1
regexp in gotoif
Hello!
this is a short one: in a gotoif-statement i would like to match a
variable to a number, where the number could have digits from 2-6.
asterisk only seems to be capable to match such a digit-range when used
in the extension, but not in a regexp, at least the following query
doesn't work:
exten => _X.,1,GotoIf($[${EXTEN} : 234[2-6]]?jump:)
obviously asterisk has a problem with
2014 Sep 07
2
Pattern Extension not working in Dialplan
Hi,
I created a dummy dialplan where I ask the user to enter the age.
[macro-age]
exten => s,1,Background(my/age) ;;Play recorded message to enter age
exten => s,n,WaitExten(10)
exten => _XX,1,Set(AGE=${EXTEN}) ;; this line is not executing, instead
dialplan is terminating with error given below.
exten => s,n,NoOp(${AGE})
exten => s,n,GotoIf($[${LEN(${AGE})} >
2015 May 29
2
Debugging dialplan
Please don't top post.
> Am 29. Mai 2015 09:42:55 MESZ, schrieb Luca Bertoncello
> <lucabert at lucabert.de>:
>> Zitat von jg <webaccounts173 at jgoettgens.de>:
>>> Yes, it is called "core set verbose 42", the other options is "core
>>> set debug 42". Enjoy the show!
I know you can specify a level to the verbose application,
2019 Feb 13
6
trouble removing + sign
I'm using BLACKLIST() to check numbers, which does not like leading +
signs. I want to test if there is a plus sign, and then remove it.
I tried:
; strip leading plus sign
same => n, Verbose( callerid 0:1 is ${CALLERID(num):0:1} )
same => n,ExecIf($["${CALLERID(num):0:1}" = "+"]?Set(CALLERID(num) =
${CALLERID(num):1})
2009 Jul 17
3
dialplan number matching
Hi,
How can I match an extension "ending with 3" (just an example but applicable to any other digit, including * or #)?
exten => _ZX.3,n,...
exten => _ZX.#,n,...
(the above does not work)
Can regular expressions be used in the standard dialplan (end with: "$")?
Thanks,
Vieri
2008 Jul 18
5
GotoIf Problem
Everybody,
I have a fall though context that, among other things, tests to see if
someone it trying to pick up a non-existent parked call (Defined from 90
to 99). I have the following:
[not-in-service]
exten => _X.,1,Wait(1)
exten => _X.,n,ResetCDR()
; **************************************************
; Check to see if the mis-dialed number was a parking
; slot. If so, jump to the
2004 Jun 04
1
Voicemail and Cisco phones: Dialplan example
Assume you have the messages button on your Cisco phone set to dial
3009. Here's an sample dialplan entry that will make the "DND" and
"ToVM" and "Messages" button work as expected. This should work for
both -stable and -head.
exten => 3009,1,GoToIf($[X${RDNIS} != X]3009,4)
exten => 3009,2,VoicemailMain()
exten => 3009,3,Hangup
exten =>