--- extensions.conf.sample-orig Thu Feb 26 21:04:58 2004 +++ extensions.conf.sample Sat Feb 28 00:40:44 2004 @@ -91,6 +91,12 @@ [iaxtel700] exten => _91700NXXXXXX,1,Dial(IAX2/${IAXINFO}@iaxtel.com/${EXTEN:1}@iaxtel) +; +; The SWITCH statement permits a server to share the dialplain with +; another server. Use with care: Reciprocal switch statements are not +; allowed (e.g. both A -> B and B -> A), and the switched server needs +; to be on-line or else dialing can be severly delayed. +; [iaxprovider] ;switch => IAX2/user:[key]@myserver/mycontext @@ -158,7 +164,7 @@ ; ; You can use an alternative switch type as well, to resolve ; extensions that are not known here, for example with remote -; IAX switching you transparently get access to the remote +; IAX switching you transparently get access to the remote extensions ; ; switch => IAX2/user:password@bigserver/local @@ -270,17 +276,29 @@ ; include => demo +; +; Extensions like the two below can be used for FWD, Nikotel, sipgate etc. +; Note that you must have a [sipprovider] section in sip.conf whereas +; the otherprovider.net example does not require such a peer definition +; +;exten => _41X.,1,Dial(SIP/${EXTEN:2}@sipprovider,,r) +;exten => _42X.,1,Dial(SIP/user:passwd@${EXTEN:2}@otherprovider.net,30,rT) -; Real extensions would go here. Generally you want real extensions to be 4 or 5 +; Real extensions would go here. Generally you want real extensions to be 4 or 5 ; digits long (although there is no such requirement) and start with a single ; digit that is fairly large (like 6 or 7) so that you have plenty of room to ; overlap extensions and menu options without conflict. You can alias them with ; names, too and use global variables - -;exten => 6275,1,Macro(stdexten,6275,${MARK}) ; assuming ${MARK} is something like Zap/2 -;exten => mark,1,Goto(6275|1) ; alias mark to 6275 -;exten => 6236,1,Macro(stdexten,6236,${WIL}) ; Ditto for wil +;exten => 6245,1,Dial(SIP/Grandstream1,20,rt) ; permit transfer +;exten => 6245,1,Dial(SIP/Grandstream1&SIP/Xlite1,20,rtT) +;exten => 6361,1,Dial(IAX2/JaneDoe,,rm) ; ring without time limit +;exten => 6389,1,Dial(MGCP/aaln/1@192.168.0.14) +;exten => 6394,1,Dial(Local/6475/n) ; this will dial ${MARK} + +;exten => 6475,1,Macro(stdexten,6275,${MARK}) ; assuming ${MARK} is something like Zap/2 +;exten => mark,1,Goto(6275|1) ; alias mark to 6275 +;exten => 6536,1,Macro(stdexten,6236,${WIL}) ; Ditto for wil ;exten => wil,1,Goto(6236|1) ; ; Some other handy things are an extension for checking voicemail via @@ -291,7 +309,7 @@ ; ; Or a conference room (you'll need to edit meetme.conf to enable this room) ; -;exten => 8600,1,Meetme,1234 +;exten => 8600,1,Meetme(1234) ; ; Or playing an announce to the called party, as soon it answers ;