{"id":304,"date":"2010-02-24T11:56:01","date_gmt":"2010-02-24T17:56:01","guid":{"rendered":"http:\/\/dmartenson.dc.multitech.prv\/developer\/?page_id=304"},"modified":"2010-04-01T13:07:51","modified_gmt":"2010-04-01T18:07:51","slug":"isms-query-api","status":"publish","type":"page","link":"https:\/\/www.multitech.net\/developer\/software\/isms\/isms-query-api\/","title":{"rendered":"iSMS Query API"},"content":{"rendered":"<p>HTTP Query API Format<br \/>\nProcessing the &#8220;Send API&#8221; and sending the message takes some time. So, only an apimsgid is returned<br \/>\nas a response to the &#8220;Send SMS API&#8221;. Query API can be used to query the status of a Send. It returns<br \/>\nthe status of a message submitted earlier.<br \/>\nHTTP API format is:<br \/>\nhttp:\/\/192.168.2.1[:portnumber]\/querymsg?user=xxx&#038;passwd=xxx&#038;apimsgid<br \/>\n=id<br \/>\nResponse values:<br \/>\nID: apimsgid Status: status code<br \/>\nOR<br \/>\nID: apimsgid Err: error code<br \/>\nOR<br \/>\nErr: error code<br \/>\ne.g.,<br \/>\nID: 1 Status: Done<br \/>\nID: 1 Err: 604<br \/>\nErr: 602<br \/>\nNote: The maximum supported size of the URL is 2048 bytes.<br \/>\nStatus Codes<br \/>\nStatus Code Status Description Description<br \/>\n0<br \/>\nDone The MultiModem iSMS has completed servicing the<br \/>\n&#8220;Send&#8221; job, and a message is sent to all the recipients.<br \/>\n1<br \/>\nDone with error The MultiModem iSMS has completed servicing the<br \/>\n&#8220;Send&#8221; job, but the message is not sent to all the<br \/>\nrecipients<br \/>\n2 In progress The MultiModem iSMS is processing the &#8220;Send&#8221; API.<br \/>\n3<br \/>\nRequest Received The MultiModem iSMS has received the &#8220;Send&#8221;<br \/>\nrequest.<br \/>\n4<br \/>\nError Error occurred while sending the SMS from the<br \/>\nMultiModem iSMS.<br \/>\n5 Message ID Not Found An API Message ID does not exist.<br \/>\n6 Distributed to Slave1<br \/>\n[10.10.10.101]<br \/>\nThe Master MultiModem iSMS has distributed the Job<br \/>\nto a given slave.<br \/>\n7 Distribution resulted in<br \/>\nerror<br \/>\nMaster tried to send the job to the slaves and could<br \/>\nnot send the job to any of the slaves as the slaves are<br \/>\nnot available (loaded full or network unreachable)<br \/>\n8 Distributed among<br \/>\nmany Slaves<br \/>\nThe Master MultiModem iSMS has distributed the Job<br \/>\nRequest among many Slaves.<br \/>\n9 API is canceled Reflects that API job is dropped if the Send API job is<br \/>\ncanceled from the WEB GUI<br \/>\nAppendix A \u2013 Application Programming Interface (API)<br \/>\nMulti-Tech Systems, Inc. MultiModem\u00ae iSMS User Guide for Administrators 85<br \/>\nError Codes<br \/>\nError Code Error Description Response to<br \/>\n601 Authentication Failed Send API, Query API<br \/>\n602 Parse Error Send API, Query API<br \/>\n603 Invalid Category Send API<br \/>\n604 SMS message size is greater than 160 chars Send API<br \/>\n605 Recipient Overflow Send API<br \/>\n606 Invalid Recipient Query API<br \/>\n607 No Recipient Send API<br \/>\n608 MultiModem iSMS is busy, can\u2019t accept this request Send API, Query API<br \/>\n609 Timeout waiting for a TCP API request Send API<br \/>\n610 Unknown Action Trigger Send API<br \/>\n611 Error in broadcast trigger Send API<br \/>\n612 System Error \u2013 Memory Allocation Failure Send API, Query API<br \/>\n613<br \/>\nInvalid Modem Index<br \/>\nIn SF 400, if modem index given is not within 0 to 4<br \/>\nIn SF 800, if modem index given is not within 0 to 8<br \/>\nSend API<br \/>\n614<br \/>\nInvalid device model number<br \/>\n(model number is not detected properly to validate<br \/>\nthe modem index)<br \/>\nSend API<br \/>\n615 Invalid Encoding type Send API<br \/>\n616 Invalid Time\/Date Input Receive API<br \/>\n617 Invalid Count Input Receive API<br \/>\n618 Service Not Available (Non-Polling Receive API is<br \/>\nenabled so Polling Receive API service is not<br \/>\navailable)<br \/>\nReceive API<br \/>\n619 Invalid Addressee Receive API<br \/>\n620 Invalid Priority value Send API<br \/>\n621 Invalid SMS text<br \/>\nThis error code is given if the following is not true:<br \/>\nIf enc = 2, SMS text should be in hexadecimal form<br \/>\n(each hexadecimal value length is a maximum of 4<br \/>\ndigits and semi-colon is used as a delimiter between<br \/>\ntwo hexadecimal values).<br \/>\nIf enc = 3, SMS text should be in decimal form (each<br \/>\ndecimal value length is maximum 5 digits and semicolon<br \/>\nis used as delimiter between two decimal<br \/>\nvalues).<br \/>\nNote: Decimal values allowed up to 65535 only.<br \/>\nSend API<\/p>\n","protected":false},"excerpt":{"rendered":"<p>HTTP Query API Format Processing the &#8220;Send API&#8221; and sending the message takes some time. So, only an apimsgid is returned as a response to the &#8220;Send SMS API&#8221;. Query API can be used to query the status of a Send. It returns the status of a message submitted earlier. HTTP API format is: http:\/\/192.168.2.1[:portnumber]\/querymsg?user=xxx&#038;passwd=xxx&#038;apimsgid [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"parent":88,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"class_list":["post-304","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/304","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/comments?post=304"}],"version-history":[{"count":3,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/304\/revisions"}],"predecessor-version":[{"id":585,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/304\/revisions\/585"}],"up":[{"embeddable":true,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/88"}],"wp:attachment":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/media?parent=304"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}