search for: availorigchan

Displaying 8 results from an estimated 8 matches for "availorigchan".

2010 Jul 23
2
application call to Gosub affects flow of control, and needs to be re-written using AEL
...Return; } .... // left over _X. => { Gosub(pstnInterface1,${EXTEN},1); Return; } } context pstnInterface1 { _X. => { // setup the interface callerid/secret status ChanIsAvail(DAHDI/g1); if( ! ${ISNULL(${AVAILORIGCHAN})} ) { Dial(DAHDI/g1/${ext},,${dialopts}); } Return; } } context pstnInterface2 { _X. => { // setup the interface callerid/secret status ChanIsAvail(SIP/....);...
2011 Mar 15
4
[1.4] Asterisk doesn't hang up?
...from remote end originate Zap/1/5551234 extension 8888 at internal ========== extensions.conf ;call from XLite to check line status ;Loop until Zap/1 is available exten => 1111,1,Set(INDEX=0) exten => 1111,n,While(1) exten => 1111,n,ChanIsAvail(Zap/1) exten => 1111,n,GotoIf($["${AVAILORIGCHAN}" != "" | ${INDEX} > 10]?exit) exten => 1111,n,Wait(5) exten => 1111,n,Set(INDEX=$[${INDEX} + 1]) exten => 1111,n,EndWhile() ;how did we exit loop? exten => 1111,n(exit),GotoIf($["${AVAILORIGCHAN}" = ""]?na:ok) exten => 1111,n(na),NoOp(Channel s...
2009 Mar 26
3
Know who's logged in
...ridge: <none> Indirect Bridge: <none> -- PBX -- Context: XXXXXXXXXXX Extension: XXXXX Priority: XXXXXX Call Group: 0 Pickup Group: 0 Application: AgentLogin Data: (Empty) Blocking in: ast_waitfor_nandfds Variables: AVAILSTATUS=0 AVAILORIGCHAN=SIP/303 AVAILCHAN=SIP/303-0949f890 SIPCALLID=Y2MzOTc0NmExYjVkNDNjMzhhY2I1MDMwNTk0NTJkYzQ. SIPUSERAGENT=X-Lite release 1100l stamp 47546 SIPDOMAIN=XXXXXXXXX SIPURI=sip:303 at XXXXXXXXXXXXXXXXX CDR Variables: level 1: clid="Ext. 303" <303> level 1: src=303 level 1: dst=XXXXXXXXXX l...
2010 Aug 09
1
op_div: non-numeric argument
...-zero on 'SIP/L2Net-SS-000000db' sipy*CLI> core show version *Pertinent DialPlan Logic...* [from-pstn] exten => NPANXX7299,1,Set(TIMEOUT(absolute)=60) exten => NPANXX7299,2,Page(Local/7299 at page) [macro-page]; exten => s,1,ChanIsAvail(${ARG1}|js) exten => s,n,GoToIf($[${AVAILORIGCHAN} = ""]?fail:autoanswer) ; SUSPECTED ISSUE exten => s,n(autoanswer),Set(_ALERT_INFO="RA") exten => s,n,SIPAddHeader(Call-Info: <sip:XXX.XXX.XXX.XXX>\;answer-after=0) exten => s,n,Dial(${ARG1}||) exten => s,n(fail),Hangup Thanks in advance for any insight that...
2013 May 27
0
ChanIsAvail function is breaking the round robin strategy
...line (extra channels) and i'd like to schedule the outgoing calls with a round-robin strategy. If all the gsm lines are busy, the call must be sent to the pri lines with a linear strategy. here is the dialplan: exten => gsm,ChanIsAvail(EXTRA/r2&DAHDI/g1) same => n,GotoIf($["${AVAILORIGCHAN}" = ""]?unavail,1) same => n,Dial(${AVAILORIGCHAN}/${CALLEDNUMBER}) The problem is that the ChanIsAvail function is breaking the round robin strategy. When this function is executed i can see in the console this message: Hungup 'EXTRA/3-1' and when the Dial function is...
2006 May 17
1
TDM does not disconnect
...to the first free FXO channel on my TDM400P card. Then I use the Asterisk's DISA application to get a dial tone, like this: exten => s,1,disa(no-password,tdm-disa) [tdm-disa] exten => _XXX.,1,ChanIsAvail(Zap/3&Zap/4) ; Checks for a free channel to dial exten => _XXX.,2,Dial(${AVAILORIGCHAN}/${EXTEN}) ; Dials the number on the first channel available But if the person I'm calling does not answer the phone and I hangup (fisically) the extension, the Zap channels doesn't hangup! They stay connected, and the line I called keeps on ringing. So, this is the entire process...
2006 Apr 10
1
SIP channel unavailable/busy/really not there
Is there a way to differentiate between a SIP address which hasn't registered (but is within sip.conf) and one that's not there at all (i.e. not in sip.conf) using a straight dialplan. I'd like to differentiate actions depending the state of a SIP device and whether it's in my config or not (if that makes sense, basic automap of dial-in lines to sip phones, but if they've
2007 Jun 25
1
Problems with ChanIsAvail always return status 0
...1.4.5 always return me 0 in AVAILSTATUS. I add my dialplan and the output to the cli. THanks. In the example i'm dialing from extension SIP/112 My DialPlan Secction: [macro-callonlyiffree] exten => s,1,ChanIsAvail(${ARG1}|s) exten => s,n,NoOp(${AVAILCHAN}) exten => s,n,NoOp(${AVAILORIGCHAN}) exten => s,n,NoOp(${AVAILSTATUS}) exten => s,n,GoToIf($[${AVAILSTATUS} < 1]?autoanswer:fail) exten => s,n,NoOp() exten => s,n(autoanswer),Dial(${ARG1}||) exten => s,102(fail),Hangup [pruebas] exten => *99,1,Dial(Local/111 at inpuerta&Local/112 at inpuerta||r) [inpuerta]...