Page 1 of 1

INSTALL CARRIER - VICIDIAL

PostPosted: Thu Nov 03, 2016 9:37 am
by trcsproject
Hello my friends,

I'm having trouble installing the carrier, can not perform.

Must configure the dialplan for the Brazil region. (Xx) xxxxx-xxxx

Can anybody help me ??

Asterisk 1.8.21.0-vici-beta

Carrier:

Code: Select all
register => USERNAME:PASS@186.193.XXX.XXX:5060


Code: Select all
[smart]
disallow=all
allow=ulaw
allow=alaw
allow=gsm
allow=g729
nat=yes
type=friend
username=xxxxxx
secret=yyyyyyy
host=186.193.xxx.xxx
dtmfmode=rfc2833
context=trunkinbound
qualify=yes
insecure=very

global string

Code: Select all
SIPVIOLA = SIP/smart


Dial plan (code area = 11 and contry = 55)

Code: Select all
exten => _11XXXXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _11XXXXXXXXX,2,Dial({SIPVIOLA}/${EXTEN:55},,to)
exten => _11XXXXXXXXX,3,Hangup


When trying to dial the number, shows the following message: I am sorry this is not a valid extension. Please try again

Thank you very much

Re: INSTALL CARRIER - VICIDIAL

PostPosted: Thu Nov 03, 2016 11:50 am
by Rogger
Hello,

When you use ": 55" in its variable means that the asterisk will withdraw 55 digits before dialing.
Change to $ {EXTEN:2} so you will only remove the 11 and send the rest. You need to send 55 Brazil for your carrier?

Good Luck,

Rogger Faioli
www.gosat.org

Re: INSTALL CARRIER - VICIDIAL

PostPosted: Fri Nov 04, 2016 1:05 pm
by trcsproject
Rogger Faioli, Good afternoon


I did a check, and I need to send my carrier the number "55", however must be sent before the telephone number "011".

I made some attempts:

Attempt 1:
Code: Select all
exten => _011XXXXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _011XXXXXXXXX,2,Dial(${SIPVIOLA}/${EXTEN:2},,tTo)
exten => _011XXXXXXXXX,3,Hangup


Attempt 2:
Code: Select all
exten => _XXXXXXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _XXXXXXXXXXX,2,Dial(${SIPVIOLA}/${EXTEN},,tTo)
exten => _XXXXXXXXXXX,3,Hangup


unsuccessfully

Erro: I am sorry this is not a valid extension. Please try again
Log (Asterisk)
Code: Select all
[Nov  4 18:03:18]   == Manager 'sendcron' logged on from 127.0.0.1
[Nov  4 18:03:18]     -- Executing [8600051@default:1] MeetMe("Local/8600051@default-0000005a;2", "8600051,F") in new stack
[Nov  4 18:03:18]        > Channel Local/8600051@default-0000005a;1 was answered.
[Nov  4 18:03:18]   == Starting Local/8600051@default-0000005a;1 at default,119672539XX,1 failed so falling back to exten 's'
[Nov  4 18:03:18]   == Starting Local/8600051@default-0000005a;1 at default,s,1 still failed so falling back to context 'default'
[Nov  4 18:03:18]     -- Sent into invalid extension 's' in context 'default' on Local/8600051@default-0000005a;1
[Nov  4 18:03:18]     -- Executing [i@default:1] Playback("Local/8600051@default-0000005a;1", "invalid") in new stack
[Nov  4 18:03:18]     -- <Local/8600051@default-0000005a;1> Playing 'invalid.gsm' (language 'en')
[Nov  4 18:03:19]   == Manager 'sendcron' logged off from 127.0.0.1
[Nov  4 18:03:19]   == Manager 'sendcron' logged on from 127.0.0.1
[Nov  4 18:03:19]     -- Executing [58600051@default:1] MeetMe("Local/58600051@default-0000005b;2", "8600051,Fmq") in new stack
[Nov  4 18:03:19]        > Channel Local/58600051@default-0000005b;1 was answered.
[Nov  4 18:03:19]     -- Executing [8309@default:1] Answer("Local/58600051@default-0000005b;1", "") in new stack
[Nov  4 18:03:19]     -- Executing [8309@default:2] Monitor("Local/58600051@default-0000005b;1", "wav,20161104-160318_11967253941") in new stack
[Nov  4 18:03:19]     -- Executing [8309@default:3] Wait("Local/58600051@default-0000005b;1", "3600") in new stack
[Nov  4 18:03:20]   == Manager 'sendcron' logged off from 127.0.0.1
[Nov  4 18:03:22]     -- Executing [i@default:2] Hangup("Local/8600051@default-0000005a;1", "") in new stack
[Nov  4 18:03:22]   == Spawn extension (default, i, 2) exited non-zero on 'Local/8600051@default-0000005a;1'
[Nov  4 18:03:22]     -- Executing [h@default:1] AGI("Local/8600051@default-0000005a;1", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16---------------") in new stack
[Nov  4 18:03:22]     -- <Local/8600051@default-0000005a;1>AGI Script agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16--------------- completed, returning 0
[Nov  4 18:03:22]   == Spawn extension (default, 8600051, 1) exited non-zero on 'Local/8600051@default-0000005a;2'
[Nov  4 18:03:22]     -- Executing [h@default:1] AGI("Local/8600051@default-0000005a;2", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0---------------") in new stack
[Nov  4 18:03:22]     -- <Local/8600051@default-0000005a;2>AGI Script agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0--------------- completed, returning 0


can you help me ?

Thank you very much

Re: INSTALL CARRIER - VICIDIAL

PostPosted: Sun Nov 06, 2016 5:23 pm
by Rogger
Hello,

Try this.

exten => _X.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _X.,2,Dial(${SIPVIOLA}/55${EXTEN},,tTo)
exten => _X.,3,Hangup

For example if you dial: 01140551220, the VICIdial will send to your carrier 5501140551220.

Re: INSTALL CARRIER - VICIDIAL

PostPosted: Mon Nov 07, 2016 9:08 am
by trcsproject
Good morning,

RUN... SUCCESS

I managed to make external calls. I will post here as was my settings if someone pass by the same problem.

Thanks Roger :)

Code: Select all
Carrier Name: TestSend   

Carrier Description: OutSend   

Registration String: register => user:pass@186.XXX.XXX.XXX:5060

Template ID: - NONE -

Account Entry:   
[send]
type=friend
disallow=all
allow=ulaw
allow=alaw
dtmfmode=rfc2833
host=186.XXX.XXX.XXX
username=user
secret=pass
context=trunkinbound
qualify=no
insecure=port,invite
nat=yes
canreinvite=no
outboundproxy=186.XXX.XXX.XXX

Protocol: SIP
Globals String:   SIP/send

Dialplan Entry:   
exten=>_X.,1,AGI(agi://127.0.0.1:4577/call_log)
exten=>_X.,2,Dial(SIP/send/${EXTEN},,Tor)
exten=>_X.,3,Hangup

Server IP: ip asterisk server


Thanks...