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?