Menu Zavrieť

Asterisk a volania na SIP URI

Podľa stránky http://macnugget.org/projects/asterisk/page7 :

 

; Script constants
MYDOMAIN => macnugget.org
MYFQDN => suburbia.notslacker.com

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

[house]
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(uridial,${EXTEN}@${SIPDOMAIN})
exten => _.,8,HangUp()
exten => _.,10,Goto(house-noturi,${EXTEN},1)
exten => h,1,HangUp()

[house-noturi]
include => local
include => trunkld
include => trunkint
include => emergency

Prirodzene, treba upraviť 😉

 

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.