Brekeke Forum Index » Brekeke SIP Server Forum

Post new topic   Reply to topic
Display Name question
Author Message
mbylica
Brekeke Addict


Joined: 16 May 2011
Posts: 41
Location: Poland

PostPosted: Tue Apr 09, 2013 8:17 am    Post subject: Display Name question Reply with quote

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/networkpatterns.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
Back to top
View user's profile
Harold
Brekeke Master Guru


Joined: 21 Sep 2008
Posts: 287
Location: Japan

PostPosted: Thu Apr 11, 2013 7:13 pm    Post subject: Reply with quote

Let me try...
Back to top
View user's profile
Harold
Brekeke Master Guru


Joined: 21 Sep 2008
Posts: 287
Location: Japan

PostPosted: Fri Apr 12, 2013 2:09 am    Post subject: Reply with quote

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!
Back to top
View user's profile
davi
Brekeke Addict


Joined: 26 Jan 2011
Posts: 34

PostPosted: Fri Apr 12, 2013 9:15 am    Post subject: Reply with quote

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

It must be:
From = <sip:(.+)@(.+)>
Or,
$getUri( From ) = sip:(.+)@(.+)
Back to top
View user's profile
mbylica
Brekeke Addict


Joined: 16 May 2011
Posts: 41
Location: Poland

PostPosted: Mon Apr 15, 2013 2:58 pm    Post subject: Reply with quote

Thanks a lot for the hint.
I am about to check it out and give you a feedback here.
Back to top
View user's profile
mbylica
Brekeke Addict


Joined: 16 May 2011
Posts: 41
Location: Poland

PostPosted: Sun May 12, 2013 4:15 pm    Post subject: Reply with quote

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

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

Thanks,
Maciej.
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