[OpenSIPS-Users] (no subject)
Uday kumar
udy786 at gmail.com
Tue Dec 18 05:39:57 EST 2018
Hello Jon,
Here is my code....
if (is_method("INVITE")) {
route(RELAY_TO_LRN);
}
route[RELAY_TO_LRN] {
$du = "sip:IP:PORT";
$T_fr_timeout=2;
t_on_failure("lrn_reply");
t_relay();
}
failure_route[lrn_reply] {
if (t_check_status("302")) {
$var(contact) = $hdr(Contact);
xlog("SCRIPT:LRN:DBG: $var(contact) \n");
$var(lrn_rpl) = $(var(contact){nameaddr.uri}{param.value,rn});
xlog("SCRIPT:LRN:DBG: $var(lrn_rpl) \n");
if ($var(lrn_rpl) == NULL || $var(lrn_rpl) == "") {
$var(lrn_rpl) = $rU;
xlog("SCRIPT:LRN:DBG: $rU is not ported \n");
} else {
xlog("SCRIPT:LRN:DBG: $rU translates to $var(lrn_rpl) \n");
$rU = $var(lrn_rpl);
}
}
...... continue the call ......
}
Please advice.
Thanks
Uday.
On Fri, Dec 14, 2018 at 7:21 PM Jon Abrams <ffshoh at gmail.com> wrote:
> Uday, what do you currently have in your script for the LRN dip? What do
> you observe the script doing (or not doing) currently?
>
> - Jon
>
> On Fri, Dec 14, 2018 at 7:16 AM Uday kumar <udy786 at gmail.com> wrote:
>
>> Hello Everyone
>>
>> 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.
>>
>> 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.
>>
>> I have followed below PDF for implementation but no success yet.
>>
>>
>> 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
>>
>> Please guide.
>> --
>> Thanks & Regard
>> Uday.
>> Mobile:- +91-9377579349
>> _______________________________________________
>> Users mailing list
>> Users at lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
--
Thanks & Regard
Uday.
Mobile:- +91-9377579349
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20181218/13042d03/attachment.html>
More information about the Users
mailing list