search for: set_extension

Displaying 4 results from an estimated 4 matches for "set_extension".

Did you mean: get_extension
2003 Oct 23
1
agi script forcing asterisk reload
Hi. I am using #include to include a file in extensions.conf. I have an agi perl script which modifies the #included file and then forces an asterisk reload with 'system("asterisk -rx reload")'; After the reload I use set_context, set_extension and set_priority to tell asterisk where I want it to carry on from which is line 2 of the following. exten => *80,1,AGI(bla.pl, ${EXTEN}) exten => *80,2,Background(please_wait_while) exten => *80,3,Hangup This works some of the time. However at other times the sip channel remains active...
2003 Oct 29
1
AGI question or something
Sorry for asking this question again but before I blow 100 dollars on a X100P I need to know this info: So does "SET EXTENSION <new extension>" allow for you to set which extension the rest of the call will occur over? So if a call comes into the switch and I could make the AGI script check the DID or DNIS which is really in the variable agi_dnid? After that I can do a database
2004 Jul 02
0
DISA and AGI: authenticate by caller ID? (resolved)
...ids WHERE cid='$callerid'"; $sth = $dbh->prepare($query); $sth->execute(); $active = $sth->fetchrow_hashref(); if ($active->{"active"}) { $AGI->set_context('ldincoming'); $AGI->set_extension('1011'); $AGI->set_priority(1); exit; } } # if we got here, there was no match found [auth failed], so play a message saying so # you could also log all auth failed [with caller ID ! :) ] # you could also transfer caller to an operator $AGI->s...
2004 Jul 01
2
DISA and AGI: authenticate by caller ID?
I'm having trouble getting an AGI exec command to spawn app_disa. The script executes properly, but does not spawn DISA. The CLI gives no helpful clues. Am I doing the exec incorrectly? I want to have a way to authenticate callers to the extension by Caller ID... if their caller ID is in my database and set to active, they can call out. [like a calling card but auth'd by CID instead