Page 1 of 1

CARRIER AND DIAPLAN TO ITALY

PostPosted: Fri Apr 06, 2018 9:48 am
by provesk
Hello everyone. I am configuring the carrier of my vicidial but I can not start the calls. I ask for help configuring the diaplan for calls to Italy without area code (only number and then the call starts and 055256966 and not +39055256966) .

I currently use this configuration :

ACCOUNT ENTRY
[vohippo]
disallow=all
allow=ulaw
type=friend
username=...
secret=...
host=sip.vohippo.com
dtmfmode=rfc2833
context=trunkinbound



DIALPLAN
exten => _9NXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _9NXXXXXX,n,Dial(${TRUNK}/1727${EXTEN:1},,To)
exten => _9NXXXXXX,n,Hangup()


Thanks in advance for your answers.

Re: CARRIER AND DIAPLAN TO ITALY

PostPosted: Fri Apr 06, 2018 10:14 am
by blackbird2306
What is the "1727" in your dial command? Are you sure that you don't need to dial a country prefix (for Italy 0039), because Vohippo seems to be located in Bulgaria?

Try this and in case of failure post asterisk cli:
exten => _9X.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _9X.,n,Dial(${TRUNK}/1727${EXTEN:1},,To)
exten => _9X.,n,Hangup()

Re: CARRIER AND DIAPLAN TO ITALY

PostPosted: Fri Apr 06, 2018 10:32 am
by provesk
I tried but I get these errors on asterisk:

[Apr 6 17:27:22] == Manager 'sendcron' logged on from 127.0.0.1
[Apr 6 17:27:22] NOTICE [3363] [C-00000004]: chan_local.c: 1006 local_call: No such extension / context 106521340 7 @ default while calling Local channel
[Apr 6 17:27:22] NOTICE [3363] [C-00000004]: channel.c: 5747 __ast_request_and_dial: Unable to call channel Loc al / 1065213407 @ default
[Apr 6 17:27:22] == Manager 'sendcron' logged on from 127.0.0.1
[Apr 6 17:27:22] NOTICE [3366] [C-00000005]: chan_local.c: 1006 local_call: No such extension / context 106207270 0 @ default while calling Local channel
[Apr 6 17:27:22] NOTICE [3366] [C-00000005]: channel.c: 5747 __ast_request_and_dial: Unable to call channel Loc al / 1062072700 @ default
[Apr 6 17:27:22] == Manager 'sendcron' logged on from 127.0.0.1
[Apr 6 17:27:22] NOTICE [3370] [C-00000006]: chan_local.c: 1006 local_call: No such extension / context 106506906 5 @ default while calling Local channel
[Apr 6 17:27:22] NOTICE [3370] [C-00000006]: channel.c: 5747 __ast_request_and_dial: Unable to call channel Loc al / 1065069065 @ default
[Apr 6 17:27:23] == Manager 'sendcron' logged on from 127.0.0.1
[Apr 6 17:27:23] NOTICE [3373] [C-00000007]: chan_local.c: 1006 local_call: No such extension / context 107735477 70 @ default while calling Local channel
[Apr 6 17:27:23] NOTICE [3373] [C-00000007]: channel.c: 5747 __ast_request_and_dial: Unable to call channel Loc al / 10773547770 @ default

instead I try a manual call from zoiper with the sip phone I get this :

Apr 6 17:31:51] NOTICE[3101][C-0000000a]: chan_sip.c:26002 handle_request_invite: Call from '1000' (79.60.46.121:51124) to extension '05566999' rejected because extension not found in context 'default'.

Thanks a lot.

Re: CARRIER AND DIAPLAN TO ITALY

PostPosted: Fri Apr 06, 2018 10:51 am
by blackbird2306
You need to change the DIAL PREFIX to "9" in campaign settings!

Re: CARRIER AND DIAPLAN TO ITALY

PostPosted: Fri Apr 06, 2018 11:20 am
by williamconley
His dialplan requires a dial prefix of "9" on your campaign OR dialing 9 before the rest of the number. That is why the extension starts with "9".

Re: CARRIER AND DIAPLAN TO ITALY

PostPosted: Fri Apr 06, 2018 11:27 am
by provesk
ok I changed the prefix dial to 9 and now I get this out :


[Apr 6 18:26:18] -- Executing [910761799538@default:2] Dial("Local/910761799538@default-0000000b;2", "DAH DI/r1/172710761799538,,To") in new stack
[Apr 6 18:26:18] WARNING[5073][C-00000012]: app_dial.c:2455 dial_exec_full: Unable to create channel of type 'DAHDI' (cause 0 - Unknown)

[Apr 6 18:26:18] -- Executing [h@default:1] AGI("Local/910761799538@default-0000000b;2", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16-----CHANUNAVAIL----------") in new stack
[Apr 6 18:26:19] -- <Local/91076628676@default-00000008;2>AGI Script agi://127.0.0.1:4577/call_log--HVcauses ... ---------- completed, returning 0
[Apr 6 18:26:19] -- <Local/910761971518@default-00000009;2>AGI Script agi://127.0.0.1:4577/call_log--HVcauses ... ---------- completed, returning 0
[Apr 6 18:26:19] -- <Local/910773840247@default-0000000a;2>AGI Script agi://127.0.0.1:4577/call_log--HVcauses ... ---------- completed, returning 0
[Apr 6 18:26:19] -- <Local/910761799538@default-0000000b;2>AGI Script agi://127.0.0.1:4577/call_log--HVcauses ... ---------- completed, returning 0

Re: CARRIER AND DIAPLAN TO ITALY

PostPosted: Fri Apr 06, 2018 11:41 am
by williamconley
TRUNK is expected to be a hardware-based Digium card. You likely want to use your SIP provider instead. 8-)

But: you are still using ${TRUNK} instead of defining (and using) your own Global Variable pointed to your own carrier.

In your global variables string field you need:
Code: Select all
TRUNK9 = SIP/vohippo

Then change ${TRUNK} to ${TRUNK9} in your dialplan.

and probably lose the 1727 unless your carrier requires it before extensions you dial.

Re: CARRIER AND DIAPLAN TO ITALY

PostPosted: Sat Apr 07, 2018 4:34 am
by provesk
Ok,this is now the asterisk's log:

[Apr 7 11:32:42] == Manager 'sendcron' logged on from 127.0.0.1
[Apr 7 11:32:42] -- Executing [91076641024@default:1] AGI("Local/91076641024@default-00000027;2", "agi://127.0.0.1:4577/call_log") in new stack
[Apr 7 11:32:42] -- AGI Script Executing Application: (EXEC) Options: (Set(_CAMPCUST=ARIANO))
[Apr 7 11:32:42] -- <Local/91076641024@default-00000027;2>AGI Script agi://127.0.0.1:4577/call_log completed, returning 0
[Apr 7 11:32:42] -- Executing [91076641024@default:2] Dial("Local/91076641024@default-00000027;2", "SIP/vohippo1076641024,,To") in new stack
[Apr 7 11:32:42] == Using SIP RTP CoS mark 5
[Apr 7 11:32:42] ERROR[6808][C-00000048]: netsock2.c:271 ast_sockaddr_resolve: getaddrinfo("vohippo1076641024", "(null)", ...): Name or service not known
[Apr 7 11:32:42] WARNING[6808][C-00000048]: chan_sip.c:6108 create_addr: No such host: vohippo1076641024
[Apr 7 11:32:42] WARNING[6808][C-00000048]: app_dial.c:2455 dial_exec_full: Unable to create channel of type 'SIP' (cause 20 - Subscriber absent)
[Apr 7 11:32:42] == Everyone is busy/congested at this time (1:0/0/1)
[Apr 7 11:32:42] -- Executing [91076641024@default:3] Hangup("Local/91076641024@default-00000027;2", "") in new stack
[Apr 7 11:32:42] == Spawn extension (default, 91076641024, 3) exited non-zero on 'Local/91076641024@default-00000027;2'
[Apr 7 11:32:42] -- Executing [h@default:1] AGI("Local/91076641024@default-00000027;2", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----20-----CHANUNAVAIL----------") in new stack
[Apr 7 11:32:43] -- <Local/91066589760@default-00000024;2>AGI Script agi://127.0.0.1:4577/call_log--HVcauses ... ---------- completed, returning 0
[Apr 7 11:32:43] -- <Local/910771523056@default-00000025;2>AGI Script agi://127.0.0.1:4577/call_log--HVcauses ... ---------- completed, returning 0
[Apr 7 11:32:43] -- <Local/910761507327@default-00000026;2>AGI Script agi://127.0.0.1:4577/call_log--HVcauses ... ---------- completed, returning 0
[Apr 7 11:32:43] -- <Local/91076641024@default-00000027;2>AGI Script agi://127.0.0.1:4577/call_log--HVcauses ... ---------- completed, returning 0

Re: CARRIER AND DIAPLAN TO ITALY

PostPosted: Sat Apr 07, 2018 7:01 am
by blackbird2306
I think there is a missing slash "/" in your dialplan at the 2nd. line with the dial command.
Executing [91076641024@default:2] Dial("Local/91076641024@default-00000027;2", "SIP/vohippo1076641024,,To") in new stack

the right command should be: Dial("Local/91076641024@default-00000027;2", "SIP/vohippo/1076641024,,To")

Correct your dialplan exactly this way:
exten => _9X.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _9X.,n,Dial(${TRUNK9}/${EXTEN:1},,To)
exten => _9X.,n,Hangup()

Try it then again after reload dialplan. If it fails then post output of (of course without username / password):
linux cli:
Code: Select all
mysql -D asterisk -e 'SELECT * FROM `vicidial_server_carriers` WHERE `carrier_id`="vohippo" \G;'

and in asterisk cli:
sip show peers

Re: CARRIER AND DIAPLAN TO ITALY

PostPosted: Mon Apr 09, 2018 5:11 am
by provesk
Ok I changed the parameters but it still does not call, this is the current dialplan :

exten => _9X.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _9X.,n,Dial(${TRUNK9}/${EXTEN:1},,To)
exten => _9X.,n,Hangup()



When I try a manual call from zoiper, I receive the error in asterisk :

[Apr 9 12:11:09] NOTICE[4291][C-00000005]: chan_sip.c:26002 handle_request_invite: Call from '1000' (79.60.46.121:51124) to extension '0825336699' rejected because extension not found in context 'default'.

Re: CARRIER AND DIAPLAN TO ITALY

PostPosted: Mon Apr 09, 2018 12:30 pm
by blackbird2306
Sure this won't work. You have to dial according to your dialplan (_9X.) always a "9" before of the rest of your number.

Re: CARRIER AND DIAPLAN TO ITALY

PostPosted: Tue Apr 10, 2018 2:46 am
by provesk
Right, with 9 in front of this comes out:

[Apr 10 09:42:57] Connected to Asterisk 11.25.1-vici currently running on vicibo x8 (pid = 2723)
[Apr 10 09:43:02] == Using SIP RTP CoS mark 5
[Apr 10 09:43:02] -- Executing [90825891269@default:1] AGI("SIP/1000-0000000 1", "agi://127.0.0.1:4577/call_log") in new stack
[Apr 10 09:43:02] -- <SIP/1000-00000001>AGI Script agi://127.0.0.1:4577/call _log completed, returning 0
[Apr 10 09:43:02] -- Executing [90825891269@default:2] Dial("SIP/1000-000000 01", "SIP/vohippo/0825891269,,To") in new stack
[Apr 10 09:43:02] WARNING[3131][C-00000001]: app_dial.c:2455 dial_exec_full: Una ble to create channel of type 'SIP' (cause 20 - Subscriber absent)
[Apr 10 09:43:02] == Everyone is busy/congested at this time (1:0/0/1)
[Apr 10 09:43:02] -- Executing [90825891269@default:3] Hangup("SIP/1000-0000 0001", "") in new stack
[Apr 10 09:43:02] == Spawn extension (default, 90825891269, 3) exited non-zero on 'SIP/1000-00000001'
[Apr 10 09:43:02] -- Executing [h@default:1] AGI("SIP/1000-00000001", "agi:/ /127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----20-----CHANUNAVAIL------ ----") in new stack
[Apr 10 09:43:02] -- <SIP/1000-00000001>AGI Script agi://127.0.0.1:4577/call _log--HVcauses--PRI-----NODEBUG-----20-----CHANUNAVAIL---------- completed, retu rning 0

Re: CARRIER AND DIAPLAN TO ITALY

PostPosted: Tue Apr 10, 2018 10:31 am
by williamconley
host=sip.vohippo.com


Can you ping sip.vohippo.com?

Re: CARRIER AND DIAPLAN TO ITALY

PostPosted: Tue Apr 10, 2018 11:17 am
by blackbird2306
This error is interesting for you:
app_dial.c:2455 dial_exec_full: Unable to create channel of type 'SIP' (cause 20 - Subscriber absent)
blackbird2306 wrote:Try it then again after reload dialplan. If it fails then post output of (of course without username / password):
linux cli:
Code: Select all
mysql -D asterisk -e 'SELECT * FROM `vicidial_server_carriers` WHERE `carrier_id`="vohippo" \G;'

and in asterisk cli:
sip show peers

Re: CARRIER AND DIAPLAN TO ITALY

PostPosted: Fri Apr 13, 2018 12:22 am
by iboam
exten => _8XX.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _8XX.,n,Dial(${DIAL9TRUNK}/+39${EXTEN:4},,tTor)
exten => _8XX.,n,Hangup

Re: CARRIER AND DIAPLAN TO ITALY

PostPosted: Fri Apr 13, 2018 6:32 am
by blackbird2306
iboam wrote:exten => _8XX.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _8XX.,n,Dial(${DIAL9TRUNK}/+39${EXTEN:4},,tTor)
exten => _8XX.,n,Hangup

The cause 20 subscriber absent is normally, because the destination SIP / carrier device hasn't registered properly. But sure there might be a dialplan problem on top though he wrote that he doesn't want to dial "+39".

Re: CARRIER AND DIAPLAN TO ITALY

PostPosted: Fri Apr 13, 2018 7:31 am
by iboam
You need to change (DIAL9TRUNK) by your settings

Re: CARRIER AND DIAPLAN TO ITALY

PostPosted: Fri Apr 13, 2018 8:19 am
by blackbird2306
iboam wrote:You need to change (DIAL9TRUNK) by your settings

He should have changed the global string already:
williamconley wrote:In your global variables string field you need:
TRUNK9 = SIP/vohippo
Then change ${TRUNK} to ${TRUNK9} in your dialplan.

Again:
blackbird2306 wrote:If it fails then post output of (of course without username / password):
linux cli:
mysql -D asterisk -e 'SELECT * FROM `vicidial_server_carriers` WHERE `carrier_id`="vohippo" \G;'
and in asterisk cli:
sip show peers

Re: CARRIER AND DIAPLAN TO ITALY

PostPosted: Fri Apr 13, 2018 8:45 am
by iboam
Does your trunk allow calls to italy ?

Re: CARRIER AND DIAPLAN TO ITALY

PostPosted: Fri Apr 13, 2018 9:27 am
by iboam
Try this settings

ACCOUNT ENTRY:
[vohippo]
disallow=all
allow=ulaw
type=friend
username=...
secret=...
host=sip.vohippo.com
dtmfmode=rfc2833
context=trunkinbound

GLOBAL STRINGS:
TRUNK9 = SIP/vohippo

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

Then dial 8390665649 Should Answer Alitalia
(The 8 in the Dial Plan is the prefix for the campaign)

Re: CARRIER AND DIAPLAN TO ITALY

PostPosted: Sat Apr 21, 2018 5:59 am
by provesk
thank you all for the answers but I solved by changing the voip provider.