search for: from_fxo

Displaying 7 results from an estimated 7 matches for "from_fxo".

2011 Feb 22
1
[1.4.39.1/AGI] ast_carefulwrite: write() returned error: Broken pipe
Hello Incoming calls from the FXO trigger an AGI script which simply NOOP data sent by Asterisk through stdin. The first two NOOP work fine, but after this, Asterisk isn't happy: ============= extensions.conf ... [from_fxo] exten => s,1,Wait(2) exten => s,n,Set(CID=${CALLERID(num)}) exten => s,n,AGI(/var/tmp/test.lua) exten => s,n,Wait(5) exten => s,n,Hangup ============= /var/tmp/test.lua #!/usr/bin/lua --Must empty stdin for CHANNEL STATUS to work while true do local line = io.read()...
2011 Feb 24
2
[1.4.39.2] Simple AGI doesn't reply
Hello The following, dead simple Bash script ran as AGI doesn't reply to Asterisk: ============= extensions.conf [from_fxo] exten => s,1,Wait(2) exten => s,n,Set(CID=${CALLERID(num)}) exten => s,n,AGI(/var/tmp/basic.agi) exten => s,n,Hangup() ============= /var/tmp/basic.agi #!/bin/bash #Ripped from #http://lists.digium.com/pipermail/asterisk-users/2003-July/008554.html while read -e ARG && [ &quo...
2011 Feb 27
1
[Dahdi 2.4.0] Flash() hangs up
...dahdi/kernel.h sets the flashtime to 750ms, which appears to be too long for European telcos, as they seem to expect a line cut of about 100ms. After editing the DAHDI_DEFAULT_FLASHTIME accordingly, I recompiled/upgraded Dahdi, and ran the script, but Flash() still hangs up the call: =========== [from_fxo] exten => s,1,Wait(2) exten => s,n,Set(GLOBAL(CID)=${CALLERID(num)}) exten => s,n,Hangup() exten => h,1,system(/var/tmp/test10.lua ${CID}&) [callback] exten => start,1,NoOp(In callback, CID is ${CID}) ;how to wait until remote phone picked up? exten => start,n,Wait(5) exten...
2011 Feb 24
2
[1.4] Still can't get it to call back
...on, for some reason, the channel is still in use at that point, so even an AGI script won't be able to make an outgoing call through the FXO? Here are the relevant parts: ======== extensions.conf [internal] ;Call from Xlite to simulate incoming external call exten => 8888,1,Dial(Local/s at from_fxo) [from_fxo] ;Incoming call just to trigger things exten => s,1,Wait(2) exten => s,n,Set(CID=${CALLERID(num)}) exten => s,n,Wait(2) exten => s,n,Hangup ;Call script to build callfile exten => h,1,DeadAGI(/var/tmp/callback.lua,${CID}) ;Context used by callfile [callback] ;Zaptel doe...
2011 Feb 12
1
[Zaptel] "numberplan-local" context from nowhere?
...FXO calls to a context named "numberplan-local" that is not mentionned in my configuration file, which prevents incoming calls to be successfull: ======= /etc/asterisk/zapata.conf ================== [trunkgroups] [channels] ;Send incoming calls to this context in extensions.conf context=from_fxo switchtype=national usecallerid=no hidecallerid=no callwaiting=yes usecallingpres=yes callwaitingcallerid=no threewaycalling=yes transfer=yes canpark=yes busydetect=yes cancallforward=yes callreturn=yes echocancel=yes echocancelwhenbridged=yes rxgain=0.0 txgain=0.0 immediate=no signalling = fxs_k...
2011 Feb 18
1
[1.4/AGI] CHANNEL STATUS never "down & available"?
...lure (not BUSY, and not NO_ANSWER, maybe Circuit busy or down?) ============== According to this article, CHANNEL STATUS=0 means that the line is available: www.voip-info.org/wiki/view/channel+status Here are extensions.conf, the AGI script, and what the CLI says: =============== extensions.conf [from_fxo] exten => s,1,Wait(2) exten => s,n,Set(CID=${CALLERID(num)}) exten => s,n,Wait(10) exten => s,n,Hangup exten => h,1,DeadAGI(/var/tmp/test.lua) =============== AGI script #!/var/tmp/lua for i=1,10 do io.write("CHANNEL STATUS\n") response=io.read() _...
2011 Feb 05
11
Callback through extensions.conf?
Hello I'd like to configure Asterisk so that... 1. I ring it from my cellphone with CID number displayed, just to notify Asterisk that I wish to make a call 2. Asterisk waits until I hang up, calls me back, and prompts me for the number I wish to call 3. Asterisk puts me on hold through Flash(), which is apparently the equivalent of hitting the R key on European handsets 4. Asterisk calls the