Display Name question

Discuss any topic about Brekeke SIP Server.

Moderator: Brekeke Support Team

Post Reply
mbylica
Posts: 41
Joined: Mon May 16, 2011 1:05 pm
Location: Poland

Display Name question

Post by mbylica »

1. Brekeke Product Name and version:
BSS, 2.4.8.6

2. Java version:
1.6.0_25

3. OS type and the version:
linux centos 5.5

4. UA (phone), gateway or other hardware/software involved:
doesn't matter

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

6. Your problem:
When Display Name in From header of INVITE message contains polish letters like (łęąż....) and additionaly there are rules affecting that header then these manipulations cause BSS to forward malformed SDP.

As an example...
There is incoming INVITE with following From header:
From: "łówąę test" <sip:42011223344@10.10.10.5>;tag=as5c5a6654

and rule is manipulating that header in following way:
$request=^INVITE
From=sip:(.+)@(.+)
$if($str.equals($str.length("%1"),"9"),"48","")=(.*)
$str.isdigits( "%1" )=true

From="%3%1" <sip:%3%1@%2>
$replaceuri=true
$continue=true

then outgoing INVITE has
From: "42011223344" <sip:42011223344@10.10.10.5>;tag=as5c5a6654
but SDP part is malformed.
As a result i am unable to process with such INVITE further.

Is there any way to get out of this problem?
A workaround for me could also be to erase Display Name.

Thanks in advance
Harold
Posts: 289
Joined: Sun Sep 21, 2008 10:31 pm
Location: Japan

Post by Harold »

Let me try...
Harold
Posts: 289
Joined: Sun Sep 21, 2008 10:31 pm
Location: Japan

Post by Harold »

mbylica,

I found the way to solve the issue.

1) Go to the [Configuration] -> [System] page.
2) Set -Dfile.encoding=ISO-8859-1 in the [Java VM arguments].
3) Restart the Brekeke SIP Server.

Try it!
davi
Posts: 34
Joined: Wed Jan 26, 2011 4:34 pm

Post by davi »

> From=sip:(.+)@(.+)

It must be:
From = <sip:(.+)@(.+)>
Or,
$getUri( From ) = sip:(.+)@(.+)
mbylica
Posts: 41
Joined: Mon May 16, 2011 1:05 pm
Location: Poland

Post by mbylica »

Thanks a lot for the hint.
I am about to check it out and give you a feedback here.
mbylica
Posts: 41
Joined: Mon May 16, 2011 1:05 pm
Location: Poland

Post by mbylica »

Harold,
It works, thank You very much for the hint.

Davi,
Thanks as well, i've changed that rule.

Thanks,
Maciej.
Post Reply