Are you using globalcall or dialogic drivers. Analog device are not supported in the current globalcall drivers in Bayonne.
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] g] On Behalf Of Tristan Sent: December 7, 2005 5:05 AM To: [email protected] Subject: [Bayonne-devel] Detect Outbound call answer on dialogic Hi, I made a script to call out and play an audio file on pickup but I cannot detect when the call has an answer. I use bayonne 1.12.15 with dialogic SR5.1 FP2 and Lis 2.15.3. I make my calls with a d120jct-LS or a D41E PCI ( analog cards )... I will in the near future be placing calls with a d300 pci ( e1 card )... I can detect the hangup but not when the person answer the call and that's pretty annoying... Does anyone has an idea of a workaround or a way to know when people answer ? ---------------------------------------------------- here is my dialogic.cfg : [Genload - All Boards] LogFile=genload.log BLTAddress = D8000 Dialog/HD=YES BusType=SCBus SCBusClockMaster=AUTOMATIC SCBusClockMasterSource=AUTOMATIC PCMEncoding=ALAW ISDNProtocol=CTR4 [Genload - PCI ID 1] /* T1/E1 PCI HD */ [Genload - PCI ID 2] /* D/41E PCI */ FrontEnd = ANALOG Features=SIG_HF,FREQRES_HIGH,DPD_NONE D41E_Resource=OFF [Genload - PCI ID 3] /* D/41E PCI */ FrontEnd = ANALOG Features=SIG_HF,FREQRES_HIGH,DPD_NONE D41E_Resource=OFF [Genload - PCI ID 4] /* D/120JCT-LS */ [Genload - ID 5] /* HD Voice */ --------------------------------------------------------------------- Here is the script : slog.crit "Starting Dial" libexec 15 startrtc.php # get the num to call and the id of the call to follow its status if %id -eq 0 then goto ::exit endif slog.crit "Calling msg " %id " to " %dest " with play " %audioplay dial timeout=9 0,%dest sleep 2 set %loop 0 goto ::waitdial ::waitdial sleep 1 slog.crit "Pstn Interface: " %pstn.interface # -> tells me analog slog.crit "Ringid: " %pstn.ringid # is empty slog.crit "Tone: " %pstn.tone # value : none slog.crit "Rpc status: " %rpc.status # is empty slog.crit "Infodigits: " %pstn.infodigits # value: 00 slog.crit "Rings: " %pstn.rings # value: 0 if %pstn.tone .eq. none AND %loop -ge 3 then goto ::fileplay else inc %loop goto ::waitdial endif ^busy @dial:busy slog.crit "busy" set %call.state 1 goto ::exit ^tone # is never called @dial:tone slog.crit "tone" %pstn.tone goto ::waitdial @dial:answer slog.crit "answer" goto ::fileplay @dial:noringback slog.crit "No ringback" goto ::waitdial @tone:ringback slog.crit "Ringback" goto ::waitdial ::fileplay set %call.state 0 slog.crit "playing" %audioplay play %audioplay goto ::exit ^hangup slog.crit "Exiting on hangup" goto ::exit ::exit libexec 15 endrtc.php id=%id duration=%session.duration state=%call.state idle hangup exit _______________________________________________ Bayonne-devel mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bayonne-devel _______________________________________________ Bayonne-devel mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bayonne-devel
