Menu Zavrieť

Asterisk SIP URI dial

; Script constants
MYDOMAIN => c.local
;MYFQDN => "domena"

[macro-dial]
exten => s,1,NoOp(Outbound SIP URI call ${ARG1})
exten => s,2,Dial(SIP/${ARG1})
exten => s,3,Congestion()

[skuska]
exten => _.,1,NoOp(Incoming Call from house extension ${CALLERID} for ${EXTEN}@${SIPDOMAIN})
exten => _.,2,GotoIf($[${LEN(${SIPDOMAIN})} = 0]?10)
exten => _.,3,GotoIf($[${SIPDOMAIN} = ${MYDOMAIN}]?10)
exten => _.,4,GotoIf($[${SIPDOMAIN} = ${MYFQDN}]?10)
exten => _.,5,GotoIf($[${SIPDOMAIN} = ${MYFQDN}:5060]?10)
exten => _.,6,NoOp(@${SIPDOMAIN} is remote, forwarding…)
exten => _.,7,Macro(dial,${EXTEN}@${SIPDOMAIN})
exten => _.,8,HangUp()
exten => _.,10,Macro(dial,${EXTEN},1)
exten => h,1,HangUp()

 

Skript rozozna ci ide volanie do alebe mimo domeny a na zaklade toho odovzda macru Dial Uri vo vhodnom tvare. Testovane s X-Lite 4.

Rate this post

Pridaj komentár

Vaša e-mailová adresa nebude zverejnená. Vyžadované polia sú označené *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

The reCAPTCHA verification period has expired. Please reload the page.