Brekeke Forum Index » Brekeke SIP Server Forum

Post new topic   Reply to topic
strip leading characters from caller id
Author Message
tman
Brekeke Newbie


Joined: 27 May 2009
Posts: 4
Location: NC

PostPosted: Fri May 29, 2009 8:48 pm    Post subject: strip leading characters from caller id Reply with quote

1. Brekeke Product Name and version: BSS 2.3.6.0

2. Java version: build 1.6.0_07-b06

3. OS type and the version: Win XP

4. UA (phone), gateway or other hardware/software involved: Cisco Call Manager / 7921 + rauland nurse call

5. Select your network pattern from http://www.brekeke-sip.com/bbs/network/networkpatterns.html :

6. Your problem:
I need to strip leading characters from caller id display. the important characters get cut off by the limited caller id size. I have been able to replace but not shoerten.

ex.
current display
From: 10th 1025 1 Patient<sip:1025*1@192.168.6.201:5060>

need display
From: Patient<sip:1025*1@192.168.6.201:5060>

current dial plan

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

Deploy:
to=sip:%1@10.200.2.9
Back to top
View user's profile
hope
Brekeke Master Guru


Joined: 15 Jan 2008
Posts: 862

PostPosted: Tue Jun 02, 2009 11:46 am    Post subject: Reply with quote


Matching Patterns
$request = ^INVITE
From = ".+ Patient"(.+)
To = sip:(.+)@
Deploy Patterns
From = "Patient"%1
To = sip:%2@10.200.2.9
Back to top
View user's profile
tman
Brekeke Newbie


Joined: 27 May 2009
Posts: 4
Location: NC

PostPosted: Wed Jun 03, 2009 5:11 am    Post subject: Reply with quote

I tried your solution and a few variations, for some reason I no longer geerate a call at all if I have From= in the deploy pattern. My application is not phone to phone or pc to phone it is a speaker console in a room that is connectected to a gateway server which registers the rooms to BSS. I am starting to wonder if the gateway requires that there be no changes to the header so it can find the destination room?
Back to top
View user's profile
hope
Brekeke Master Guru


Joined: 15 Jan 2008
Posts: 862

PostPosted: Wed Jun 03, 2009 2:01 pm    Post subject: Reply with quote

how about
Matching Patterns
$request = ^INVITE
From = ".+ Patient"(.+) ;.+
To = sip:(.+)@
Deploy Patterns
From = "Patient"%1
To = sip:%2@10.200.2.9
Back to top
View user's profile
tman
Brekeke Newbie


Joined: 27 May 2009
Posts: 4
Location: NC

PostPosted: Wed Jun 10, 2009 9:58 pm    Post subject: Reply with quote

hope wrote:
how about
Matching Patterns
$request = ^INVITE
From = ".+ Patient"(.+) ;.+
To = sip:(.+)@
Deploy Patterns
From="Patient"%1
To=sip:%2@10.200.2.9

Does not work either, calls fail to complete, thanks for your efforts.
Back to top
View user's profile
janP
Brekeke Master Guru


Joined: 25 Nov 2007
Posts: 336

PostPosted: Thu Jun 11, 2009 2:20 pm    Post subject: Reply with quote

Hi all,

In my environment, the above DialPlan rule works...

tman,
did you get any error response from UAS?
can you paste an INVITE packet which the SIP Server sent?
Back to top
View user's profile
tman
Brekeke Newbie


Joined: 27 May 2009
Posts: 4
Location: NC

PostPosted: Fri Jun 12, 2009 2:04 pm    Post subject: Reply with quote

janP wrote:
Hi all,

In my environment, the above DialPlan rule works...

tman,
did you get any error response from UAS?
can you paste an INVITE packet which the SIP Server sent?


Thanks for all the help, got me on the right path, I did not even know what SIP was until about a month ago. between what you told me and the bss_tutorial dial plan doc I came up with this

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


From=%2<%3>
To=sip:%4@10.200.2.9

and it works for the most part, I will need tweak it some how because differnt areas have different numbers of lading characters but I think I am ok now.
Back to top
View user's profile
janP
Brekeke Master Guru


Joined: 25 Nov 2007
Posts: 336

PostPosted: Fri Jun 12, 2009 2:41 pm    Post subject: Reply with quote

tman

If your above DialPlan rule works, I'm glad.
Back to top
View user's profile
brad051380
Brekeke Member


Joined: 10 Jul 2009
Posts: 13
Location: Indiana

PostPosted: Fri Jul 10, 2009 6:44 am    Post subject: Reply with quote

TMAN - I am new as well using Brekeke with Responder Gateway server. I am struggling right now to get the Patient Stations to register with Brekeke....any suggestions? If i point the Registrar IP to the Nursecall NIC on the RGS and the Proxy IP to the Hospital LAN IP i get an "unauthenticate" response. if i set the Proxy to the Hospital LAN NIC my RGS just Fails on registration. Any help with RGS and Brekeke setup between the two would be much appreciated
Back to top
View user's profile Send e-mail
Laurie
Brekeke Master Guru


Joined: 07 Jan 2008
Posts: 242

PostPosted: Fri Jul 10, 2009 12:25 pm    Post subject: Reply with quote

brad051380,

Refer to this Wiki topic.
http://wiki.brekeke.com/wiki/a59dbbb4
It will help you.
Back to top
View user's profile
brad051380
Brekeke Member


Joined: 10 Jul 2009
Posts: 13
Location: Indiana

PostPosted: Thu Jul 16, 2009 6:12 pm    Post subject: Reply with quote

got mine to work. It was a port conflict between the Rauland software and Brekeke. I was able to change the port on the Rauland system and it worked fine. Also, i had to force RTP = ON as well to get the Voice Paths to work. THanks for your help. Also, is there a guide with the different variables and what they mean? such as %1,%2 etc.. maybe i am just too impatient to figure it out on my own!lol
Thanks,
Brad
Back to top
View user's profile Send e-mail
hope
Brekeke Master Guru


Joined: 15 Jan 2008
Posts: 862

PostPosted: Tue Jul 21, 2009 11:32 am    Post subject: Reply with quote

%1, %2 refer to the content in the parenthesis in the matching patterns

%1 refers to the first parenthesis included content in the matching patterns
%2 refers to the second parenthesis included content in the matching patterns
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