Routing by callid

Dedicated forum for the visual 'drag and drop' voice application designer that allows easy creation of advanced voice applications without programming knowledge

Moderators: kevin, 3CX staff

Routing by callid

Postby bluetel » Fri Feb 25, 2011 3:13 pm

Hi,
I am looking for a solution to direct a call to a queue by the beginning of the incoming number.

For example:
when the number xx0000000 calls, the call is routed to the queue 1.
when the number ww0000000 calls when the call is routed to the queue 2.

Any ideas to do this with the VAD?

Tx
Image
Image
bluetel
New User
 
Posts: 12
Joined: Thu Jun 11, 2009 10:23 am

Re: Routing by callid

Postby VAD_Support » Fri Feb 25, 2011 3:49 pm

Hi,

The caller number is stored in the "session.ani" variable. You can use a Conditional component to evaluate it and choose a different path depending on the value of that variable. Then, you can transfer the call to a different queue on each branch.

Regards,
VAD_Support
3CX Valued Professional
3CX Valued Professional
 
Posts: 439
Joined: Thu Aug 06, 2009 5:29 pm

Re: Routing by callid

Postby bluetel » Mon Feb 28, 2011 10:11 am

Thanks for your help.

I had done it (but i had used callid and not ani), but i have always the same vocal error message.

In the conditional component, my first condition is: EQUAL(LEFT(session.ani,3),332). If a caller number is beginning by 332xxxxxxxxx -> transfer to a extension

My second condition is: EQUAL(LEFT(session.ani,3),336) If a caller number is beginning by 336xxxxxxxxx -> transfer to another extension

is there something wrong?

Tx.
Image
Image
bluetel
New User
 
Posts: 12
Joined: Thu Jun 11, 2009 10:23 am

Re: Routing by callid

Postby VAD_Support » Mon Feb 28, 2011 1:40 pm

Hi,

The expression seems to be OK. You may try quotting the number, like:
EQUAL(LEFT(session.ani,3),'332')
and
EQUAL(LEFT(session.ani,3),'336')

Because it will compare strings, but I think it should work anyway, as the number will be automatically converted to string.

Can you post the 3CXIvrServer.log file so we can see the error you're getting?

Have you tried running the application in debug mode and check the variable values?

Thanks,
VAD_Support
3CX Valued Professional
3CX Valued Professional
 
Posts: 439
Joined: Thu Aug 06, 2009 5:29 pm

Re: Routing by callid

Postby bluetel » Mon Feb 28, 2011 3:13 pm

Hi,

IVR log is here:

14:53:45.171|4084|(0):Error! Module '3CX.com.OSBinet'. Error ID 219. URLhttp://localhost:5481/ivr/(S(qqpeufe ... 55zxby0ork))/PHARMALOG_5/Main.vxml?dr=8151&to=8151&from=33684015275MethodGETError-500
14:53:45.171|4084|(0):Error! Module '3CX.com.OSBinet'. Error ID 204. rc2
14:53:45.171|4084|(0):Error! Module '3CX.com.vxi'. Error ID 203. uriPHARMALOG_5/Main.vxml?dr=8151&to=8151&from=33684015275
14:53:45.171|4084|.\api\VXIpromptImpl.cpp(212):IvrDll, VXIpromptImpl::Impl::Queue(), Error! A serious error within IVR session

I've tried to run the application in debug mode but i have another error message: no possible connexion because the remote computer has refused it.... ://

Tx!
Image
Image
bluetel
New User
 
Posts: 12
Joined: Thu Jun 11, 2009 10:23 am

Re: Routing by callid

Postby VAD_Support » Mon Feb 28, 2011 4:37 pm

Can you enable debug level logs in the IvrServer? Because there are no details about the error in the posted log.
You need to change the file %ProgramData%\3CX\Bin\3CXLogger.ini.
Thanks,
VAD_Support
3CX Valued Professional
3CX Valued Professional
 
Posts: 439
Joined: Thu Aug 06, 2009 5:29 pm

Re: Routing by callid

Postby bluetel » Tue Mar 01, 2011 2:38 pm

Hi,

I have enabled debug level logs in 3CXLogger.ini, but i have same messages in IVR log.
3CXIvrServer.log
(2.58 KiB) Downloaded 52 times


My second difficulty is to run the debug mode in VAD. I have always the following message: "An error occured trying to get the Debug Information Files from server".

Regards,
Image
Image
bluetel
New User
 
Posts: 12
Joined: Thu Jun 11, 2009 10:23 am

Re: Routing by callid

Postby VAD_Support » Tue Mar 01, 2011 2:54 pm

Hi,

It seems that debug level logs are not enabled, as there should be a lot of extra lines otherwise.

Please, can you check the 3CXLogger.ini file? It should look like this:
[3CXIvrServer\Logger\Outputs\LogFile]
Level=8
Severity=Log Error Critical Trace
Format=$ShortDT|$ThreadID|$FileLine:
KeepBackup=0
File=C:\Documents and Settings\All Users\Application Data\3CX\Data\Logs\3CXIvrServer.log
MaxFileSizeKB=2048

In regards to the problem when debugging, do you have a firewall enabled in the 3CX server?

Thanks,
VAD_Support
3CX Valued Professional
3CX Valued Professional
 
Posts: 439
Joined: Thu Aug 06, 2009 5:29 pm

Re: Routing by callid

Postby bluetel » Tue Mar 01, 2011 5:33 pm

I have updated 3CXLogger.ini file with your instructions and now the log is more complete.
3CXIvrServer.log
(29.08 KiB) Downloaded 55 times


For debugging, the firewall is disabled in the 3CX Server....

Many thanks,
Image
Image
bluetel
New User
 
Posts: 12
Joined: Thu Jun 11, 2009 10:23 am

SOLVE: Routing by callid

Postby bluetel » Tue Mar 01, 2011 5:54 pm

I've found the solution in this previous post and everything works now very well.

an-error-occured-in-ivr-session-v9-vad-v2-15983.html

Thank you!
Image
Image
bluetel
New User
 
Posts: 12
Joined: Thu Jun 11, 2009 10:23 am

Re: Routing by callid

Postby VAD_Support » Tue Mar 01, 2011 7:09 pm

OK, thanks for letting me know.
VAD_Support
3CX Valued Professional
3CX Valued Professional
 
Posts: 439
Joined: Thu Aug 06, 2009 5:29 pm


Return to 3CX Voice Application Designer (VAD)


Who is online

Users browsing this forum: No registered users and 0 guests

Announcements: