; Sample /etc/asterisk/extensions.conf ; Created September 1, 2004 ; ========================================================= ; QUICKSTART WITH VOICEPULSE CONNECT! SERVICE: ; ; * Login to your VoicePulse Connect! account at: ; http://connect.voicepulse.com/ ; ; * Go to the Devices tab and note your device login and ; password ; ; * Replace MY_DEVICE_LOGIN and MY_DEVICE_PASSWORD in the ; "exten => " statements below with your device login ; and password. (Lines 81-82) ; ; * If you DO NOT have a phone number from VoicePulse ; Connect!, comment out the following lines by placing a ; semicolon ";" at the beginning: ; ; - The entire "[arbitrary-name]" context (lines 43-48) ; - The entire "[testdtmf]" context (lines 54-60) ; ========================================================= [general] static=yes writeprotect=no [globals] ; --------------------------------------------------------- ; [arbitrary-name] is the context referred to by the ; [voicepulse-in-01] user in iax.conf. This is where your ; custom incoming call processing should go. ; ; For sample purposes, this section will read back the ; dialed number and then test DTMF by reading back each ; digit pressed by the caller. ; --------------------------------------------------------- ;[arbitrary-name] ; <-- Should match the context you have ; ; under [voicepulse-in-01] in iax.conf ;exten => _NXXNXXXXXX,1,Playback(beep) ;exten => _NXXNXXXXXX,2,SayDigits(${EXTEN}) ;exten => _NXXNXXXXXX,3,Goto(testdtmf|s|1) ; ; This context is used by the sample [arbitrary-name] ; context above to read back each digit you press. ; ;[testdtmf] ;exten => s,1,Background(beep) ;exten => s,2,ResponseTimeout(60) ;exten => _x,1,SayDigits(${EXTEN}) ;exten => _x,2,Goto(testdtmf|s|1) ;exten => i,1,Goto(testdtmf|s|1) ;exten => t,1,Hangup ; --------------------------------------------------------- ; This context is used to send all outgoing calls to the ; VoicePulse Connect! service for connection to the PSTN. ; ; Asterisk will attempt to dial out through gwiaxt01 first. ; If there is a problem, it will attempt to dial out ; through gwiaxt02. ; ; YOU MUST HAVE BOTH LINES FOR OUTGOING CALL REDUNDANCY! ; ; --------------------------------------------------------- ; ; There should be TWO lines after [outgoing], each beginning ; with "exten =>". Please check to make sure copying or ; cutting & pasting this sample did not break the lines into ; more than TWO exten lines. ; [outgoing] exten => _1NXXNXXXXXX,1,Dial(IAX2/561651:545ew165ewt@sphone.vopr.vonage.net/) exten => _1NXXNXXXXXX,102,Dial(IAX2/MY_DEVICE_LOGIN:MY_DEVICE_PASSWORD@gwiaxt02.voicepulse.com/${EXTEN})