• PHONE_MAXRINGS
  • ioctl(ixj, PHONE_MAXRINGS, iNumrings)

    Return Value

    None.

    Parameters

    iNumrings - Maximum number of rings generated by IXJCTL_RING until the device stops ringing.

    Remarks

    This only affects the synchronous ring function IXJCTL_RING.

    See Also:

    PHONE_RING_START, PHONE_RING_CADENCE, PHONE_RING_STOP, PHONE_RING

    Example:

    if(argc >= 3)
      maxrings = atoi(argv[2]);
    else
      maxrings = 2;
    
    ioctl(ixj, PHONE_MAXRINGS, maxrings);
    
    if(!ioctl(ixj, PHONE_RING))
    {
        printf("No Answer\n");
    }
    else
    {
        printf("Phone answered\n");
    }


    ©1996-2001 Quicknet Technologies, Inc.