We've been working on setting up the dialer and we've hit a snag. I've
gone through and made the adjustments in both of those files and inserted
my gateway IP. The problem I've been encountering is I get a No one is in
session:8600051 error.
extensions.conf
--------------------------------------------
[general]
static=yes
writeprotect=no
[globals]
CONSOLE=Console/dsp ; Console interface for demo
TRUNK=Zap/g1 ; Trunk interface
TRUNKX=Zap/g2 ; 2nd trunk interface
TRUNKIAX=IAX2/ASTtest1:test@192.168.1.2:4569 ; IAX trunk interface
TRUNKIAX1=IAX2/ASTtest1:test@192.168.1.2:4569 ; IAX trunk interface
TRUNKVOICEPULSE=IAX2/Vfgdfgdfg:pass@connect02.voicepulse.com ; IAX trunk interface
SIPtrunk=SIP/1234:PASSWORD@sip.provider.net ; SIP trunk
TRUNKloop = IAX2/ASTloop:test@127.0.0.1:40569 ; used for blind monitoring
TRUNKblind = IAX2/ASTblind:test@127.0.0.1:41569 ; used for testing
VOICEPULSE_GATEWAY_OUT_A=voicepulse
VOICEPULSE_GATEWAY_OUT_B=voicepulse-backup
VOICEPULSE_GATEWAY_OUT_C=voicepulse-legacy
[default]
; BE SURE TO CHANGE THIS LINE FOR YOUR IP ADDRESS!
exten => _192*168*001*002*.,1,Goto(default,${EXTEN:16},1)
exten => _8600XXX*.,1,AGI(agi-VDADfixCXFER.agi)
exten => _78600XXX*.,1,AGI(agi-VDADfixCXFER.agi)
; Local blind monitoring
exten => _08600XXX,1,Dial(${TRUNKblind}/6${EXTEN:1},55,To)
; Example phone extensions
; Extension 2000 Sipura/Linksys ATA line 1
exten => 2000,1,Dial(sip/spa2000,30,to) ; Ring, 30 secs max
exten => 2000,2,Voicemail,u2000 ; Send to voicemail...
; Extension 2001 Sipura/Linksys ATA line 2
exten => 2001,1,Dial(sip/spa2001,30,to) ; Ring, 30 secs max
exten => 2001,2,Voicemail,u2001 ; Send to voicemail...
; Extension 2102 rings Grandstream phone
exten => 2102,1,Dial(sip/gs102,30,to) ; Ring, 30 secs max
exten => 2102,2,Voicemail,u2102 ; Send to voicemail...
; Extension 401 rings the firefly softphone
exten => 401,1,Dial((IAX2/firefly01@firefly01/s||t)
exten => 401,2,Hangup
; extensions for other SIP and IAX call center phones
; cc100-cc150 SIP Phones
exten => _1[0-5]X,1,Dial(sip/cc${EXTEN},20,to)
; cc300-cc350 IAX Phones
exten => _3[0-5]X,1,Dial(IAX2/cc${EXTEN},20,to)
; extensions if using a T1 channelbank
exten => _19XX,1,Dial(Zap/${EXTEN:2},30,o)
exten => _19XX,2,Hangup
; Extension 4001 rings Zap phone (this example for FXS on Zap port 1)
exten => 4001,1,Dial(Zap/1,30,o) ; ring Zap device 1
exten => 4001,2,Voicemail,u4001 ; Send to voicemail...
' Extension 3001 rings IAX Phone
exten => 301,1,Dail(IAX2/firefly01@firefly01/s)
exten => 301,2,Hangup
; # timeout invalid rules
exten => #,1,Playback(invalid) ; "Thanks for trying the demo"
exten => #,2,Hangup ; Hang them up.
exten => t,1,Goto(#,1) ; If they take too long, give up
exten => i,1,Playback(invalid) ; "That's not valid, try again"
; Give voicemail at extension 8500
exten => 8500,1,VoicemailMain
exten => 8500,2,Goto(s,6)
; FastAGI for VICIDIAL/astGUIclient call logging
exten => h,1,DeadAGI(agi://127.0.0.1:4577/call_log--HVcauses ... EBUG-----${HANGUPCAUSE}-----${DIALSTATUS}-----${DIALEDTIME}-----${ANSWEREDTIME})
; Inbound call from BINFONE
; exten => 1112223333,1,AGI(agi://127.0.0.1:4577/call_log)
; exten => 1112223333,2,Dial(sip/gs102,55,o)
; exten => 1112223333,3,Hangup
; Extension 7275551212 - Inbound local number from PRI with 10 digit delivery
exten => 7275551212,1,Ringing
exten => 7275551212,2,Wait(1)
exten => 7275551212,3,AGI(agi://127.0.0.1:4577/call_log--fullCID--${EXTEN}-----${CALLERID}-----${CALLERIDNUM}-----${CALLERIDNAME})
exten => 7275551212,4,Answer
exten => 7275551212,5,Dial(sip/spa2000&sip/spa2001,30,To)
exten => 7275551212,6,Voicemail,u2000
; dial a long distance outbound number to the UK
; This 'o' Dial flag is VERY important for VICIDIAL on outbound calls,
exten => _901144XXXXXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _901144XXXXXXXXXX,2,Dial(${TRUNKX}/${EXTEN:1},55,To)
exten => _901144XXXXXXXXXX,3,Hangup
; dial a long distance outbound number to Australia
; This 'o' Dial flag is VERY important for VICIDIAL on outbound calls,
exten => _901161XXXXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _901161XXXXXXXXX,2,Dial(${TRUNKX}/${EXTEN:1},,To)
exten => _901161XXXXXXXXX,3,Hangup
; Extensions for performance testing
exten => _91999NXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _91999NXXXXXX,2,Dial(${TRUNKloop}/${EXTEN:2},,tTo)
exten => _91999NXXXXXX,3,Hangup
exten => 999999999999,1,AGI(agi://127.0.0.1:4577/call_log)
exten => 999999999999,2,Dial(${TRUNKloop}/${EXTEN:1},,tTo)
exten => 999999999999,3,Hangup
; dial an 800 outbound number
exten => _91800NXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _91800NXXXXXX,2,Dial(${TRUNK}/${EXTEN:1},,To)
exten => _91800NXXXXXX,3,Hangup
exten => _91888NXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _91888NXXXXXX,2,Dial(${TRUNK}/${EXTEN:1},,To)
exten => _91888NXXXXXX,3,Hangup
exten => _91877NXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _91877NXXXXXX,2,Dial(${TRUNK}/${EXTEN:1},,To)
exten => _91877NXXXXXX,3,Hangup
exten => _91866NXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _91866NXXXXXX,2,Dial(${TRUNK}/${EXTEN:1},,To)
exten => _91866NXXXXXX,3,Hangup
; dial a local outbound number (modified because of only LD T1)
exten => _9NXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _9NXXXXXX,2,Dial(${TRUNK}/1727${EXTEN:1},,To)
exten => _9NXXXXXX,3,Hangup
; dial a local 727 outbound number with area code
exten => _9727NXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _9727NXXXXXX,2,Dial(${TRUNK}/1${EXTEN:1},,To)
exten => _9727NXXXXXX,3,Hangup
; dial a long distance outbound number
; This 'o' Dial flag is VERY important for VICIDIAL on outbound calls
exten => _91NXXNXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _91NXXNXXXXXX,2,Dial(${TRUNKIAX}/${EXTEN:1},,To)
exten => _91NXXNXXXXXX,3,Hangup
; dial a long distance outbound number through BINFONE
; exten => _91NXXNXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
; exten => _91NXXNXXXXXX,2,Dial(${TRUNKIAX}/${EXTEN},55,To)
; exten => _91NXXNXXXXXX,3,Hangup
; dial a long distance outbound number through a SIP provider
; exten => _91NXXNXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
; exten => _91NXXNXXXXXX,2,Dial(sip/${EXTEN}@SIPtrunk,55,o)
; exten => _91NXXNXXXXXX,3,Hangup
; parameters for call_inbound.agi (7 fields separated by five dashes "-----"):
; 1. the extension of the phone to ring as defined in the asterisk.phones table
; 2. the phone number that was called, for the live_inbound/_log entry
; 3. a text description of the number that was called in
; 4-7. optional fields, they are also passed as fields in the GUI to web browser
; This is not part of VICIDIAL, it is for astGUIclient agent use only
; Extension 3429 - Inbound 800 number (1-800-555-3429) example of RBS T1
; with 10 digit ANI and 4 digit DNIS star separated
exten => _**3429,1,Ringing
exten => _**3429,2,AGI(agi://127.0.0.1:4577/call_log)
exten => _**3429,3,AGI(call_inbound.agi,spa2000-----8005553429-----Inbound 800-----x-----y-----z-----w)
exten => _**3429,4,Answer
exten => _**3429,5,Dial(sip/spa2000&sip/spa2001,30,to)
exten => _**3429,6,Voicemail,u2000
; Extension 3429 - with ANI [callerID]
exten => _*NXXNXXXXXX*3429,1,Ringing
exten => _*NXXNXXXXXX*3429,2,AGI(agi://127.0.0.1:4577/call_log)
exten => _*NXXNXXXXXX*3429,3,AGI(call_inbound.agi,spa2000-----8005553429-----Inbound 800-----x-----y-----z-----w)
exten => _*NXXNXXXXXX*3429,4,Answer
exten => _*NXXNXXXXXX*3429,5,Dial(sip/spa2000&sip/spa2001,30,to)
exten => _*NXXNXXXXXX*3429,6,Voicemail,u2000
; parameters for agi-VDAD_ALL_inbound.agi (9 fields separated by five dashes "-----"):
; 1. the method of call handling for the script:
; - CID - CID received, add record with phone number
; - CIDLOOKUP - Lookup CID to find record in whole system
; - CIDLOOKUPRL - Restrict lookup to one list
; - CIDLOOKUPRC - Restrict lookup to one campaign's lists
; - CLOSER - Closer calls from VICIDIAL fronters
; - ANI - ANI received, add record with phone number
; - ANILOOKUP - Lookup ANI to find record in whole system
; - ANILOOKUPRL - Restrict lookup to one list
; - 3DIGITID - Enter 3 digit code to go to agent
; - 4DIGITID - Enter 4 digit code to go to agent
; - 5DIGITID - Enter 5 digit code to go to agent
; - 10DIGITID - Enter 10 digit code to go to agent
; 2. the method of searching for an available agent:
; - LO - Load Balance Overflow only (priority to home server)
; - LB - <default> Load Balance total system
; - SO - Home server only
; 3. the full name of the IN GROUP to be used in vicidial for the inbound call
; 4. the phone number that was called, for the log entry
; 5. the callerID or lead_id of the person that called(usually overridden)
; 6. the park extension audio file name if used
; 7. the status of the call initially(usually not used)
; 8. the list_id to insert the new lead under if it is new (and CID/ANI available)
; 9. the phone dialing code to insert with the new lead if new (and CID/ANI available)
; 10. the campaign_id to search within lists if CIDLOOKUPRC
; inbound VICIDIAL call with CID delivery through T1 PRI
exten => 1234,1,Answer ; Answer the line
exten => 1234,2,AGI(agi-VDAD_ALL_inbound.agi,CID-----LB-----CL_GALLERIA-----7274515134-----Closer-----park----------999-----1)
exten => 1234,3,Hangup
; inbound VICIDIAL transfer calls [can arrive through PRI T1 crossover, IAX or SIP channel]
exten => _90009.,1,Answer ; Answer the line
exten => _90009.,2,AGI(agi-VDAD_ALL_inbound.agi,CLOSER-----LB-----CL_TESTCAMP-----7275551212-----Closer-----park----------999-----1)
exten => _90009.,3,Hangup
exten => _990009.,1,Answer ; Answer the line
exten => _990009.,2,AGI(agi-VDAD_ALL_inbound.agi,CLOSER-----LB-----CL_TESTCAMP-----7275551212-----Closer-----park----------999-----1)
exten => _990009.,3,Hangup
; barge monitoring extension
exten => 8159,1,ZapBarge
exten => 8159,2,Hangup
; ZapBarge direct channel extensions
exten => _86120XX,1,ZapBarge(${EXTEN:5})
exten => _X48600XXX,1,MeetMeAdmin(${EXTEN:2},T,${EXTEN:0:1})
exten => _X48600XXX,2,Hangup
exten => _X38600XXX,1,MeetMeAdmin(${EXTEN:2},t,${EXTEN:0:1})
exten => _X38600XXX,2,Hangup
exten => _X28600XXX,1,MeetMeAdmin(${EXTEN:2},m,${EXTEN:0:1})
exten => _X28600XXX,2,Hangup
exten => _X18600XXX,1,MeetMeAdmin(${EXTEN:2},M,${EXTEN:0:1})
exten => _X18600XXX,2,Hangup
exten => _55558600XXX,1,MeetMeAdmin(${EXTEN:4},K)
exten => _55558600XXX,2,Hangup
exten => 8300,1,Hangup
; astGUIclient conferences
exten => _86000[0-4]X,1,Meetme,${EXTEN}|q
; VICIDIAL conferences
exten => _86000[5-9]X,1,Meetme,${EXTEN}|F
exten => _86001XX,1,Meetme,${EXTEN}|F
exten => _8600200,1,Meetme,${EXTEN}|F
; quiet entry and leaving conferences for VICIDIAL
exten => _78600XXX,1,Meetme,${EXTEN:1}|Fq
; quiet monitor extensions for meetme rooms (for room managers)
exten => _68600XXX,1,Meetme,${EXTEN:1}|Fmq
; voicelab exten
exten => _86009XX,1,Meetme,${EXTEN}|Fmq
; voicelab exten moderator
exten => _986009XX,1,Meetme,${EXTEN:1}
; park channel for client GUI parking, hangup after 30 minutes
; create a GSM formatted audio file named "park.gsm" that is 30 minutes long
; and put it in /var/lib/asterisk/sounds
exten => 8301,1,Answer
exten => 8301,2,AGI(park_CID.agi)
exten => 8301,3,Playback(park)
exten => 8301,4,Hangup
exten => 8303,1,Answer
exten => 8303,2,AGI(park_CID.agi)
exten => 8303,3,Playback(conf)
exten => 8303,4,Hangup
; park channel for client GUI conferencing, hangup after 30 minutes
; create a GSM formatted audio file named "conf.gsm" that is 30 minutes long
; and put it in /var/lib/asterisk/sounds
exten => 8302,1,Answer
exten => 8302,2,Playback(conf)
exten => 8302,3,Hangup
exten => 8304,1,Answer
exten => 8304,2,Playback(ding)
exten => 8304,3,Hangup
; default audio for safe harbor 2-second-after-hello message then hangup
; create a GSM formatted audio file complies with safe harbor rules
; and put it in /var/lib/asterisk/sounds then change filename below
exten => 8307,1,Answer
exten => 8307,2,Playback(vm-goodbye)
exten => 8307,3,Hangup
; this is used for recording conference calls, the client app sends the filename
; value as a callerID recordings go to /var/spool/asterisk/monitor (WAV)
; Recording is limited to 1 hour, to make longer, just change the Wait,3600
exten => 8309,1,Answer
exten => 8309,2,Monitor(wav,${CALLERIDNAME})
exten => 8309,3,Wait,3600
exten => 8309,4,Hangup
; this is used for recording conference calls, the client app sends the filename
; value as a callerID recordings go to /var/spool/asterisk/monitor (GSM)
; Recording is limited to 1 hour, to make longer, just change the Wait,3600
exten => 8310,1,Answer
exten => 8310,2,Monitor(gsm,${CALLERIDNAME})
exten => 8310,3,Wait,3600
exten => 8310,4,Hangup
; this is used for playing a message to an answering machine forwarded from AMD in VICIDIAL
; replace conf with the message file you want to leave
exten => 8320,1,WaitForSilence(2000,2) ; AMD got machine. leave message after recording
exten => 8320,2,Playback(conf)
exten => 8320,3,AGI(VD_amd_post.agi,${EXTEN})
exten => 8320,4,Hangup
; use for selective CallerID hangup by area code(hard-coded)
exten => 8352,1,AGI(agi-VDADselective_CID_hangup.agi,${EXTEN})
exten => 8352,2,Playback(safe_harbor)
exten => 8352,3,Hangup
; prompts for recording AGI script, ID is 4321
; first variable is format (gsm/wav)
; second variable is timeout in milliseconds (default is 720000 [12 minutes])
exten => 8167,1,Answer
exten => 8167,2,AGI(agi-record_prompts.agi,wav-----720000)
exten => 8167,3,Hangup
exten => 8168,1,Answer
exten => 8168,2,AGI(agi-record_prompts.agi,gsm-----720000)
exten => 8168,3,Hangup
; playback of recorded prompts
exten => _851XXXXX,1,Answer
exten => _851XXXXX,2,Playback(${EXTEN})
exten => _851XXXXX,3,Hangup
; this is used to allow the GUI to send you directly into voicemail
; don't forget to set GUI variable $voicemail_exten to this extension
exten => 8501,1,VoicemailMain(s${CALLERIDNUM})
exten => 8501,2,Hangup
; this is used to allow the GUI to send live calls directly into voicemail
; don't forget to set GUI variable $voicemail_dump_exten to this extension
exten => _85026666666666.,1,Wait(2)
exten => _85026666666666.,2,Voicemail(${EXTEN:14})
exten => _85026666666666.,3,Hangup
; this is used for sending DTMF signals within conference calls, the client app
; sends the digits to be played in the callerID field
; sound files must be placed in /var/lib/asterisk/sounds
exten => 8500998,1,Answer
exten => 8500998,2,Playback(silence)
exten => 8500998,3,AGI(agi-dtmf.agi)
exten => 8500998,4,Hangup
;#### VDAD STANDARD TRANSFER ENTRIES ####
; VICIDIAL_auto_dialer transfer script for no-agent campaigns:
exten => 8364,1,AGI(agi://127.0.0.1:4577/call_log)
exten => 8364,2,AGI(agi-VDADtransferBROADCAST.agi,${EXTEN})
exten => 8364,3,AGI(agi-VDADtransferBROADCAST.agi,${EXTEN})
exten => 8364,4,AGI(agi-VDADtransferBROADCAST.agi,${EXTEN})
exten => 8364,5,Hangup
; VICIDIAL_auto_dialer transfer script:
exten => 8365,1,AGI(agi://127.0.0.1:4577/call_log)
exten => 8365,2,AGI(agi-VDADtransfer.agi,${EXTEN})
exten => 8365,3,AGI(agi-VDADtransfer.agi,${EXTEN})
exten => 8365,4,AGI(agi-VDADtransfer.agi,${EXTEN})
exten => 8365,5,Hangup
; VICIDIAL_auto_dialer transfer script SURVEY at beginning:
exten => 8366,1,AGI(agi://127.0.0.1:4577/call_log)
exten => 8366,2,AGI(agi-VDADtransferSURVEY.agi,${EXTEN})
exten => 8366,3,AGI(agi-VDADtransferSURVEY.agi,${EXTEN})
exten => 8366,4,AGI(agi-VDADtransferSURVEY.agi,${EXTEN})
exten => 8366,5,Hangup
; VICIDIAL_auto_dialer transfer script Load Balance Overflow:
exten => 8367,1,AGI(agi://127.0.0.1:4577/call_log)
exten => 8367,2,AGI(agi-VDAD_LO_transfer.agi,${EXTEN})
exten => 8367,3,AGI(agi-VDAD_LO_transfer.agi,${EXTEN})
exten => 8367,4,AGI(agi-VDAD_LO_transfer.agi,${EXTEN})
exten => 8367,5,Hangup
; VICIDIAL_auto_dialer transfer script Load Balanced:
exten => 8368,1,AGI(agi://127.0.0.1:4577/call_log)
exten => 8368,2,AGI(agi-VDAD_LB_transfer.agi,${EXTEN})
exten => 8368,3,AGI(agi-VDAD_LB_transfer.agi,${EXTEN})
exten => 8368,4,AGI(agi-VDAD_LB_transfer.agi,${EXTEN})
exten => 8368,5,Hangup
; VICIDIAL_auto_dialer transfer script AMD with Load Balanced:
exten => 8369,1,AGI(agi://127.0.0.1:4577/call_log)
exten => 8369,2,AMD(2000|2000|1000|5000|120|50|4|256)
exten => 8369,3,AGI(VD_amd.agi,${EXTEN})
exten => 8369,4,AGI(agi-VDAD_LB_transfer.agi,${EXTEN})
exten => 8369,5,AGI(agi-VDAD_LB_transfer.agi,${EXTEN})
exten => 8369,6,AGI(agi-VDAD_LB_transfer.agi,${EXTEN})
exten => 8369,7,Hangup
; VICIDIAL auto-dial reminder script
exten => 8372,1,AGI(agi://127.0.0.1:4577/call_log)
exten => 8372,2,AGI(agi-VDADautoREMINDER.agi,${EXTEN})
exten => 8372,3,AGI(agi-VDADautoREMINDER.agi,${EXTEN})
exten => 8372,4,AGI(agi-VDADautoREMINDER.agi,${EXTEN})
exten => 8372,5,Hangup
;#### VDAD SIP UNREGISTERED TRANSFER ENTRIES ####
;#### Use these entries IN PLACE OF the entries above if you are using SIP trunks
;#### and are not registering your provider in sip.conf
;; VICIDIAL_auto_dialer transfer script for no-agent campaigns:
;exten => 8364,1,Playback(sip-silence)
;exten => 8364,2,AGI(agi://127.0.0.1:4577/call_log)
;exten => 8364,3,AGI(agi-VDADtransferBROADCAST.agi,${EXTEN})
;exten => 8364,4,AGI(agi-VDADtransferBROADCAST.agi,${EXTEN})
;exten => 8364,5,Hangup
;
;; VICIDIAL_auto_dialer transfer script:
;exten => 8365,1,Playback(sip-silence)
;exten => 8365,2,AGI(agi://127.0.0.1:4577/call_log)
;exten => 8365,3,AGI(agi-VDADtransfer.agi,${EXTEN})
;exten => 8365,4,AGI(agi-VDADtransfer.agi,${EXTEN})
;exten => 8365,5,Hangup
;
;; VICIDIAL_auto_dialer transfer script SURVEY at beginning:
;exten => 8366,1,Playback(sip-silence)
;exten => 8366,2,AGI(agi://127.0.0.1:4577/call_log)
;exten => 8366,3,AGI(agi-VDADtransferSURVEY.agi,${EXTEN})
;exten => 8366,4,AGI(agi-VDADtransferSURVEY.agi,${EXTEN})
;exten => 8366,5,Hangup
;
;; VICIDIAL_auto_dialer transfer script Load Balance Overflow:
;exten => 8367,1,Playback(sip-silence)
;exten => 8367,2,AGI(agi://127.0.0.1:4577/call_log)
;exten => 8367,3,AGI(agi-VDAD_LO_transfer.agi,${EXTEN})
;exten => 8367,4,AGI(agi-VDAD_LO_transfer.agi,${EXTEN})
;exten => 8367,5,Hangup
;
;; VICIDIAL_auto_dialer transfer script Load Balanced:
;exten => 8368,1,Playback(sip-silence)
;exten => 8368,2,AGI(agi://127.0.0.1:4577/call_log)
;exten => 8368,3,AGI(agi-VDAD_LB_transfer.agi,${EXTEN})
;exten => 8368,4,AGI(agi-VDAD_LB_transfer.agi,${EXTEN})
;exten => 8368,5,Hangup
;
;; VICIDIAL_auto_dialer transfer script AMD with Load Balanced:
;exten => 8369,1,Playback(sip-silence)
;exten => 8369,2,AGI(agi://127.0.0.1:4577/call_log)
;exten => 8369,3,AMD(2000|2000|1000|5000|120|50|4|256)
;exten => 8369,4,AGI(VD_amd.agi,${EXTEN})
;exten => 8369,5,AGI(agi-VDAD_LB_transfer.agi,${EXTEN})
;exten => 8369,6,AGI(agi-VDAD_LB_transfer.agi,${EXTEN})
;exten => 8369,7,Hangup
;
;; VICIDIAL auto-dial reminder script
;exten => 8372,1,Playback(sip-silence)
;exten => 8372,2,AGI(agi://127.0.0.1:4577/call_log)
;exten => 8372,3,AGI(agi-VDADautoREMINDER.agi,${EXTEN})
;exten => 8372,4,AGI(agi-VDADautoREMINDER.agi,${EXTEN})
;exten => 8372,5,Hangup
; PERFORMANCE TESTING
exten => _999XXXXXX1,1,Answer
exten => _999XXXXXX1,2,Wait(2)
exten => _999XXXXXX1,3,Playback(beep)
exten => _999XXXXXX1,4,Hangup
exten => _999XXXX112,1,Wait(8)
exten => _999XXXX112,2,Answer
exten => _999XXXX112,3,Playback(demo-instruct)
exten => _999XXXX112,4,Playback(demo-instruct)
exten => _999XXXX112,5,Hangup
exten => _999XXXXXX2,1,Wait(8)
exten => _999XXXXXX2,2,Answer
exten => _999XXXXXX2,3,Playback(demo-instruct)
exten => _999XXXXXX2,4,Hangup
exten => _999XXXXXX3,1,SetVar(PRI_CAUSE=1)
exten => _999XXXXXX3,2,Hangup
exten => _999XXXXXX4,1,SetVar(PRI_CAUSE=27)
exten => _999XXXXXX4,2,Hangup
exten => _999XXXXXX5,1,Wait(60)
exten => _999XXXXXX5,2,Hangup
exten => _999XXXXXX6,1,Wait(10)
exten => _999XXXXXX6,2,Answer
exten => _999XXXXXX6,3,Playback(demo-instruct)
exten => _999XXXXXX6,4,Hangup
exten => _999XXXXXX7,1,Wait(12)
exten => _999XXXXXX7,2,Answer
exten => _999XXXXXX7,3,Playback(demo-enterkeywords)
exten => _999XXXXXX7,4,Hangup
exten => _999XXXXXX8,1,SetVar(PRI_CAUSE=17)
exten => _999XXXXXX8,2,Hangup
exten => _999XXXXXX9,1,Wait(6)
exten => _999XXXXXX9,2,Answer
exten => _999XXXXXX9,3,Playback(demo-abouttotry)
exten => _999XXXXXX9,4,Hangup
exten => _999XXXXXX0,1,Wait(5)
exten => _999XXXXXX0,2,Answer
exten => _999XXXXXX0,3,Playback(vm-goodbye)
exten => _999XXXXXX0,4,Hangup
exten => 99999999999,1,Answer
exten => 99999999999,2,Playback(conf)
exten => 99999999999,3,Playback(conf)
exten => 99999999999,4,Playback(conf)
exten => 99999999999,5,Playback(conf)
exten => 99999999999,6,Playback(conf)
exten => 99999999999,7,Playback(conf)
exten => 99999999999,8,Playback(conf)
exten => 99999999999,9,Playback(conf)
exten => 99999999999,10,Playback(conf)
exten => 99999999999,11,Playback(conf)
exten => 99999999999,12,Playback(conf)
exten => 99999999999,13,Playback(conf)
exten => 99999999999,14,Hangup
; .........................................................
; NANPA calls
; .........................................................
; Set your CallerID number
; Setting both the name and number is required due to
; non-standard SIP behavior by previous versions of Asterisk.
;
; The CallerID number must be a 10-digits.
exten => _1NXXNXXXXXX,1,Set(CALLERID(num)=0000000000)
exten => _1NXXNXXXXXX,2,Set(CALLERID(name)=0000000000)
; Print the SIP Call-ID to the CLI for troubleshooting.
; You can send this Call-ID to customer service when asked
; for a call example that may have experienced an issue.
exten => _1NXXNXXXXXX,n,NoOp(SIPCALLID: ${SIPCALLID})
; .........................................................
; LEAST COST ROUTING
;
; Uncommenting the lines below will:
; - Tell Asterisk that your non-VoicePulse flat rate for
; calls is $0.013
; - Look up the realtime rate VoicePulse will charge for
; this call
; - Print the rate to the Asterisk CLI
; - Check which rate is lower
; - If the non-VoicePulse rate is lower, it will send your
; call through the other provider
; - If the VoicePulse rate is lower, it will go to the next
; priority below and send the call through VoicePulse
;
; exten => _1NXXNXXXXXX,n,Set(OTHER_PROVIDERS_FLAT_RATE=0.013)
; exten => _1NXXNXXXXXX,n,Macro(voicepulseflexrate,${VOICEPULSE_API_KEY},${EXTEN})
; exten => _1NXXNXXXXXX,n,Verbose(The rate is ${VOICEPULSE_FLEXRATE})
; exten => _1NXXNXXXXXX,n,GotoIf($[${VOICEPULSE_FLEXRATE} > ${OTHER_PROVIDERS_FLAT_RATE}]?${EXTEN}|SomeOtherProvider)
; exten => _1NXXNXXXXXX,n(SomeOtherProvider),Dial(IAX2/SomeOtherProvider)
; .........................................................
; Send your call to VoicePulse using SIP
; VoicePulse recommends using SIP due to its ability to
; separate signalling and media traffic, resulting in a more
; robust and reliable architecture. Using SIP will allow you
; to take full advantage of VoicePulse's various failover
; mechanisms now and in the future.
;exten => _1NXXNXXXXXX,n,Dial(SIP/+${EXTEN}@${VOICEPULSE_GATEWAY_OUT_A})
;exten => _1NXXNXXXXXX,n,GotoIf($[${DIALSTATUS}=CHANUNAVAIL]?${EXTEN}|GatewayB)
;exten => _1NXXNXXXXXX,n(GatewayB),Dial(SIP/+${EXTEN}@${VOICEPULSE_GATEWAY_OUT_B})
;exten => _1NXXNXXXXXX,n,GotoIf($[${DIALSTATUS}=CHANUNAVAIL]?${EXTEN}|GatewayC)
;exten => _1NXXNXXXXXX,n(GatewayC),Dial(SIP/${EXTEN}@${VOICEPULSE_GATEWAY_OUT_C})
; Send your call to VoicePulse using IAX2
; VoicePulse DOES NOT recommend using IAX2 due to its lack
; of built-in failover capabilities. We recommend you take
; the extra time to get SIP working through your firewall for
; long-term reliability.
exten => _1NXXNXXXXXX.,n,Dial(IAX2/voicepulse03/${EXTEN})
exten => _1NXXNXXXXXX.,n,GotoIf($[${DIALSTATUS}=CHANUNAVAIL]?${EXTEN}|GatewayB)
exten => _1NXXNXXXXXX.,n(GatewayB),Dial(IAX2/voicepulse02/${EXTEN})
exten => _1NXXNXXXXXX.,n,GotoIf($[${DIALSTATUS}=CHANUNAVAIL]?${EXTEN}|GatewayC)
exten => _1NXXNXXXXXX.,n(GatewayC),Dial(IAX2/voicepulse01/${EXTEN})
; .........................................................
; International calls
; .........................................................
; Set your CallerID number
; The CallerID number must be a 10-digits.
exten => _011XXXX.,1,Set(CALLERID(num)=0000000000)
; Print the SIP Call-ID to the CLI for troubleshooting.
; You can send this Call-ID to customer service when asked
; for a call example that may have experienced an issue.
exten => _011XXXX.,n,NoOp(SIPCALLID: ${SIPCALLID})
; .........................................................
; LEAST COST ROUTING
;
; Uncommenting the lines below will:
; - Tell Asterisk that your non-VoicePulse flat rate for
; international calls is $0.50
; - Look up the realtime rate VoicePulse will charge for
; this call
; - Print the rate to the Asterisk CLI
; - Check which rate is lower
; - If the non-VoicePulse rate is lower, it will send your
; call through the other provider
; - If the VoicePulse rate is lower, it will go to the next
; priority below and send the call through VoicePulse
;
; exten => _011XXXX.,n,Set(OTHER_PROVIDERS_FLAT_RATE=0.50)
; exten => _011XXXX.,n,Macro(voicepulseflexrate,${VOICEPULSE_API_KEY},${EXTEN})
; exten => _011XXXX.,n,Verbose(The rate is ${VOICEPULSE_FLEXRATE})
; exten => _011XXXX.,n,GotoIf($[${VOICEPULSE_FLEXRATE} > ${OTHER_PROVIDERS_FLAT_RATE}]?${EXTEN}|SomeOtherProvider)
; exten => _011XXXX.,n(SomeOtherProvider),Dial(IAX2/SomeOtherProvider)
; .........................................................
; Send your call to VoicePulse using SIP
; VoicePulse recommends using SIP due to its ability to
; separate signalling and media traffic, resulting in a more
; robust and reliable architecture. Using SIP will allow you
; to take full advantage of VoicePulse's various failover
; mechanisms now and in the future.
;exten => _011XXXX.,n,Dial(SIP/+${EXTEN:3}@${VOICEPULSE_GATEWAY_OUT_A})
;exten => _011XXXX.,n,GotoIf($[${DIALSTATUS}=CHANUNAVAIL]?${EXTEN}|GatewayB)
;exten => _011XXXX.,n(GatewayB),Dial(SIP/+${EXTEN:3}@${VOICEPULSE_GATEWAY_OUT_B})
;exten => _011XXXX.,n,GotoIf($[${DIALSTATUS}=CHANUNAVAIL]?${EXTEN}|GatewayC)
;exten => _011XXXX.,n(GatewayC),Dial(SIP/${EXTEN}@${VOICEPULSE_GATEWAY_OUT_C})
; Send your call to VoicePulse using IAX2
; VoicePulse DOES NOT recommend using IAX2 due to its lack
; of built-in failover capabilities. We recommend you take
; the extra time to get SIP working through your firewall for
; long-term reliability.
exten => _011XXXX.,n,Dial(IAX2/voicepulse03/${EXTEN})
exten => _011XXXX.,n,GotoIf($[${DIALSTATUS}=CHANUNAVAIL]?${EXTEN}|GatewayB)
exten => _011XXXX.,n(GatewayB),Dial(IAX2/voicepulse02/${EXTEN})
exten => _011XXXX.,n,GotoIf($[${DIALSTATUS}=CHANUNAVAIL]?${EXTEN}|GatewayC)
exten => _011XXXX.,n(GatewayC),Dial(IAX2/voicepulse01/${EXTEN})
; ---------------------------------------------------------
; INCOMING CONTEXT
;
; [voicepulse-in] is the context referred to by the
; [voicepulse] peer in sip.conf or the
; [voicepulse-backup] peer in sip.conf or the
; [voicepulse] user in iax.conf.
;
; This is where your custom incoming call processing should
; go.
;
; IMPORTANT: Incoming calls from VoicePulse will have an
; extension of country code + number, so calls from US
; numbers will be 1 + area code + number (11 digits).
; ---------------------------------------------------------
[voicepulse-in]
; .........................................................
; This section catches calls coming from VoicePulse.
;
; The extension used below will catch your incoming calls
; regardless of what phone numbers are on your VoicePulse
; Connect for Asterisk account:
;
; exten => _XX.
;
; If you would like to route your calls based on different
; incoming phone numbers (YOUR numbers, not the caller's
; number), use:
;
; exten => _17325550000,1,Dial(SIP/sipuser)
; exten => _17325550001,1,Dial(IAX2/iaxuser)
; exten => _17325550002,1,Dial(SIP/john)
; ...
; ...
; ...
;
; Copyright (c) 2008 V-o-i-c-e-P-u-l-s-e Inc.
;
; For sample purposes, this section will ring your test
; SIP phone and IAX phones at the same time. For this to
; work:
; - You must have a test phone setup using the test user
; found at the end of sip.conf or iax.conf
; - You must order a phone number on your account
; - You must dial that phone number from a different phone
;
; .........................................................
exten => _XX.,1,NoOp(Call received from VoicePulse)
exten => _XX.,n,Dial(SIP/sipuser&IAX2/iaxuser)
; ---------------------------------------------------------
; BANNED CONTEXT
;
; This context is used by unauthorized incoming or
; outgoing calls
; ---------------------------------------------------------
[banned]
exten => i,1,Hangup
exten => t,1,Hangup
----------------------------------------------------------------
iax.conf
-------------------------------
[general]
bindport=4569
iaxcompat=yes
bandwidth=high
allow=all
allow=gsm ; Always allow GSM, it's cool
jitterbuffer=no
tos=lowdelay
register => ASTtest1:test@192.168.1.2:4569
register => VpQ9dsfsdfDCo52:pass@connect03.voicepulse.com
register => VpQ9dsfsdfo52:pass@connect02.voicepulse.com
register => ASTloop:test@127.0.0.1:40569
register => ASTblind:test@127.0.0.1:41569
[ASTloop]
type=friend
accountcode=ASTloop
context=default
auth=plaintext
host=dynamic
permit=0.0.0.0/0.0.0.0
secret=test
disallow=all
allow=ulaw
qualify=yes
[ASTblind]
type=friend
accountcode=ASTblind
context=default
auth=plaintext
host=dynamic
permit=0.0.0.0/0.0.0.0
secret=test
disallow=all
allow=ulaw
qualify=yes
[1112223333]
auth=md5
type=friend
username=1112223333
secret=PASSWORD
host=iax.binfone.com
context=incoming-IAX-context-in-extensions.conf
[ASTtest2]
type=friend
accountcode=IAXtrunk2
context=default
auth=plaintext
host=dynamic
permit=0.0.0.0/0.0.0.0
secret=test
disallow=all
allow=ulaw
qualify=yes
[firefly01]
type=friend
accountcode=firefly01
context=default
auth=plaintext
host=dynamic
permit=0.0.0.0/0.0.0.0
secret=test
disallow=all
allow=gsm
qualify=yes
[cc300]
type=friend
accountcode=cc300
context=default
auth=md5
host=dynamic
permit=0.0.0.0/0.0.0.0
secret=test
disallow=all
allow=ulaw
allow=alaw
allow=gsm
qualify=yes
[cc301]
type=friend
accountcode=cc301
context=default
auth=md5
host=dynamic
permit=0.0.0.0/0.0.0.0
secret=test
disallow=all
allow=ulaw
allow=alaw
allow=gsm
qualify=yes
[cc302]
type=friend
accountcode=cc302
context=default
auth=md5
host=dynamic
permit=0.0.0.0/0.0.0.0
secret=test
disallow=all
allow=ulaw
allow=alaw
allow=gsm
qualify=yes
[cc303]
type=friend
accountcode=cc303
context=default
auth=md5
host=dynamic
permit=0.0.0.0/0.0.0.0
secret=test
disallow=all
allow=ulaw
allow=alaw
allow=gsm
qualify=yes
[cc304]
type=friend
accountcode=cc304
context=default
auth=md5
host=dynamic
permit=0.0.0.0/0.0.0.0
secret=test
disallow=all
allow=ulaw
allow=alaw
allow=gsm
qualify=yes
[cc305]
type=friend
accountcode=cc305
context=default
auth=md5
host=dynamic
permit=0.0.0.0/0.0.0.0
secret=test
disallow=all
allow=ulaw
allow=alaw
allow=gsm
qualify=yes
[cc306]
type=friend
accountcode=cc306
context=default
auth=md5
host=dynamic
permit=0.0.0.0/0.0.0.0
secret=test
disallow=all
allow=ulaw
allow=alaw
allow=gsm
qualify=yes
[cc307]
type=friend
accountcode=cc307
context=default
auth=md5
host=dynamic
permit=0.0.0.0/0.0.0.0
secret=test
disallow=all
allow=ulaw
allow=alaw
allow=gsm
qualify=yes
[cc308]
type=friend
accountcode=cc308
context=default
auth=md5
host=dynamic
permit=0.0.0.0/0.0.0.0
secret=test
disallow=all
allow=ulaw
allow=alaw
allow=gsm
qualify=yes
[cc309]
type=friend
accountcode=cc309
context=default
auth=md5
host=dynamic
permit=0.0.0.0/0.0.0.0
secret=test
disallow=all
allow=ulaw
allow=alaw
allow=gsm
qualify=yes
[cc310]
type=friend
accountcode=cc310
context=default
auth=md5
host=dynamic
permit=0.0.0.0/0.0.0.0
secret=test
disallow=all
allow=ulaw
allow=alaw
allow=gsm
qualify=yes
[cc311]
type=friend
accountcode=cc311
context=default
auth=md5
host=dynamic
permit=0.0.0.0/0.0.0.0
secret=test
disallow=all
allow=ulaw
allow=alaw
allow=gsm
qualify=yes
[cc312]
type=friend
accountcode=cc312
context=default
auth=md5
host=dynamic
permit=0.0.0.0/0.0.0.0
secret=test
disallow=all
allow=ulaw
allow=alaw
allow=gsm
qualify=yes
[cc313]
type=friend
accountcode=cc313
context=default
auth=md5
host=dynamic
permit=0.0.0.0/0.0.0.0
secret=test
disallow=all
allow=ulaw
allow=alaw
allow=gsm
qualify=yes
[cc314]
type=friend
accountcode=cc314
context=default
auth=md5
host=dynamic
permit=0.0.0.0/0.0.0.0
secret=test
disallow=all
allow=ulaw
allow=alaw
allow=gsm
qualify=yes
[cc315]
type=friend
accountcode=cc315
context=default
auth=md5
host=dynamic
permit=0.0.0.0/0.0.0.0
secret=test
disallow=all
allow=ulaw
allow=alaw
allow=gsm
qualify=yes
[cc316]
type=friend
accountcode=cc316
context=default
auth=md5
host=dynamic
permit=0.0.0.0/0.0.0.0
secret=test
disallow=all
allow=ulaw
allow=alaw
allow=gsm
qualify=yes
[cc317]
type=friend
accountcode=cc317
context=default
auth=md5
host=dynamic
permit=0.0.0.0/0.0.0.0
secret=test
disallow=all
allow=ulaw
allow=alaw
allow=gsm
qualify=yes
[cc318]
type=friend
accountcode=cc318
context=default
auth=md5
host=dynamic
permit=0.0.0.0/0.0.0.0
secret=test
disallow=all
allow=ulaw
allow=alaw
allow=gsm
qualify=yes
[cc319]
type=friend
accountcode=cc319
context=default
auth=md5
host=dynamic
permit=0.0.0.0/0.0.0.0
secret=test
disallow=all
allow=ulaw
allow=alaw
allow=gsm
qualify=yes
[cc320]
type=friend
accountcode=cc320
context=default
auth=md5
host=dynamic
permit=0.0.0.0/0.0.0.0
secret=test
disallow=all
allow=ulaw
allow=alaw
allow=gsm
qualify=yes
[cc321]
type=friend
accountcode=cc321
context=default
auth=md5
host=dynamic
permit=0.0.0.0/0.0.0.0
secret=test
disallow=all
allow=ulaw
allow=alaw
allow=gsm
qualify=yes
[cc322]
type=friend
accountcode=cc322
context=default
auth=md5
host=dynamic
permit=0.0.0.0/0.0.0.0
secret=test
disallow=all
allow=ulaw
allow=alaw
allow=gsm
qualify=yes
[cc323]
type=friend
accountcode=cc323
context=default
auth=md5
host=dynamic
permit=0.0.0.0/0.0.0.0
secret=test
disallow=all
allow=ulaw
allow=alaw
allow=gsm
qualify=yes
[cc324]
type=friend
accountcode=cc324
context=default
auth=md5
host=dynamic
permit=0.0.0.0/0.0.0.0
secret=test
disallow=all
allow=ulaw
allow=alaw
allow=gsm
qualify=yes
[cc325]
type=friend
accountcode=cc325
context=default
auth=md5
host=dynamic
permit=0.0.0.0/0.0.0.0
secret=test
disallow=all
allow=ulaw
allow=alaw
allow=gsm
qualify=yes
[cc326]
type=friend
accountcode=cc326
context=default
auth=md5
host=dynamic
permit=0.0.0.0/0.0.0.0
secret=test
disallow=all
allow=ulaw
allow=alaw
allow=gsm
qualify=yes
[cc327]
type=friend
accountcode=cc327
context=default
auth=md5
host=dynamic
permit=0.0.0.0/0.0.0.0
secret=test
disallow=all
allow=ulaw
allow=alaw
allow=gsm
qualify=yes
[cc328]
type=friend
accountcode=cc328
context=default
auth=md5
host=dynamic
permit=0.0.0.0/0.0.0.0
secret=test
disallow=all
allow=ulaw
allow=alaw
allow=gsm
qualify=yes
[cc329]
type=friend
accountcode=cc329
context=default
auth=md5
host=dynamic
permit=0.0.0.0/0.0.0.0
secret=test
disallow=all
allow=ulaw
allow=alaw
allow=gsm
qualify=yes
[cc330]
type=friend
accountcode=cc330
context=default
auth=md5
host=dynamic
permit=0.0.0.0/0.0.0.0
secret=test
disallow=all
allow=ulaw
allow=alaw
allow=gsm
qualify=yes
[cc331]
type=friend
accountcode=cc331
context=default
auth=md5
host=dynamic
permit=0.0.0.0/0.0.0.0
secret=test
disallow=all
allow=ulaw
allow=alaw
allow=gsm
qualify=yes
[cc332]
type=friend
accountcode=cc332
context=default
auth=md5
host=dynamic
permit=0.0.0.0/0.0.0.0
secret=test
disallow=all
allow=ulaw
allow=alaw
allow=gsm
qualify=yes
[cc333]
type=friend
accountcode=cc333
context=default
auth=md5
host=dynamic
permit=0.0.0.0/0.0.0.0
secret=test
disallow=all
allow=ulaw
allow=alaw
allow=gsm
qualify=yes
[cc334]
type=friend
accountcode=cc334
context=default
auth=md5
host=dynamic
permit=0.0.0.0/0.0.0.0
secret=test
disallow=all
allow=ulaw
allow=alaw
allow=gsm
qualify=yes
[cc335]
type=friend
accountcode=cc335
context=default
auth=md5
host=dynamic
permit=0.0.0.0/0.0.0.0
secret=test
disallow=all
allow=ulaw
allow=alaw
allow=gsm
qualify=yes
[cc336]
type=friend
accountcode=cc336
context=default
auth=md5
host=dynamic
permit=0.0.0.0/0.0.0.0
secret=test
disallow=all
allow=ulaw
allow=alaw
allow=gsm
qualify=yes
[cc337]
type=friend
accountcode=cc337
context=default
auth=md5
host=dynamic
permit=0.0.0.0/0.0.0.0
secret=test
disallow=all
allow=ulaw
allow=alaw
allow=gsm
qualify=yes
[cc338]
type=friend
accountcode=cc338
context=default
auth=md5
host=dynamic
permit=0.0.0.0/0.0.0.0
secret=test
disallow=all
allow=ulaw
allow=alaw
allow=gsm
qualify=yes
[cc339]
type=friend
accountcode=cc339
context=default
auth=md5
host=dynamic
permit=0.0.0.0/0.0.0.0
secret=test
disallow=all
allow=ulaw
allow=alaw
allow=gsm
qualify=yes
[cc340]
type=friend
accountcode=cc340
context=default
auth=md5
host=dynamic
permit=0.0.0.0/0.0.0.0
secret=test
disallow=all
allow=ulaw
allow=alaw
allow=gsm
qualify=yes
[cc341]
type=friend
accountcode=cc341
context=default
auth=md5
host=dynamic
permit=0.0.0.0/0.0.0.0
secret=test
disallow=all
allow=ulaw
allow=alaw
allow=gsm
qualify=yes
[cc342]
type=friend
accountcode=cc342
context=default
auth=md5
host=dynamic
permit=0.0.0.0/0.0.0.0
secret=test
disallow=all
allow=ulaw
allow=alaw
allow=gsm
qualify=yes
[cc343]
type=friend
accountcode=cc343
context=default
auth=md5
host=dynamic
permit=0.0.0.0/0.0.0.0
secret=test
disallow=all
allow=ulaw
allow=alaw
allow=gsm
qualify=yes
[cc344]
type=friend
accountcode=cc344
context=default
auth=md5
host=dynamic
permit=0.0.0.0/0.0.0.0
secret=test
disallow=all
allow=ulaw
allow=alaw
allow=gsm
qualify=yes
[cc345]
type=friend
accountcode=cc345
context=default
auth=md5
host=dynamic
permit=0.0.0.0/0.0.0.0
secret=test
disallow=all
allow=ulaw
allow=alaw
allow=gsm
qualify=yes
[cc346]
type=friend
accountcode=cc346
context=default
auth=md5
host=dynamic
permit=0.0.0.0/0.0.0.0
secret=test
disallow=all
allow=ulaw
allow=alaw
allow=gsm
qualify=yes
[cc347]
type=friend
accountcode=cc347
context=default
auth=md5
host=dynamic
permit=0.0.0.0/0.0.0.0
secret=test
disallow=all
allow=ulaw
allow=alaw
allow=gsm
qualify=yes
[cc348]
type=friend
accountcode=cc348
context=default
auth=md5
host=dynamic
permit=0.0.0.0/0.0.0.0
secret=test
disallow=all
allow=ulaw
allow=alaw
allow=gsm
qualify=yes
[cc349]
type=friend
accountcode=cc349
context=default
auth=md5
host=dynamic
permit=0.0.0.0/0.0.0.0
secret=test
disallow=all
allow=ulaw
allow=alaw
allow=gsm
qualify=yes
[cc350]
type=friend
accountcode=cc350
context=default
auth=md5
host=dynamic
permit=0.0.0.0/0.0.0.0
secret=test
disallow=all
allow=ulaw
allow=alaw
allow=gsm
qualify=yes
[cc351]
type=friend
accountcode=cc351
context=default
auth=md5
host=dynamic
permit=0.0.0.0/0.0.0.0
secret=test
disallow=all
allow=ulaw
allow=alaw
allow=gsm
qualify=yes
[voicepulse] ; <-- Name must be [voicepulse]
context=voicepulse-in ; <-- Should match the context you
; are using in extensions.conf
; to handle incoming calls
type=user
host=connect03.voicepulse.com
qualify=yes
notransfer=yes
allow=all
; ---------------------------------------------------------
; IAX OUTBOUND PEER
;
; This is the peer for outbound calls to:
; connect01.voicepulse.com
; ---------------------------------------------------------
[voicepulse01]
type=peer
host=connect01.voicepulse.com
username=VpQ91DCo52
secret=CPZ18CWF29
qualify=yes
notransfer=yes
auth=md5
allow=all
; ---------------------------------------------------------
; IAX OUTBOUND PEER
;
; This is the peer for outbound calls to:
; connect02.voicepulse.com
; ---------------------------------------------------------
[voicepulse02]
type=peer
host=connect02.voicepulse.com
username=VpQ91DCo52
secret=CPZ18CWF29
qualify=yes
notransfer=yes
auth=md5
allow=all
; ---------------------------------------------------------
; IAX INCOMING USER -- UNAUTHENTICATED CALLS
;
; This is the user for unauthenticated calls
; ---------------------------------------------------------
[guest]
type=user
context=banned
auth=none
; ---------------------------------------------------------
; IAX REGISTERED USER -- FOR TESTING IAX ENDPOINTS
;
; This is a test user. You can use Dan Toma's DIAX Software
; Phone to test your Asterisk configuration. Set the
; following in the DIAX > Config > Registration menu option:
;
; Server: <your Asterisk server IP address>
; Username: iaxuser
; Password: iaxpassword
;
; You can get DIAX at:
; http://www.laser.com/dante/diax/diax.html
; ---------------------------------------------------------
[iaxuser]
type=friend
context=outgoing
auth=md5
secret=iaxpassword
notransfer=1
host=dynamic
allow=all
------------------------------------------------------------
ifconfig
----------------------------------------------------------
# VIA Technologies, Inc. VT6102 [Rhine-II]
DEVICE=eth0
BOOTPROTO=static
DHCPCLASS=
HWADDR=00:19:DB:E9:25:B1
IPADDR=192.168.1.2
NETMASK=255.255.255.0
ONBOOT=yes
GATEWAY=66.189.194.61
---------------------------------------------------------------
sip.conf
--------------------------------------------------------
[general]
port = 5060
bindaddr = 0.0.0.0
context = default
; register SIP account on remote machine if using SIP trunks
; register => testSIPtrunk:test@10.10.10.16:5060
;
; setup account for SIP trunking:
; [SIPtrunk]
; disallow=all
; allow=ulaw
; allow=alaw
; type=friend
; username=testSIPtrunk
; secret=test
; host=10.10.10.16
; dtmfmode=inband
; qualify=1000
; .........................................................
; REGISTER WITH VOICEPULSE
;
; You should register to the datacenter closest to you.
; There are currently two datacenters you may use:
; * New York, NY (JFK)
; * San Jose, CA (SJC)
;
; The entire "register =>" line below should be on one line
; (with no carriage returns in the middle):
; .........................................................
; Register to the legacy servers for fallback
register => VpQ91DCo52:Cdsfdf9@connect03.voicepulse.com
; Register to JFK by default
; West coast users should use sjc-primary and sjc-backup instead
register => VpQ91DCo52:CPZ18Csdfds9@sjc-primary.voicepulse.com
register => VpQ91DCo52:CPZ1dsfd29@sjc-backup.voicepulse.com
[gs102]
disallow=all
allow=ulaw
allow=alaw
type=friend
username=gs102
secret=test
host=dynamic
dtmfmode=inband
defaultip=192.168.1.2
qualify=1000
mailbox=102
[spa2000]
disallow=all
allow=ulaw
allow=alaw
type=friend
username=spa2000
secret=test
host=dynamic
dtmfmode=inband
defaultip=10.10.10.17
qualify=1000
mailbox=2000
[spa2001]
disallow=all
allow=ulaw
allow=alaw
type=friend
username=spa2001
secret=test
host=dynamic
dtmfmode=inband
defaultip=10.10.10.17
qualify=1000
mailbox=2001
[cc100]
disallow=all
allow=ulaw
allow=alaw
type=friend
username=cc100
secret=test
host=dynamic
dtmfmode=inband
defaultip=192.168.1.103
qualify=1000
mailbox=100
[cc101]
disallow=all
allow=ulaw
allow=alaw
type=friend
username=cc101
secret=test
host=dynamic
dtmfmode=inband
defaultip=192.168.1.102
qualify=1000
mailbox=101
[cc102]
disallow=all
allow=ulaw
allow=alaw
type=friend
username=cc102
secret=test
host=dynamic
dtmfmode=inband
defaultip=192.168.1.249
qualify=1000
mailbox=102
[cc103]
disallow=all
allow=ulaw
allow=alaw
type=friend
username=cc103
secret=test
host=dynamic
dtmfmode=inband
defaultip=192.168.1.249
qualify=1000
mailbox=103
[cc104]
disallow=all
allow=ulaw
allow=alaw
type=friend
username=cc104
secret=test
host=dynamic
dtmfmode=inband
defaultip=192.168.1.249
qualify=1000
mailbox=104
[cc105]
disallow=all
allow=ulaw
allow=alaw
type=friend
username=cc105
secret=test
host=dynamic
dtmfmode=inband
defaultip=192.168.1.249
qualify=1000
mailbox=105
[cc106]
disallow=all
allow=ulaw
allow=alaw
type=friend
username=cc106
secret=test
host=dynamic
dtmfmode=inband
defaultip=192.168.1.249
qualify=1000
mailbox=106
[cc107]
disallow=all
allow=ulaw
allow=alaw
type=friend
username=cc107
secret=test
host=dynamic
dtmfmode=inband
defaultip=192.168.1.249
qualify=1000
mailbox=107
[cc108]
disallow=all
allow=ulaw
allow=alaw
type=friend
username=cc108
secret=test
host=dynamic
dtmfmode=inband
defaultip=192.168.1.249
qualify=1000
mailbox=108
[cc109]
disallow=all
allow=ulaw
allow=alaw
type=friend
username=cc109
secret=test
host=dynamic
dtmfmode=inband
defaultip=192.168.1.249
qualify=1000
mailbox=109
[cc110]
disallow=all
allow=ulaw
allow=alaw
type=friend
username=cc110
secret=test
host=dynamic
dtmfmode=inband
defaultip=192.168.1.249
qualify=1100
mailbox=110
[cc111]
disallow=all
allow=ulaw
allow=alaw
type=friend
username=cc111
secret=test
host=dynamic
dtmfmode=inband
defaultip=192.168.1.249
qualify=1100
mailbox=111
[cc112]
disallow=all
allow=ulaw
allow=alaw
type=friend
username=cc112
secret=test
host=dynamic
dtmfmode=inband
defaultip=192.168.1.249
qualify=1100
mailbox=112
[cc113]
disallow=all
allow=ulaw
allow=alaw
type=friend
username=cc113
secret=test
host=dynamic
dtmfmode=inband
defaultip=192.168.1.249
qualify=1100
mailbox=113
[cc114]
disallow=all
allow=ulaw
allow=alaw
type=friend
username=cc114
secret=test
host=dynamic
dtmfmode=inband
defaultip=192.168.1.249
qualify=1100
mailbox=114
[cc115]
disallow=all
allow=ulaw
allow=alaw
type=friend
username=cc115
secret=test
host=dynamic
dtmfmode=inband
defaultip=192.168.1.249
qualify=1100
mailbox=115
[cc116]
disallow=all
allow=ulaw
allow=alaw
type=friend
username=cc116
secret=test
host=dynamic
dtmfmode=inband
defaultip=192.168.1.249
qualify=1100
mailbox=116
[cc117]
disallow=all
allow=ulaw
allow=alaw
type=friend
username=cc117
secret=test
host=dynamic
dtmfmode=inband
defaultip=192.168.1.249
qualify=1100
mailbox=117
[cc118]
disallow=all
allow=ulaw
allow=alaw
type=friend
username=cc118
secret=test
host=dynamic
dtmfmode=inband
defaultip=192.168.1.249
qualify=1100
mailbox=118
[cc119]
disallow=all
allow=ulaw
allow=alaw
type=friend
username=cc119
secret=test
host=dynamic
dtmfmode=inband
defaultip=192.168.1.249
qualify=1100
mailbox=119
[cc120]
disallow=all
allow=ulaw
allow=alaw
type=friend
username=cc120
secret=test
host=dynamic
dtmfmode=inband
defaultip=192.168.1.249
qualify=1200
mailbox=120
[cc121]
disallow=all
allow=ulaw
allow=alaw
type=friend
username=cc121
secret=test
host=dynamic
dtmfmode=inband
defaultip=192.168.1.249
qualify=1200
mailbox=121
[cc122]
disallow=all
allow=ulaw
allow=alaw
type=friend
username=cc122
secret=test
host=dynamic
dtmfmode=inband
defaultip=192.168.1.249
qualify=1200
mailbox=122
[cc123]
disallow=all
allow=ulaw
allow=alaw
type=friend
username=cc123
secret=test
host=dynamic
dtmfmode=inband
defaultip=192.168.1.249
qualify=1200
mailbox=123
[cc124]
disallow=all
allow=ulaw
allow=alaw
type=friend
username=cc124
secret=test
host=dynamic
dtmfmode=inband
defaultip=192.168.1.249
qualify=1200
mailbox=124
[cc125]
disallow=all
allow=ulaw
allow=alaw
type=friend
username=cc125
secret=test
host=dynamic
dtmfmode=inband
defaultip=192.168.1.249
qualify=1200
mailbox=125
[cc126]
disallow=all
allow=ulaw
allow=alaw
type=friend
username=cc126
secret=test
host=dynamic
dtmfmode=inband
defaultip=192.168.1.249
qualify=1200
mailbox=126
[cc127]
disallow=all
allow=ulaw
allow=alaw
type=friend
username=cc127
secret=test
host=dynamic
dtmfmode=inband
defaultip=192.168.1.249
qualify=1200
mailbox=127
[cc128]
disallow=all
allow=ulaw
allow=alaw
type=friend
username=cc128
secret=test
host=dynamic
dtmfmode=inband
defaultip=192.168.1.249
qualify=1200
mailbox=128
[cc129]
disallow=all
allow=ulaw
allow=alaw
type=friend
username=cc129
secret=test
host=dynamic
dtmfmode=inband
defaultip=192.168.1.249
qualify=1200
mailbox=129
[cc130]
disallow=all
allow=ulaw
allow=alaw
type=friend
username=cc130
secret=test
host=dynamic
dtmfmode=inband
defaultip=192.168.1.249
qualify=1300
mailbox=130
[cc131]
disallow=all
allow=ulaw
allow=alaw
type=friend
username=cc131
secret=test
host=dynamic
dtmfmode=inband
defaultip=192.168.1.249
qualify=1300
mailbox=131
[cc132]
disallow=all
allow=ulaw
allow=alaw
type=friend
username=cc132
secret=test
host=dynamic
dtmfmode=inband
defaultip=192.168.1.249
qualify=1300
mailbox=132
[cc133]
disallow=all
allow=ulaw
allow=alaw
type=friend
username=cc133
secret=test
host=dynamic
dtmfmode=inband
defaultip=192.168.1.249
qualify=1300
mailbox=133
[cc134]
disallow=all
allow=ulaw
allow=alaw
type=friend
username=cc134
secret=test
host=dynamic
dtmfmode=inband
defaultip=192.168.1.249
qualify=1300
mailbox=134
[cc135]
disallow=all
allow=ulaw
allow=alaw
type=friend
username=cc135
secret=test
host=dynamic
dtmfmode=inband
defaultip=192.168.1.249
qualify=1300
mailbox=135
[cc136]
disallow=all
allow=ulaw
allow=alaw
type=friend
username=cc136
secret=test
host=dynamic
dtmfmode=inband
defaultip=192.168.1.249
qualify=1300
mailbox=136
[cc137]
disallow=all
allow=ulaw
allow=alaw
type=friend
username=cc137
secret=test
host=dynamic
dtmfmode=inband
defaultip=192.168.1.249
qualify=1300
mailbox=137
[cc138]
disallow=all
allow=ulaw
allow=alaw
type=friend
username=cc138
secret=test
host=dynamic
dtmfmode=inband
defaultip=192.168.1.249
qualify=1300
mailbox=138
[cc139]
disallow=all
allow=ulaw
allow=alaw
type=friend
username=cc139
secret=test
host=dynamic
dtmfmode=inband
defaultip=192.168.1.249
qualify=1300
mailbox=139
[cc140]
disallow=all
allow=ulaw
allow=alaw
type=friend
username=cc140
secret=test
host=dynamic
dtmfmode=inband
defaultip=192.168.1.249
qualify=1400
mailbox=140
[cc141]
disallow=all
allow=ulaw
allow=alaw
type=friend
username=cc141
secret=test
host=dynamic
dtmfmode=inband
defaultip=192.168.1.249
qualify=1400
mailbox=141
[cc142]
disallow=all
allow=ulaw
allow=alaw
type=friend
username=cc142
secret=test
host=dynamic
dtmfmode=inband
defaultip=192.168.1.249
qualify=1400
mailbox=142
[cc143]
disallow=all
allow=ulaw
allow=alaw
type=friend
username=cc143
secret=test
host=dynamic
dtmfmode=inband
defaultip=192.168.1.249
qualify=1400
mailbox=143
[cc144]
disallow=all
allow=ulaw
allow=alaw
type=friend
username=cc144
secret=test
host=dynamic
dtmfmode=inband
defaultip=192.168.1.249
qualify=1400
mailbox=144
[cc145]
disallow=all
allow=ulaw
allow=alaw
type=friend
username=cc145
secret=test
host=dynamic
dtmfmode=inband
defaultip=192.168.1.249
qualify=1400
mailbox=145
[cc146]
disallow=all
allow=ulaw
allow=alaw
type=friend
username=cc146
secret=test
host=dynamic
dtmfmode=inband
defaultip=192.168.1.249
qualify=1400
mailbox=146
[cc147]
disallow=all
allow=ulaw
allow=alaw
type=friend
username=cc147
secret=test
host=dynamic
dtmfmode=inband
defaultip=192.168.1.249
qualify=1400
mailbox=147
[cc148]
disallow=all
allow=ulaw
allow=alaw
type=friend
username=cc148
secret=test
host=dynamic
dtmfmode=inband
defaultip=192.168.1.249
qualify=1400
mailbox=148
[cc149]
disallow=all
allow=ulaw
allow=alaw
type=friend
username=cc149
secret=test
host=dynamic
dtmfmode=inband
defaultip=192.168.1.249
qualify=1400
mailbox=149
[cc150]
disallow=all
allow=ulaw
allow=alaw
type=friend
username=cc150
secret=test
host=dynamic
dtmfmode=inband
defaultip=192.168.1.249
qualify=1400
mailbox=150
[voicepulse]
type=peer
context=voicepulse-in ; <-- the context in extensions.conf
; that you want these calls to go to
host=jfk-primary.voicepulse.com ; <-- west coast users should
; use sjc-primary instead
username=VpQ91DCo52
secret=CPZ18CWF29
qualify=yes
allow=all
canreinvite=no
dtmfmode=rfc2833
rfc2833compensate=yes
insecure=port,invite
trustrpid=yes
[voicepulse-backup]
type=peer
context=voicepulse-in ; <-- the context in extensions.conf
; that you want these calls to go to
host=jfk-backup.voicepulse.com ; <-- west coast users should
; use sjc-backup instead
username=VpQ91DCo52
secret=CPZ18CWF29
qualify=yes
allow=all
canreinvite=no
dtmfmode=rfc2833
rfc2833compensate=yes
insecure=port,invite
trustrpid=yes
; ---------------------------------------------------------
; SIP PEER (Legacy)
;
; This is the peer for calls to/from:
; connect03.voicepulse.com
; ---------------------------------------------------------
[voicepulse-legacy]
type=peer
context=voicepulse-in ; <-- the context in extensions.conf
; that you want these calls to go to
host=connect03.voicepulse.com
qualify=yes
canreinvite=no
username=VpQ91DCo52
fromuser=VpQ91DCo52
secret=CPZ18CWF29
insecure=port,invite
allow=all
dtmfmode=rfc2833
rfc2833compensate=yes
; ---------------------------------------------------------
; SIP USER
;
; This section is left here for migration reasons. The
; from-voicepulse user will no longer be necessary after
; the migration is complete.
; ---------------------------------------------------------
;[from-voicepulse]
;type=user
;context=voicepulse-in ; <-- the context in extensions.conf
; ; that you want these calls to go to
;allow=all
;canreinvite=no
;trustrpid=yes
;dtmfmode=rfc2833
;rfc2833compensate=yes
; ---------------------------------------------------------
; REGISTERED USER -- FOR TESTING SIP ENDPOINTS
;
; This is a test user. You can use Counterpath's X-Lite
; Phone to test your Asterisk configuration. Configure the
; following settings:
;
; Menu > System Settings > Sip Proxy > [default]
;
; Enabled: Yes
; Display Name: sipuser
; User Name: sipuser
; Authorization User: sipuser
; Password: sippassword
; SIP Proxy: <your Asterisk server IP address>
;
; You can get X-Lite at:
; http://www.counterpath.com/
; ---------------------------------------------------------
[sipuser]
type=friend
host=dynamic
secret=sippassword
context=outgoing
canreinvite=no
allow=all
-----------------------------
zapata
------------------------------
# /etc/asterisk/zapata.conf:
# Digium/Clone X100P EXAMPLE:
# Here is an example of a configuration where an X100P single FXO card is used
# for zaptel timing and not used for calling:
#
# NOTE: you can get an X100P on ebay for $10-30 that will work with Asterisk
[trunkgroups]
[channels]
language=en
usecallerid=no
hidecallerid=no
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=no
echotraining=800
rxgain=0.0
txgain=0.0
group=0
callgroup=1
pickupgroup=1
immediate=yes
signalling=fxs_ks
switchtype=national
prilocaldialplan=unknown
context=from-avaya
group=2
channel => 1-48