Page 1 of 1

DIAL PLAN ITALY / SPAIN

PostPosted: Wed Mar 16, 2016 1:40 pm
by iboam
My sip provider allow me to make outbound calls to multiple countries, i need spain and italy

i'm able to call italy to some phone numbers in italy
Code: Select all
+39, +392, +396, +3902, +3906
+3933, +3934, +3936, +39377
+3932, +3938, +39383
+393, +39310, +39313, +39319, +39370, +39373
+3939


and spain

Code: Select all
+346, +34603, +34622, +34632, +34633, +34672, +346010, +346011, +346012, +346400, +346401, +346441, +346442, +346443, +346444, +346688, +346931, +346932, +346933, +346934, +346935, +346936, +346937, +346938, +346939, +3451
+34, +3491
+34600, +34605, +34606, +34607, +34608, +34609, +34610, +34615, +34616, +34617, +34618, +34619, +34620, +34625, +34626, +34627, +34628, +34629, +34630, +34634, +34635, +34636, +34637, +34638, +34639, +34645, +34646, +34647, +34648, +34649, +34650, +34651, +34652, +34653, +34654, +34655, +34656, +34657, +34658, +34659, +34660, +34661, +34662, +34663, +34664, +34665, +34666, +34667, +34669, +34670, +34671, +34675, +34676, +34677, +34678, +34679, +34680, +34685, +34686, +34687, +34689, +34690, +34691, +34692, +34695, +34696, +34697, +34699


this is my dial plan but can't conect with spain and not all italy phone numbers
Code: Select all
exten => _9XX.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _9XX.,n,Dial(${DIAL9TRUNK}/+39${EXTEN:3},,tTor)
exten => _9XX.,n,Hangup

exten => _9XX.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _9XX.,n,Dial(${DIAL9TRUNK}/+34${EXTEN:4},,tTor)
exten => _9XX.,n,Hangup


ViciBox_v.7.x86_64-7.0.0 | Vicidial 2.12-538a Build 160122-1401 | Asterisk 11 | Single Server | Intel Core i7-3770 8GB-RAM | 1TB Hard Drive

INTERNATIONAL DIAL PLAN FIXED

PostPosted: Thu Mar 17, 2016 2:54 pm
by iboam
I Just found a Solution, now i can dial USA, Italy and Spain just changing the dial prefix with the same trunk provider ...

Code: Select all
exten => _9NXXNXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _9NXXNXXXXXX,n,Dial(${DIAL9TRUNK}/+1${EXTEN:1},,tTo)
exten => _9NXXNXXXXXX,n,Hangup

exten => _91NXXNXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _91NXXNXXXXXX,n,Dial(${DIAL9TRUNK}/+1${EXTEN:2},,To)
exten => _91NXXNXXXXXX,n,Hangup

exten => _8XXX.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _8XXX.,n,Dial(${DIAL9TRUNK}/+39${EXTEN:3},,tTor)
exten => _8XXX.,n,Hangup

exten => _6XXXXXXXXX.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _6XXXXXXXXX.,n,Dial(${DIAL9TRUNK}/+34${EXTEN:3},,tTor)
exten => _6XXXXXXXXX.,n,Hangup