1. Brekeke Product Name and Version:
Brekeke SIP Server, Version 3.7.4.8
2. Java version:
8.121 64bit
3. OS type and the version:
Win Server 2012R2 Standard
4. UA (phone), gateway or other hardware/software involved:
Ascom Myco / Cisco CUCM w/ Various Sets / Counterpath Xlite 4.9.8
5. Your problem:
This is question relating to a topic answered for me here
http://www.brekeke-sip.com/bbs/viewtopi ... highlight=
I am modifying the displayname to eliminate specific characters in a set amount of the string. So as described Displayname has
5031_2 Call Type
5031_1 Call Type
503102 Call Type
Which this pattern to remove the bold works great
$request = ^INVITE
$registered = false
To = sip:(.+)@
$getDisplayName(From) = .{4}(.{4})\S* (.+)
My question is what if the leading characters on the DisplayName are Alphanumeric and beyond that character limit but I still need to retain the ability to remove the bold from that DisplayName
Example
5031_2 Call Type = 5031 Display Name
Location Name Call Type = Location Name Call Type
Specific Example
500503101 Nurse Call = 5031 Nurse Call
9FrontLobby Nurse Call = FrontLobby Nurse Call
I've tried playing around with the above dialplan in a test environment where changing the
$getDisplayName(From) = .{4}(.{4})\S* (.+)
to this for instance
$getDisplayName(From) = .{1}(.{9})\S* (.+)
Get's closer to fixing the latter of the two examples
9FrontLobby Nurse Call = FrontLobby Nurse Call
But totally breaks the former
500503101 Nurse Call = 00503101 Nurse Call
Is there a way to do this in a single dial plan, or will I need to setup specific plan rules for odd areas like the above example?
Thanks in advance
[/b]
Brekeke SIP Server, Version 3.7.4.8
2. Java version:
8.121 64bit
3. OS type and the version:
Win Server 2012R2 Standard
4. UA (phone), gateway or other hardware/software involved:
Ascom Myco / Cisco CUCM w/ Various Sets / Counterpath Xlite 4.9.8
5. Your problem:
This is question relating to a topic answered for me here
http://www.brekeke-sip.com/bbs/viewtopi ... highlight=
I am modifying the displayname to eliminate specific characters in a set amount of the string. So as described Displayname has
5031_2 Call Type
5031_1 Call Type
503102 Call Type
Which this pattern to remove the bold works great
$request = ^INVITE
$registered = false
To = sip:(.+)@
$getDisplayName(From) = .{4}(.{4})\S* (.+)
My question is what if the leading characters on the DisplayName are Alphanumeric and beyond that character limit but I still need to retain the ability to remove the bold from that DisplayName
Example
5031_2 Call Type = 5031 Display Name
Location Name Call Type = Location Name Call Type
Specific Example
500503101 Nurse Call = 5031 Nurse Call
9FrontLobby Nurse Call = FrontLobby Nurse Call
I've tried playing around with the above dialplan in a test environment where changing the
$getDisplayName(From) = .{4}(.{4})\S* (.+)
to this for instance
$getDisplayName(From) = .{1}(.{9})\S* (.+)
Get's closer to fixing the latter of the two examples
9FrontLobby Nurse Call = FrontLobby Nurse Call
But totally breaks the former
500503101 Nurse Call = 00503101 Nurse Call
Is there a way to do this in a single dial plan, or will I need to setup specific plan rules for odd areas like the above example?
Thanks in advance
[/b]