how to configure extensions.conf for inbound

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

how to configure extensions.conf for inbound

Postby abhasbajpai » Mon Jul 23, 2007 11:09 am

hi
i managed to configure for outbound but for inbound i am in trouble
its all to all sip trunk
the did no given by my sip provider is
91102127
i am having one xlite phone no 400 registerd to asterisk

did no rings at asterisk but dosnt ring the extensions
here is the asterisk cli output

<-- SIP read from 58.68.65.40:5060:
OPTIONS sip:91102127@125.17.242.180 SIP/2.0
Via: SIP/2.0/UDP 58.68.65.40:5060;branch=z9hG4bK650a7ab2;rport
From: "Unknown" <sip:Unknown@58.68.65.40>;tag=as3e81c2b4
To: <sip:91102127@125.17.242.180>
Contact: <sip:Unknown@58.68.65.40>
Call-ID: 0d7ffae55bed4a4132e4d2133356ba6d@58.68.65.40
CSeq: 102 OPTIONS
User-Agent: telunet
Max-Forwards: 70
Date: Mon, 23 Jul 2007 15:59:01 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Content-Length: 0


--- (12 headers 0 lines) ---
Looking for 91102127 in default (domain 125.17.242.180)
Transmitting (no NAT) to 58.68.65.40:5060:
SIP/2.0 404 Not Found
Via: SIP/2.0/UDP 58.68.65.40:5060;branch=z9hG4bK650a7ab2;received=58.68.65.40;rp ort=5060
From: "Unknown" <sip:Unknown@58.68.65.40>;tag=as3e81c2b4
To: <sip:91102127@125.17.242.180>;tag=as52a78d9d
Call-ID: 0d7ffae55bed4a4132e4d2133356ba6d@58.68.65.40
CSeq: 102 OPTIONS
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Accept: application/sdp
Content-Length: 0





this is my sip.conf
[general]
context=default
bindport=5060
bindaddr=0.0.0.0
srvlookup=yes

disallow=all
allow=g729
allow=ulaw
register =>91102127@PULSE:xxxx:91102127@PULSE/91102127

[authentication]

[PULSE]
type=friend
secret=XXXXX
user=91102127
username=91102127
host=XX.XX.XX
fromdomain=XX.XX.XX
fromuser=91102127
context=default
;context=from-pstn

[400]
type=friend
nat=no
canreinvite=yes
dtmfmode=rfc2833
username=400
secret=400
host=dynamic
context=default
callerid="Agent" <400>
mailbox=400@default

and this is my extensions.conf


[general]
static=yes
writeprotect=no
autofallthrough=yes
clearglobalvars=no
priorityjumping=no

[globals]
CONSOLE=Console/dsp
IAXINFO=guest
TRUNK=Zap/g2
TRUNKMSD=1

[macro-stdexten]
exten=>s,1,Dial(${ARG2},20)
exten=>s,2,Goto(s-${DIALSTATUS},1)
exten=>s-NOANSWER,1,Voicemail(u${ARG1})
exten=>s-NOANSWER,2,Goto(default,s,1)
exten=>s-BUSY,1,Voicemail(b${ARG1})
exten=>s-BUSY,2,Goto(default,s,1)
exten=>_s-.,1,Goto(s-NOANSWER,1)
exten=>a,1,VoicemailMain(${ARG1})

[macro-stdprivacyexten]
exten=>s,1,Dial(${ARG2},20|p)
exten=>s,2,Goto(s-${DIALSTATUS},1)
exten=>s-NOANSWER,1,Voicemail(u${ARG1})
exten=>s-NOANSWER,2,Goto(default,s,1)
exten=>s-BUSY,1,Voicemail(b${ARG1})
exten=>s-BUSY,2,Goto(default,s,1)
exten=>s-DONTCALL,1,Goto(${ARG3},s,1)
exten=>s-TORTURE,1,Goto(${ARG4},s,1)
exten=>_s-.,1,Goto(s-NOANSWER,1)
exten=>a,1,VoicemailMain(${ARG1})


[default]

; Extension 400
exten => 400,1,Playback,transfer|skip ; "Please hold while..."
exten => 400,2,Dial,sip/400|20|to ; Ring, 20 secs max
exten => 400,3,Voicemail,400 ; Send to voicemail...


exten=>_4XX,1,Dial(SIP/${EXTEN},50)
exten=>_4XX,2,Hangup


include=>vicidial

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"
[vicidial]
;exten => h,1,AGI(call_log.agi,${EXTEN}) ; use regular AGI for older versions
exten => h,1,DeadAGI(call_log.agi,${EXTEN}) ; DeadAGI is new
exten => h,2,DeadAGI(VD_hangup.agi,PRI-----NODEBUG-----${HANGUPCAUSE}-----${DIALSTATUS}-----${DIALEDTIME}-----${ANSWEREDTIME})

[incoming]
exten => 91102127,1,AGI(AGI(agi://127.0.0.1:4577/call_log)
exten => 91102127,2,Dial(sip/400,55,o)
exten => 91102127,3,Hangup



; Call US
exten => _1NXXXXXXXXX,1,Monitor(WAV,${TIMESTAMP}_${CALLERIDNUM}_${EXTEN},mb)
exten => _1NXXXXXXXXX,2,Dial(SIP/${EXTEN}@PULSE,,tTo)
exten => _1NXXXXXXXXX,3,Hangup; Call Australia
exten => _61NXXXXXXXX,1,Monitor(WAV,${TIMESTAMP}_${CALLERIDNUM}_${EXTEN},mb)
exten => _61NXXXXXXXX,2,Dial(SIP/${EXTEN}@aabhas,,tTo)
exten => _61NXXXXXXXX,3,Hangup

exten => _610XXXXXXXXX,1,Monitor(WAV,${TIMESTAMP}_${CALLERIDNUM}_61${EXTEN:3},mb)
exten => _610XXXXXXXXX,2,Dial(SIP/${EXTEN:3}@aabhas,,tTo)
exten => _610XXXXXXXXX,3,Hangup

; Extension 3429 - Inbound 800 number (1-800-555-3429)
exten => _**3429,1,Ringing
exten => _**3429,2,AGI(call_log.agi,${EXTEN})
exten => _**3429,3,Answer
exten => _**3429,4,Dial,sip/spa2000&sip/spa2001|30|to
exten => _**3429,5,Voicemail,u2000
; Extension 3429 - with ANI [callerID]
exten => _*NXXNXXXXXX*3429,1,Ringing
exten => _*NXXNXXXXXX*3429,2,AGI(call_log.agi,${EXTEN})
exten => _*NXXNXXXXXX*3429,3,Answer
exten => _*NXXNXXXXXX*3429,4,Dial,sip/spa2000&sip/spa2001|30|to
exten => _*NXXNXXXXXX*3429,5,Voicemail,u2000

; dial a long distance outbound number to the UK
;exten => _901144XXXXXXXXXX,1,AGI(call_log.agi,${EXTEN})
;exten => _901144XXXXXXXXXX,2,Dial(${TRUNKX}/${EXTEN:1},55,tTo)
;exten => _901144XXXXXXXXXX,3,Hangup

; dial a long distance outbound number to Australia
;exten => _901161XXXXXXXXX,1,AGI(call_log.agi,${EXTEN})
;exten => _901161XXXXXXXXX,2,Dial(${TRUNKX}/${EXTEN:1},,tTo)
;exten => _901161XXXXXXXXX,3,Hangup

; dial an 800 outbound number
;exten => _91800NXXXXXX,1,AGI(call_log.agi,${EXTEN})
;exten => _91800NXXXXXX,2,Dial(${TRUNK}/${EXTEN:1},,tTo)
;exten => _91800NXXXXXX,3,Hangup
;exten => _91888NXXXXXX,1,AGI(call_log.agi,${EXTEN})
;exten => _91888NXXXXXX,2,Dial(${TRUNK}/${EXTEN:1},,tTo)
;exten => _91888NXXXXXX,3,Hangup
;exten => _91877NXXXXXX,1,AGI(call_log.agi,${EXTEN})
;exten => _91877NXXXXXX,2,Dial(${TRUNK}/${EXTEN:1},,tTo)
;exten => _91877NXXXXXX,3,Hangup
;exten => _91866NXXXXXX,1,AGI(call_log.agi,${EXTEN})
;exten => _91866NXXXXXX,2,Dial(${TRUNK}/${EXTEN:1},,tTo)
;exten => _91866NXXXXXX,3,Hangup

; dial a local 727 outbound number with area code
;exten => _9727NXXXXXX,1,AGI(call_log.agi,${EXTEN})
;exten => _9727NXXXXXX,2,Dial(${TRUNK}/1${EXTEN:1},,tTo)
;exten => _9727NXXXXXX,3,Hangup

; dial a local 813 outbound number with area code
;exten => _9813NXXXXXX,1,AGI(call_log.agi,${EXTEN})
;exten => _9813NXXXXXX,2,Dial(${TRUNK}/${EXTEN:1},,tTo)
;exten => _9813NXXXXXX,3,Hangup

; dial a long distance outbound number
;exten => _91NXXNXXXXXX,1,AGI(call_log.agi,${EXTEN})
;exten => _91NXXNXXXXXX,2,Dial(${TRUNKX}/${EXTEN:1},,tTo)
;exten => _91NXXNXXXXXX,3,Hangup

; dial a local outbound number (modified because of only LD T1)
;exten => _9NXXXXXX,1,AGI(call_log.agi,${EXTEN})
;exten => _9NXXXXXX,2,Dial(${TRUNK}/1727${EXTEN:1},,tTo)
;exten => _9NXXXXXX,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

; Extension 3429 - Inbound 800 number (1-800-555-3429)
exten => _**3429,1,Ringing
exten => _**3429,2,AGI(call_log.agi,${EXTEN})
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(call_log.agi,${EXTEN})
exten => _*NXXNXXXXXX*3429,3,AGI(call_inbound.agi,spa2000-----8005553429-----Inbound 800-----x-----y-----z-----w)
exten => _*NXXNXXXXXX*3429,3,Answer
exten => _*NXXNXXXXXX*3429,4,Dial,sip/spa2000&sip/spa2001|30|to
exten => _*NXXNXXXXXX*3429,5,Voicemail,u2000


; parameters for agi-VDADcloser.agi (2 fields separated by five dashes "-----"):
; 1. the full extension formatted by VICIDIAL for internal transfers * separated
; 2. the word START to denote the beginning of the acceptance of the transfer
; inbound VICIDIAL transfer calls [can arrive through PRI T1 crossover or IAX channel]
exten => _90009.,1,Answer ; Answer the line
exten => _90009.,2,AGI(agi-VDADcloser.agi,${EXTEN}-----START)
exten => _90009.,3,Hangup

; parameters for agi-VDADcloser_inbound....agi (7 fields separated by five dashes "-----"):
; 1. the full name of the IN GROUP to be used in vicidial for the inbound call
; 2. the phone number that was called, for the log entry
; 3. the callerID or lead_id of the person that called(usually overridden)
; 4. the park extension audio file name if used
; 5. the status of the call initially(usually not used)
; 6. the list_id to insert the new lead under if it is new (and callerID available)
; 7. the phone dialing code to insert with the new lead if new (and callerID available)

; inbound VICIDIAL call with CID delivery through T1 PRI
exten => 1234,1,Ringing ; call ringing
exten => 1234,2,Wait(1) ; Wait 1 second for CID delivery from PRI
exten => 1234,3,Answer ; Answer the line
exten => 1234,4,AGI(agi-VDADcloser_inboundCID.agi,CL_GALLERIA-----7275555134-----Closer-----park----------999-----1)
exten => 1234,5,Hangup

; inbound VICIDIAL call with ANI delivery through robbed-bit T1 (*NXXNXXXXXX*DNIS)
exten => 1234,1,Answer ; Answer the line
exten => 1234,2,AGI(agi-VDADcloser_inboundANI.agi,CL_GALLERIA-----7275555134-----Closer-----park----------999-----1)
exten => 1234,3,Hangup

; inbound VICIDIAL call with prompt for 4-digit fronter code
exten => 1234,1,Answer ; Answer the line
exten => 1234,2,AGI(agi-VDADcloser_inbound.agi,CL_GALLERIA-----7275555134-----Closer-----park----------999-----1)
exten => 1234,3,Hangup

exten => 8600011,1,Meetme,8600011|q
exten => 8600012,1,Meetme,8600012|q
exten => 8600013,1,Meetme,8600013|q
exten => 8600014,1,Meetme,8600014|q
exten => 8600015,1,Meetme,8600015|q
exten => 8600016,1,Meetme,8600016|q
exten => 8600017,1,Meetme,8600017|q
exten => 8600018,1,Meetme,8600018|q
exten => 8600019,1,Meetme,8600019|q
exten => 8600020,1,Meetme,8600020|q
exten => 8600021,1,Meetme,8600021|q
exten => 8600022,1,Meetme,8600022|q
exten => 8600023,1,Meetme,8600023|q
exten => 8600024,1,Meetme,8600024|q
exten => 8600025,1,Meetme,8600025|q
exten => 8600026,1,Meetme,8600026|q
exten => 8600027,1,Meetme,8600027|q
exten => 8600028,1,Meetme,8600028|q
exten => 8600029,1,Meetme,8600029|q

exten => 8600051,1,Meetme,8600051
exten => 8600052,1,Meetme,8600052
exten => 8600053,1,Meetme,8600053
exten => 8600054,1,Meetme,8600054
exten => 8600055,1,Meetme,8600055
exten => 8600056,1,Meetme,8600056
exten => 8600057,1,Meetme,8600057
exten => 8600058,1,Meetme,8600058
exten => 8600059,1,Meetme,8600059
exten => 8600060,1,Meetme,8600060
exten => 8600061,1,Meetme,8600061
exten => 8600062,1,Meetme,8600062
exten => 8600063,1,Meetme,8600063
exten => 8600064,1,Meetme,8600064
exten => 8600065,1,Meetme,8600065
exten => 8600066,1,Meetme,8600066
exten => 8600067,1,Meetme,8600067
exten => 8600068,1,Meetme,8600068
exten => 8600069,1,Meetme,8600069
exten => 8600070,1,Meetme,8600070
exten => 8600071,1,Meetme,8600071
exten => 8600072,1,Meetme,8600072
exten => 8600073,1,Meetme,8600073
exten => 8600074,1,Meetme,8600074
exten => 8600075,1,Meetme,8600075
exten => 8600076,1,Meetme,8600076
exten => 8600077,1,Meetme,8600077
exten => 8600078,1,Meetme,8600078
exten => 8600079,1,Meetme,8600079
exten => 8600080,1,Meetme,8600080
exten => 8600081,1,Meetme,8600081
exten => 8600082,1,Meetme,8600082
exten => 8600083,1,Meetme,8600083
exten => 8600084,1,Meetme,8600084
exten => 8600085,1,Meetme,8600085
exten => 8600086,1,Meetme,8600086
exten => 8600087,1,Meetme,8600087
exten => 8600088,1,Meetme,8600088
exten => 8600089,1,Meetme,8600089
exten => 8600090,1,Meetme,8600090
exten => 8600091,1,Meetme,8600091
exten => 8600092,1,Meetme,8600092
exten => 8600093,1,Meetme,8600093
exten => 8600094,1,Meetme,8600094
exten => 8600095,1,Meetme,8600095
exten => 8600096,1,Meetme,8600096
exten => 8600097,1,Meetme,8600097
exten => 8600098,1,Meetme,8600098
exten => 8600099,1,Meetme,8600099
exten => 8600100,1,Meetme,8600100
; quiet entry and leaving conferences for VICIDIAL
exten => 78600051,1,Meetme,8600051|q
exten => 78600052,1,Meetme,8600052|q
exten => 78600053,1,Meetme,8600053|q
exten => 78600054,1,Meetme,8600054|q
exten => 78600055,1,Meetme,8600055|q
exten => 78600056,1,Meetme,8600056|q
exten => 78600057,1,Meetme,8600057|q
exten => 78600058,1,Meetme,8600058|q
exten => 78600059,1,Meetme,8600059|q
exten => 78600060,1,Meetme,8600060|q
exten => 78600061,1,Meetme,8600061|q
exten => 78600062,1,Meetme,8600062|q
exten => 78600063,1,Meetme,8600063|q
exten => 78600064,1,Meetme,8600064|q
exten => 78600065,1,Meetme,8600065|q
exten => 78600066,1,Meetme,8600066|q
exten => 78600067,1,Meetme,8600067|q
exten => 78600068,1,Meetme,8600068|q
exten => 78600069,1,Meetme,8600069|q
exten => 78600070,1,Meetme,8600070|q
exten => 78600071,1,Meetme,8600071|q
exten => 78600072,1,Meetme,8600072|q
exten => 78600073,1,Meetme,8600073|q
exten => 78600074,1,Meetme,8600074|q
exten => 78600075,1,Meetme,8600075|q
exten => 78600076,1,Meetme,8600076|q
exten => 78600077,1,Meetme,8600077|q
exten => 78600078,1,Meetme,8600078|q
exten => 78600079,1,Meetme,8600079|q
exten => 78600080,1,Meetme,8600080|q
exten => 78600081,1,Meetme,8600081|q
exten => 78600082,1,Meetme,8600082|q
exten => 78600083,1,Meetme,8600083|q
exten => 78600084,1,Meetme,8600084|q
exten => 78600085,1,Meetme,8600085|q
exten => 78600086,1,Meetme,8600086|q
exten => 78600087,1,Meetme,8600087|q
exten => 78600088,1,Meetme,8600088|q
exten => 78600089,1,Meetme,8600089|q
exten => 78600090,1,Meetme,8600090|q
exten => 78600091,1,Meetme,8600091|q
exten => 78600092,1,Meetme,8600092|q
exten => 78600093,1,Meetme,8600093|q
exten => 78600094,1,Meetme,8600094|q
exten => 78600095,1,Meetme,8600095|q
exten => 78600096,1,Meetme,8600096|q
exten => 78600097,1,Meetme,8600097|q
exten => 78600098,1,Meetme,8600098|q
exten => 78600099,1,Meetme,8600099|q
exten => 78600100,1,Meetme,8600100|q
; quiet monitor extensions for meetme rooms (for room managers)
exten => 68600051,1,Meetme,8600051|mq
exten => 68600052,1,Meetme,8600052|mq
exten => 68600053,1,Meetme,8600053|mq
exten => 68600054,1,Meetme,8600054|mq
exten => 68600055,1,Meetme,8600055|mq
exten => 68600056,1,Meetme,8600056|mq
exten => 68600057,1,Meetme,8600057|mq
exten => 68600058,1,Meetme,8600058|mq
exten => 68600059,1,Meetme,8600059|mq
exten => 68600060,1,Meetme,8600060|mq
exten => 68600061,1,Meetme,8600061|mq
exten => 68600062,1,Meetme,8600062|mq
exten => 68600063,1,Meetme,8600063|mq
exten => 68600064,1,Meetme,8600064|mq
exten => 68600065,1,Meetme,8600065|mq
exten => 68600066,1,Meetme,8600066|mq
exten => 68600067,1,Meetme,8600067|mq
exten => 68600068,1,Meetme,8600068|mq
exten => 68600069,1,Meetme,8600069|mq
exten => 68600070,1,Meetme,8600070|mq
exten => 68600071,1,Meetme,8600071|mq
exten => 68600072,1,Meetme,8600072|mq
exten => 68600073,1,Meetme,8600073|mq
exten => 68600074,1,Meetme,8600074|mq
exten => 68600075,1,Meetme,8600075|mq
exten => 68600076,1,Meetme,8600076|mq
exten => 68600077,1,Meetme,8600077|mq
exten => 68600078,1,Meetme,8600078|mq
exten => 68600079,1,Meetme,8600079|mq
exten => 68600080,1,Meetme,8600080|mq
exten => 68600081,1,Meetme,8600081|mq
exten => 68600082,1,Meetme,8600082|mq
exten => 68600083,1,Meetme,8600083|mq
exten => 68600084,1,Meetme,8600084|mq
exten => 68600085,1,Meetme,8600085|mq
exten => 68600086,1,Meetme,8600086|mq
exten => 68600087,1,Meetme,8600087|mq
exten => 68600088,1,Meetme,8600088|mq
exten => 68600089,1,Meetme,8600089|mq
exten => 68600090,1,Meetme,8600090|mq
exten => 68600091,1,Meetme,8600091|mq
exten => 68600092,1,Meetme,8600092|mq
exten => 68600093,1,Meetme,8600093|mq
exten => 68600094,1,Meetme,8600094|mq
exten => 68600095,1,Meetme,8600095|mq
exten => 68600096,1,Meetme,8600096|mq
exten => 68600097,1,Meetme,8600097|mq
exten => 68600098,1,Meetme,8600098|mq
exten => 68600099,1,Meetme,8600099|mq
exten => 68600100,1,Meetme,8600100|mq

; 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

; 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)
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)
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

; 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

; prompt recording AGI script, ID is 4321
exten => 8168,1,Answer
exten => 8168,2,AGI(agi-record_prompts.agi)
exten => 8168,3,Hangup

; playback of recorded prompts
exten => _851XXXXX,1,Answer
exten => _851XXXXX,2,Playback(${EXTEN})
exten => _851XXXXX,3,Hangup

; VICIDIAL_auto_dialer transfer script:
exten => 8365,1,AGI(call_log.agi,${EXTEN})
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(call_log.agi,${EXTEN})
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(call_log.agi,${EXTEN})
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(call_log.agi,${EXTEN})
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(call_log.agi,${EXTEN})
exten => 8369,2,AMD(3500|1500|300|5000|120|50|5|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(call_log.agi,${EXTEN})
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


[druid-users]
;exten=>100,1,Macro(stdexten,100,SIP/100)
;exten=>200,1,Macro(stdexten,200,IAX2/200)

[druid-default]
include=>druid-users

here i can do outbound calling very eaisly
please help me.
abhasbajpai
 
Posts: 89
Joined: Sun Aug 13, 2006 1:22 am

Postby ramindia » Tue Jul 24, 2007 2:33 am

Hi

exten => 91102127,1,AGI(AGI(agi://127.0.0.1:4577/call_log)
exten => 91102127,2,Dial(sip/400,55,o)
exten => 91102127,3,Hangup


this lines should be in default context

ram
Kindly post your feedback, if this solution works.
so its very usefull for others who join later as a NEWBIE.
ramindia
 
Posts: 688
Joined: Wed Oct 11, 2006 4:06 am
Location: India

Postby abhasbajpai » Wed Jul 25, 2007 12:32 am

thanks
ram india it worked
now if i have 5 softphones like 400,401,402,403,404
so i have to change the lines to

exten => 91102127,1,AGI(AGI(agi://127.0.0.1:4577/call_log)
exten => 91102127,2,Dial(sip/4XX,55,o)
exten => 91102127,3,Hangup

or it should be

exten => 91102127,1,AGI(AGI(agi://127.0.0.1:4577/call_log)
exten => 91102127,2,Dial(sip/400&sip/401&sip/402,55,o)
exten => 91102127,3,Hangup


or for every extension there should be this


exten => 91102127,1,AGI(AGI(agi://127.0.0.1:4577/call_log)
exten => 91102127,2,Dial(sip/400,55,o)
exten => 91102127,3,Hangup

exten => 91102127,1,AGI(AGI(agi://127.0.0.1:4577/call_log)
exten => 91102127,2,Dial(sip/401,55,o)
exten => 91102127,3,Hangup

like wise for every phone

thanks
again for advise
abhasbajpai
 
Posts: 89
Joined: Sun Aug 13, 2006 1:22 am

Postby ramindia » Wed Jul 25, 2007 4:36 am

Hi

this is asterisk Dialplan issue

please post this to Asteriks group

there are lot of example there in the group

ram
Kindly post your feedback, if this solution works.
so its very usefull for others who join later as a NEWBIE.
ramindia
 
Posts: 688
Joined: Wed Oct 11, 2006 4:06 am
Location: India


Return to Support

Who is online

Users browsing this forum: Google [Bot] and 125 guests