Forums Read-only archive

Adding Entity Value to Alias Database

3 posts · Brekeke SIP Server Forum

JRayfield Original post
1. Brekeke Product Name and Version:
SIP Server
2. Java version:
11.0.16
3. OS type and the version:
Windows Server 20212
4. UA (phone), gateway or other hardware/software involved:
3CX
5. Your problem:

In my Dial Plan, I have the following lines in the Matching Patterns:

To = sip:(.+)@
$alias.lookup("%1") = (.+)/(.+)

For each line in the Alias Database, I have something like this:

1xxxxxxxxxx,User/true

The '/true' (or in some cases, /false) is the setting for "$rtp=" in the Deploy Patterns.

This allows me to either enable or disable audio routing through my server for each user.

I now want to include another line in the Deploy Patterns: $transport = TCP (or $transport = UDP) for each user.

So I used this Matching Pattern:

To = sip:(.+)@
$alias.lookup("%1") = (.+)/(.+)/(.+)

I adjusted the buffer numbers to take into account the new (/.+) in the $alias.lookup line.

In my alias database, I changed each record to look like this:

1xxxxxxxxxx,User/true/udp
or
1xxxxxxxxxx,User/true/tcp

When I attempted to upload the new alias database information, I received errors (it did not upload any records).

What am I doing wrong?
JRayfield
I think I figured out what the problem was. I was deleting the Group value in the new file.

John
Ericcc
Yes. you are right. You need the Group field.