Dismiss Notice
We would like to remind you that we’re updating our login process for all 3CX forums whereby you will be able to login with the same credentials you use for the Partner or Customer Portal. Click here to read more.

Dialling from MS Access (Only for Snom Phones)

Discussion in '3CX Phone System - General' started by rnoguera, Dec 13, 2007.

Thread Status:
Not open for further replies.
  1. rnoguera

    Joined:
    Oct 25, 2007
    Messages:
    89
    Likes Received:
    0
    If you would like to dial the phone numbers stored in a MS Access Form, you can use the attached code.

    In my opinion is easier than using 3CX Voip Client + TAPI + TAPI code in MS Access.

    It works only for Snom phones.

    The version I attached has been streamlined for clarity. The production version is much longer, with a few improvements:
    -Dialing only takes place if "Shift" is pressed, to prevent dialling by error.
    -IP adress of the user Snom phone is not hardcoded, but retrieved from a file.
    -Includes simple error handling.

    If somebody is interested I can post it also.

    'This function dials the number stored in the MS Access current field by Double Clicking it.
    '
    'Prerequisites:
    'Make a Reference (in Visual Basic editor) to "Microsoft XML"
    'Edit your Access Forms, and write "=fgt_simple_dial()" in the Properties Windows of the Field, in the "On DoubleClick" Row

    Public Function fgt_simple_dial()

    Dim sURL As String 'URL that the Snom phone will be requested to show


    'Snom phones will dial automatically when asked to show a certain URL from the web interface...


    'define the URL to be opened..
    'Please note the IP adress of the Snom User's phone is hardcoded here...
    sURL = "http://" & "192.168.1.114" & "/index.htm?number=" & "0" & Screen.ActiveControl.OldValue


    'Send http request to the phone..
    Dim HttpReq As New MSXML2.XMLHTTP40

    HttpReq.Open "GET", sURL, False
    HttpReq.send

    End Function
     
  2. sam

    sam

    Joined:
    Jan 29, 2008
    Messages:
    2
    Likes Received:
    0
    Hi!

    Anyone knows if snom M3 provide URL dialing too?

    Thanks very much!
     
Thread Status:
Not open for further replies.