Author |
Message |
mbylica Brekeke Addict
Joined: 16 May 2011 Posts: 41
Location: Poland
|
Posted: Tue Apr 09, 2013 8:17 am Post subject: Display Name question |
|
|
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 |
|
Harold Brekeke Master Guru
Joined: 21 Sep 2008 Posts: 289
Location: Japan
|
Posted: Thu Apr 11, 2013 7:13 pm Post subject: |
|
|
Let me try... |
|
Back to top |
|
Harold Brekeke Master Guru
Joined: 21 Sep 2008 Posts: 289
Location: Japan
|
Posted: Fri Apr 12, 2013 2:09 am Post subject: |
|
|
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 |
|
davi Brekeke Addict
Joined: 26 Jan 2011 Posts: 34
|
Posted: Fri Apr 12, 2013 9:15 am Post subject: |
|
|
> From=sip:(.+)@(.+)
It must be:
From = <sip:(.+)@(.+)>
Or,
$getUri( From ) = sip:(.+)@(.+) |
|
Back to top |
|
mbylica Brekeke Addict
Joined: 16 May 2011 Posts: 41
Location: Poland
|
Posted: Mon Apr 15, 2013 2:58 pm Post subject: |
|
|
Thanks a lot for the hint.
I am about to check it out and give you a feedback here. |
|
Back to top |
|
mbylica Brekeke Addict
Joined: 16 May 2011 Posts: 41
Location: Poland
|
Posted: Sun May 12, 2013 4:15 pm Post subject: |
|
|
Harold,
It works, thank You very much for the hint.
Davi,
Thanks as well, i've changed that rule.
Thanks,
Maciej. |
|
Back to top |
|
|