RECEIVER_CSID

CAS Tags
The RECEIVER_CSID string tag appears in message taglists returned from the GET_Q_ENTRIES_INFO function.  For both sent and received fax messages, this tag contains the CSID (Call Subscriber ID) provided by the remote fax hardware.
 
  Type Max Size Multiple Allowed
String 21 No

Example:
function GetReceivedCSIDs()
  {
  var Tl, Sl;
  var CSIDs = "";

  Tl = CAS.New();
  CAS.AddTag(Tl,"GET_Q_ENTRIES_INFO","");
  CAS.AddTag(Tl,"REGISTERED_NAME","Fred");
  CAS.AddTag(Tl,"REGISTERED_PASSWORD","");
  CAS.AddTag(Tl,"USER_NAME","Fred");
  CAS.AddTag(Tl,"Q_ID","Q_ID_RECEIVED"");

  Sl = CAS.CreateSection(Tl,"RESPONSE_INCLUDE_ONLY","");
   CAS.AddTag(Sl,"RECEIVER_CSID","");
  CAS.CloseSection(Sl);
   
    // Get messages on this already open session
  Tl = CAS.Send(Instance,Tl);
  
  if ( CAS.GetTag(Tl,"STATUS_NUM",0) == 0 )
    {
      // The number of messages is in the root of the reply taglist
    QueueCount = CAS.GetTag(Tl,"NUMBER_OF_Q_ENTRIES",0);
    
      // Each message is in it's own sub-section
    for ( a = 0; a < QueueCount; a++)
      {
      if (Sl = CAS.OpenSection(Tl,"MESSAGE_HANDLE[" + a + "]"))
        {
        CSIDs += CAS.GetTag(Sl,"RECEIVER_CSID",0) + "\r\n";

        CAS.CloseSection(Sl);
        }
      }
    }
  else
    {
      // Return the error
    CSIDs = CAS.GetTag(Tl,"STATUS",0);
    }

  CAS.Delete(Tl);

  return(CSIDs);
  }

See Also:
GET_Q_ENTRIES_INFO