Forums Read-only archive

Display Name question

6 posts · Brekeke SIP Server Forum

mbylica Original post
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
Let me try...
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
> From=sip:(.+)@(.+)

It must be:
From = <sip:(.+)@(.+)>
Or,
$getUri( From ) = sip:(.+)@(.+)
mbylica
Thanks a lot for the hint.
I am about to check it out and give you a feedback here.
mbylica
Harold,
It works, thank You very much for the hint.

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

Thanks,
Maciej.