Brekeke Forum Index » Brekeke SIP Server Forum

Post new topic   Reply to topic
Dial Plan to Alter User Agent for Display on Cisco Wireless
Author Message
neils21
Brekeke Member


Joined: 22 Jul 2014
Posts: 17

PostPosted: Tue Aug 19, 2014 9:25 am    Post subject: Dial Plan to Alter User Agent for Display on Cisco Wireless Reply with quote

1. Brekeke Product Name and Version:

Brekeke SIP Server 3 (BSS3)

2. Java version:

Version 7 update 65

3. OS type and the version:

Windows Server 2k8 Standard

4. UA (phone), gateway or other hardware/software involved:

Cisco Call Manager 8 using wireless 7925g phones
Rauland R5 Responder Server

5. Your problem:

I am attempting to alter the caller ID information that comes across on the Cisco phones. Based on the Rauland documentation it appeared as if the caller ID would have been the SIP URI, which I was already prepared to alter as need be. However, it appears that it actually uses the User-Agent field. The issue is that the 7925 phones have only 12 character space to work with, so the call header information is too much to be able to read properly. I need to be able to trim the first 5 characters, and ideally strip away 2 more from the center to make the call ID actually legible.


This is the default plan right now

Matching
$request = ^INVITE
$registered = false
To = sip:(.+)@

Deploy
Session-Expires =
Min-SE =
To = sip:%1@CISCOIP


I did a search on the forum and found a thread similar to what I am trying to do, but I cannot seem to get it to work. This is the dial plan I was attempting to use with no luck.

$request=^INVITE
From=(.{5}(.+))<(.+@)>
$registered=false
To=sip:(.+)@

Deploy
Session-Expires=
Min-SE=
From=1%<%2>
To=sip.3%@CISCOIP

Basically, I am trying to strip the first 5 characters of the header that comes through. On the phones the caller ID comes up as

6th N6613_1 N-
Sip(2*6613*1@CISCOIP)

The full header is sent and should be
6th N6613_1 Normal

So if I can strip the first 5 characters to make it look like
6613_1 Norma

Even better would be to strip out that underscore _1 so it would look like
6613 Normal

But I cannot seem to find anything on the forums or in the guide that deals with altering the user agent in such a way.

Assistance would be great, Thanks in advance
Back to top
View user's profile
ambrosio
Brekeke Master Guru


Joined: 27 Mar 2008
Posts: 215

PostPosted: Wed Aug 20, 2014 11:52 am    Post subject: Reply with quote

Try this.
Matching Patterns
$request = ^INVITE
$registered = false
To = sip:(.+)@
$str.remove($getDisplayName(From),"_1") = .{5}(.+)
Deploy Patterns
Session-Expires =
Min-SE =
To = sip:%1@CISCOIP
From/displayname = %2

FYI:
http://wiki.brekeke.com/wiki/DialPlan-Matching-str-remove
http://wiki.brekeke.com/wiki/DialPlan-Matching-getDisplayName

Note:
The above dialplan rule doesn't work as you want if a display-name is like the following..
6th N6613_2 Normal (not _1)
10th N6613_1 Normal (not first 5 characters.)
Back to top
View user's profile
neils21
Brekeke Member


Joined: 22 Jul 2014
Posts: 17

PostPosted: Fri Aug 22, 2014 8:17 am    Post subject: Reply with quote

ambrosio wrote:
Try this.
Matching Patterns
$request = ^INVITE
$registered = false
To = sip:(.+)@
$str.remove($getDisplayName(From),"_1") = .{5}(.+)
Deploy Patterns
Session-Expires =
Min-SE =
To = sip:%1@CISCOIP
From/displayname = %2

FYI:
http://wiki.brekeke.com/wiki/DialPlan-Matching-str-remove
http://wiki.brekeke.com/wiki/DialPlan-Matching-getDisplayName

Note:
The above dialplan rule doesn't work as you want if a display-name is like the following..
6th N6613_2 Normal (not _1)
10th N6613_1 Normal (not first 5 characters.)


The dial plan you gave works perfectly!

With that the calls display like so

6621 Toilet OT
2*6621*1


And this works just great. It's different than the previous text messaging they are used to, but this is much more coherent of a display.

Apologies for the oversight in missing the links you gave as resources. Being pretty new to brekeke I was unaware of some of the terminology.

Thanks again!
Back to top
View user's profile
ambrosio
Brekeke Master Guru


Joined: 27 Mar 2008
Posts: 215

PostPosted: Fri Aug 22, 2014 11:59 am    Post subject: Reply with quote

Nice. Glad to know!
Back to top
View user's profile
doesyour
Brekeke Junior Member


Joined: 26 Mar 2015
Posts: 5
Location: United States

PostPosted: Fri Mar 27, 2015 8:57 am    Post subject: R5 to Cisco custom text messages Reply with quote

Hey, this worked great for the alerts, but what about the custom text messages? I have to type in five characters and then my message....example: 12345HEY U displays as HEY U

Any ideas for this one? Maybe another custom plan with a special character that excludes the skip five character rule when seen. Our site is already used to using * before the custom text on the old Rnet system.
Back to top
View user's profile
ambrosio
Brekeke Master Guru


Joined: 27 Mar 2008
Posts: 215

PostPosted: Fri Mar 27, 2015 12:28 pm    Post subject: Reply with quote

A custom text messages will work too with the above DialPlan rule.
Let you try!
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