<div dir="ltr"><div dir="ltr">Hello Jon,<div><br></div><div>Here is my code....</div><div><br></div><div><div>if (is_method("INVITE")) {</div><div>    route(RELAY_TO_LRN);</div><div>}</div><div><br></div><div>route[RELAY_TO_LRN] {</div><div><span style="white-space:pre">       </span>$du = "sip:IP:PORT";</div><div><span style="white-space:pre">        </span>$T_fr_timeout=2;</div><div><span style="white-space:pre">      </span>t_on_failure("lrn_reply");</div><div><span style="white-space:pre">  </span>t_relay();</div><div>}</div><div><br></div><div>failure_route[lrn_reply] {</div><div><span style="white-space:pre">          </span>if (t_check_status("302")) {</div><div>                   $var(contact) = $hdr(Contact);</div><div><span style="white-space:pre">              </span>   xlog("SCRIPT:LRN:DBG: $var(contact) \n");</div><div><span style="white-space:pre">              </span>   $var(lrn_rpl) = $(var(contact){nameaddr.uri}{param.value,rn});</div><div><span style="white-space:pre">           </span>   xlog("SCRIPT:LRN:DBG:  $var(lrn_rpl) \n");</div><div>                   if ($var(lrn_rpl) == NULL || $var(lrn_rpl) == "") {</div><div><span style="white-space:pre">   </span> <span style="white-space:pre">    </span>      $var(lrn_rpl) = $rU;</div><div><span style="white-space:pre">         </span>      xlog("SCRIPT:LRN:DBG: $rU is not ported \n");</div><div><span style="white-space:pre">              </span>   } else {</div><div><span style="white-space:pre">         </span>      xlog("SCRIPT:LRN:DBG: $rU translates to $var(lrn_rpl) \n");</div><div><span style="white-space:pre">                </span>      $rU = $var(lrn_rpl);</div><div><span style="white-space:pre">         </span>   }</div><div><span style="white-space:pre">                </span></div><div><span style="white-space:pre">              </span>}</div><div><br></div><div><span style="white-space:pre">            </span>...... continue the call ......</div><div><span style="white-space:pre">               </span></div><div>}</div></div><div><br></div><div><br></div><div>Please advice. </div><div><br></div><div>Thanks</div><div>Uday.</div></div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, Dec 14, 2018 at 7:21 PM Jon Abrams <<a href="mailto:ffshoh@gmail.com">ffshoh@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Uday, what do you currently have in your script for the LRN dip? What do you observe the script doing (or not doing) currently?</div><div><br></div><div>- Jon<br></div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, Dec 14, 2018 at 7:16 AM Uday kumar <<a href="mailto:udy786@gmail.com" target="_blank">udy786@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div>Hello Everyone</div><div><br></div><div>I have a system developed in opensips to make outbound calls. Now trying to implement the LRN thing using sip invite with provider IP because USA have different rate based on LRN. </div><div><br></div><div>Customer Call => OpenSIPs => LRN server. Once received response 302 from LRN server then send call to gateway. So OpenSIPs sending first Invite to LRN server to get LRN details and then sending to gateway to process call. </div><div><br></div><div>I have followed below PDF for implementation but no success yet.</div><div><br></div><div><a href="https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&uact=8&ved=2ahUKEwi8w9P0qp_fAhVnRN8KHRtkAowQFjAAegQICRAC&url=http%3A%2F%2Fwww.opensips.org%2Fpub%2Fevents%2F2014-10-21_OpenSIPS-Summit_LasVegas%2FVlad_Paiu-OpenSIPS_Summit-Service_Enabling_for_Asterisk.pdf&usg=AOvVaw3JBpLf7gVBnC4b7bwGI2ne" target="_blank">https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&uact=8&ved=2ahUKEwi8w9P0qp_fAhVnRN8KHRtkAowQFjAAegQICRAC&url=http%3A%2F%2Fwww.opensips.org%2Fpub%2Fevents%2F2014-10-21_OpenSIPS-Summit_LasVegas%2FVlad_Paiu-OpenSIPS_Summit-Service_Enabling_for_Asterisk.pdf&usg=AOvVaw3JBpLf7gVBnC4b7bwGI2ne</a></div><div><br></div><div>Please guide. </div>-- <br><div dir="ltr" class="gmail-m_6595005885086112498gmail-m_7179638976215284890gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div style="font-family:arial;font-size:small">Thanks & Regard</div><div style="font-family:arial;font-size:small">Uday.</div><div style="font-family:arial;font-size:small">Mobile:- +91-9377579349<br></div></div></div></div></div></div></div></div></div>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div style="font-family:arial;font-size:small">Thanks & Regard</div><div style="font-family:arial;font-size:small">Uday.</div><div style="font-family:arial;font-size:small">Mobile:- +91-9377579349<br></div></div></div></div></div></div></div>