{"id":189254,"date":"2013-08-07T10:31:02","date_gmt":"2013-08-07T06:31:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=189254"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=189254","title":{"rendered":"<span class=\"post_title\">SMS \u043c\u043e\u0434\u0443\u043b\u044c \u0434\u043b\u044f Elastix (\u0447\u0430\u0441\u0442\u044c 2)<\/span>"},"content":{"rendered":"<div class=\"content html_format\">   \t\u0412 \u044d\u0442\u043e\u0439 \u0447\u0430\u0441\u0442\u0438, \u044f \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u043f\u0440\u043e \u0443\u0436\u0435 \u0433\u043e\u0442\u043e\u0432\u044b\u0439 \u043c\u043e\u0434\u0443\u043b\u044c SMS, \u0434\u043b\u044f \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b Elastix \u0432\u0435\u0440\u0441\u0438\u0438 2.3., \u043d\u0430\u043f\u043e\u043c\u043d\u044e \u0447\u0442\u043e \u043f\u0435\u0440\u0432\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u044f \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u043b \u043f\u0440\u043e <a href=\"http:\/\/habrahabr.ru\/post\/188644\/\">SMS \u0441\u0435\u0440\u0432\u0435\u0440 GoIP<\/a>.<br \/>  <a name=\"habracut\"><\/a>\u041c\u043e\u0434\u0443\u043b\u044c \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0442\u044c SMPP \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u043e\u0432, \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0433\u0440\u0443\u043f\u043f\u044b \u0438\u0437 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0445 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u043e\u0432, \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c SMS \u0438 \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0442\u044c \u043a\u0430\u043c\u043f\u0430\u043d\u0438\u0438 \u043f\u043e \u0440\u0430\u0441\u0441\u044b\u043b\u043a\u0435 SMS. \u0422\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u043c\u043e\u0434\u0435\u043c\u0430 \u0442\u0438\u043f\u0430 E1550, \u0447\u0435\u0440\u0435\u0437 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0439 \u0441\u043a\u0440\u0438\u043f\u0442.<br \/>  \u0414\u0430\u043d\u043d\u043e\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442 \u0434\u043b\u044f, Elastix 2.3 \u0432\u0435\u0440\u0441\u0438\u0438 i368, \u0431\u043e\u043b\u0435\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439 \u043c\u043e\u0436\u043d\u043e <a href=\"http:\/\/callcenters.by\/materialy\/sms-modul-asterisk\">\u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043d\u0430 \u0441\u0430\u0439\u0442\u0435<\/a>. <br \/>  \u0414\u043b\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 SMS \u043c\u043e\u0434\u0443\u043b\u044f \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043f\u0430\u043a\u0435\u0442 elastix-developer-2.2 \u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c <a href=\"http:\/\/callcenters.by\/materialy\/sms-modul-asterisk\">\u043d\u0430\u0448 \u043c\u043e\u0434\u0443\u043b\u044c<\/a><br \/>  <code>yum install elastix-developer-2.2.0-3<\/code><\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/a95\/fb2\/779\/a95fb27793794414ce50e91426e7ae17.png\" alt=\"image\"\/><\/p>\n<p>  \u0412 \u0440\u0430\u0441\u043a\u043b\u0430\u0434\u043a\u0435 \u043f\u043e\u044f\u0432\u0438\u0442\u0441\u044f \u043d\u043e\u0432\u0430\u044f \u0432\u043a\u043b\u0430\u0434\u043a\u0430 SMS:<br \/>  <img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/0bb\/fbb\/ce1\/0bbfbbce12434967e847073e21df000f.png\" alt=\"image\"\/><\/p>\n<p>  \u0412\u043a\u043b\u0430\u0434\u043a\u0430 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043a\u0430\u043c\u043f\u0430\u043d\u0438\u0438:<br \/>  <img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/cc6\/fdb\/754\/cc6fdb7548685ae3edaae031d56715b5.png\" alt=\"image\"\/><\/p>\n<p>  \u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430 \u0421\u041c\u0421, \u043c\u043e\u0436\u0435\u0442 \u0432\u044b\u0441\u0442\u0443\u043f\u0430\u0442\u044c SMPP \u0441\u0435\u0440\u0432\u0435\u0440 \u0438\u043b\u0438 \u0441\u043a\u0440\u0438\u043f\u0442 (\u043f\u0440\u0438\u043c\u0435\u0440 \u0434\u043b\u044f E1550):<br \/>  <img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/e42\/771\/30c\/e4277130cfc2c0cf7a50bfb29139fbda.png\" alt=\"image\"\/><\/p>\n<p>  \u0421\u043a\u0440\u0438\u043f\u0442 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u043c\u043e\u0434\u0435\u043c\u043e\u0432:<\/p>\n<p>  #!\/bin\/bash<\/p>\n<p>  #Get script arguments<br \/>  clid=&quot;$1&quot;<br \/>  destination=&quot;$2&quot;<br \/>  text=&quot;$3&quot;<br \/>  unicode=&quot;$4&quot;<\/p>\n<p>  #Init return values<br \/>  ret_code=1<br \/>  ret_message=\u00abMessage delivered for sending\u00bb<br \/>  stop_trunk=1<br \/>  stop_message=1<\/p>\n<p>  #Process message<br \/>  #Errors must be processed, if an error occurs fill<br \/>  # ret_code: a value different to 0<br \/>  # ret_message: string error message<br \/>  # stop_trunk: 1 if this error must stop all messages for this trunk, for example, if there&#8217;s no credit<br \/>  # stop_message: 1 if this error mist stop this message, for example, if number is invalid<\/p>\n<p>  #Begin<br \/>  #Write process message code<br \/>  asterisk -rx \u00abdongle sms dongle01 $destination $text\u00bb<br \/>  #End<\/p>\n<p>  #Return<br \/>  echo &quot;$ret_code;$ret_message;$stop_trunk;$stop_message&quot;<br \/>  exit $ret_code<\/p>\n<p>  \u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044e \u0438 \u0431\u043e\u043b\u0435\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043a \u043c\u043e\u0434\u0443\u043b\u044e \u0435\u0441\u0442\u044c <a href=\"http:\/\/callcenters.by\/materialy\/sms-modul-asterisk\">\u043d\u0430 \u0441\u0430\u0439\u0442\u0435<\/a>.    \t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/189254\/\"> http:\/\/habrahabr.ru\/post\/189254\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">   \t\u0412 \u044d\u0442\u043e\u0439 \u0447\u0430\u0441\u0442\u0438, \u044f \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u043f\u0440\u043e \u0443\u0436\u0435 \u0433\u043e\u0442\u043e\u0432\u044b\u0439 \u043c\u043e\u0434\u0443\u043b\u044c SMS, \u0434\u043b\u044f \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b Elastix \u0432\u0435\u0440\u0441\u0438\u0438 2.3., \u043d\u0430\u043f\u043e\u043c\u043d\u044e \u0447\u0442\u043e \u043f\u0435\u0440\u0432\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u044f \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u043b \u043f\u0440\u043e <a href=\"http:\/\/habrahabr.ru\/post\/188644\/\">SMS \u0441\u0435\u0440\u0432\u0435\u0440 GoIP<\/a>.  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-189254","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/189254","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=189254"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/189254\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=189254"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=189254"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=189254"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}