[fax-rx] exten => s,1,Set(LOCALSTATIONID=123456789) exten => s,n,Set(LOCALHEADERINFO="Warp Rx Fax Test Page %P Time: %H:%M To: %l From: %r") exten => s,n,Set(FAXFILE=/tmp/warpfax-${UNIQUEID}.tif) exten => s,n,Wait(1) exten => s,n,PIKARxFax(${FAXFILE}) exten => s,n,NoOp(${REMOTESTATIONID}) exten => s,n,NoOp(${FAXPAGES}) exten => s,n,NoOp(${FAXBITRATE}) exten => s,n,NoOp(${FAXRESOLUTION}) [fax-tx] exten => s,1,Set(LOCALSTATIONID=987654321) exten => s,n,Set(LOCALHEADERINFO="Warp Tx Fax Test Page %P Time: %H:%M To: %l From: %r") exten => s,n,Set(FAXFILE=/etc/pika/pikalogo.tif) exten => s,n,PIKATxFax(${FAXFILE}) exten => s,n,NoOp(${REMOTESTATIONID}) [warp] include=>demo ; ; French language files are not installed by default on the warp, so override ; the default dial plan. ; exten => 3,1,Goto(demo,s,restart); exten => 3,n,Congestion; ; ; Warp linein (Music on Hold) and lineout (Paging) ; Extensions. ; ; ; Listen to linein audio via MoH and streamplayer ; exten => 2222,1,Set(CHANNEL(musicclass)=pika-linein) exten => 2222,n,MusicOnHold() ; ; Live connection to the lineout audio port ; exten => 2233,1,Dial(PIKA/audio/1) ; ; Fork the call after making a connection to the lineout audio port ; exten => 2244,1,Dial(PIKA/audio/1||G(warp^lineout-dial-file^100)) exten => 2244,n,Goto(dial-${DIALSTATUS},1) ; ; To terminate the audio playback on the audio out initiated via 2244 ; exten => 2255,1,SoftHangup(PIKA/audio/1) exten => 2255,n,Congestion(5) ; ; To handle G option in Dial command, calling party to 100, called party to 101 ; exten => lineout-dial-file,100,Goto(calling-party,1) exten => lineout-dial-file,101,Goto(called-party,1) ; ; calling party, play message and go back to start ; exten => calling-party,1,PlayBack(demo-thanks) exten => calling-party,n,Goto(s,1) ; ; called party (audio port), play message and hangup ; exten => called-party,1,PlayBack(demo-congrats) exten => called-party,n,Hangup() ; ; FXS Extensions ; exten => 4001,1,Dial(PIKA/fxs/1,15); exten => 4001,n,VoiceMail(4001@other,b); exten => 4001,n,Congestion(5) exten => 4002,1,Dial(PIKA/fxs/2,15); exten => 4002,n,VoiceMail(4002@other,b); exten => 4002,n,Congestion(5) exten => 4003,1,Dial(PIKA/fxs/3,15); exten => 4003,n,VoiceMail(4003@other,b); exten => 4003,n,Congestion(5) exten => 4004,1,Dial(PIKA/fxs/4,15); exten => 4004,n,VoiceMail(4004@other,b); exten => 4004,n,Congestion(5) exten => 4005,1,Dial(PIKA/fxs/5,15); exten => 4005,n,VoiceMail(4005@other,b); exten => 4005,n,Congestion(5) ; ; SIP Extensions ; exten => 4006,1,Dial(SIP/Agent1|15) exten => 4006,n,VoiceMail(4006@other,b); exten => 4006,n,Congestion(5) exten => 4007,1,Dial(SIP/Agent2|15) exten => 4007,n,VoiceMail(4007@other,b); exten => 4007,n,Congestion(5) exten => 4008,1,Dial(SIP/Agent3|15) exten => 4008,n,VoiceMail(4008@other,b); exten => 4008,n,Congestion(5) exten => 4009,1,Dial(SIP/Agent4|15) exten => 4009,n,VoiceMail(4009@other,b); exten => 4009,n,Congestion(5) exten => 4010,1,Dial(SIP/Agent5|15) exten => 4010,n,VoiceMail(4010@other,b); exten => 4010,n,Congestion(5) ; ; FAX Extensions ; exten => 4060,1,goto(fax-rx,s,1) exten => 4061,1,goto(fax-tx,s,1) exten => fax,1,goto(fax-rx,s,1) ; ; Dial to get Voicemail ; exten => 8500,1,Answer(500); exten => 8500,n,VoiceMailMain(${CALLERID(num)}@other); exten => 8500,n,Congestion; [fxo-out] ; Dialing 9 calls using a pika FXO line. exten => _9XX.,1,Dial(PIKA/fxo/g0/${EXTEN:1}|60) ; Dial on Pika trunk exten => _9XX.,n,Congestion(5) ; ; The following two context are included for instances when ; the asterisk gui is not included. ; [fxo] include => warp [fxs] include => warp include => parkedcalls include => fxo-out include => default [sip] include=> warp include=> fxo-out [DID_trunk_1] include => fxo [numberplan-custom-1] include => fxs plancomment = DialPlan1 ; ; The following context is required for the asterisk Gui to function ; correctly. ; [asterisk_guitools] exten = executecommand,1,System(${command}) exten = executecommand,n,Hangup() exten = record_vmenu,1,Answer exten = record_vmenu,n,Playback(vm-intro) exten = record_vmenu,n,Record(${var1}) exten = record_vmenu,n,Playback(vm-saved) exten = record_vmenu,n,Playback(vm-goodbye) exten = record_vmenu,n,Hangup exten = play_file,1,Answer exten = play_file,n,Playback(${var1}) exten = play_file,n,Hangup hasbeensetup = Y