similar to: Using multiple variables in SIP.CONF setvar

Displaying 20 results from an estimated 20000 matches similar to: "Using multiple variables in SIP.CONF setvar"

2008 Jun 10
3
Asterisk : using setvar with IP Realtime and variable inheritance
Hi, I have what I think is a relatively advanced question. Any help is appreciated, even if it's not a complete answer. I am using Asterisk in mostly realtime fashion, specifically SIP registrations are in a MySQL table. This works fine (mostly). I also set a few variables in the setvar column, like this: callerid_internal=test <710>;did=5555551234 Again, this works
2008 Mar 28
1
sip.conf setvar option
Hi, does anybody know about the setvar option in asterisk's sip.conf. I am trying to define it for a peer that's used when making calls using the originate ami call, but it seems to not have any effect. Marcus -- Marcus Hunger - hunger at sipgate.de Telefon: +49 (0)211-63 55 55-61 Telefax: +49 (0)211-63 55 55-22 indigo networks GmbH - Gladbacher Str. 74 - 40219 D?sseldorf HRB
2009 Sep 03
1
setvar=CDR(accountcode)=${EXTEN} in sip.conf ???
Trying to do something like this in the sip.conf under my incoming provider profiles: setvar=CDR(accountcode)=${EXTEN} It seems to show up in the CDR but it's showing up exactly like this "${EXTEN}". Is there a way to stuff the DNIS (number dialed) into the accountcode for CDR? I have already accomplished setting on a number by number basis, I just want to do it globally for all
2012 Dec 01
1
setvar from chan_dahdi.conf
Would someone be able to give an example of a working use of setvar from chan_dahdi.conf? I am trying to create a custom variable like I use in sip.conf but I have been completely unsuccessful getting any variable set using setvar to appear for a DAHDI channel. I am running 1.8.11-cert8 and am using the newer format (but I have tried using the older [channels] format). Here is an example:
2007 Jan 24
0
iax.conf setvar= like sip.conf setvar=?
Hi All, I'm running 1.2.9.1, is setvar= implemented in iax.conf in a later version of asterisk? If so, which one? Thanks. JR -- JR Richardson Engineering for the Masses
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 =>
2009 Jun 04
3
PHP/AGI/SetVar Issue
Is there a limitation to the number of variables you can set from a PHP agi script? I have a simple example and I can't get it to let me set more than 1. I am pretty sure I am just missing something, but I've searched all over an can't find the answer. Here is the extensions.conf part: exten => _XXXXXXXXXX,1,AGI,diallocal.agi exten => _XXXXXXXXXX,n,NoOp(${ISLOCALCONTEXT})
2004 May 24
1
SetVar - bellcode and cisco phone
I am trying to have the ring types different for internal and external incoming calls. I have followed the guide on the wiki, the SetVar executes, in extensions.conf I have it as s,1, Yet it doesn't work? When the phone rings, the ring type is the one I chose on the phone, it rings same tone for both when I test. Using Asterisk Stable. Anyone got this working and can
2010 Jun 19
2
Using SetVar with System() is it possible?
Hi Guys, Is it possible to harvest the output of system into a SetVar(variable)? exten => s,n,SetVar(var=system(*asterisk -rx "sip show channels" | grep -c "(ulaw)")* * * *??? any problem with the syntax? * * * * * *Thanks,* * * -------------- next part -------------- An HTML attachment was scrubbed... URL:
2011 Jan 13
1
SetVar Warning
I had lines 3 and 4 and added line 1 and 2 to extensions.conf exten => 106,1,SetVar(CALLFILENAME=${TIMESTAMP}_${CALLERID(num)}) exten => 106,2,Monitor(wav,${CALLFILENAME},m) exten => 106,3,hint,SIP/106 exten => 106,4,Macro(stdexten,106,${HINT}) I received this warning: WARNING[31463]: pbx.c:1832 pbx_extension_helper: No application 'SetVar' for extension
2003 Oct 20
1
Setvar SIP_CODEC
Hello, I have a couple of 7960 and a quad T1 card on my asterisk box. I want to let the phones to use g729 when they "talk" to each other, but to use g711 when I'm going to route the call out of my network using the T1 card. Everything works just fine between the phones, but in order to be able to make calls through T1 I have to disallow the g729. For this purpose I have the
2003 Aug 25
2
SetVar on sample.call
Hi all!! Does anyone have a short example or even better - a working AGI script that uses "GET VARIABLE' from a /var/spool/asterisk/outgoing call that uses "SetVar"? Here's what I've tried with no luck so far: sample.call ================= Channel: SIP/1000 MaxRetries: 2 RetryTime: 60 WaitTime: 30 Application: Agi Data: playTasks.agi Callerid: Nightly Processor
2006 Jun 28
1
Realtime: how to use column setvar?
How can I use the column "setvar" in my dialplan? I am not sure if it is for that what I need: Many phones have the same jump in place, but need a few variables different, like tariff, silent, need_password, I have for tariff = 4 variations, for silent=2, for need_password=2 ... If I solve it like now, I need 4x4x2 = 32 context variations. If I could use a field in the Real-time
2011 Sep 10
2
Setvar in bcmxcp
Greetings, I have been using the bcmxcp_usb driver heavily over the last two years as part of a very successful product, first from NUT 2.4.1 and now from NUT 2.6.0. Now I have a need to do setvar of the outlet.n.delay.start variables, so recently I modified bcmxcp.c to do that. I've tested it and it works well for my purposes. My plans are to begin shipping that modified driver as part
2009 Nov 11
2
Bug or feature: SIP chanvars not overriden
Hello, Using 1.6.2-rc5, my settings include: [local-phone](!) context=mylocal type=friend nat=no canreinvite=no host=dynamic qualify=yes dtmf=info language=fr call-limit=5 subscribecontext=subs disallow=all allow=alaw t38pt_udptl=no setvar=accountcode=foo [168](local-phone) defaultuser=168 secret=pass168 callerid=John Doe<168>
2006 Dec 15
1
zapata.conf channel variable question
The setvar command below works fine in iax.conf and in sip.conf but not here in zaptel.conf. I need it to retrieve info from the AstDB. Advice is apreciated, can't seem to find an answer. ; define channels group=1 context=longdistance_users signalling=fxo_ks ;FXO Sig for Phone callerid="John French" <103> mailbox="101" callwaiting=yes threewaycalling=yes
2009 Mar 03
2
Access sip.conf's mailbox from dialplan ?
Hello, In sip.conf, each peer/friend/user entry gathers several parameters such as type, canreinvite or mailbox. How can you specifically access to mailbox value from dialplan ? I know how to access custom parameters (ie setvar=FOO=value) but I don't know to access standard parameters. I'm specifically concerned to access to mailbox's value (from a given entry) but would be
2008 Jun 11
2
Losing CDR(accountcode)
Hi, I`m occassionally seeing CDR(accountcode)'s value empty at a place in my diaplan where it was filled with some value a few lines before, with nothing else having changed it. It`s giving me headaches (as I rely on it for MySQL queries). Anything I can do? Mick -------------- next part -------------- An HTML attachment was scrubbed... URL:
2016 Feb 16
2
SIP URI set 'telephone-context='
Hi all, I am currently using asterisk 11, and I am trying to figure out how to set the uri parameter telephone-context. I need to set it for outbound calls for a specific carrier when making emergency calls and don't seem able to find the option to set it. Regards Impy aka Mick -------------- next part -------------- An HTML attachment was scrubbed... URL:
2004 Apr 16
0
Proble with sample.calla and setvar
Hi I'm using the following sample.call Channel: Zap/2 MaxRetries: 2 RetryTime: 60 WaitTime: 30 Context: fromfax Extension: 3 Priority: 1 SetVar: num=777777 in extensions.conf I have: [fromfax] exten => 3,1,Wait,1 exten => 3,2,SayDigits(${num}) exten => 3,3,Hangup But it only says 10 it seems variable is not set do I use correctly SetVar ? How can I read variables assigned