Brekeke Forum Index » Brekeke SIP Server Forum

Post new topic   Reply to topic
Adding Entity Value to Alias Database
Author Message
JRayfield
Brekeke Guru


Joined: 03 Dec 2012
Posts: 147
Location: Springfield, MO

PostPosted: Sun Dec 24, 2023 2:56 pm    Post subject: Adding Entity Value to Alias Database Reply with quote

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
View user's profile
JRayfield
Brekeke Guru


Joined: 03 Dec 2012
Posts: 147
Location: Springfield, MO

PostPosted: Tue Dec 26, 2023 11:22 am    Post subject: Reply with quote

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
View user's profile
Ericcc
Brekeke Member


Joined: 21 Apr 2014
Posts: 23
Location: NY, USA

PostPosted: Wed Dec 27, 2023 4:19 pm    Post subject: Reply with quote

Yes. you are right. You need the Group field.
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    Brekeke Forum Index » Brekeke SIP Server Forum All times are GMT - 7 Hours
Page 1 of 1