VoIP: Astersk Dial Round Robin

From OnnoWiki
Revision as of 17:25, 3 February 2014 by Onnowpurbo (talk | contribs)
Jump to navigation Jump to search

Referensi: http://thr3ads.net/asterisk-users/2011/07/1464366-Macro-to-Dial-a-Channel-Group-using-Round-robin

[macro-round-robin]
exten => s, 1, Dial(SIP/1, 30)  ;  dial SIP/1 for 30"
exten => s, n, Dial(SIP/2, 30)  ;  dial SIP/2 for 30"
exten => s, n, Dial(SIP/3, 30)  ;  dial SIP/3 for 30"
exten => s, n, Dial(SIP/4, 30)  ;  dial SIP/4 for 30"
exten => s, n, Goto(1)  ; start again


Referensi http://lists.digium.com/pipermail/asterisk-users/2010-April/246941.html


[inbound]
exten => _X.,1,GotoIf($[${GROUP_COUNT(siptrunk1calls)} > ${GROUP_COUNT(siptrunk2calls)}]?siptrunk2,${EXTEN},1:siptrunk1,${EXTEN},1)
[siptrunk1]
exten => _X,1,Set(GROUP()=siptrunk1calls)
exten => _X,n,Dial(SIP/${EXTEN}@siptrunk1,60,)
[siptrunk2]
exten => _X,1,Set(GROUP()=siptrunk2calls)
exten => _X,n,Dial(SIP/${EXTEN}@siptrunk2,60,)


Referensi http://lists.digium.com/pipermail/asterisk-users/2011-July/264838.html


[group-call]
exten => group1,Dial(Local/phone1 at group-call&Local/phone2 at group-call, 30)

exten => phone1,1,Dial(SIP/100,15)
          same => n,Hangup()

exten => phone2,1,Wait(15)
          same => n,Dial(SIP/101)
          same => n,Hangup()



Referensi