;-----------------------------------------------------------------------------
; File: extensions.inc
;
; ---- Automatically generated, do not edit ----
;
; (c) IPTAM GmbH, Karsten Wemheuer, 2005 - 2008
;-----------------------------------------------------------------------------
[extensions]
exten => XXX,1,Macro(dial-intern,XX)
exten => XX,1,Macro(dial-intern,XX)
exten => XX,hint,SIP/mh1
exten => zentrale,1,Macro(dial-intern,XX)
exten => XX,1,Macro(dial-intern,XX)
exten => XX,hint,SIP/zentrale
exten => XXX,1,Macro(dial-intern,XX)
exten => XX,1,Macro(dial-intern,XX)
exten => XX,hint,SIP/nt1
exten => XXX,1,Macro(dial-intern,XX)
exten => XX,1,Macro(dial-intern,XX)
exten => XX,hint,SIP/ph1
exten => XXX,1,Macro(dial-intern,XX)
exten => XX,1,Macro(dial-intern,XX)
exten => XX,hint,SIP/XXX
include => _faxextensions
include => _nt_lines
[_faxextensions]
exten => 59,1,Macro(fax,59)
exten => 32,1,Macro(fax,32)
exten => i,1,return
exten => h,1,Noop
[_local_lines]
include => extensions ; to allow site-local calls
include => _iaxtrunk-out
include => _services ; to allow local services
include => _unknown ; catch invalid local numbers
exten => i,1,Macro(dial-error,2)
exten => h,1,Noop
exten => T,1,hangup
[_local_extens_no_sip]
include => _nt_lines
include => _faxextensions
include => _iaxtrunk-out
include => _services ; to allow local services
include => _unknown ; catch invalid local numbers
exten => i,1,Macro(dial-error,2)
exten => h,1,Noop
exten => T,1,hangup
[_local_iax_nt_lines]
include => _iaxtrunk-out
include => _nt_lines
exten => i,1,hangup
exten => h,1,Noop
[_nt_lines]
exten => 31,1,Macro(dial-ntline-mISDN,2,31)
exten => 31,1,Macro(dial-ntline-mISDN,9,31)
exten => i,1,return
exten => h,1,Noop
[_local_4originate]
exten => _X.,1,Set(CHANNEL(language)=${def_lang})
exten => _X.,n,Set(sip=${DB(SIPNAME/${EXTEN})})
exten => _X.,n,GotoIf($["${sip}foo" = "foo"]?nosip)
exten => _X.,n,Set(limit=${DB(LIMIT/${EXTEN})})
exten => _X.,n,GotoIf($[$["foo${limit}" != "foo"] & $["${limit}" != "1"]]?nolimit)
exten => _X.,n,GotoIf($[$["${DEVSTATE(${DIALEDACC})}" = "INUSE"] | $["${DEVSTATE(${DIALEDACC})}" = "RINGING"] | $["${DEVSTATE(${DIALEDACC})}" = "RINGINUSE"] | $["${DEVSTATE(${DIALEDACC})}" = "BUSY"]]?limit)
exten => _X.,n(nolimit),NoCDR
exten => _X.,n,Dial(SIP/${sip}||M(update_userfield^S:${EXTEN}\;D:${dialdest}))
exten => _X.,n(limit),hangup
exten => _X.,n(nosip),Set(DialDirect=1)
exten => _X.,n,Goto(_nt_lines,${EXTEN},1)
exten => _X,1,Set(CHANNEL(language)=${def_lang})
exten => _X,n,Set(sip=${DB(SIPNAME/${EXTEN})})
exten => _X,n,GotoIf($["${sip}foo" = "foo"]?nosip)
exten => _X,n,Set(limit=${DB(LIMIT/${EXTEN})})
exten => _X,n,GotoIf($[$["foo${limit}" != "foo"] & $["${limit}" != "1"]]?nolimit)
exten => _X,n,GotoIf($[$["${DEVSTATE(${DIALEDACC})}" = "INUSE"] | $["${DEVSTATE(${DIALEDACC})}" = "RINGING"] | $["${DEVSTATE(${DIALEDACC})}" = "RINGINUSE"] | $["${DEVSTATE(${DIALEDACC})}" = "BUSY"]]?limit)
exten => _X,n(nolimit),NoCDR
exten => _X,n,Dial(SIP/${sip}||M(update_userfield^S:${EXTEN}\;D:${dialdest}))
exten => _X,n(limit),hangup
exten => _X,n(nosip),Set(DialDirect=1)
exten => _X,n,Goto(_nt_lines,${EXTEN},1)
[_local_4callfiles]
exten => _X.,1,Set(CHANNEL(language)=${def_lang})
exten => _X.,n,Set(sip=${DB(SIPNAME/${EXTEN})})
exten => _X.,n,GotoIf($["${sip}foo" = "foo"]?nosip)
exten => _X.,n,Set(limit=${DB(LIMIT/${EXTEN})})
exten => _X.,n,GotoIf($[$["foo${limit}" != "foo"] & $["${limit}" != "1"]]?nolimit)
exten => _X.,n,GotoIf($[$["${DEVSTATE(${DIALEDACC})}" = "INUSE"] | $["${DEVSTATE(${DIALEDACC})}" = "RINGING"] | $["${DEVSTATE(${DIALEDACC})}" = "RINGINUSE"] | $["${DEVSTATE(${DIALEDACC})}" = "BUSY"]]?limit)
exten => _X.,n(nolimit),NoCDR
exten => _X.,n,Dial(SIP/${sip}||M(update_cid^${NewCallerId}^S:${EXTEN}\;D:${dialdest}))
exten => _X.,n(limit),hangup
exten => _X.,n(nosip),Set(DialDirect=1)
exten => _X.,n,Goto(_local_iax_nt_lines,${EXTEN},1)
exten => _X,1,Set(CHANNEL(language)=${def_lang})
exten => _X,n,Set(sip=${DB(SIPNAME/${EXTEN})})
exten => _X,n,GotoIf($["${sip}foo" = "foo"]?nosip)
exten => _X,n,Set(limit=${DB(LIMIT/${EXTEN})})
exten => _X,n,GotoIf($[$["foo${limit}" != "foo"] & $["${limit}" != "1"]]?nolimit)
exten => _X,n,GotoIf($[$["${DEVSTATE(${DIALEDACC})}" = "INUSE"] | $["${DEVSTATE(${DIALEDACC})}" = "RINGING"] | $["${DEVSTATE(${DIALEDACC})}" = "RINGINUSE"] | $["${DEVSTATE(${DIALEDACC})}" = "BUSY"]]?limit)
exten => _X,n(nolimit),NoCDR
exten => _X,n,Dial(SIP/${sip}||M(update_cid^${NewCallerId}^S:${EXTEN}\;D:${dialdest}))
exten => _X,n(limit),hangup
exten => _X,n(nosip),Set(DialDirect=1)
exten => _X,n,Goto(_local_iax_nt_lines,${EXTEN},1)
[_local_4iaxcallback]
exten => _X.,1,Set(CHANNEL(language)=${def_lang})
exten => _X.,n,Set(DialDirect=1)
exten => _X.,n,Goto(_local_iax_nt_lines,${EXTEN},1)
[macro-fax]
exten => s,1,GotoIf($["${CHANNEL(channeltype)}" != "mISDN"]?nomisdn)
exten => s,n,misdn_set_opt(!e)
exten => s,n(nomisdn),GotoIf($["${CHANNEL(channeltype)}" != "CAPI"]?nocapi)
exten => s,n,capicommand(echocancel|no)
exten => s,n(nocapi),Set(CDR(userfield)=f:${CALLERID(num)}-${ARG1})
exten => s,n,Dial(IAX2/iaxmodem00/${ARG1})
exten => s,n,Dial(IAX2/iaxmodem01/${ARG1})
exten => s,n,Dial(IAX2/iaxmodem02/${ARG1})
exten => s,n,Dial(IAX2/iaxmodem03/${ARG1})
exten => s,n,Hangup
[default]
include => extensions