[general] static=yes writeprotect=yes [default] exten => 201,1,DIAL(SIP/account) exten => 202,1,DIAL(SIP/account) ; exten => 203,1,DIAL(SIP/account) ; exten => 204,1,DIAL(SIP/account) ; exten => 205,1,DIAL(SIP/account) ; exten => 1001,1,DIAL(SIP/account) ; ----------------------------------------------------------------------------- ; Globals ; ----------------------------------------------------------------------------- [globals] ; Seconds before call forward no answer to voicemail VM_DELAY=20 ; Seconds before no response message for non-voicemail extensions NO_VM_TIMEOUT=30 ;----------------------------------------------------------------------------- ; Macro Definintions ; ----------------------------------------------------------------------------- [macro-exten-novm] ; Macro to call SIP extensions, with no voicemail provisioned ; Call extension ${ARG1} for ${ARG2} seconds exten => s,1,Dial(${ARG1},${ARG2}) exten => s,2,Playback(the-party-you-are-calling) exten => s,3,Playback(is-curntly-unavail) exten => s,4,Playback(pls-try-call-later) exten => s,5,Hangup exten => s,102,Busy [macro-exten-vm] ; Macro to call SIP extensions, with voicemail provisioned ; Call extension ${ARG1} for ${ARG2} seconds, divert to voicemail ${ARG3} on busy or noreply exten => s,1,Dial(${ARG1},${ARG2}) exten => s,2,Voicemail(u${ARG3}) exten => s,3,Hangup exten => s,102,Voicemail(b${ARG3}) exten => s,103,Hangup [macro-not-assigned] ; The not-assigned macro plays a message for vacant numbers exten => s,1,Answer exten => s,2,Wait(1) exten => s,3,Playback(the-number-u-dialed) exten => s,4,Playback(not-yet-assigned) exten => s,5,Hangup ; ----------------------------------------------------------------------------- ; Outbound dialing macros ; ----------------------------------------------------------------------------- [macro-dial-myprovider] ; Macro to place an outbound call to an iaxtel subscriber exten => s,1,SetCIDName(${DEFAULT_CIDNAME}) exten => s,2,SetCIDNum(${DEFAULT_CIDNUM}) exten => s,3,Dial(SIP/${ARG1}@out-myprovider) exten => s,4,Congestion ; ----------------------------------------------------------------------------- ; Inbound call handling ; ----------------------------------------------------------------------------- [in-voip] ; For inbound VoIP calls exten => 1234,1,Goto(sipclients,201,1) ; This catchall gives "number not assigned" treatment to any other calls that ; are presented to a number we don't recognise exten => _X.,1,Macro(not-assigned) ; ----------------------------------------------------------------------------- ; Outbound call handling ; -----------------------------------------------------------------------------