[asterisk-users] Trixbox dialout problems

Tim Uckun timuckun at gmail.com
Sun Nov 12 20:58:57 MST 2006


Hello All.

I am trying to use RAGI the ruby agi framework with trixbox. I am
having a problem
with the dialout part. The RAGI framework creates a file in the
/var/spool/asterisk/outgoing directory and routes the call to an
extension (I have listed the relevent portion of the file below).  The
problem is that the  initial dial command does not execute properly in
trixbox.  I am hoping somebody who has expertise in trixbox could help
me debug this problem.  I can post an asterisk log snippet if anybody
is interested.


Here is the extension. The callout file is below too.
 ----------------Extension_custom.conf--------------------

[dialout]
exten => outbound,1,Answer ; switches to outbound-handler
exten => outbound,2,Wait(60)
exten => outbound,3,Hangup

exten => outbound-handler,1,Dial(${CallInitiate_phonenumber},50,gM(outbound-connect^${AGI_SERVER}${AGI_URL}^${CallInitiate_hashdata}^${MACHINE_STATUS_UNKNOWN}))
exten => outbound-handler,2,GotoIf($["${DIALSTATUS}" = "ANSWER"]?104)
exten => outbound-handler,3,NoOp(status=${DIALSTATUS},
DIALEDTIME=${DIALEDTIME}, ANSWEREDTIME=${ANSWEREDTIME})
exten => outbound-handler,4,SetVar(CallInitiate_hashdata=${CallInitiate_hashdata})
exten => outbound-handler,5,deadagi(agi://${AGI_SERVER}${AGI_URL})
;DIAL_STATUS is busy, etc.
exten => outbound-handler,6,Goto(104)
exten => outbound-handler,102,SetVar(CallInitiate_hashdata=${CallInitiate_hashdata})
exten => outbound-handler,103,deadagi(agi://${AGI_SERVER}${AGI_URL})
;DIAL_STATUS is busy, etc.
exten => outbound-handler,104,Hangup()


[macro-outbound-connect]
exten => s,1,Answer()
exten => s,2,SetVar(CallInitiate_hashdata=${ARG2})
exten => s,3,SetVar(machinestatus=${ARG3})
exten => s,4,deadagi(agi://${ARG1})
exten => s,5,Hangup

--------------------Callout file---------------------
;This file was generated by RAGI's callInitiate class
;File generated date: 11-07-2006 at 12:47 -- Tuesday
;Call date: 11-07-2006 at 12:47 -- Tuesday

Channel: Local/outbound at dialout
Callerid: <10>
MaxRetries: 0
RetryTime: 5
WaitTime: 45


;magic extension for outbound calls via RAGI callInitiate
Context: dialout
Extension: outbound-handler
Priority: 1

SetVar: CallInitiate_phonenumber=90275524911
SetVar: CallInitiate_callerid=1000
SetVar: AGI_URL=/test_outbound/dialup
SetVar: AGI_SERVER=harborreach.panztel.biz:4573
SetVar: CallInitiate_hashdata=---+%0A


More information about the asterisk-users mailing list