Results 1 to 1 of 1

Thread: Analog card - this sample goes off hook and makes a call.

  1. #1
    ssummers Guest

    Default Analog card - this sample goes off hook and makes a call.

    # this sample goes off hook and makes a call
    # you need to put a number in the "phone number" location below

    system 0 open
    board 0 open
    trunk 0-3 open
    trunk 0-3 start
    seizes a license for that channel
    channel 0-3 seize
    wait 3000

    # take trunk off hook
    trunk 0 offhook
    wait 3000
    # note that dial is for pulse dialing
    # trunk 0 dial "phone number"
    # for dtmf dialing
    tg 0 playdtmf phone number

    wait 10000
    # Get the far end to hang up so we get the disconnect signal
    # or just put the trunk on hook
    trunk 0 onhook

    # cleanup
    channel 0 release
    trunk 0-3 stop
    trunk 0-3 close
    Last edited by mrecoskie; 06-15-10 at 02:36 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •