trunkinbound
Posted: Mon Jun 06, 2011 7:36 am
Hi there,
I have some questions related on relation Asterisk/Vicidial(GoAutodial) configuration files.
I create carrier and I made outbound calls.Next step-after I bought DID,I try to make inbound calls.After I failed and study some configuration files I found following: context [trunkinbound] is inside extensions.conf file(belongs to asterisk if I am not wrong).And inside extensions-vicidial.conf I don't have [trunkinbound].
My carrier set up:
[mydivert]
username=user
type=friend
secret=password
host=78.46.43.9
fromuser=user
context=trunkinbound
allow=alaw
trustrpid = yes
sendrpid = yes
canreinvite = no
qualify = yes
dial plan:
exten => _X.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _X.,2,Set(CALLERID(name)=mynumber)
exten => _X.,3,Set(CALLERID(num)=mynumber)
exten => _X.,4,Dial(SIP/${EXTEN}@mydivert,30,Tt)
exten => _X.,5,Hangup
extensions-vicidial.conf:
; WARNING- THIS FILE IS AUTO-GENERATED BY VICIDIAL, ANY EDITS YOU MAKE WILL BE LOST
TRUNKloop = IAX2/ASTloop:test@127.0.0.1:40569
TRUNKblind = IAX2/ASTblind:test@127.0.0.1:41569
SIPmydivert= SIP/mydivert
; logging of all outbound calls from agent phones
[defaultlog]
exten => s,1,AGI(agi-VDAD_inbound_calltime_check.agi,-----NO-----defaultlog--------------------)
exten => s,n,Background(sip-silence)
exten => s,n,WaitExten(20)
; hangup
exten => t,1,Playback(vm-goodbye)
exten => t,n,Hangup
exten => i,1,Goto(s,2)
; hangup
exten => h,1,DeadAGI(agi://127.0.0.1:4577/call_log--HVcauses ... EBUG-----${HANGUPCAUSE}-----${DIALSTATUS}-----${DIALEDTIME}-----${ANSWEREDTIME})
; custom dialplan entries
exten => _X.,1,AGI(agi-NVA_recording.agi,BOTH------Y---Y---Y)
exten => _X.,n,Goto(default,${EXTEN},1)
[vicidial-auto]
exten => h,1,DeadAGI(agi://127.0.0.1:4577/call_log--HVcauses ... EBUG-----${HANGUPCAUSE}-----${DIALSTATUS}-----${DIALEDTIME}-----${ANSWEREDTIME})
; Local Server: 192.168.1.2
exten => _192*168*001*002*.,1,Goto(default,${EXTEN:16},1)
; VICIDIAL Carrier: MyDivert - Mydivert
; my divert trunk
exten => _X.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _X.,2,Set(CALLERID(name)=mynumber)
exten => _X.,3,Set(CALLERID(num)=mynumber)
exten => _X.,4,Dial(SIP/${EXTEN}@mydivert,30,Tt)
exten => _X.,5,Hangup
again if I am not wrong information about DID route are on :agi-DID_route.agi -where they said :
You need to put a line similar to this below in your extensions.conf file in
# the context for where incoming calls go from your trunks (for example, the
# trunkinbound context which is present in the default dialplan):
#
#[trunkinbound]
# ;inbound DID catch-all:
#exten => _X.,1,AGI(agi-DID_route.agi)
so question is: [trunkinbound] information about DID route should be on extensions.conf or extensions-vicidial.conf.
I have this information on extensions.conf and inbound calls are not working,
thank you very much for understanding,
Ivan
GoAutoDial CE 2.2.1-237 | Vicidial 2.4-309a Build 110430-1642| Asterisk 1.4.27.1-1 | Single Server | No
Digium/Sangoma Hardware | No Extra Software After Installation
I have some questions related on relation Asterisk/Vicidial(GoAutodial) configuration files.
I create carrier and I made outbound calls.Next step-after I bought DID,I try to make inbound calls.After I failed and study some configuration files I found following: context [trunkinbound] is inside extensions.conf file(belongs to asterisk if I am not wrong).And inside extensions-vicidial.conf I don't have [trunkinbound].
My carrier set up:
[mydivert]
username=user
type=friend
secret=password
host=78.46.43.9
fromuser=user
context=trunkinbound
allow=alaw
trustrpid = yes
sendrpid = yes
canreinvite = no
qualify = yes
dial plan:
exten => _X.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _X.,2,Set(CALLERID(name)=mynumber)
exten => _X.,3,Set(CALLERID(num)=mynumber)
exten => _X.,4,Dial(SIP/${EXTEN}@mydivert,30,Tt)
exten => _X.,5,Hangup
extensions-vicidial.conf:
; WARNING- THIS FILE IS AUTO-GENERATED BY VICIDIAL, ANY EDITS YOU MAKE WILL BE LOST
TRUNKloop = IAX2/ASTloop:test@127.0.0.1:40569
TRUNKblind = IAX2/ASTblind:test@127.0.0.1:41569
SIPmydivert= SIP/mydivert
; logging of all outbound calls from agent phones
[defaultlog]
exten => s,1,AGI(agi-VDAD_inbound_calltime_check.agi,-----NO-----defaultlog--------------------)
exten => s,n,Background(sip-silence)
exten => s,n,WaitExten(20)
; hangup
exten => t,1,Playback(vm-goodbye)
exten => t,n,Hangup
exten => i,1,Goto(s,2)
; hangup
exten => h,1,DeadAGI(agi://127.0.0.1:4577/call_log--HVcauses ... EBUG-----${HANGUPCAUSE}-----${DIALSTATUS}-----${DIALEDTIME}-----${ANSWEREDTIME})
; custom dialplan entries
exten => _X.,1,AGI(agi-NVA_recording.agi,BOTH------Y---Y---Y)
exten => _X.,n,Goto(default,${EXTEN},1)
[vicidial-auto]
exten => h,1,DeadAGI(agi://127.0.0.1:4577/call_log--HVcauses ... EBUG-----${HANGUPCAUSE}-----${DIALSTATUS}-----${DIALEDTIME}-----${ANSWEREDTIME})
; Local Server: 192.168.1.2
exten => _192*168*001*002*.,1,Goto(default,${EXTEN:16},1)
; VICIDIAL Carrier: MyDivert - Mydivert
; my divert trunk
exten => _X.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _X.,2,Set(CALLERID(name)=mynumber)
exten => _X.,3,Set(CALLERID(num)=mynumber)
exten => _X.,4,Dial(SIP/${EXTEN}@mydivert,30,Tt)
exten => _X.,5,Hangup
again if I am not wrong information about DID route are on :agi-DID_route.agi -where they said :
You need to put a line similar to this below in your extensions.conf file in
# the context for where incoming calls go from your trunks (for example, the
# trunkinbound context which is present in the default dialplan):
#
#[trunkinbound]
# ;inbound DID catch-all:
#exten => _X.,1,AGI(agi-DID_route.agi)
so question is: [trunkinbound] information about DID route should be on extensions.conf or extensions-vicidial.conf.
I have this information on extensions.conf and inbound calls are not working,
thank you very much for understanding,
Ivan
GoAutoDial CE 2.2.1-237 | Vicidial 2.4-309a Build 110430-1642| Asterisk 1.4.27.1-1 | Single Server | No
Digium/Sangoma Hardware | No Extra Software After Installation