cant define the right DID

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

cant define the right DID

Postby Khaok » Tue Apr 18, 2017 9:22 am

Hello everyone, first time post here, thanks for letting me join. ;)
First up, my configuration: (I installed Vicibox Single Server)
[*]Suse LINUX 42.1 x64
[*]Asterisk 11.25.1-vici
[*]Vicidial Version 2.14-601a
Build 170315-0633

Now my Problem. I wasn't able to define a DID to catch my incoming Calls. The default did works fine, but if i define a did with our Number or something similiar i couldn't get it to work. After looking through the CLI while getting an incoming call i found the following:
== Using SIP RTP CoS mark 5
[Apr 10 10:18:33] -- Executing [UID:5360@trunkinbound:1] AGI("SIP/in_sipgate-team.de-00000adb", "agi-DID_route.agi") in new stack
[Apr 10 10:18:34] -- Launched AGI Script /usr/share/asterisk/agi-bin/agi-DID_route.agi
[Apr 10 10:18:34] -- <SIP/in_sipgate-team.de-00000adb>AGI Script agi-DID_route.agi completed, returning 0
[Apr 10 10:18:34] -- Executing [99909*1***DID@default:1] Answer("SIP/in_sipgate-team.de-00000adb", "") in new stack
[Apr 10 10:18:34] > 0x7f19080fe500 -- Probation passed - setting RTP source address to 212.9.44.249:20564
[Apr 10 10:18:34] -- Executing [99909*1***DID@default:2] AGI("SIP/in_sipgate-team.de-00000adb", "agi-VDAD_ALL_inbound.agi") in new stack
[Apr 10 10:18:34] -- Launched AGI Script /usr/share/asterisk/agi-bin/agi-VDAD_ALL_inbound.agi


So if i am not totally wrong, i need to create a DID named UID:5360 (UID is our UseriD from sipgate). The Problem is, whenever i try that, vicidial automatically removes the : so i end up with a DID like this: "UID5360". In order to solve that, i need to know:
1. Is there any kind of wildcard character to use in a did or
2. Is there any way to escape the : in the did or
3. Can i somehow manipulate the DIDs manually so i can insert the correct DID.

Thanks in Advance.
(Hope i could make my problem clear, like i said, first post here, and non native english speaker).

PS: just another mini question: Is there any way to autocheck the checkbox for blended calling when the agent logs in? So that no one can forget to check it.
Khaok
 
Posts: 4
Joined: Tue Apr 11, 2017 9:58 am

Re: cant define the right DID

Postby mflorell » Tue Apr 18, 2017 11:15 am

That's a new one for me. I've never seen an inbound call sent with a colon ":" before. I've never even tried to put it into the dialplan to see if it would even work as a part of a static dialplan entry.

As a quick fix, try creating a new DID entry, then use MySQL CLI to update the did_pattern to the one that you are receiving "UID:5360". If it works, then post back here and we'll alter the VICIdial code to allow for colons in the DID Extension(did_pattern) field.
mflorell
Site Admin
 
Posts: 18386
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Re: cant define the right DID

Postby Khaok » Wed Apr 19, 2017 2:30 am

Can you point me in the right direction on how to do that? I am not really that firm with mysql and the mysql CLI yet (still learning). I first use "mysql asterisk" right? than what commands do i need? a few pointers would be enough, i want to figure out the rest for myself. ;)
Khaok
 
Posts: 4
Joined: Tue Apr 11, 2017 9:58 am

Re: cant define the right DID

Postby mflorell » Wed Apr 19, 2017 5:37 am

Yes, then something like "update vicidial_inbound_dids SET did_pattern='UID:5360' where did_pattern-'123';"
mflorell
Site Admin
 
Posts: 18386
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Re: cant define the right DID

Postby Khaok » Thu Apr 20, 2017 3:23 am

Works like a Charm. Thank you very much.
Khaok
 
Posts: 4
Joined: Tue Apr 11, 2017 9:58 am

Re: cant define the right DID

Postby mflorell » Thu Apr 20, 2017 11:05 am

Very good, I've gone ahead and added the colon ":" as an allowed character for did patterns in admin.php in svn/trunk.
mflorell
Site Admin
 
Posts: 18386
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida


Return to Support

Who is online

Users browsing this forum: No registered users and 144 guests