Hi all,
Today, I came across an issue while trying to change the phone line via the Jabber SDK.
I've configured two lines on a 7942 deskphone. But I'm only able to use the first / default line.
As written in the document “Cisco Web Communicator SDK JavaScript API” (
http://developer.cisco.com/documents/4554576/c849c124-a064-4e01-88e4-b108f8a0cb49)
I used the function switchMode(settings).
Unfortunately I realized that this function is not included in the cwic.js
plugin. Therefore I used the function switchPhoneMode(options). This function
calls the Cisco Web Communicator Plugin with the necessary parameters written
in the documentation.
So I passed a new line (which is correctly configured for the Deskphone in CUCM).
The result was an error saying ”eLineMustNotBeConfigured“.
Here is the dump from the softphone log:
29-Nov-2012
16:01:16,153 +0100 INFO [0x000014e0] csf.ecc.evt:
CALL_CONTROL_MODE_CHANGE: eNoMode, preferredDeviceName = , preferredLineDN =
29-Nov-2012
16:01:16,153 +0100 INFO [0x000014e0] csf.ecc.evt:
CONNECTION_STATUS_CHANGE: eIdle
29-Nov-2012
16:01:16,153 +0100 INFO [0x000014e0] webuc: Received Connection Change
Event: eIdle
29-Nov-2012 16:01:16,153 +0100 INFO
[0x000014e0] csf.ecc: <---
29-Nov-2012
16:01:16,153 +0100 INFO [0x000014e0] csf.ecc: selected device
'SEP002155D4CF83'
29-Nov-2012
16:01:16,154 +0100 ERROR [0x000014e0] csf.ecc: doConnect() failed -
PreferredLineDN must be blank! : eLineMustNotBeConfigured
29-Nov-2012 16:01:16,154 +0100 INFO
[0x000014e0] csf.ecc: --->
29-Nov-2012 16:01:16,154 +0100 INFO
[0x000014e0] csf.ecc: <---
29-Nov-2012
16:01:16,154 +0100 INFO [0x000014e0] webuc: SwitchMode returned. Code:
eLineMustNotBeConfigured
So I did another test and passed the line I wanted to change to with the parameter
PreferredLineDN.
This one gave me the error “eTftpFileInvalid”.
The
softphone log said:
29-Nov-2012
17:48:15,431 +0100 ERROR [0x000010c4] csf.ecc: libXML2 msg: "Namespace
prefix xsi for type on device is not defined"
29-Nov-2012
17:48:15,432 +0100 WARN [0x000010c4] csf.ecc: PhoneConfig::parse(), no
start/stop media port values found, using defaults of 16384 - 32768
29-Nov-2012
17:48:15,432 +0100 WARN [0x000010c4] csf.ecc: PhoneConfig::parse(), no
sipProfile/dscpForAudio value found, using default of 0
29-Nov-2012
17:48:15,432 +0100 WARN [0x000010c4] csf.ecc: PhoneConfig::parse(), no
sipProfile/dscpVideo value found, using default of 0
29-Nov-2012
17:48:15,432 +0100 WARN [0x000010c4] csf.ecc: PhoneConfig::parse(), no
sipProfile/enableVad value found, using default of false
29-Nov-2012
17:48:15,432 +0100 WARN [0x000010c4] csf.ecc: PhoneConfig::parse(), no
sipProfile/dtmfAvtPayload value found, using default of 101
29-Nov-2012
17:48:15,432 +0100 ERROR [0x000010c4] csf.ecc: insecureRetrieveConfig() file
tftp://labccm60.lab.lan/SEP002155D4CF83.cnf.xml could not be parsed
29-Nov-2012
17:48:15,432 +0100 ERROR [0x000010c4] csf.ecc.api: fetchDeviceConfig() could
not obtain config for SEP002155D4CF83
29-Nov-2012
17:48:15,432 +0100 ERROR [0x000010c4] csf.ecc: doConnect() failed - failed to
fetch device config for SEP002155D4CF83!
29-Nov-2012
17:48:15,432 +0100 ERROR [0x000010c4] csf.ecc: doConnect() returnCode :
eTftpFileInvalid
29-Nov-2012
17:48:15,432 +0100 INFO [0x000010c4] csf.ecc.evt:
CONNECTION_STATUS_CHANGE: eIdle
29-Nov-2012
17:48:15,432 +0100 INFO [0x000010c4] webuc: Received Connection Change
Event: eIdle
29-Nov-2012
17:48:15,432 +0100 INFO [0x000010c4] csf.ecc: --->
29-Nov-2012
17:48:15,432 +0100 INFO [0x000010c4] csf.ecc: <---
29-Nov-2012
17:48:15,432 +0100 INFO [0x000010c4] webuc: SwitchMode returned. Code:
eTftpFileInvalid
May I ask
you to help me with this one?
Thanks in advance.
Simon