Thanks Peter,
I have the cisco phones working mostly. Had to turn some stuff off and some stuff on. Still not sure I have is right - but I am continuing...
Announcement
Collapse
No announcement yet.
About Dialogic HMP test program
Collapse
X
-
That's a good choice, they have a lot of possibilities.
I don't know the Cisco phones, but according to the manual they can also make direct IP calls:
Last edited by Peter Lameijn; 6 Jul 2020, 05:19 AM.
Leave a comment:
-
I just ordered a couple Grandstream HT801 VoIP to ATA (analog phone) adapters.
Leave a comment:
-
Grandstream GXP1400 phones and Grandstream HT801 VoIP to ATA (analog phone) adapters.
At the emergency switchboards the server is directly connected to a SIP trunk.
What type of Cisco phones are they?
Leave a comment:
-
Not sure if my Cisco IP phones can work without a call controller. What model phones do you use?
Leave a comment:
-
Two IP phones should be able to dial eachother directly if configured OK
Most phones have a special "dial direct ip number" choice.
You should also be able to enter the ip address in the demo program and dial it...
If not, something is wrong with the IP settings...
Leave a comment:
-
Thanks Peter. Now I trying to figure out why my Cisco IP phones can't IP dial each other.
Leave a comment:
-
The NCM dll is the configuration manager. It needs to have full file access to the directory holding the config files.
(to read/write/delete config files)
I suppose the normal user rights for that directory aren't enough.
Needs also capability to start/stop or change services which not all normal users are allowed.
Leave a comment:
-
Peter, thank you so much!!!
Thankfully it is a simple problem. Now I can get back to seeing how much of my 20 year old knowledge still applies.
Leave a comment:
-
Have you tried running as administrator?
PROBLEM SOLVED!
Run your app as administrator. Now to figure out why...
Leave a comment:
-
It seems to happen if some of the configuration parameters are not accessible (or read only)
Have you tried running as administrator? (both HMP and Demo)
NCME_ACCESS_DENIED - denied access error (configuration parameter may be read-only)
The default licensefile that came inside the HMP zip should also work.
It's a file called something like: " 1r1v0e0c0f0s1i_ver.lic ", valid for 1 channel and never expires and not bound to a MAC.
What release are you using? (See config manager -> Help -> About)
I'm using release 395, because it's easier: works on all 32 and 64 bit systems.
If you're using release 5xx then I could send you the 395 version if needed...
I personally think it's an access problem.
The dialogic demo doesn't use ncm_getsystemstate to see if it's running; they just bluntly start it...
(so they have no problems...)
You probably can get my demo to work by removing the NCM_GetSystemState call.
(but I find that a bit of a 'kludge'...)
Leave a comment:
-
Thanks!
This will be very helpfull!!
Question: Do you know get an error if the license is not right? I am still not positive about the license. I think I noticed you can only activate the license once?
Leave a comment:
-
This should return WHY the function fails:
Code:#COMPILE EXE #DIM ALL #INCLUDE "WIN32API.INC" DECLARE FUNCTION NCM_GetSystemState LIB "NCMapi.dll" CDECL ALIAS "NCM_GetSystemState" (SystemState AS LONG) AS LONG '------------------------------------------------------------------------------ FUNCTION PBMAIN () AS LONG LOCAL lRet, lTmp AS LONG, lStr As String, lszStr As Asciiz * 256 If SearchPath(Byval 0, "NCMApi.dll", Byval 0, SizeOf(lszStr), lszStr, lRet) Then lRet = NCM_Getsystemstate(lTmp) If lRet = 0 Then Select Case lTmp Case 1 : lStr = "System start pending" Case 2 : lStr = "System stop pending" Case 3 : lStr = "System stopped" Case 4 : lStr = "System running" Case 5 : lStr = "System halted" Case 6 : lStr = "System state undefined" Case Else : lStr = "Unknown" End Select lStr = "Status: " & lStr Else Select Case lRet Case 1 : lStr = "General error" Case 2 : lStr = "Attempt to add a duplicate device" Case 3 : lStr = "Received an invalid buffer" Case 4 : lStr = "Error occurred while setting default values" Case 5 : lStr = "Data type of variable is incorrect or indeterminable" Case 6 : lStr = "Destination of data could not be determined" Case 7 : lStr = "Data not found" Case 8 : lStr = "Error loading GENLOAD library" Case 9 : lStr = "Error loading DM3 library" Case 10 : lStr = "Error registering Callback function" Case 11 : lStr = "Error auto-detecting board(s)" Case 12 : lStr = "No system resources available" Case 13 : lStr = "INF files could not be found" Case 14 : lStr = "Memory allocation error" Case 15 : lStr = "Error parsing INF file" Case 16 : lStr = "Error opening Service Control Manager" Case 17 : lStr = "Error opening Intel® Dialogic® product Service" Case 18 : lStr = "Error starting Intel® Dialogic® product Service" Case 19 : lStr = "Error stopping Intel® Dialogic® product Service" Case 20 : lStr = "Error querying Service Status" Case 21 : lStr = "Error changing Service Status" Case 22 : lStr = "Unknown service type" Case 23 : lStr = "Invalid device name" Case 24 : lStr = "Invalid family name" Case 25 : lStr = "Invalid inputs" Case 26 : lStr = "Error loading detector library" Case 27 : lStr = "Error getting detector function" Case 28 : lStr = "Error loading ctbbface.dll" Case 29 : lStr = "Error calling CTBB_DevicesDetected()" Case 30 : lStr = "Error calling CTBB_UserApply()" Case 31 : lStr = "Error on CTBB Transaction" Case 32 : lStr = "CTBB error Transaction Overflow calling CTBB_UserApply" Case 33 : lStr = "Error loading DlgServiceResults.dll" Case 34 : lStr = "Denied access error" Case 35 : lStr = "failed in adding the device" Case 36 : lStr = "Multiple pcd files exist" Case 37 : lStr = "Error getting model name" Case 38 : lStr = "Error setting bus capabilities" Case 39 : lStr = "Buffer is too small" Case 40 : lStr = "Invalid version" Case 41 : lStr = "Error no PCD file selection function with DM3 boards" Case 42 : lStr = "Failed in saving the configuration" Case 43 : lStr = "-" Case 44 : lStr = "-" Case 45 : lStr = "Failed in reuse the saved configuration" Case 46 : lStr = "stop service failed because dep services are running" Case 47 : lStr = "Extended error; check returned error buffer for details" Case 48 : lStr = "-" Case 49 : lStr = "Error opening 'Dialogic' key remote machine registry." Case 50 : lStr = "Error getting the version for the running OS" Case 51 : lStr = "Error removing board" Case 52 : lStr = "Associated CONFIG file not found during trunk config." Case 53 : lStr = "Config file has no entry for Trunk Configuration" Case 54 : lStr = "Create Process failed for trunk config" Case 55 : lStr = "Process Returned Specific Error" Case 56 : lStr = "Couldn't create or delete temporary file." Case 57 : lStr = "Protocols in quartet 1 is not the same(not T1 or E1)" Case 58 : lStr = "Protocols in quartet 2 is not the same(not T1 or E1)" Case 59 : lStr = "Protocols in quartet 3 is not the same(not T1 or E1)" Case 60 : lStr = "Protocols in quartet 4 is not the same(not T1 or E1)" Case 61 : lStr = "Invalid protocol. Doesn't contain (T1) or (E1)" Case 62 : lStr = "Protocol Mismatch." Case 63 : lStr = "Request timeslot doesn't exist" Case 64 : lStr = "Bus capabilities is not set for 3rd party board" Case 65 : lStr = "Fail to Set Primary Master" Case 66 : lStr = "Fail to Set Secondary Master" Case 67 : lStr = "Fail to confiure Bus." Case 68 : lStr = "Error creating defaultPCD.cfg file" Case 69 : lStr = "Default PCD file name was not found" Case 70 : lStr = "Unable to detect decide default IP address (e.g. no NIC)" Case 71 : lStr = "Unable to get Registry key for Default IP address" Case 72 : lStr = "Unable to get Registry key for Default MAC address" Case 73 : lStr = "Unable to set default IP address in Registry" Case 74 : lStr = "Unable to set default MAC address in Registry" Case 75 : lStr = "Unable to get MAC IP list from OS" Case 76 : lStr = "Unable to get License MAC" Case 77 : lStr = "This API is not supported" End Select lStr = "NCM_GetSystemState failed, error: " & Format$(lRet) & $Cr & lStr End If Else lStr = "NCMApi.dll not found" lszStr = "-"" End If MsgBox lStr,, "NCM_GetSystemState:" END FUNCTION
Leave a comment:
-
-
I now recall that I replaced that type because it just didn't fit the original C definition.
Some winsock includes use a Dword, some a String * 4, and all are missing a Union member...
C:
Code:struct in_addr { union { struct { u_char s_b1; u_char s_b2; u_char s_b3; u_char s_b4; } S_un_b; struct { u_short s_w1; u_short s_w2; } S_un_w; u_long S_addr; } S_un; };
Code:Type s_un_b_struc s_b1 As Byte s_b2 As Byte s_b3 As Byte s_b4 As Byte End Type Type s_un_w_struc s_w1 As Word s_w2 As Word End Type Union in_addr s_un_b As s_un_b_struc s_un_w As s_un_w_struc s_addr As Dword End Union
Code:#COMPILE EXE #DIM ALL #INCLUDE "WIN32API.INC" DECLARE FUNCTION NCM_GetSystemState LIB "NCMapi.dll" CDECL ALIAS "NCM_GetSystemState" (SystemState AS LONG) AS LONG '------------------------------------------------------------------------------ FUNCTION PBMAIN () AS LONG LOCAL lRet AS LONG, lStr As String, lszStr As Asciiz * 256 If SearchPath(Byval 0, "NCMApi.dll", Byval 0, SizeOf(lszStr), lszStr, lRet) Then If NCM_Getsystemstate(lRet) = 0 Then Select Case lRet Case 1 : lStr = "System start pending" Case 2 : lStr = "System stop pending" Case 3 : lStr = "System stopped" Case 4 : lStr = "System running" Case 5 : lStr = "System halted" Case 6 : lStr = "System state undefined" Case Else : lStr = "Unknown" End Select Else lStr = "NCM_GetSystemState failed" End If Else lStr = "NCMApi.dll not found" lszStr = "-"" End If MsgBox "Status: " & lStr & $Cr & "Dll location: " & lszStr,, "HMP_GetSystemState" END FUNCTION
Leave a comment:
-
When you said: "Winapi3 are Jose includes. It probably is caused by the IN_ADDR structure. It should look like this:"
Are you saying to change it in the Jose include file? I don't see any definition for s_un_b_struc or for s_un_w_struc in the Jose files or your files?
Code:[B][FONT=Courier New]Union in_addr s_un_b As s_un_b_struc s_un_w As s_un_w_struc s addrAs Dword End Union[/FONT][/B]
Leave a comment:
-
Also to answer some of your earlier questions - I am on a 64bit cpu, and have the most current hmp download. I have installed it a few times.
Got a new license today.
Leave a comment:
-
Hi
So I spent some time with Dialogic today. I got gc_basic_call_model.exe working. So I figured I would try something simple.
Can't get your program to work.
Would you think this should work?
Code:#COMPILE EXE #DIM ALL #INCLUDE "WIN32API.INC" #INCLUDE "HMP_IP.INC" DECLARE FUNCTION NCM_GetSystemState LIB "NCMapi.dll" CDECL ALIAS "NCM_GetSystemState" (SystemState AS LONG) AS LONG '------------------------------------------------------------------------------ FUNCTION PBMAIN () AS LONG LOCAL lRet AS LONG NCM_Getsystemstate(lRet) END FUNCTION
Leave a comment:
Leave a comment: