similar to: Variables In a Context

Displaying 20 results from an estimated 80000 matches similar to: "Variables In a Context"

2009 Apr 18
2
dialling multiple extensions in an internal context
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi there. I've done some googling around to try and find an example of what I'm trying to do, but it's one of those things that just seems hard to find the right terms to search for. If there's some documentation out there on this, I'd appreciate being pointed in the right direction. If not, then if someone has some
2005 Jan 29
0
Adding digits to incoming callids depending on context?
Which phones do you have? We are using Cisco 7940G phones and I have been able to do this by modifying the dialplan.xml for the phone to rewrite numbers as they are dialed to include the "9" in front of whatever is dialed from the phone. Now you can use the received calls menus without having to edit the numbers before hand. Calvin On Jan 29, 2005, at 12:13 PM, Stefan Gofferje
2005 Feb 06
4
Autodetecting faxes
I have managed to get spandsp working, and if I dial a specific extension I can receive faxes. WhooHoo. However, I was wanting to use the "fax detect" option in order to allow individuals to receive faxes, but can't get that to work. Given the following extensions (mainly copied from examples on the wiki), why is the call simply passed onto the sip device rather than being
2005 Sep 21
0
HOWTO: A simple AGI application to modify incomi ng CallerID on the fly using SQL Server and *not* UnixODBC
Requirements: 1. http://sourceforge.net/projects/odbcsock 2. The SQL server must be in the same subnet as your * server Howto: 1. Install ODBCSocketServer on your SQL server and verify connection with the included VB COM app from a Windows box. 2. Decide how you want to transform the Caller ID. In my case, I want to do a lookup of the CallerID number in SQL server and prepend the Caller ID
2008 Dec 15
3
Variables for dial plan
I want to have a arbitary named variable within the client's user details in sip.conf [client1] dialplan=NZ .......... In extensions.conf (Logic expressed using PHP style) if ($dialplan == NZ) { $NAT = 0; $INT = 00; }; and in the [outgoing] section ; Australia exten => _${INT}61[278]NXXXXXX.,1,Set(CDR(UserField)=AUSTRALIA) exten =>
2007 Feb 21
1
Asterisk to Cisco's Rescue...again...Authenticate LD Calls
Hi All, Just wanted to share a story: We turned up a new customer yesterday evening, typical situation, Cisco 2600 Router with T1 PRI card pointed to the customer's analog PBX with 2 data T1's linked back to our network. The router PRI was configured as a gateway on our CCM 4, like we've done numerous times in the past. The customer needed LD Authorization codes enabled, got
2004 Apr 16
1
Matching variable-length extensions with chan_zap in overlap dialling
I've been having trouble matching variable extensions on a zap channel (an E1 line). Doing it the extensions.conf way: [pri1] ; Match 8078078- calls include => m807nat include => m807mob include => m807oth [m807nat] exten => _80780782XXXXXXXXX,1,StripMSD(7) exten => _2XXXXXXXXX,1,SetVar,clidest=${EXTEN} exten => _2XXXXXXXXX,2,Goto(cli,s,1) [m807mob] exten =>
2005 Aug 08
0
trouble using variables with included contexts
I'm trying to set a variable in one context and use it in another: [c1] MY_GROUP = SIP/200&SIP/201 [c2] include c1 exten s,1,NoOp(${MY_GROUP}) The noop prints out a blank string. In [c1], I've tried exten s,1,SetVar(MY_GROUP=SIP/200&SIP/201) and exten s,1,SetVar(_MY_GROUP=SIP/200&SIP/201) and exten s,1,SetVar(__MY_GROUP=SIP/200&SIP/201) and exten
2005 Jul 11
2
Sharing variables between contexts
Hello all, I'm having trouble getting variables to work the way I want them to, let me begin with a simple explanation of the problem, I'm using something like this in my extensions.conf: [default] exten => 5000,1,SetVar(Recipient=test@test.com) exten => 5000,2,Goto(mailexten,s,1) exten => 6000,1,SetVar(Recipient=test@test.com) exten => 6000,2,Goto(mailexten,s,1)
2007 Jun 15
2
combining AGI with dialplans
On 2007-05-15 Tony Mountifield wrote (wrt using AGI scripts to dial out): > Can't comment on this one, as I never use AGI to dial. > My AGIs just set the context, extension and priority, > and exit to the dialplan to do any dialling. (http://article.gmane.org/gmane.comp.telephony.pbx.asterisk.user/185537) I would like to do this, but I am having trouble figuring out how. I have
2005 Sep 13
2
passing variables to h extension
Is there a way to pass variables/arguments to the h extension ? for example : [default] exten => _1098933X.,1,NoOp(CARRIER TWT->TIM, EXTEN: ${EXTEN}}, SIPCALLID: ${SIPCALLID}, SIPDOMAIN: ${SIPDOMAIN}) exten => _1098933X.,2,SetVar(_PROVA="bla") [lot of stuff, agi, goto, tricks and magic that happens] exten => _1098933X.,10,Dial(${CHAN_DEST},,L(3600000:3599900)) <-
2005 Jun 05
0
RXFax and Hangup context Question.
Hello: I have been using the asterisk system now for almost 5 months. I'm very happy with it's performance, however I have been using the RXFAX on and off for the last month or so. I gave up after a while and just had it route to my analog fax machine in the fax context. However, I have always had the implementation that it would go to a macro.. macro-faxreceive, and to the rxfax of the
2009 Feb 23
1
receive fax problem
Hi: I want to receive a fax with an E1 link connected to A102d card from a fax machine,but after dialling the phone number, it connects then will be busy.In fact asterisk can't detect the fax.These are zapata.conf, extensions.conf filels and debug in console: extensions.conf: [from-pstn] exten => 9711315,1,Answer() exten => 9711315,2,Wait(10) exten =>
2004 Oct 05
0
Using Macro's that cause loops, on purpose and using h, exten in default twice
Please see my extensions below. I will try to type you through this. In default, an extension 5149053538 is matched on. This fires a macro that determines what time is it, and resets a variable which is then used to call another macro to place a call. if the call is answered, and the far end hangs up, the dial macro exits, then the routing macro exits, and you are back to default. at this point
2013 Oct 07
1
IAX and Variables
Hi a new small question ;=) We have two Asterisk, connected in IAX2. On the first, in dialplan, we have: exten => _XX.,1,Set(IAXVAR(ACCOUNTID)=${CDR(accountcode)}) we sent into the IAXVAR "ACCOUNTID" the accountcode. On the second, in dialplan, we have: exten => 18,2,AGI(Caller-ID.agi,${IAXVAR(ACCOUNTID)}) That's work, the second server get the variable. I
2006 Apr 23
1
call queue problems
Hi everyone I am having problems with my call queue We currently run a customer care call center which has attendants login during the daytime. Customers who call the 'customer care line (a specific number) always get routed to the cutomer care queue (called 124). After hours, staffs of the Network operating center provide customer care services for customers who call in after the last
2004 Nov 28
1
SetVar ALERT_INFO
Hello, I've got my dialplan configured to do a double ring when a customer service call comes in, and a normal ring when an extension is dialed directly. When a customer service call is transferred, I want to ring to revert back to normal. In the local extension macro, I have the following ; make sure ring is set to default exten => s,n,NoOp(${ALERT_INFO}) exten =>
2008 Mar 05
2
Passing variables between two DUNDi/IAX2 peers
Hi. I am trying to pass a variable from one Asterisk PBX to another. I'm using DUNDi with IAX2. Is there a way to do it? I tried the following but it fails. On peer1: [dundi-outgoing] switch => DUNDI/priv exten => s,1,Set(CDR(userfield)=test) exten => s,2,Set(DUNDIVAR=${ARG1}#TEST) exten => s,3,NoOp(Passing ${DUNDIVAR} to DUNDi peer.) exten => s,4,Goto(${DUNDIVAR},1) On
2006 Feb 01
1
SetCDRUserField not working in A@H?
I have A@H 2.1, running * 1.2.1. I am trying to put information into the userfield with SetCDRUserField and AppendCDRUserField. However, the field is never populated in the cdr - I've checked the csv files and the MySQL asteriskcdrdb table. The field is defined in the MySQL table, but is always empty. The csv files that get created don't have a userfield at all, that is, there
2009 Jun 30
1
Setting CDR(userfield) from Macro called from feature doesn't work with cdr_mysql
cdr_mysql doesn't set the userfield when it's set inside a macro called from a feature (1.4.25, addons 1.4.8). I have a feature code: autorecord => *1,self,Macro,apprecord The apprecord macro looks like: [macro-apprecord] exten => s,1,Playback(beep) exten =>