Page 1 of 1

Vicidial fresh install help!

PostPosted: Sat Jun 12, 2010 4:02 pm
by powehouse
Vicibox v 2.4/256 | Build 100523-8040 | Asterisk 1.4 | Single Server

Hi I just made a fresh install from your website, installed all the updates for openSuSe, Created carriers with dial plans, updates, loaded leads, added campaigns, asterisk called, was in a conference

But when I tried to make a call it tells me "THIS IS NOT A VALID EXTENSION".

PS: Loaded G729 codec

Here is my CLI

-- Executing [8600100@default:1] MeetMe("Local/8600100@default-2951,2", "8600100|F") in new stack
[Jun 13 04:56:12] > Channel Local/8600100@default-2951,1 was answered.
[Jun 13 04:56:12] == Starting Local/8600100@default-2951,1 at default,919234564763,1 failed so falling back to exten 's'
[Jun 13 04:56:12] == Starting Local/8600100@default-2951,1 at default,s,1 still failed so falling back to context 'default'
[Jun 13 04:56:12] -- Sent into invalid extension 's' in context 'default' on Local/8600100@default-2951,1
[Jun 13 04:56:12] -- Executing [i@default:1] Playback("Local/8600100@default-2951,1", "invalid") in new stack
[Jun 13 04:56:12] -- <Local/8600100@default-2951,1> Playing 'invalid' (language 'en')
[Jun 13 04:56:12] WARNING[11415]: file.c:1292 waitstream_core: Unexpected control subclass '-1'
[Jun 13 04:56:12] WARNING[11415]: file.c:1292 waitstream_core: Unexpected control subclass '-1'
[Jun 13 04:56:14] == Parsing '/etc/asterisk/manager.conf': [Jun 13 04:56:14] Found
[Jun 13 04:56:14] == Manager 'sendcron' logged on from 127.0.0.1
[Jun 13 04:56:14] == Spawn extension (default, i, 1) exited non-zero on 'Local/8600100@default-2951,1'
[Jun 13 04:56:14] -- Executing [h@default:1] DeadAGI("Local/8600100@default-2951,1", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0---------------") in new stack
[Jun 13 04:56:14] -- AGI Script agi://127.0.0.1:4577/call_log--HVcauses ... ---------- completed, returning 0
[Jun 13 04:56:14] == Spawn extension (default, 8600100, 1) exited non-zero on 'Local/8600100@default-2951,2'
[Jun 13 04:56:14] -- Executing [h@default:1] DeadAGI("Local/8600100@default-2951,2", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0---------------") in new stack
[Jun 13 04:56:14] -- AGI Script agi://127.0.0.1:4577/call_log--HVcauses ... ---------- completed, returning 0
[Jun 13 04:56:16] == Manager 'sendcron' logged off from 127.0.0.1
[Jun 13 04:56:18] ERROR[9795]: chan_iax2.c:4322 handle_call_token: Call rejected, CallToken Support required. If unexpected, resolve by placing address 192.168.1.3 in the calltokenignore list or setting user Outbound requirecalltoken=no
[Jun 13 04:56:18] == Manager 'sendcron' logged off from 127.0.0.1

PostPosted: Sat Jun 12, 2010 4:06 pm
by williamconley
you scored very well on this, but still not perfect:

when you post, please post your entire configuration including (but not limited to) your installation method, vicidial version and build, asterisk version, telephony hardware (model number is helpful here), cluster information if you have one, and whether any other software is installed in the box.

However, you are MIGHTY close! :)

So:

[Jun 13 04:56:12] == Starting Local/8600100@default-2951,1 at default,919234564763,1 failed so falling back to exten 's'


919234564763

what is in your "dial plan" for the carrier you created?

PostPosted: Sat Jun 12, 2010 10:52 pm
by powehouse
Hahaha atleast i was close 8)

Anyway here it is:

Vicibox v 2.4/256 | Build 100523-8040 | Asterisk 1.4 | Single Server | No Digium/Sangoma Hardware | No Extra Software After Installation


Ideally I planned on changing it to this.
Global String: DIAL9 = SIP/990901501

Dial Plan:
exten => _91XXXNXXNXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _91XXXNXXXXXX,2,Dial(${DIAL9}/${EXTEN:2}@EZ_Call,,tTor)
exten => _91XXXNXXXXXX,3,Hangup



But I just copied our old dial plan from our other server anyway that works.
exten => _1Z.,1,Set(CALLERID(num)=2086391781)
exten => _1Z.,2,Dial(SIP/990901501${EXTEN}@EZCall_CUSTOMER1,,Ro)
exten => _1Z.,3,Hangup



Hope this helps
:)

PostPosted: Sat Jun 12, 2010 10:55 pm
by williamconley
powehouse wrote:Hahaha atleast i was close 8)

Anyway here it is:

Vicibox v 2.4/256 | Build 100523-8040 | Asterisk 1.4 | Single Server | No Digium/Sangoma Hardware | No Extra Software After Installation


Ideally I planned on changing it to this.
Global String: DIAL9 = SIP/990901501

Dial Plan:
exten => _91XXXNXXNXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _91XXXNXXXXXX,2,Dial(${DIAL9}/${EXTEN:2}@EZ_Call,,tTor)
exten => _91XXXNXXXXXX,3,Hangup



But I just copied our old dial plan from our other server anyway that works.
exten => _1Z.,1,Set(CALLERID(num)=2086391781)
exten => _1Z.,2,Dial(SIP/990901501${EXTEN}@EZCall_CUSTOMER1,,Ro)
exten => _1Z.,3,Hangup



Hope this helps
:)
1)
91XXXNXXNXXX
91XXXNXXXXXX
are NOT the same, and will have "weird" results. each line of the "exten=>" must have the exact same thing up to the priority. Minor point but has to be noticed.

2)
exten => _1Z.,1,Set(CALLERID(num)=2086391781)
exten => _1Z.,2,Dial(SIP/990901501${EXTEN}@EZCall_CUSTOMER1,,Ro)
exten => _1Z.,3,Hangup
this is missing the ESSENTIAL vicidial line: ,AGI(agi://127.0.0.1:4577/call_log). Without that, Vicidial will NOT operate properly.

PostPosted: Sat Jun 12, 2010 11:53 pm
by okli
In addition- don't manipulate callerID from dialplan like this, vicidial won't be able to track calls, use campaign settings instead.

PostPosted: Sun Jun 13, 2010 12:05 am
by powehouse
In addition- don't manipulate callerID from dialplan like this, vicidial won't be able to track calls, use campaign settings instead.


Noted. William explained to be before how this works. Thanks okli!



91XXXNXXNXXX
91XXXNXXXXXX
are NOT the same, and will have "weird" results. each line of the "exten=>" must have the exact same thing up to the priority. Minor point but has to be noticed.


MY bad, a typo in my part cause I didn't copy and paste the proposed dial plan. :P


So will this work ?

exten => _91XXXNXXNXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _91XXXNXXNXXX,2,Dial(${DIAL9}/${EXTEN:2}@EZ_Call,,tTor)
exten => _91XXXNXXNXXX,3,Hangup

PostPosted: Sun Jun 13, 2010 12:15 am
by powehouse
Here is an update after changing the dial plan to this

Global String: DIAL9 = SIP/990901501

Dial Plan:
exten => _91XXXNXXNXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _91XXXNXXNXXX,2,Dial(${DIAL9}/${EXTEN:2}@EZ_Call,,tTor)
exten => _91XXXNXXNXXX,3,Hangup



CLi output



[Jun 13 13:09:37] -- Executing [8600100@default:1] MeetMe("Local/8600100@default-6b1d,2", "8600100|F") in new stack
[Jun 13 13:09:37] > Channel Local/8600100@default-6b1d,1 was answered.
[Jun 13 13:09:37] == Starting Local/8600100@default-6b1d,1 at default,12086391781,1 failed so falling back to exten 's'
[Jun 13 13:09:37] == Starting Local/8600100@default-6b1d,1 at default,s,1 still failed so falling back to context 'default'
[Jun 13 13:09:37] -- Sent into invalid extension 's' in context 'default' on Local/8600100@default-6b1d,1
[Jun 13 13:09:37] -- Executing [i@default:1] Playback("Local/8600100@default-6b1d,1", "invalid") in new stack
[Jun 13 13:09:37] -- <Local/8600100@default-6b1d,1> Playing 'invalid' (language 'en')
[Jun 13 13:09:37] WARNING[26540]: file.c:1292 waitstream_core: Unexpected control subclass '-1'
[Jun 13 13:09:37] WARNING[26540]: file.c:1292 waitstream_core: Unexpected control subclass '-1'
[Jun 13 13:09:37] ERROR[9809]: chan_iax2.c:4322 handle_call_token: Call rejected, CallToken Support required. If unexpected, resolve by placing address 192.168.1.3 in the calltokenignore list or setting user Outbound requirecalltoken=no
[Jun 13 13:09:41] == Manager 'sendcron' logged off from 127.0.0.1
[Jun 13 13:09:41] == Auto fallthrough, channel 'Local/8600100@default-6b1d,1' status is 'UNKNOWN'
[Jun 13 13:09:41] -- Executing [h@default:1] DeadAGI("Local/8600100@default-6b1d,1", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0---------------") in new stack
[Jun 13 13:09:41] -- AGI Script agi://127.0.0.1:4577/call_log--HVcauses ... ---------- completed, returning 0
[Jun 13 13:09:41] == Spawn extension (default, 8600100, 1) exited non-zero on 'Local/8600100@default-6b1d,2'
[Jun 13 13:09:41] -- Executing [h@default:1] DeadAGI("Local/8600100@default-6b1d,2", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0---------------") in new stack
[Jun 13 13:09:41] -- AGI Script agi://127.0.0.1:4577/call_log--HVcauses ... ---------- completed, returning 0

PostPosted: Sun Jun 13, 2010 12:44 am
by okli
What do you have in campaign settings for Dial Prefix and Omit Phone Code?

Why aren't you using 91NXXNXXXXXX or 91XXXNXXXXXX as already mentioned?

http://www.voip-info.org/wiki/view/Aste ... n+Patterns
X matches any digit from 0-9
Z matches any digit from 1-9
N matches any digit from 2-9
[1237-9] matches any digit or letter in the brackets
(in this example, 1,2,3,7,8,9)
[a-z] matches any lower case letter (introduced in which Asterisk version?)
[A-Z] matches any UPPER case letter (introduced in which Asterisk version?)
. wildcard, matches one or more characters
! wildcard, matches zero or more characters immediately
(only Asterisk 1.2 and later, see note)


Since you used _91XXXNXXNXXX and dialled presumingly 912086391781, fourth digit backwards is 1, which doesn't fit in N's description (N- matches any digit from 2-9).
Getting the logic?

PostPosted: Sun Jun 13, 2010 1:03 am
by powehouse
Okay I was wrong in that part. Didn't pay close attention.

So I changed my dial plan to this after reading what you wrote

exten => _91XXXNXXXXXX ,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _91XXXNXXXXXX ,2,Dial(${DIAL9}/${EXTEN:2}@EZCall_CUSTOMER1,,tTor)
exten => _91XXXNXXXXXX ,3,Hangup

CLi Output



[Jun 13 13:57:24] -- Executing [8600100@default:1] MeetMe("Local/8600100@default-a32e,2", "8600100|F") in new stack
[Jun 13 13:57:24] > Channel Local/8600100@default-a32e,1 was answered.
[Jun 13 13:57:24] == Starting Local/8600100@default-a32e,1 at default,12086391781,1 failed so falling back to exten 's'
[Jun 13 13:57:24] == Starting Local/8600100@default-a32e,1 at default,s,1 still failed so falling back to context 'default'
[Jun 13 13:57:24] -- Sent into invalid extension 's' in context 'default' on Local/8600100@default-a32e,1
[Jun 13 13:57:24] -- Executing [i@default:1] Playback("Local/8600100@default-a32e,1", "invalid") in new stack
[Jun 13 13:57:24] -- <Local/8600100@default-a32e,1> Playing 'invalid' (language 'en')

[Jun 13 13:59:46] -- Executing [8600100@default:1] MeetMe("Local/8600100@default-fe15,2", "8600100|F") in new stack
[Jun 13 13:59:46] > Channel Local/8600100@default-fe15,1 was answered.
[Jun 13 13:59:46] == Starting Local/8600100@default-fe15,1 at default,12086391781,1 failed so falling back to exten 's'
[Jun 13 13:59:46] == Starting Local/8600100@default-fe15,1 at default,s,1 still failed so falling back to context 'default'
[Jun 13 13:59:46] -- Sent into invalid extension 's' in context 'default' on Local/8600100@default-fe15,1
[Jun 13 13:59:46] -- Executing [i@default:1] Playback("Local/8600100@default-fe15,1", "invalid") in new stack
[Jun 13 13:59:46] -- <Local/8600100@default-fe15,1> Playing 'invalid' (language 'en')
[Jun 13 13:59:46] WARNING[10134]: file.c:1292 waitstream_core: Unexpected control subclass '-1'
[Jun 13 13:59:46] WARNING[10134]: file.c:1292 waitstream_core: Unexpected control subclass '-1'
[Jun 13 13:59:48] ERROR[3598]: chan_iax2.c:4322 handle_call_token: Call rejected, CallToken Support required. If unexpected, resolve by placing address 192.168.1.2 in the calltokenignore list or setting user Asterisk01 requirecalltoken=no
[Jun 13 13:59:50] == Manager 'sendcron' logged off from 127.0.0.1
[Jun 13 13:59:50] == Auto fallthrough, channel 'Local/8600100@default-fe15,1' status is 'UNKNOWN'
[Jun 13 13:59:50] -- Executing [h@default:1] DeadAGI("Local/8600100@default-fe15,1", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0---------------") in new stack
[Jun 13 13:59:50] -- AGI Script agi://127.0.0.1:4577/call_log--HVcauses ... ---------- completed, returning 0
[Jun 13 13:59:50] == Spawn extension (default, 8600100, 1) exited non-zero on 'Local/8600100@default-fe15,2'
[Jun 13 13:59:50] -- Executing [h@default:1] DeadAGI("Local/8600100@default-fe15,2", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0---------------") in new stack
[Jun 13 13:59:50] -- AGI Script agi://127.0.0.1:4577/call_log--HVcauses ... ---------- completed, returning 0

PostPosted: Sun Jun 13, 2010 1:13 am
by okli
You are still not paying enough attention... :)

okli wrote:What do you have in campaign settings for Dial Prefix and Omit Phone Code?

PostPosted: Sun Jun 13, 2010 6:30 am
by powehouse
jebus!! what's wrong with me :shock: :shock:


Anyway

Campaign settings for Dial Prefix is 9.
Omit Phone Code is N.

Thanks for the help okli

PostPosted: Sun Jun 13, 2010 7:51 am
by okli
Does your provider expect 1 at front of the dialled number? Why are you stripping 2 digits from the number?
Dial(${DIAL9}/${EXTEN:2}


There is also unneeded space in what you posted:
_91XXXNXXXXXX ,

between last X and the comma.
Try this:
Code: Select all
exten => _91XXXNXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _91XXXNXXXXXX,2,Dial(${DIAL9}/${EXTEN:1}@EZCall_CUSTOMER1,,To)
exten => _91XXXNXXXXXX,3,Hangup

exten => _1XXXNXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _1XXXNXXXXXX,2,Dial(${DIAL9}/${EXTEN}@EZCall_CUSTOMER1,,To)
exten => _1XXXNXXXXXX,3,Hangup



If your provider does not expect 1 as prefix change EXTEN:1 to EXTEN:2 and in EXTEN to EXTEN:1.

Make sure EZCall_CUSTOMER1 is defined.

This should also help you:
http://www.vicidial.org/VICIDIALforum/v ... php?t=7777

In the PDF file in first post look around pages 10 and 11.

As a side note- please post in the correct subforum, this one is for VicidialNOW related issues only and you used Vicibox.

PostPosted: Sun Jun 13, 2010 9:59 am
by williamconley
okli wrote:In addition- don't manipulate callerID from dialplan like this, vicidial won't be able to track calls, use campaign settings instead.
Not true. Callereid NUMBER can be manipulated freely, vicidial does not track or care about the number. Only the NAME. But without the AGI to port 4577, Vicidial will not be tracking the call at all.

PostPosted: Sun Jun 13, 2010 10:03 am
by williamconley
powehouse wrote:[Jun 13 13:57:24] == Starting Local/8600100@default-a32e,1 at default,12086391781,1 failed so falling back to exten 's'

your dial plan is for a number starting with 9, this starts with a 1.

the 9 should be provided by the "dial prefix". you have not followed the standard method for setting up the system and are now having to go back and fix.

start over, create a new campaign, new list (with YOUR CELL PHONE IN IT 100 times to practice), new carrier ... go slowly. pay attention to the "dial prefix" in the campaign settings. make sure the "dial code" on imported leads is either 1 or 0 for calls within your country (depending on which dial code your country uses).

PostPosted: Sun Jun 13, 2010 10:22 am
by okli
williamconley wrote:
okli wrote:In addition- don't manipulate callerID from dialplan like this, vicidial won't be able to track calls, use campaign settings instead.
Not true. Callereid NUMBER can be manipulated freely, vicidial does not track or care about the number. Only the NAME.
Something new to know, thanks.

PostPosted: Sun Jun 13, 2010 10:56 am
by williamconley
:) does come in handy.

PostPosted: Mon Jun 14, 2010 3:42 pm
by powehouse
Thank You both of you! I learned a lot from this post. Got it to work now! Thanks for all your help guys! :wink: