Page 1 of 1

Sample config of extensions.conf

PostPosted: Thu Jan 15, 2009 2:25 pm
by wolverine
hi to all

i want to add a UK country code in my vicidial,but i dont know how, :P

im tried to put this

exten => _944.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _944.,2,Dial(sip/${EXTEN:1}@AsiaPacific_1,55,o)
exten => _944.,3,Hangup


but this is the result when im test a call to UK

in new stack
-- Called 442890610658@AsiaPacific_1
-- Got SIP response 503 "NoCircuitChannelAvailable" back from ***.**.**.***
-- SIP/AsiaPacific_1-09f957d0 is circuit-busy
== Everyone is busy/congested at this time (1:0/1/0)
-- Executing Hangup("SIP/eric-09f88208", "") in new stack
== Spawn extension (default, 9442890610658, 3) exited non-zero on 'SIP/eric-09f88208'
-- Executing DeadAGI("SIP/eric-09f88208", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----34-----CONGESTION----------") in new stack
-- AGI Script agi://127.0.0.1:4577/call_log--HVcauses ... EBUG-----3


please help me guys

thanks[/b]

PostPosted: Thu Jan 15, 2009 5:13 pm
by mflorell
Is that how your carrier tells you to dial the UK?

PostPosted: Thu Jan 15, 2009 7:37 pm
by williamconley
from extensions.conf in the scratch install:

; 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,tTo)
exten => _901144XXXXXXXXXX,3,Hangup

TRUNKX is defined in globals to route to your VOIP provider.

this can change based on the dialing requirements of your provider, but as the script says the dial flags are important for vicidial.

note that the :1 will strip the "9" (first digit) from the number being called. if your provider requires more digits stripped, you can change :1 to :4 and it will strip "9011" and keep the "44" onward. This will allow you to leave the numbers and appropriate dial prefixes in your list and still utilitize this dial system which is relatively standard throughout vicidial.