<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1251"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Hi, Ollie!<div><br></div><div>What are you really want to do with calls from another gateway? In practice, these calls are dropping with error 404.</div><div><br></div><div>Or you may to do something in other route...</div><div><br></div><div><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div>if (is_method("INVITE")) {</div><div><br></div><div><span class="Apple-tab-span" style="white-space: pre;">                </span>if(!is_from_gw()) {</div><div><span class="Apple-tab-span" style="white-space: pre;">                                </span></div><div><span class="Apple-tab-span" style="white-space: pre;">                                </span>route(ROUTE_FOR_MISTERY_CALLS);<span class="Apple-tab-span" style="white-space: pre;">                                </span></div><div><span class="Apple-tab-span" style="white-space: pre;">                </span>}</div></div></blockquote> }</div><div> <br><div>
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Best regards,</div><div>Alexander Mustafin</div><div><a href="mailto:mustafin.aleksandr@gmail.com">mustafin.aleksandr@gmail.com</a></div><div><br></div></div><br class="Apple-interchange-newline"><br class="Apple-interchange-newline">
</div>
<br><div><div>14 íîÿá. 2013 ã., â 20:24, Ollie Potts <<a href="mailto:ollie@stourmarine.net">ollie@stourmarine.net</a>> íàïèñàë(à):</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="Content-Type" content="text/html charset=windows-1252"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Hi all,<div><br></div><div>I’ve noticed some very strange behaviour with our opensips config and can’t seem to figure out why it is happening. </div><div><br></div><div>I use this method (brief) to determine when to use dynamic routing,</div><div><br></div><div><div><span class="Apple-tab-span" style="white-space:pre">        </span>if (is_method("INVITE")) {</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">                </span>t_on_failure("missed_call");</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">                </span>if(!is_from_gw()) {</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span></div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>### xlog("Call from downstream account");</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>if(do_routing("0")){ } </div><div><span class="Apple-tab-span" style="white-space:pre">                                </span></div><div><span class="Apple-tab-span" style="white-space:pre">                </span>}</div></div><div><br></div><div>}</div><div><br></div><div>In this case, it uses drouting for any invites that do not originate from our gateways. However, if we receive a call from a gateway destined for a number that is not local, it then tries to send the call back to the gateway using dynamic routing, causing a loop. The invite messages loop 10 times and then the failure route is called.</div><div><br></div><div>I would like it to call the failure route immediately if it cannot find the number locally, rather than send an invite back to the originating gateway.</div><div><br></div><div>Is there any way I can do this?</div><div><div apple-content-edited="true"><div style="font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div style="font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div style="font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div style="font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><br></div><div style="font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Thanks,</div><div style="font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Ollie</div><div style="font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><br></div></div></div></div></div></div></div>_______________________________________________<br>Users mailing list<br><a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>http://lists.opensips.org/cgi-bin/mailman/listinfo/users<br></blockquote></div><br></div></body></html>