Making A Call Using .Call file from Asterisk

﹥>﹥吖頭↗ 提交于 2019-12-25 04:53:30

问题


Hello thank you in advance for your help.   I just installed chan_dongle with asterisk using one of the tutorials viewed this site. At the moment I can make and receive calls using a softphone, but you, I would like to make a call automatically asterisk.   by the time I have.

Extensions.conf

; Asterisk basic conf files
; By Giovanni Bosa - giovbs@gmail.com -
; Build 01/01/2013

[general]
static=yes
writeprotect=no
clearglobalvars=no

[globals]
LINE1=SIP/101



[FromDongle]
exten => +584147390386,1,Dial(${LINE1},50)
same => n,Hangup()

exten => sms,1,Verbose(Incoming SMS from ${CALLERID(num)} ${BASE64_DECODE(${SMS_BASE64})})
exten => sms,n,System(echo '${STRFTIME(${EPOCH},,%Y-%m-%d %H:%M:%S)} - ${DONGLENAME} - ${CALLERID(num)}$
exten => sms,n,Hangup()

exten => ussd,1,Verbose(Incoming USSD: ${BASE64_DECODE(${USSD_BASE64})})
exten => ussd,n,System(echo '${STRFTIME(${EPOCH},,%Y-%m-%d %H:%M:%S)} - ${DONGLENAME}: ${BASE64_DECODE($
exten => ussd,n,Hangup()

[modulo01]
exten => _X.,1,Dial(Dongle/modulo01/${EXTEN},60)
exten => _X.,n,Playback(/var/lib/asterisk/sounds/en/textveloper)
exten => _X.,n,Hangup()

[oreilly]
exten => _X.,1,Answer()
exten => _X.,n,Playback(demo-moreinfo)
exten => _X.,n,Hangup()

and copy a file every time i want to make an outgoing call located in var/spool/asterisk/outbound/

makcall.call

Channel: SIP/101
MaxRetries: 1
RetryTime: 20
WaitTime: 10
Context: oreilly
Extension: 101
Priority: 1

using these 2 files how can I make a call to the number 4247054406? without having to use the softphone to dial the number?


回答1:


Change in makecall.call

Channel: Dongle/modulo01/4247054406

Note, create dialler by non-expert is very bad idea, you will have alot of other issues.



来源:https://stackoverflow.com/questions/20764431/making-a-call-using-call-file-from-asterisk

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!