Search Discussions:
Advanced Search...
Welcome to Nokia Support Discussions! Here you can share advice and tips with thousands of other Nokia users around the world in English. Many Nokia employees also follow and participate in the discussions, see our guidelines for more information. Everyone can search and read the discussions, but to post your own question or reply to others, simply login with your Nokia account. If this is your first time here, you can choose an alias to represent you. And if you don't have a Nokia account yet, please register.
Reply

Re: N79 SIP settings and "invalid public name" err...

Counsellor
Posts: 34

N79 SIP settings and "invalid public name" error

Hi,

 

My VoIP provider requires users to setup their SIP software using an URI as follows:

 

+<number>

 

Where "+" is the regular plus character (which you get by pressing twice on the star key) and

<number> is a string of digits.

 

For example, a valid URI -- for this provider! -- is: "+123456789"

 

Note the missing domain from the URI (normally, the URI is "<address>@<domain>"

 

On the N79, when I open SIP Settings and enter "+123456789" in the "public user name" field, I get the following error message:

 

"Invalid public user name. Check settings." 

 

If I enter "+123456789@domain" or "123456789", the setting is accepted by the phone's software but is obviously incorrect (I get the "Registration failed" error).

 

I have no issue in using the same provider's account in other software (like good old X-lite).

 

Why will the N79 software not accept a string of digits preceded by a plus character?

 

Nokia N79 with firmware v. 11.049 of Nov 25, 2008

 

Thanks for you assistance. 

Please use plain text.
Mobile Sensei
grschinon
Posts: 9,568

Re: N79 SIP settings and "invalid public name" error

[ Edited ]
RFC3261 states that values in SIP headers (which is where the user name appears in an exchange) follow the same rules and syntax as HTTP. In HTTP, the '+' character has to be escaped since it is otherwise interpreted as a space when used in conjunction with the GET form of a URL in which variable are passed to the server. The '+' sign is therefore an illegal character in a SIP user name.

Your provider needs to get its act together and not ask you to use an illegal character in your username. The N79 is merely observing the rules set out in RFC3261. See http://www.ietf.org/rfc/rfc3261.txt
Message Edited by grschinon on 02-Feb-2009 01:04 PM
Was this post helpful? If so, please click on the white "Kudos!" star to the left. Thank you!
Please use plain text.
Counsellor
Posts: 34

Re: N79 SIP settings and "invalid public name" error

[ Edited ]

Hi grschinon,


grschinon wrote:
[snip]

Your provider needs to get its act together and not ask you to use an illegal character in your username
[snip].

 

 

Absolutely. This is not in question.

 

I posted this topic because I can use other software and hardware -- prehaps less "strict" on URI requirements -- with that provider.

 

It's only the N79 that is unable to connect (to "register").

Message Edited by ngnok on 02-Feb-2009 01:30 PM
Please use plain text.
Mobile Guru
android
Posts: 2,333

Re: N79 SIP settings and "invalid public name" error

[ Edited ]
Rules are rules! Can't blame one for following it to the letter, also for safeguard for hacking progs. I'll give our m8 kudos for being resourcefull; I've been looking for that stuff!
Message Edited by android on 02-Feb-2009 01:45 PM

Knowledge not shared is knowledge wasted!

If you find it helpfull, it's not hard to click the STAR..



ip information
Please use plain text.
Mobile Sensei
grschinon
Posts: 9,568

Re: N79 SIP settings and "invalid public name" error

Precisely.

It's because of certain pieces of software being a little too flexible with the rules (or applying their own rules) that we now have, for example, so many problems of website compatibility between IE, Firefox, Opera, Safari etc.

While it may be practical in some cases, I consider a piece of software allowing something that's against the rules governing its operation to be buggy software.
Was this post helpful? If so, please click on the white "Kudos!" star to the left. Thank you!
Please use plain text.
Counsellor
Posts: 34

Re: N79 SIP settings and "invalid public name" error

In the end, it is the "user" -- which, in this context, is a synonym for "customer" -- that is left hanging.

 

So, until my provider -- probably completely clueless -- gets its act together, I'm left with the usual alternatives: finding a new provider (I would, if I could) or getting another symbian VoIP application.

 

In X-Lite, the set-up is as follows:

 

Display Name: <Whatever>

User name: +123456789

Password: <pass>

Authorisation user name: +123456789

Register with domain and receive incoming calls: enabled 

Send outbound via: proxy (Address: machine.domain.tld:1234)

 

That just works (tm).

 

 If anyone knows how to convert the above to properly formatted SIP settings for the N79, I will be very grateful. 

Please use plain text.
Mobile Sensei
grschinon
Posts: 9,568

Re: N79 SIP settings and "invalid public name" error

You could try replacing the '+' with its escaped version, %2D, but I doubt that'll work: %2D123456789.
Was this post helpful? If so, please click on the white "Kudos!" star to the left. Thank you!
Please use plain text.
Mobile Guru
android
Posts: 2,333

Re: N79 SIP settings and "invalid public name" error

[ Edited ]
For many years I'v seen programmers breaking rules(TCPIP RFC) just to make their apps works, or run faster than others to minimized code overhead!
Message Edited by android on 02-Feb-2009 02:18 PM

Knowledge not shared is knowledge wasted!

If you find it helpfull, it's not hard to click the STAR..



ip information
Please use plain text.
Counsellor
Posts: 34

Re: N79 SIP settings and "invalid public name" error

Hi,


grschinon wrote:
You could try replacing the '+' with its escaped version, %2D, but I doubt that'll work: %2D123456789.

 

Very first thing I tried after going through the RFC you linked above. Just as you suspected: didn't make a difference.

 

Thanks anyway. I appreciate your help. 

 

 

Please use plain text.
Counsellor
Posts: 34

Re: N79 SIP settings and "invalid public name" error

Just to avoid further confusion.


The correct escape for "+" is "%2B".

 

Makes no difference to the problem at hand, obviously. 

Please use plain text.
Registered Member
abondu
Posts: 2

Re: N79 SIP settings and "invalid public name" error

I am having the same problem with a Nokia N8.

 

Did you find any solution?

 

My voip provider is vodafone spain

 

Regards

Please use plain text.