|
![Reply to topic](templates/iCGstation/images/lang_english/reply.gif) |
Author |
Message |
JRayfield Brekeke Guru
![](images/spacer.gif)
Joined: 03 Dec 2012 Posts: 147
Location: Springfield, MO
|
Posted: Sun Dec 24, 2023 2:56 pm Post subject: Adding Entity Value to Alias Database |
|
|
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? _________________ John Rayfield, Jr. CETma
Rayfield Communications
Springfield, MO
www.rayfield.net |
|
Back to top |
|
JRayfield Brekeke Guru
![](images/spacer.gif)
Joined: 03 Dec 2012 Posts: 147
Location: Springfield, MO
|
Posted: Tue Dec 26, 2023 11:22 am Post subject: |
|
|
I think I figured out what the problem was. I was deleting the Group value in the new file.
John _________________ John Rayfield, Jr. CETma
Rayfield Communications
Springfield, MO
www.rayfield.net |
|
Back to top |
|
Ericcc Brekeke Member
![](images/spacer.gif)
Joined: 21 Apr 2014 Posts: 24
Location: NY, USA
|
Posted: Wed Dec 27, 2023 4:19 pm Post subject: |
|
|
Yes. you are right. You need the Group field. |
|
Back to top |
|
|
|
|
|