|
|
|||||||||||||||||||
| The HOW_CONFIGURED integer tag appears in port
information returned by the GET_PORTS_INFO
function. This tag describes the configuration of a fax port. The HOW_CONFIGURED tag can be set to one of the following values:
|
|||||||||||||||||||
| Type | Max Size | Multiple Allowed | |||||||||||||||||
| Integer | 4 bytes | No | |||||||||||||||||
Example: |
|||||||||||||||||||
|
function
GetSendPortCount() { var SendPortCount=0; var Tl, Count, Index; Tl = CAS.New(); CAS.AddTag(Tl,"GET_PORTS_INFO",""); CAS.AddTag(Tl,"REGISTERED_NAME",REGISTERED_NAME.value); CAS.AddTag(Tl,"REGISTERED_PASSWORD",REGISTERED_PASSWORD.value); Tl = CAS.Send(Instance,Tl); if ((Count = parseInt(CAS.GetTag(Tl,"NUMBER_OF_PORTS",0))) > 0) { for ( Index=0; Index<Count; Index++) { Sl = CAS.OpenSection(Tl,"PORT_NAME["+Index+"]"); switch (parseInt(CAS.GetTag(Sl,"HOW_CONFIGURED",0))) { case 2: case 3: SendPortCount++; } CAS.CloseSection(Sl); } } return( SendPortCount); } |
|||||||||||||||||||
See Also: |
|||||||||||||||||||
| PORT_NAME, PORT_STATUS, HOW_CONFIGURED, PROTOCOL_STATE | |||||||||||||||||||
|
|