Не все SMSC отправляют отчёты о доставке. Ты уверен, что твой отправляет?<br><br><div class="gmail_quote">24 декабря 2009 г. 7:42 пользователь Denis S.Davidov <span dir="ltr">&lt;<a href="mailto:davydov@nexo.ru">davydov@nexo.ru</a>&gt;</span> написал:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">


  
  

<div bgcolor="#ffffff" text="#000000">
Можно попробовать посмотреть чего в pdu приходит выставив
$Net::SMPP::trace = 1.<br>
А еще вопрос - ты соединяешься в async режиме?<div><div></div><div class="h5"><br>
<br>
On 23.12.2009 20:27, Шогин Михаил wrote:
</div></div><blockquote type="cite"><div><div></div><div class="h5">
  
  
  

  <div>
  <p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">Привет.
  </span></p>
  <p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
  <p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">Деление
на ноль это конечно круто )) я его правда и сам не помню
и вспомню только вечером когда почитаю лекции (что то не верится мне,
что все
так просто через пределы доказывается).</span></p>
  <p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">Можно
отвлечь общественность немного реальной проблемой? </span></p>
  <p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
  <p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">Есть
смс шлюз. </span></p>
  <p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">Требуется:
разослать кучу смс-ок, и собрать отчет по доставке.</span></p>
  <p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">С
рассылкой проблем нет (<s>спамить мы умеем</s>), а вот с отчетом
о доставке есть проблемы. Если точнее, проблем нет, т.к. нет отчета о
доставке
))</span></p>
  <p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
  <p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">По
доке и информации от </span><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">SMSC</span><span style="font-size: 11pt; color: rgb(31, 73, 125);">
все
просто, отправили и ждем что нам пришлют. И ничего не приходит</span></p>
  <p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">Алгоритм
прост</span></p>
  <p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
  <p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">Висит
событийный демон</span></p>
  <p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
  <p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">Раз
в сколько-то секунд отправляет пачку смс-ок</span></p>
  <p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">Раз
в сколько-то секунд пытается что нить прочитать от </span><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">SMSC</span><span style="font-size: 11pt; color: rgb(31, 73, 125);"></span></p>
  <p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
  <p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">Смс</span><span style="font-size: 11pt; color: rgb(31, 73, 125);">
  </span><span style="font-size: 11pt; color: rgb(31, 73, 125);">отправляем</span><span style="font-size: 11pt; color: rgb(31, 73, 125);">
  </span><span style="font-size: 11pt; color: rgb(31, 73, 125);">так</span><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"></span></p>
  <p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"> </span></p>
  <p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US">$</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(160, 0, 240);" lang="EN-US">self</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(178, 34, 0);" lang="EN-US">-&gt;{</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US">_response</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(178, 34, 0);" lang="EN-US">} =
  </span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US">$</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(160, 0, 240);" lang="EN-US">self</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(178, 34, 0);" lang="EN-US">-&gt;</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US">smpp</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(178, 34, 0);" lang="EN-US">-&gt;</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US">submit_sm</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(178, 34, 0);" lang="EN-US">(</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: windowtext;" lang="EN-US"></span></p>

  <p class="MsoNormal" style="text-indent: 35.4pt;"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US">source_addr
            </span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(178, 34, 0);" lang="EN-US">=&gt;
  </span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US">$</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(160, 0, 240);" lang="EN-US">args</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(178, 34, 0);" lang="EN-US">{</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US">from</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(178, 34, 0);" lang="EN-US">},</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: windowtext;" lang="EN-US"></span></p>

  <p class="MsoNormal" style="text-indent: 35.4pt;"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US">destination_addr
  </span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">     
  </span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(178, 34, 0);" lang="EN-US">=&gt;
  </span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US">$</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(160, 0, 240);" lang="EN-US">args</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(178, 34, 0);" lang="EN-US">{</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US">to</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(178, 34, 0);" lang="EN-US">},</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: windowtext;" lang="EN-US"></span></p>

  <p class="MsoNormal" style="text-indent: 35.4pt;"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US">short_message
          </span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(178, 34, 0);" lang="EN-US">=&gt;
  </span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US">$</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(160, 0, 240);" lang="EN-US">args</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(178, 34, 0);" lang="EN-US">{</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US">message</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(178, 34, 0);" lang="EN-US">},</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: windowtext;" lang="EN-US"></span></p>

  <p class="MsoNormal" style="text-indent: 35.4pt;"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US">registered_delivery
  </span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">   
  </span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(178, 34, 0);" lang="EN-US">=&gt;
  </span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(160, 32, 0);" lang="EN-US">0x01</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(178, 34, 0);" lang="EN-US">,</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: windowtext;" lang="EN-US"></span></p>

  <p class="MsoNormal" style="text-indent: 35.4pt;"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US">data_coding
            </span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(178, 34, 0);" lang="EN-US">=&gt;
  </span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US">$</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(160, 0, 240);" lang="EN-US">args</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(178, 34, 0);" lang="EN-US">{</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US">lang</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(178, 34, 0);" lang="EN-US">}
&amp;&amp; </span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US">$</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(160, 0, 240);" lang="EN-US">args</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(178, 34, 0);" lang="EN-US">{</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US">lang</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(178, 34, 0);" lang="EN-US">}
eq </span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: blue;" lang="EN-US">&#39;ru&#39; </span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(178, 34, 0);" lang="EN-US">? </span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(160, 32, 0);" lang="EN-US">0x08 </span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(178, 34, 0);" lang="EN-US">: </span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(160, 32, 0);" lang="EN-US">0x00</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(178, 34, 0);" lang="EN-US">,</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: windowtext;" lang="EN-US"></span></p>

  <p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(178, 34, 0);">);</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(178, 34, 0);" lang="EN-US"></span></p>

  <p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(178, 34, 0);" lang="EN-US"> </span></p>
  <p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(178, 34, 0);">Читаем
так</span></p>
  <p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(178, 34, 0);"> </span></p>
  <p class="MsoNormal"><span style="background: yellow none repeat scroll 0% 50%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US">$</span><span style="background: yellow none repeat scroll 0% 50%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(160, 0, 240);" lang="EN-US">pdu</span><span style="background: yellow none repeat scroll 0% 50%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"> </span><span style="background: yellow none repeat scroll 0% 50%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(178, 34, 0);" lang="EN-US">= </span><span style="background: yellow none repeat scroll 0% 50%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US">$</span><span style="background: yellow none repeat scroll 0% 50%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(160, 0, 240);" lang="EN-US">self</span><span style="background: yellow none repeat scroll 0% 50%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(178, 34, 0);" lang="EN-US">-&gt;</span><span style="background: yellow none repeat scroll 0% 50%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US">smpp</span><span style="background: yellow none repeat scroll 0% 50%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(178, 34, 0);" lang="EN-US">-&gt;</span><span style="background: yellow none repeat scroll 0% 50%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US">read_pdu</span><span style="background: yellow none repeat scroll 0% 50%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(178, 34, 0);" lang="EN-US">;</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(178, 34, 0);"></span></p>

  <p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(178, 34, 0);"> </span></p>
  <p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">И
ничего не приходит (</span></p>
  <p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
  <p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">Может
кто-нибудь сталкивался,  куда рыть, что смотреть, ничего
не понимаю (</span></p>
  <p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
  <p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">И
  </span><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">tcpdump</span><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> </span><span style="font-size: 11pt; color: rgb(31, 73, 125);">смотрел,
и даже вот узнал о </span><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">wireshark</span><span style="font-size: 11pt; color: rgb(31, 73, 125);">
(просто отличная тулза
) ))</span></p>
  <p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">Все
что приходит все отображается, а отчета о доставке как не было
так и нет (</span></p>
  </div>
  </div></div><pre><hr size="4" width="90%"><div class="im">
--
Moscow.pm mailing list
<a href="mailto:moscow-pm@pm.org" target="_blank">moscow-pm@pm.org</a> | <a href="http://moscow.pm.org" target="_blank">http://moscow.pm.org</a>
  </div></pre>
</blockquote>
<br>
<pre cols="72">-- 
Sincerely,
Denis S.Davidov
System/Network Engineer, Nexo Russia, Moscow
mailto: <a href="mailto:davydov@nexo.ru" target="_blank">davydov@nexo.ru</a>
tel. (495) 981-6211</pre>
</div>


<br>--<br>
Moscow.pm mailing list<br>
<a href="mailto:moscow-pm@pm.org">moscow-pm@pm.org</a> | <a href="http://moscow.pm.org" target="_blank">http://moscow.pm.org</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Andrei Protasovitski<br>&lt; andrei[dot]protasovitski[at]gmail[dot]com &gt;<br>Diemen, Netherlands<br>