Koozali.org: home of the SME Server

Nokia E71 SIP client Bad Request

Offline apmuthu

  • *
  • 244
  • +0/-0
Nokia E71 SIP client Bad Request
« on: May 24, 2009, 07:04:28 PM »
Every few minutes when the Nokia E71 SIP client tries to register, I get the following on the console asterisk -rvvvv:
Code: [Select]
    -- Got SIP response 400 "Bad Request" back from x.x.x.x where x.x.x.x is the WAN IP of the client.

The template used for the Nokia E71 IP Device is:-
Code: [Select]
type=friend
username=
secret=
mailbox=
host=dynamic
qualify=60000
canreinvite=no
context=internal
callerid=
insecure=very
pickupgroup=

I have cleared out all the extensions and recreated them to no avail. I am able to register and make and receive calls.

SME 7.4 SARK / SAIL 2.3.1-4
All updates till yesterday.

Offline SARK devs

  • ****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: Nokia E71 SIP client Bad Request
« Reply #1 on: May 24, 2009, 10:11:21 PM »
Without a SIP trace I have no idea what the issue is. However, I can tell you that is either Asterisk or Nokia. It sure isn't anything to do with SAIL. Mind you, a qualify of 60000 looks pretty dodgy, are you sure that's what you want?

Kind Regards

S

Offline ldkeen

  • *
  • 403
  • +0/-0
Re: Nokia E71 SIP client Bad Request
« Reply #2 on: May 24, 2009, 11:16:52 PM »
I'm pretty sure the "Bad Request" is due to a buggy implementation of MWI on the Nokia phones. There are some workarounds discussed but I haven't been able to get my N95 to stop sending these messages yet. See the following for more info:
http://www.voip-info.org/wiki/view/Nokia#MWIS60
http://discussion.forum.nokia.com/forum/showthread.php?s=e5dd3c798a889da66bedb0ae1fe0533e&t=109345
Regards, Lloyd

Offline apmuthu

  • *
  • 244
  • +0/-0
Re: Nokia E71 SIP client Bad Request
« Reply #3 on: May 25, 2009, 01:26:52 PM »
From the above links, it appears that we need two more sip.conf entries (fromdomain= and vmexten=) for the extension to enable Nokia implementation of MWI and reduce the incidence of Bad Request messages.

The qualify=60000 entry seems to be required to prevent a flood of Bad Requests as detailed in some links on the net.

The Nokia E71 seems to generate a registration message with it's firmware version number as:
Code: [Select]
-- Saved useragent "E71-1 RM-346 100.07.76" for peer 5001
If we put in a allow=g729 entry for the E71 in sip.conf, we get the following error:

Code: [Select]
frame.c:203 __ast_smoother_feed:
Dropping extra frame of G.729 since we already have a VAD frame at the end

« Last Edit: May 25, 2009, 01:36:09 PM by apmuthu »

Offline apmuthu

  • *
  • 244
  • +0/-0
Re: Nokia E71 SIP client Bad Request
« Reply #4 on: May 25, 2009, 08:38:16 PM »
Successfully upgraded (103 MB) the Firmware on my E71 (Model code 0560657) from 100.07.76 to 200.21.118 and the SIP client works well with Asterisk with the original settings manually set up again - the old settings were washed away in the upgrade.

The new UserAgent is E71-1 RM-346 200.21.118:
Code: [Select]
    -- Registered SIP '5001' at x.x.x.x port 5060 expires 180
    -- Saved useragent "E71-1 RM-346 200.21.118" for peer 5001
[May 26 02:32:47] NOTICE[4573]: chan_sip.c:12669 handle_response_peerpoke: Peer '5001' is now Reachable. (335ms / 60000ms)
    -- Got SIP response 400 "Bad Request" back from x.x.x.x
    -- Got SIP response 400 "Bad Request" back from x.x.x.x

The Bad Request issue is still there inspite of the fromdomain= and vmexten= parameters being set in the sip.conf for the E71.
« Last Edit: May 25, 2009, 08:42:13 PM by apmuthu »