Author Topic: I have error when makecall "DN is not registered" please help me  (Read 10419 times)

Offline onizerga

  • Newbie
  • *
  • Posts: 12
  • Karma: 0
I have error when makecall "DN is not registered" please help me
« on: December 22, 2010, 08:42:58 PM »
mProtocolManager[tServerName].Send(requestMakeCall);

Offline onizerga

  • Newbie
  • *
  • Posts: 12
  • Karma: 0
Re: I have error when makecall "DN is not registered" please help me
« Reply #1 on: December 23, 2010, 03:32:46 AM »
TServer Log

--- Evt::Ready ---
link (link-tcp) S->H: (0[0 / 0] requests pending)
@12/23/10@04:16:41.874 **** PBX::SystemStatus ****
link (link-tcp) S->H: System status request (id=228 [2]) from PBX (0[0 / 0] requests pending)
04:16:55.343 Trc 04521 New client 396 connected from '192.168.0.9'
04:16:55.343 {connection {accepted} {socket 396} {remote-host 192.168.0.9} {remote-port 3830} {listener {port-id default} {socket 336}}}
04:16:55.406 Trc 04541 RequestRegisterClient received from [396]
message RequestRegisterClient
AttributeApplicationPassword ''
AttributeApplicationName 'test'
AttributeSessionID 0
AttributeProtocolVersion 'tserver protocol 4.2'
04:16:55.406 Trc 04522 Client [396] authorized, name 'test', id=0000000a
12/23/10@04:16:55.406 +++ RqHandler::RequestRegisterClient +++
  got message from client <a>
@04:16:55.4060 [0] 7.6.002.00 send_to_client: message EventLinkConnected
AttributeApplicationName 'Tserver'
AttributeSessionID 7995401
AttributeUserData [2] 00 00..
AttributeRegistrationCode 0
AttributeEventSequenceNumber 0000000000000058
AttributeServerStartTime 4d125df400003a98 (03:22:12.015000)
AttributeTimeinuSecs 406000
AttributeTimeinSecs 1293052615 (04:16:55)
04:16:55.406 Trc 04542 EventLinkConnected sent to [396] (0000000a test 192.168.0.9:3830)
--- RqHandler::RequestRegisterClient ---
04:16:57.437 Trc 04541 RequestMakeCall received from [396] (0000000a test 192.168.0.9:3830)
message RequestMakeCall
AttributeExtensions [20] 00 01 00 00..
'CPNDigits' '2503'
AttributeReferenceID 2
AttributeMakeCallType 1 (MakeCallDirectAgent)
AttributeOtherDN '765002'
AttributeThisDN '765001'
04:16:57.437 Int 04543 Interaction message "RequestMakeCall" received from 396 ("test")
@04:16:57.4370 [ISCC] Client location test:0000000a@ added
@04:16:57.4370 [0] 7.6.002.00 send_to_client: message EventError
(DN is not registered)
AttributeEventSequenceNumber 0000000000000059
AttributeTimeinuSecs 437000
AttributeTimeinSecs 1293052617 (04:16:57)
AttributeErrorCode 41
AttributeReferenceID 2
AttributeThisDN '765001'
04:16:57.437 Int 04545 Interaction message "EventError" sent to 396 ("test")
04:16:57.437 Trc 04542 EventError sent to [396] (0000000a test 192.168.0.9:3830)
@12/23/10@04:17:10.890 **** PBX::SystemStatus ****
link (link-tcp) S->H: System status request (id=22a [2]) from PBX (0[0 / 0] requests pending)

Offline onizerga

  • Newbie
  • *
  • Posts: 12
  • Karma: 0
Re: I have error when makecall "DN is not registered" please help me
« Reply #2 on: December 23, 2010, 07:59:49 AM »
This source code

        private void button2_Click(object sender, EventArgs e)
        {
            //Makecall

            //MakeCallButton.Enabled = false;
            RequestMakeCall requestMakeCall =
                RequestMakeCall.Create(
                    thisDn,
                    SingleTargetTextField.Text,
                    MakeCallType.DirectAgent);
            int uniqueId = GenerateUniqueId();
            //requestMakeCall.ReferenceID = uniqueId;
            RequestHash.Add(uniqueId, "RequestMakeCall");
            try
            {
                requestMakeCall.OtherDN = SingleTargetTextField.Text;
                requestMakeCall.ThisDN = thisDn;
                //requestMakeCall.Extensions = new KeyValueCollection();
                //requestMakeCall.Extensions["CPNDigits"] = "2503";
                mProtocolManager[tServerName].Send(requestMakeCall);
            }
            catch (ProtocolException protocolException)
            {
                MessageBox.Show("Protocol Exception!/n" + protocolException);
                MakeCallButton.Enabled = true;
            }
        }

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7639
  • Karma: 56330
Re: I have error when makecall "DN is not registered" please help me
« Reply #3 on: December 23, 2010, 01:01:01 PM »
On your code you are sending the dial order but don't the register/monitor, is it done on another function?

Offline René

  • Administrator
  • Hero Member
  • *****
  • Posts: 1832
  • Karma: 62
Re: I have error when makecall "DN is not registered" please help me
« Reply #4 on: December 23, 2010, 01:45:59 PM »
Hi onizerga,

You must register DN you'd like to control using RequestRegisterAddress request before issuing RequestMakeCall.

R.

Offline onizerga

  • Newbie
  • *
  • Posts: 12
  • Karma: 0
Re: I have error when makecall "DN is not registered" please help me
« Reply #5 on: December 24, 2010, 03:09:05 AM »
Thank you
I will try solve from suggestion

Offline onizerga

  • Newbie
  • *
  • Posts: 12
  • Karma: 0
Re: I have error when makecall "DN is not registered" please help me
« Reply #6 on: December 26, 2010, 01:33:16 PM »
Hi I try register DN from source code as below but my softphone not register

        private void button1_Click(object sender, EventArgs e)
        {
            //Login
            try
            {
                LoginButton.Enabled = false;
                RequestRegisterAddress requestRegisterAddress =
                    RequestRegisterAddress.Create(
                        thisDn,
                        RegisterMode.ModeShare,
                        ControlMode.RegisterDefault,
                        AddressType.DN);
                int uniqueId = GenerateUniqueId();
                requestRegisterAddress.ReferenceID = uniqueId;
                requestRegisterAddress.Extensions = new KeyValueCollection();
                //requestRegisterAddress.Extensions["CPNDigits"] = "2503";
                requestRegisterAddress.Extensions["CPNDigits"] = "761001";
                mProtocolManager[tServerName].Send(requestRegisterAddress);
                RequestHash.Add(uniqueId, "RequestRegisterAddress");
                LogoutButton.Enabled = true;
                MessageBox.Show("Login complete ");
            }
            catch (ProtocolException protocolException)
            {
                MessageBox.Show("Protocol Exception!\n" + protocolException);
            }
        }

---------------------------------------------------------------------------------------------------
TServer Log

@12/26/10@20:30:42.936 **** PBX::SystemStatus ****
12/26/10@20:30:42.952 link (link-tcp) S->H: System status request (id=899 [2]) from PBX (0[0 / 0] requests pending)
20:30:55.139 Trc 04521 New client 368 connected from '192.168.0.9'
20:30:55.139 {connection {accepted} {socket 368} {remote-host 192.168.0.9} {remote-port 2811} {listener {port-id default} {socket 336}}}
20:30:55.264 Trc 04541 RequestRegisterClient received from [368]
message RequestRegisterClient
AttributeApplicationPassword ''
AttributeApplicationName 'test'
AttributeSessionID 0
AttributeProtocolVersion 'tserver protocol 4.2'
20:30:55.264 Trc 04522 Client [368] authorized, name 'test', id=00000004
12/26/10@20:30:55.264 +++ RqHandler::RequestRegisterClient +++
  got message from client <4>
@20:30:55.2640 [0] 7.6.002.00 send_to_client: message EventLinkConnected
AttributeApplicationName 'Tserver'
AttributeSessionID 7995395
AttributeUserData [2] 00 00..
AttributeRegistrationCode 0
AttributeEventSequenceNumber 0000000000000034
AttributeServerStartTime 4d16d114000a3d18 (12:22:28.671000)
AttributeTimeinuSecs 264000
AttributeTimeinSecs 1293370255 (20:30:55)
20:30:55.264 Trc 04542 EventLinkConnected sent to [368] (00000004 test 192.168.0.9:2811)
--- RqHandler::RequestRegisterClient ---
20:31:04.499 Trc 04541 RequestRegisterAddress received from [368] (00000004 test 192.168.0.9:2811)
message RequestRegisterAddress
AttributeExtensions [22] 00 01 00 00..
'CPNDigits' '761001'
AttributeReferenceID 2
AttributeAddressType 1 (DN)
AttributeControlMode 0
AttributeRegisterMode 0
AttributeThisDN '765001'
@20:31:04.4990 [ISCC] Client location test:00000004@ added
20:31:04.499 Trc 20006 Number of seat licenses in use 3 out of 9999 available
(tservice_proc) AddressType changed to 2 for 765001 based on CME
(tservice_proc) ControlMode set to 1 for 765001
12/26/10@20:31:04.499 +++ RqHandler::RequestRegisterAddress +++
  got message from client <4>
  device <765001> cannot be monitored - could be a real agent
@20:31:04.4990 [0] 7.6.002.00 send_to_client: message EventError
(Bad DN type for DN registration)
AttributeEventSequenceNumber 0000000000000035
AttributeTimeinuSecs 499000
AttributeTimeinSecs 1293370264 (20:31:04)
AttributeErrorMessage 'Bad DN type for DN registration'
AttributeErrorCode 128
AttributeUserEvent RequestRegisterAddress
AttributeClientID 4
AttributeControlMode 1
AttributeAddressType 2 (Position)
AttributeExtensions [22] 00 01 00 00..
'CPNDigits' '761001'
AttributeReferenceID 2
AttributeRegisterMode 0
AttributeThisDN '765001'
20:31:04.499 Int 04545 Interaction message "EventError" sent to 368 ("test")
20:31:04.499 Trc 04542 EventError sent to [368] (00000004 test 192.168.0.9:2811)
--- RqHandler::RequestRegisterAddress ---
@12/26/10@20:31:13.030 **** PBX::SystemStatus ****
link (link-tcp) S->H: System status request (id=89b [2]) from PBX (0[0 / 0] requests pending)




Offline René

  • Administrator
  • Hero Member
  • *****
  • Posts: 1832
  • Karma: 62
Re: I have error when makecall "DN is not registered" please help me
« Reply #7 on: December 28, 2010, 02:36:01 PM »
Hi,

What type of DN is the number 765001 in Genesys configuration (CME)?
What switch do you have?

R.