Page 1 of 1

cant define the right DID

PostPosted: Tue Apr 18, 2017 9:22 am
by Khaok
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.

Re: cant define the right DID

PostPosted: Tue Apr 18, 2017 11:15 am
by mflorell
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.

Re: cant define the right DID

PostPosted: Wed Apr 19, 2017 2:30 am
by Khaok
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. ;)

Re: cant define the right DID

PostPosted: Wed Apr 19, 2017 5:37 am
by mflorell
Yes, then something like "update vicidial_inbound_dids SET did_pattern='UID:5360' where did_pattern-'123';"

Re: cant define the right DID

PostPosted: Thu Apr 20, 2017 3:23 am
by Khaok
Works like a Charm. Thank you very much.

Re: cant define the right DID

PostPosted: Thu Apr 20, 2017 11:05 am
by mflorell
Very good, I've gone ahead and added the colon ":" as an allowed character for did patterns in admin.php in svn/trunk.