Followers 0

# IAX softphone for VoIP application

## 2 posts in this topic

Hi,

I am new to Autoit and I find it great :-)

I am trying to create a small support system using VNC repeater on a Linux server, UltraVNC SC on the client side, UltraVNC viewer/putty on the support side (where I am) and I also want to add voice support if possible (Using Asterisk on a server).

I have find an OCX control at http://www.geocities.com/babarnazmi/ that allow me to make IAX phones (IAX is a protocol specific to Asterisk for now).

The problem is that when I try to run this code, I obtain an error message :

#include <GUIConstants.au3>

$Form1 = GUICreate("AForm1", 600, 388, 347, 184)$Button1 = GUICtrlCreateButton("(Not allowed)", 8, 8, 40, 40, $BS_ICON) GUICtrlSetImage($Button1, "C:\Documents and Settings\Blaise Drayer\Bureau\repstart.ico")

$Button2 = GUICtrlCreateButton("(Not allowed)", 56, 8, 40, 40,$BS_ICON)

GUICtrlSetImage($Button2, "C:\Documents and Settings\Blaise Drayer\Bureau\vncstart.ico")$Button3 = GUICtrlCreateButton("(Not allowed)", 248, 8, 40, 40, $BS_ICON) GUICtrlSetImage($Button3, "C:\Documents and Settings\Blaise Drayer\Bureau\repstop.ico")

$Button4 = GUICtrlCreateButton("(Not allowed)", 200, 8, 40, 40,$BS_ICON)

GUICtrlSetImage($Button4, "C:\Documents and Settings\Blaise Drayer\Bureau\vncstop.ico")$Button5 = GUICtrlCreateButton("(Not allowed)", 104, 8, 41, 41, $BS_ICON) GUICtrlSetImage($Button5, "C:\Documents and Settings\Blaise Drayer\Bureau\files.ico")

$Button6 = GUICtrlCreateButton("(Not allowed)", 152, 8, 41, 41,$BS_ICON)

GUICtrlSetImage($Button6, "C:\Documents and Settings\Blaise Drayer\Bureau\chat.ico")$IaxClientOcx1 = ObjCreate("IAXCLIENTOCX.IaxClientOcxCtrl.1")

$Button7 = GUICtrlCreateButton("AButton7", 88, 72, 33, 33, 0) GUISetState(@SW_SHOW) While 1$msg = GuiGetMsg()

Select

Case $msg =$GUI_EVENT_CLOSE

ExitLoop

Case $msg =$Button7

$IaxClientOcx1.initIAX()$IaxClientOcx1.UserID("blaise")

$IaxClientOcx1.password("1234")$IaxClientOcx1.PhoneNumber("demo")

$IaxClientOcx1.HostName("pbx.intranet.nimag.net")$IaxClientOcx1.Dial

;;;;;;;

EndSelect

WEnd

>"C:\Program Files\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /run /beta /ErrorStdOut /in "C:\Documents and Settings\XXXXXXXXXXXXXXX\Bureau\softphone.au3" /autoit3dir "C:\Program Files\AutoIt3\beta" /UserParams

>Running AU3Check params: from:C:\Program Files\AutoIt3\SciTE\au3check\

+>AU3Check ended.rc:0

>Running:(3.1.1.126):C:\Program Files\AutoIt3\beta\autoit3.exe "C:\Documents and Settings\Blaise Drayer\Bureau\softphone.au3"

C:\Documents and Settings\XXXXXXXXXXXX\Bureau\softphone.au3 (24) : ==> The requested action with this object has failed.:

$IaxClientOcx1.initIAX()$IaxClientOcx1.initIAX()^ ERROR

+>AutoIT3.exe ended.rc:0

>Exit code: 0 Time: 3.954

I am not a good developer and I don't understan the error I have done, ...

Somebody can help me?

I would be happy to share all my work with everybody when it will be finished :-)

##### Share on other sites

The error means that \$IaxClientOcx1.initIAX() did not work, or in other words, the Client failed to initilize.

#)

## Create an account

Register a new account