Fun with Forwarding

Nov 20, 2013 at 2:39 PM
Hello Julmar support team

excuse ever for my bad english in advance.
I'm programming a little phone tool in Visual Studio 2012 on.
It works really well already.
The only thing that gives me problems now, is the forwarding of call.
I've seen the following code into your blog:

Fun with forwarding ..
Posted on March 15, 2006
Forward info [] = new fwdInfo Forward Info [] {
   Forward new info (ForwardingMode.Unconditional, 0, "1234")};
I have now been converted for my needs in VS 2010.

Dim As New fwdinfo Forward Info (ForwardingMode.Unconditional, 0, 350)
myLine.Forward (fwdinfo, 3, 0)

Sorry, but I always get the error message:
The value of type "JulMar.Atapi.ForwardInfo" can not be converted to "1-dimensional array of" JulMar.Atapi.ForwardInfo ".

The value of type 'Integer' can not be converted to 'JulMar.Atapi.MakeCallParams ".

I hope you can help me.

Very very thanks in advance.

Nov 20, 2013 at 2:39 PM
I think you need to pass an array of ForwardInfo objects, not just one. I don't know the syntax for VB.NET though.. your code is just creating a single one - add that to an array and then pass the array.

Nov 20, 2013 at 2:39 PM
Hello Mark,

big thanks for your help.
Unfortunately, it does but still does not work.
I will then once more occupy myself with the subject.
Nevertheless, once again many thanks for your help.

Nov 20, 2013 at 2:47 PM
Hi Daniel,

Is this something like what you did? Pardon my ignorance of VB.NET - this might not compile but hopefully it will lead you in the right direction:

If myLine.Capabilities.SupportsForwarding And myLine.Status.CanForward Then
Dim fwdArray(1) as FowardInfo
fwdArray(0) = New ForwardInfo(ForwardingMode.Unconditional, 0, 350)
myLine.Forward (fwdarray, 3, Nothing)
End If
Nov 23, 2013 at 7:59 AM
Hello Mark,

many thanks for your help.
Did it as attempts to fruition and now get the following error message:
"System.NullReferenceException: Object reference not set to an object instance."

Forward is supported in any case of the system, i have tested with your tapi_soft_phone.

Thanks again for your help.

Nov 23, 2013 at 4:21 PM
Can you get a line of code or a stack trace?