Page 1 of 1

Agent login on vicidialnow via IAX trunk ?

PostPosted: Tue Apr 07, 2009 5:04 am
by willbordoni
I have a simple question: I have 2 Vicidialnow servers (one of them is used as a standard asterisk server only).
My agent's phones are registered on this "asterisk only" server. Are they able to log into vicidial and get calls from the vicidial server ?

I'm asking this because when i try, i get a "noone is in your session" issue.
When i log my agents into the local vicidial/asterisk server, everything works fine...

My iax trunk are ok because i can call from one server to another without vicidial.
someone help me please ?

PostPosted: Tue Apr 07, 2009 10:59 am
by gardo
Yes they can. You need to set up the agents' extensions as remote phones. More information is available on the Manager's manual.

PostPosted: Wed Apr 08, 2009 2:34 am
by willbordoni
thanks, I tried to see by myself but i really can't find what to do.
Can you be a little bit more explicit please?

I thought that it was the same for vicidial, be the agent on 192.168.1.2 asterisk/vicidial server or 192.168.1.99 asterisk server for example. Am i wrong ?

What do you mean by remote phone ? My sip phones are registered on my Asterisks with the correct ip address and in Vicidial's database too.

Question : Remote agents are something completely different , I don't need it in my case right ?

PostPosted: Wed Apr 08, 2009 1:20 pm
by gardo
In the "Phone" section on the admin interface, you need to set your phone extension's protocol to "EXTERNAL". Create the necessary entries in your extensions.conf to point to the "external" phones:

TRUNK=IAX2/user:pass@IP_ADDRESS:4569 ; 2nd Asterisk

exten => _9500,1,Dial(TRUNK/${EXTEN},20,to)

PostPosted: Thu Apr 09, 2009 2:59 am
by willbordoni
Thanks for the explanation on the "EXTERNAL" tip !
but it changes nothing. I get nothing on both asterisk console ouput! (Everythings works great without vicidial)

I have a sip phone cc100 on my asterisk/vicidial server, and a sip phone cc301 on my 2nd asterisk server. They are linked with a working IAX2 trunk.

on the asterisk/server(192.168.1.2) extensions.conf file :
Code: Select all
TRUNKIAX=IAX2/ASTtest1:test@192.168.1.99:4569

exten => _192*168*001*002*8600XXX,1,Goto(default,${EXTEN:16},1)
exten => _192*168*001*099*8600XXX,1,Dial(${TRUNKIAX}/${EXTEN:16},55,o)
exten => _192*168*001*002*78600XXX,1,Goto(default,${EXTEN:16},1)
exten => _192*168*001*099*78600XXX,1,Dial(${TRUNKIAX}/${EXTEN:16},55,o)

exten => _192*168*001*002*8600XXX*.,1,AGI(agi-VDADfixCXFER.agi)
exten => _192*168*001*099*8600XXX*.,1,Dial(${TRUNKIAX}/${EXTEN:16},55,o)
exten => _8600XXX*.,1,AGI(agi-VDADfixCXFER.agi)
exten => _192*168*001*002*78600XXX*.,1,AGI(agi-VDADfixCXFER.agi)
exten => _192*168*001*099*78600XXX*.,1,Dial(${TRUNKIAX}/${EXTEN:16},55,o)
exten => _78600XXX*.,1,AGI(agi-VDADfixCXFER.agi)

exten => _1[0-5]X,1,Dial(sip/cc${EXTEN},20,to)
exten => _3[0-5]X,1,Dial(iax2/ASTtest1/${EXTEN},20,to)



On the 2nd asterisk server (192.168.1.99):

Code: Select all
TRUNKIAX=IAX2/ASTtest1:test@192.168.1.2:4569

exten => _192*168*001*002*8600XXX,1,Dial(${TRUNKIAX}/${EXTEN:16},55,o)
exten => _192*168*001*099*8600XXX,1,Goto(default,${EXTEN:16},1)
exten => _192*168*001*002*78600XXX,1,Dial(${TRUNKIAX}/${EXTEN:16},55,o)
exten => _192*168*001*099*78600XXX,1,Goto(default,${EXTEN:16},1)

exten => _192*168*001*002*8600XXX*.,1,Dial(${TRUNKIAX}/${EXTEN:16},55,o)
exten => _192*168*001*099*8600XXX*.,1,Goto(default,${EXTEN:16},1)               
exten => _8600XXX*.,1,AGI(agi-VDADfixCXFER.agi)
exten => _192*168*001*002*78600XXX*.,1,Dial(${TRUNKIAX}/${EXTEN:16},55,o)
exten => _192*168*001*099*78600XXX*.,1,Goto(default,${EXTEN:16},1)
exten => _78600XXX*.,1,AGI(agi-VDADfixCXFER.agi)

exten => _1[0-5]X,1,Dial(iax2/ASTtest1/${EXTEN},20,to)
exten => _3[0-5]X,1,Dial(sip/cc${EXTEN},20,to)


and iax.conf on both servers:
Code: Select all
register => ASTtest1:test@192.168.1.XXX

[ASTtest1]
type=friend
accountcode=IAXtrunk
context=default
auth=plaintext
host=dynamic
permit=0.0.0.0/0.0.0.0
secret=test
qualify=yes


I put some of vicidial conferences on the 2nd server in the vicidial web interface.

Did i forgot something important please ?

PostPosted: Thu Apr 09, 2009 4:11 am
by gardo
You need to change the following entries since they're for load balancing between 2 Vici servers. It's not needed since you only have 1 Vici server and the other is Asterisk.

willbordoni wrote:
exten => _192*168*001*002*8600XXX,1,Goto(default,${EXTEN:16},1)
exten => _192*168*001*099*8600XXX,1,Dial(${TRUNKIAX}/${EXTEN:16},55,o)
exten => _192*168*001*002*78600XXX,1,Goto(default,${EXTEN:16},1)
exten => _192*168*001*099*78600XXX,1,Dial(${TRUNKIAX}/${EXTEN:16},55,o)

exten => _192*168*001*002*8600XXX*.,1,AGI(agi-VDADfixCXFER.agi)
exten => _192*168*001*099*8600XXX*.,1,Dial(${TRUNKIAX}/${EXTEN:16},55,o)
exten => _8600XXX*.,1,AGI(agi-VDADfixCXFER.agi)
exten => _192*168*001*002*78600XXX*.,1,AGI(agi-VDADfixCXFER.agi)
exten => _192*168*001*099*78600XXX*.,1,Dial(${TRUNKIAX}/${EXTEN:16},55,o)
exten => _78600XXX*.,1,AGI(agi-VDADfixCXFER.agi)

On the 2nd asterisk server (192.168.1.99):

exten => _192*168*001*002*8600XXX,1,Dial(${TRUNKIAX}/${EXTEN:16},55,o)
exten => _192*168*001*099*8600XXX,1,Goto(default,${EXTEN:16},1)
exten => _192*168*001*002*78600XXX,1,Dial(${TRUNKIAX}/${EXTEN:16},55,o)
exten => _192*168*001*099*78600XXX,1,Goto(default,${EXTEN:16},1)

exten => _192*168*001*002*8600XXX*.,1,Dial(${TRUNKIAX}/${EXTEN:16},55,o)
exten => _192*168*001*099*8600XXX*.,1,Goto(default,${EXTEN:16},1)
exten => _8600XXX*.,1,AGI(agi-VDADfixCXFER.agi)
exten => _192*168*001*002*78600XXX*.,1,Dial(${TRUNKIAX}/${EXTEN:16},55,o)
exten => _192*168*001*099*78600XXX*.,1,Goto(default,${EXTEN:16},1)
exten => _78600XXX*.,1,AGI(agi-VDADfixCXFER.agi)

exten => _1[0-5]X,1,Dial(iax2/ASTtest1/${EXTEN},20,to)
exten => _3[0-5]X,1,Dial(sip/cc${EXTEN},20,to)[/code]



Should look like this: (VICI server)

TRUNKIAX=IAX2/ASTtest1:test@192.168.1.2:4569 ;trunk to Asterisk

; BE SURE TO CHANGE THIS LINE FOR YOUR VICI IP ADDRESS!
exten => _192*168*001*099*.,1,Goto(default,${EXTEN:16},1)
exten => _8600XXX*.,1,AGI(agi-VDADfixCXFER.agi)
exten => _78600XXX*.,1,AGI(agi-VDADfixCXFER.agi)

exten => _3[0-5]X,1,Dial(TRUNKIAX/${EXTEN},20,to)

Asterisk server (where the agents phones are):

TRUNKIAX=IAX2/ASTtest1:test@192.168.1.99:4569 ;trunk to Asterisk

exten => _1[0-5]X,1,Dial(sip/${EXTEN},20,to)

PostPosted: Thu Apr 09, 2009 4:28 am
by willbordoni
thanks a lot! it works great.

i was confused between asterisk servers and vividial servers!

In the admin/phone section, i selected the ip address of the asterisk server, instead of the vicidial server's.

thanks again.

PostPosted: Tue Jun 02, 2009 9:29 pm
by gzpxyj
gardo wrote:You need to change the following entries since they're for load balancing between 2 Vici servers. It's not needed since you only have 1 Vici server and the other is Asterisk.

Should look like this: (VICI server)

TRUNKIAX=IAX2/ASTtest1:test@192.168.1.2:4569 ;trunk to Asterisk

; BE SURE TO CHANGE THIS LINE FOR YOUR VICI IP ADDRESS!
exten => _192*168*001*099*.,1,Goto(default,${EXTEN:16},1)
exten => _8600XXX*.,1,AGI(agi-VDADfixCXFER.agi)
exten => _78600XXX*.,1,AGI(agi-VDADfixCXFER.agi)

exten => _3[0-5]X,1,Dial(TRUNKIAX/${EXTEN},20,to)

Asterisk server (where the agents phones are):

TRUNKIAX=IAX2/ASTtest1:test@192.168.1.99:4569 ;trunk to Asterisk

exten => _1[0-5]X,1,Dial(sip/${EXTEN},20,to)


I am a little confused. Please correct me if my understanding is not correct.
vici server: 192.168.1.99
asterisk server: 192.168.1.2
all outbound calls are routed to asterisk servers
local agent login vicidial through 192.168.1.99
agent with phone extension 3XX (only on vici server) through IAX trunk to 192.168.1.2.
agent with phone extension 1XX (only on asterisk server) through sip trunk in 192.168.1.2
Question: how agent access agent login when they are at home? Do you have to have a public IP for 192.168.1.99?
Question 2: Does the asterisk server also has the vicidial installed? Seems to me the asterisk server also has vicidial installed.