similar to: Shortening Context code

Displaying 20 results from an estimated 1000 matches similar to: "Shortening Context code"

2007 Aug 30
4
How to handle "+" prefix
Hi, How can I have A*k convert a call from +441793xxxxxx to Dial 00441793xxxxxx instead? With the "_+." Below I can "catch" the call, but EXTEN doesn't get set as expected.. and then I need to figure out how to pass the call onto the outgoing-pstn context. Not sure if a Goto would work here... [outgoing-pstn-international] exten => _+.,1,Set(EXTEN=00${EXTEN:+1}) exten
2008 Feb 14
6
UK -999 dialing issue
Hi Amit OK, the majority of our calls go out via zaptel fxo and pstn lines. When these are all busy, calls are routed via a VOIP provider here in the UK. All activity is recorded in our logs, and I can find no trace of either 999 or 112 (if since been reminded that in the UK, you can now also use 112 which is consistent with continental Europe). I can't find a call placed at the relevant
2008 Aug 21
2
Changing callerID in a context
Hello, I am trying to alter the outbound callerID for extensions within a context I have created. I wrote the following: exten => _9.,2,ExecIf($[$["${REALCALLERIDNUM}" = "360"] | $["$ {REALCALLERIDNUM}" = "670"]]|Set|CALLERID(num)=581560) exten => _9.,3,ExecIf($[$["${REALCALLERIDNUM}" = "361"] | $["$
2013 Dec 06
1
Paging in waves.
I've been working on writing a subroutine to page groups of phones at once and I'm having some difficulty. My goal is to have a user call an extension, I record the page they wish to play, I then page out that recorded file to the phones in groups. [sub-masspage] exten => s,1,NoOP same => n,Answer same => n,Set(filename=$PAGE) same => n,Wait(1) same =>
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})
2010 Sep 15
3
Skip Busy Agents/Channels from Queue
Is there a way skip / ignore the member whose status is busy in the Queue. I have two channel member in queue and i have set the peer limit 2 for these members. I want to skip those member who are currently on the call (answered to calls) and now their status is busy, if Queue see the busy status caller will not enter in the Queue and go to the next priority. [test-queue] strategy = rrmemory
2012 Aug 22
1
recording calls
I am trying to record calls on demand both inbound and outbound calls. I can record outbound calls just fine but not inbound calls or calls from an internally between extensions. I am using the latest asterisk 1.8.x certified version. On an outbound call I see: == Using SIP RTP CoS mark 5 -- Called SIP/ BVTrunk /7190000000 -- SIP/BVTrunk-00000163 is making progress passing it to
2016 Sep 01
2
Multiple phones when one is unregistered
On Tue, 30 Aug 2016 17:56:35 +0200 Administrator TOOTAI <admin at tootai.net> wrote: > Something like > > exten => 5555551111,1,Verbose(Door buzzer calling) > same => n,Set(toRing=) > same => n,ExecIf($["${DEVICE_STATE(SIP/user1)}" = "NOT IN > USE"]?Set(toRing=${toRing}&SIP/user1) Failed. I checked the online docs and the syntax seems to
2009 Jul 22
3
ExecIf and empty variables (early evaluation)
Imagine that you have this code: exten => _X!,n,Set(foo=${QUEUE_WAITING_COUNT(${QueueName})})) If ${QueueName} happens to be unset, this will cause a warning: [Jul 22 14:26:17] ERROR[8114]: app_queue.c:5187 queue_function_queuewaitingcount: QUEUE_WAITING_COUNT requires an argument: queuename The obvious solution: exten => _X!,n,ExecIf($["${QueueName}" !=
2020 Apr 21
3
Dialplan - using multiple AND or OR in set is it possible ?
Hello, we want to use something like same = n,ExecIf($["A" = "B"]?Set(C=1) & Set(D=2) & ...) Problem is that result gives C=1) & Set(D=2) & ... Is there a possibility to use multiple AND or OR in such a way ? -- Daniel
2016 Sep 01
2
Multiple phones when one is unregistered
On Thu, 1 Sep 2016 11:02:57 +0200 Administrator TOOTAI <admin at tootai.net> wrote: > > [Aug 31 21:52:00] WARNING[-1][C-0001fed5] pbx.c: No application > > 'ExecIf' for extension (unauthenticated, 5555551111, 3) > > > > Is there a module that I need to load? > > > > In case it matters I am running Asterisk 11.23.0 on NetBSD 7.0. > >
2007 Dec 06
1
Running AGI script if condition met?
Hello Some of our customers call with CID blocked. I'd like to save those numbers into a SQLite database using a command-line PHP script, so that I can... 1. Edit the CID name through a PHP web script which will just list all the customers in the database who have a phone number but no CID name set 2. Look up those customers' e-mail address from this database, and send them an e-mail
2020 Feb 13
4
Help with FUNC_MATH
Hi, I have some dialplan code that is trying to convert 12 hour time with AM/PM to 24 hour format. The code has something like this: Exten => 2,1,ExecIf(${MATH(${HOUR_SELECTED}<12)}?Set(HOUR_SELECTED=${MATH(${HOUR_SELECTED}+12,int)})) Earlier on in the dialplan HOUR_SELECTED is set to 12. When they press option 2 they are selecting PM. If the time is from 1PM to 11PM then I want to add 12
2015 Mar 27
2
call between snom 300 and aastra 6731i
You would need to give more information really. Your sip.conf file listing the entries for the phones especially which codecs are permitted. A copy of the 'asterisk -rvvv' console output when you make the call. On 27/03/15 17:05, Salaheddine Elharit wrote: > please no body has som with aastra can help me in this issue > > 2015-03-26 11:02 GMT+00:00 Salaheddine Elharit >
2017 Feb 24
2
BUG or ???
Got a strange situation [ext-queues] ... exten => h,2,ExecIf($[${CALLERID(num)} = ' ']?Set(var29=${SHELL(curl -X POST --header "Content-Type: application/json" --header "Accept: application/json" -d "{\"Phone\": ${FROMEXTEN}, \"Source\": \"asterisk\"}" "
2015 Mar 20
3
outbound calls
hello list i have an issue related to outbound calls i can contact all the number except on number given by our provider in trunk the issue just when i configure my trunk in our server but when i configure the trunk directly in x-lite i can contact this number without issue below the cli == Using SIP RTP TOS bits 184 == Using SIP RTP CoS mark 5 -- Executing [0149xxxxxx at
2006 Mar 10
1
Configs for Gradwell and inWeb
Does anyone here use either Gradewell or inWeb for service? They are both UK based. I'm trying to get a couple of inbound IAX2 based numbers from both of them to work with no luck at all. The one thing that sets these guys apart from the rest of companies offering inbound numbers is they tie the account to the IP of the asterisk server. Neither use register lines in iax.conf, there appears
2010 Nov 03
1
Ring back problem on SIP calls. Order of 183 Session Progress and 180 Ringing
Hello everyone! I've had this problem for a while and cant figure it out. When an outside caller calls an extension on my asterisk system, they do not hear any sort of ringing. Inside extensions calling other extensions do hear ringing. We have 3 other asterisk systems that are configured the same way, but do not have this problem. We think it has something to do with asterisk 1.6. The other
2020 Feb 13
2
Help with FUNC_MATH
John, That is correct. I am trying to figure out why Asterisk is executing the set part of the execif, if it's coming back as false. On Thu, Feb 13, 2020 at 2:10 PM John Kiniston <johnkiniston at gmail.com> wrote: > My Apologies Dovid, I think I misunderstood your request. > > You don't have the time you need to convert in the format of date string, > Instead you
2016 Aug 30
12
Multiple phones when one is unregistered
I have an extension that looks like this: exten => 5555551111,1,Verbose(Door buzzer calling) same => n,Dial(SIP/user1&SIP/user2&SIP/user3) The idea is that any of the three users can answer the phone to let someone in. The problem is that if, say, user2 unplugs his phone then the call immediately goes to his voice mail and the other two do not have the ability to open the door.