<div dir="ltr">B.H.<div><br></div><div>Hello, all. We have a dialer software that runs outgoing telephony campaigns. We have been using it successfully with PRI cards, now we&#39;re evaluating it&#39;s use also with a SIP trunk. Most of the things run perfectly good without a need to change anything except for dial string, but there&#39;s some strange problem with asterisk interpreting SIP result codes. </div>
<div><br></div><div>Our software is written in Java using asterisk-java library. It is using Asterisk&#39;s reason code from OriginateResponseEvent to determine if it should redial the number. Our consideration is that if Asterisk returns reason code 8 (Congestion) this means that the call has never actually reached the destination number, and it&#39;s OK to try to redial again.</div>
<div><br></div><div>But with SIP trunk, many times i can see a really strange sequence of events:</div><div><br></div><div>After INVITE i get the following responses (example from a real conversation)</div><div>[17:01:40] SIP/2.0 100 Trying</div>
<div><div>[17:01:40] SIP/2.0 183 Session Progress</div></div><div>[17:01:51] SIP/2.0 480 Temporarily not available</div><div><br></div><div>As far as i understand, this means that the remote phone was ringing for 10 seconds and then the call failed due to a timeout. As far as i understand, i&#39;m supposed to get reason code 3, but actually the java application gets OriginateResponseEvent with failure reason code 8.</div>
<div><br></div><div>This behavior is hard to reproduce. I was trying with my own phone number and then i get the expected reason code 3, but i constantly get this situation running our customer&#39;s campaigns.</div><div>
<br></div><div><div><br></div>-- <br><div dir="ltr"><div style="direction:rtl"><font color="#666666">משיח NOW!</font></div><font color="#666666">Moshiach is coming very soon, prepare yourself!</font><div dir="rtl"><font color="#666666">יחי אדוננו מורינו ורבינו מלך המשיח לעולם ועד!</font></div>
</div>
</div></div>