search for: context2

Displaying 20 results from an estimated 23 matches for "context2".

Did you mean: context
2017 Aug 15
2
transfer type to 'local' context
Hi all, is there an easy way to get a 'copy' of a type living in another context into the local context? Background: when calling a function residing in a different module (context2) from a module (context1), we first need to introduce a function declaration of the function with empty body. However, in order to do so, we need the function type. pFuncInContext2->getType gives us the type in context2. The returnType or argument type might refer to some types yet only defined...
2009 Mar 09
0
Crash when reloading AEL
...it should. context contexta { _X. => { NoOp(Check where to send the call); ifTime(0:00-4:59|mon-fri|*|*) { Playback(prompts/SwitchClosedRT_); } else ifTime(5:00-6:29|mon-fri|*|*) { jump ${EXTEN}@context1; } else ifTime(6:30-18:59|mon-thu|*|*) { jump ${EXTEN}@context2; } else ifTime(6:30-21:59|fri|*|*) { jump ${EXTEN}@context2; } else ifTime(19:00-23:59|mon-thu|*|*) { jump ${EXTEN}@context1; } else ifTime(22:00-23:59|fri|*|*) { jump ${EXTEN}@context1; } else ifTime(0:00-9:59|sat|*|*) { jump ${EXTEN}@context1; } else if...
2006 Feb 01
1
Digit timeouts vs includes in diaplan
Hi, I have a little situation with my dialplan, and I am wondering if what I want is even possible. Here it is: I have three contexts, context1 includes contexts2, and context2 includes context3. In other words, in context1 all extensions of context2 and context3 are valid (and actually working, so that's good). I am using those context for the sake of code clarity and reuse, and for this reason they are absolutely needed. Most extensions work allright, EXCEPT i...
2006 Aug 08
1
Named routes and url generation?
Hi all In my application I''ve some named routes defined this way... map.label_context1 '':context1/label'', :controller => ''mycontroller'' map.label_context2 '':context1/:context2/label'', :controller => ''mycontroller'' map.label_context3 '':context1/:context2/:context3/label'', :controller => ''mycontroller'' The controller for the 3 routes is the same but obviously it behaves dif...
2012 Apr 05
3
Dial Plan - Routing via Caller ID
...0.1. I am trying to set up some routing in my dial plans and having some issues (the issue being that I don't quite understand all of the syntax and patterns that can be used: Examples: DID1 = 6140000000 DID2 = 6140000001 CNAME1 = 6149999999 CNAME2 = 6149999998 CNAME3 = 6149999997 context1 context2 context3 I have looked at several examples (patterns) and I am a little confused and am looking to the list for guidance. Assuming I have (2) two DIDs and I want to route incoming calls according to the DID called and as well as the Caller ID various contexts. If I wanted to route a call from...
2008 Oct 21
2
[help] Realtime Swich any context dinamically
...to working with realtime and mysql for any context i have to insert (switch => Realtiem/context at extensions) statment into extensions.conf for example if i want to have 10 context, i have to insert these lines into extension.conf : [context1] switch => Realtiem/context1 at extensions [context2] switch => Realtiem/context2 at extensions [context3] switch => Realtiem/context3 at extensions ................. ................. i want to switch these 10 context whithout insert these 10 lines .... how can i switch any context to real time dinamically ? -------------- nex...
2013 Oct 16
1
Use Asterisk Realtime Extensions with Switch-statement and include-statement
...t; Realtime/includecontext at realtime_ext in database : INSERT INTO `my_extensions_table` VALUES (NULL, 'includecontext', 'include', =>, 'context1', ''); INSERT INTO `my_extensions_table` VALUES (NULL, 'includecontext', 'include', =>, 'context2', ''); INSERT INTO `my_extensions_table` VALUES (NULL, 'includecontext', 'include', =>, 'context3', ''); This would then replace the following in extensions.conf : [includecontext] include => context1 include => context2 include => contex...
2010 Jul 28
2
IAX authentication oddity - Known issue? Fixed?
...We are migrating to 1.6, and I will re-test ASAP, though it is quite hard to replicate, but I am curious to know whether it is a known IAX issue in 1.2. We had 2 users in iax.conf: [user1] username=user1 secret=secret1 context=context1 host=iax.hostname.com [user2] username=user2 secret= context=context2 host=dynamic deny=0.0.0.0/0.0.0.0 allow=1.2.3.0/255.255.255.0 A call came in with username=user2, the call was from the valid IP range specified in [user2], and the IAX debug trace showed the call as UNAUTHENTICATED. So far so good. The issue is that once the call was "in", the channel...
2005 Jun 20
0
Contexts Calling Each Other
I have a question about contexts calling each other. We have one * box that is setup for multiple companies. Calls come into the default context and that hands them out to the context for each company. For example, 1x goes to context1, 2x goes to context2, etc. Each context includes "outbound" which says that if you dial 1+ or a local number, you are sent out to the Cisco gateway. The question is "how do I set it up so that when a user from context2 dials a user from context1 (using the full 10 digit number), it goes direct to c...
2006 Feb 21
5
Voicemail 0 for operator call routing
Does anyone know of a way to specify what extension is dialed when 0 is pressed in the voicemail system. I have a situation where there is more than one secretary and they want the 0 to redirect to the appropriate secretary for the two groups of people. So an example would be: 555-1234 -> voicemail -> Secretary 1 555-1235 -> voicemail -> Secretary 2 Any help would be greatly
2008 Jun 21
0
One VOIP Provider Multiple registrations <to> multiple inbound contexts ?
...ister => 7341112222:testpassword at sip.exampleprovider.net ; standard inbound to 's' in default inbound context ; would like to be able to direct that inbound call ; into context1 instead of common default defined register => 7341113333:testpassword at sip.exampleprovider.net/100 at context2 ;example of me trying to get inbound call to 102 in context: context2 [peer-1] type=peer context=context1 secret=testpassword username=7341112222 fromuser=7341112222 fromdomain=sip.exampleprovider.net host=sip.exampleprovider.net ;register=yes usereqphone=yes insecure=very nat=yes canreinvite=...
2009 Jun 04
3
PHP/AGI/SetVar Issue
...echo ' EXEC SetVar ISLOCALCONTEXT="'.$row['context'].'"'; echo ' EXEC SetVar ISLOCALDID="'.$row['did'].'"'; If I run it is as, ISLOCALCONTEXT gets set, but not ISLOCALDID: -- Executing NoOp("SIP/3333-081d2c38", "CONTEXT2") in new stack -- Executing NoOp("SIP/3333-081d2c38", "") in new stack If I flip their order in the agi, then ISLOCALDID gets set, but not ISLOCALCONTEXT: -- Executing NoOp("SIP/3333-081d8d78", "") in new stack -- Executing NoOp("SIP/3333-081d8...
2004 Aug 30
1
IAX.conf problem (NEWBIE ALERT!)
...below with a different entry for each number pointing to a different context, incoming numbers always use the same entry and ignore the others. PSTN Numbers below are fictitious. [0700681001] type=friend username=08700681001 context=context1 [0700681002] type=friend username=08700681002 context=context2 [0700681003] type=friend username=0700681003 context=context3 So if the first incoming number 0700681001 arrives pointing at context1 it works, when incoming number 0700681002 arrives it seems to still use the entry for 0700681001 and therefore goes to the wrong context in extensions.conf and the...
2009 Jun 29
0
FW: re: Asterisk Outbound with Failover, alarm notification, dial status and hangupcause capturing to CDR from Dialplan
...f($[${result} > 0]?50:100) ;Odd calls route to outbound-1, even calls to outbound-2 exten => _XXX.,50,gotoif($[${dialout} > 0 ]?firstfail) exten => _XXX.,n,Set(dialout=${MATH(${dialout}+2)}) exten => _XXX.,n,NoOp(${dialout}) exten => _XXX.,n,dial(${route2}/${EXTEN}@${context2}) exten => _XXX.,n,goto(after-dial) exten => _XXX.,n(firstfail),set(try=${MATH(${dialout}+2)}) exten => _XXX.,n,dial(${route2}/${EXTEN}@${context2}) ;attempt to dial out via route 2 exten => _XXX.,n,goto(after-dial) ;after attempting to dial, go to after-dial exten => _...
2005 Oct 14
1
Access to trunks
Are there any configuration options to allow certain sip/iax accounts to dial out over specific trunks, and also to stop them dialing out over other trunks. Thanks in advance Bails
2007 May 30
0
Configuring Asterisk as Gateway SIP-H.323 via ooh323
...lerid=asterisk gateway=yes gatekeeper = 192.57.108.112 ;the address of my Tandberg GK faststart=yes h245tunneling=yes context=default disallow=all allow=gsm allow=ulaw allow=alaw dtmfmode=rfc2833 [myuser1] type=user context=context1 disallow=all allow=gsm allow=ulaw [mypeer1] type=peer context=context2 ip=a.b.c.d ; UPDATE with appropriate ip address port=1720 ; UPDATE with appropriate port e164=101 [myfriend1] type=friend context=default ip=a.b.c.d ; UPDATE with appropriate ip address port=1720 ; UPDATE with appropriate port disallow=all allow=ulaw e164=12345 rtptimeout=60 dtmfmode=rfc2833 Anyo...
2008 Sep 25
1
Create virtual extension
Have, i want to create a sip extension to a context in my dialplan. how i can do that?
2010 Jul 02
1
DAHDI FXO calls and the 's' extension. No, Jackie-O doesn't work here--it's just an example. Sheesh!
...I want DAHDI/1-1 to go to 1234 I want DAHDI/1-2 to go to 2345 I want DAHDI/1-3 to go to 3456 ...etc What is the CLEANEST way to do this? Yes, I can create a private context for each DAHDI channel but that seems messy and verbose. [useless-context1] exten => s,1,goto(context,1234,1) [useless-context2] exten => s,1,goto(context,2345,1) [useless-context3] ...etc Slightly better, I can eliminate other contexts by hooking the channel variable, like this, but this also messier than it COULD be. [context] exten => s,1,GotoIf($["${CHANNEL}" = "DAHDI/1-1"]?1234) exten =>...
2007 Apr 19
2
extensions.conf #include behaviour
Greetings list, A quick question regarding extensions.conf #include behaviour if I may. I'm sure someone will know the answer off the top of their head... How does asterisk handle "overloading" of contexts. For example, say an extension exists in extensions.conf as follows: [incoming] <some stuff> Then one includes a, b and c.conf, each of which also contains: [incoming]
2005 Aug 02
2
How to let ZAPHFC work with and act on different incoming MSNs?
...-) ) In modem.conf ====== context=incoming_teles group=>0 msn=402911101 msn=402911102 device => /dev/ttyI0 device => /dev/ttyI1 ====== In extensions.conf: ====== [incoming_teles] exten => s,1,Goto(spiriimpuls,s,1) exten => 4029111101,1,Goto(context1,s,1) exten => 4029111102,1,Goto(context2,s,1) ====== With the ZAPHFC driver it seems that it reacts on every MSN number on that line and it always goes to the 's' extension in the specified context, it does not make use of the MSN id. How to get the same results with the ZAPHFC / zapata.conf / zaptel.conf and/or other config fi...