" /> MakeCall method with agent Alcatel OmniPCX - Genesys CTI User Forum

Author Topic: MakeCall method with agent Alcatel OmniPCX  (Read 1274 times)

Offline MatSzafraniec

  • Newbie
  • *
  • Posts: 10
  • Karma: 1
MakeCall method with agent Alcatel OmniPCX
« on: March 08, 2018, 10:48:51 AM »
Advertisement
Hello, not sure this section is properly.


I'm stucked.

I try to initialize call with MakeCall method from IMediaVoice namespace. It works good when I testing it on SIP Extensions, but when I try do this in environment with agents which using Alcatel OmniPCX, IWS returning me an error:
[quote][b]Subject: [/b]Invalid Destination DN - Media Error (415) - voice (7981@SwitchA4400)
[/quote]


My code:
[quote][color=#0000ff]private void[/color] OnHotKeyPressed()
        {

            [color=#ffa500]IMedia[/color] media = _agent.FirstMediaVoice;
            [color=#ffa500]IMediaVoice[/color] mv = ([color=#ffa500]IMediaVoice[/color])media;

            [color=#0000ff]try[/color]
            {

                mv.MakeCall(some_number, [color=#a52a2a]""[/color], Enterprise.Model.Interaction.[color=#ffa500]MakeCallType[/color].Regular, [color=#0000ff]null[/color], [color=#0000ff]null[/color], [color=#0000ff]null[/color], [color=#a52a2a]""[/color]);

            }
            [color=#0000ff]catch[/color]
            {

                [color=#008000]MessageBox[/color].Show([color=#a52a2a]"Cannot initialize call"[/color]);

            }

        }[/quote]


Initialize agent:
[quote]
[color=#0000ff]public void[/color] LoadAgent([color=#ffa500]IAgent[/color] agent)
        {


            [color=#0000ff]try[/color]
            {
                _agent.LoadMediaExtension();
            }
            [color=#0000ff]catch[/color] ([color=#008000]NullReferenceException[/color] ex)
            {
                [color=#008000]MessageBox[/color].Show([color=#a52a2a]"Agent not initialized "[/color] + ex.ToString());
            }
        }[/quote]


Is there any way to solve this?

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: MakeCall method with agent Alcatel OmniPCX
« Reply #1 on: March 08, 2018, 12:16:38 PM »
Invalid destination seems to be an OXE return, what does OXE TServer says?
Can you dial manually that number from the OXE set?