[OpenSIPS-Users] missed_calls doubt

Wesley Volcov wesleyvolcov at gmail.com
Thu Apr 28 14:33:16 CEST 2011


Denis,

I already tried this, but sip_code field doens't have value.  I need this
value.

Any ideas ?

Thanks

On 28 April 2011 09:17, Denis Putyato <denis7979 at mail.ru> wrote:

> Hello
>
>
>
> Try to use failed_transaction_flag
>
> http://www.opensips.org/html/docs/modules/devel/acc.html#id292642
>
>
>
> *From:* users-bounces at lists.opensips.org [mailto:
> users-bounces at lists.opensips.org] *On Behalf Of *Wesley Volcov
> *Sent:* Thursday, April 28, 2011 4:13 PM
> *To:* OpenSIPS users mailling list
> *Subject:* [OpenSIPS-Users] missed_calls doubt
>
>
>
> Dear List,
>
> I use my opensips, to make the routes based on prefix received and send the
> call to the termination carrier based on a lcr configured with dr_route
> module.
> I have 2 route to each prefix. When I receive an error from the fist
> carrier, the opensips set the missed_call flag, and send the call to second
> carrier. If the second carrier send an error, the opensips set the
> missed_call flag again and relay this error to the user that made the call.
> In my missed_call table, I just see the second error, but I need to see
> both. How can I do this ?
>
> Follow my failure route:
>
> failure_route[1] {
>
>         xlog("FailureRoute entered");
>         setflag(10); #accounting missed calls
>         if (t_check_status("(487)|(486)")) {
>                 xlog"FailureRoute: $rm exited");
>                 exit;
>         } else if(!next_routing()) {
>                         xlog("FailureRoute: no more gateways available.");
>                 }
>         route(1);
> }
>
>
> route[1] {
>
>         t_on_reply("ONREPLY");
>         if (!t_relay()) {
>                 sl_reply_error();
>         };
>
>         exit;
> }
>
> Regards,
>
> --
> Wesley Volcov
> Email: wesleyvolcov at gmail.com
> Messenger: volcov at live.com
> Mobile: +55 11 9989-5348
> Website: http://volcov.blogspot.com
>



-- 
Wesley Volcov
Email: wesleyvolcov at gmail.com
Messenger: volcov at live.com
Mobile: +55 11 9989-5348
Website: http://volcov.blogspot.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20110428/b1d756c3/attachment.htm>


More information about the Users mailing list