[OpenSIPS-Users] msilo on failure_route

Bogdan-Andrei Iancu bogdan at opensips.org
Fri Feb 15 12:22:41 CET 2013


Hi Dani,

If you do parallel forking to all 5 registrations of the client and all 
fails, the failure route is triggered only once (as all branches belong 
to the same transaction and failure route is triggered when the 
transaction fails).

So the final answer -> one time.

Regards

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com


On 02/15/2013 12:22 PM, Dani Popa wrote:
> Five SIP clients with the same username.
>
> Dani
>
>
> On Fri, Feb 15, 2013 at 12:19 PM, Dani Popa <dani.popa at gmail.com 
> <mailto:dani.popa at gmail.com>> wrote:
>
>     Hi,
>
>     Regarding msilo module and example from the documentation, one
>     simple question:
>
>     if i have 5 clients already registered and non of them know
>     IM(message sip method), on next failure_route(it was taken from
>     modules documentation). haw many times the message is stored in
>     database ? In fact the question is, because of sip forking, how
>     many times the IM message is stored in db with m_store on
>     failure_route.
>
>     Thanks,
>     Dani
>
>     failure_route[1] {
>          # forwarding failed -- check if the request was a MESSAGE
>          if (!method=="MESSAGE")
>          {
>              exit;
>          };
>
>          log(1,"MSILO:the downstream UA doesn't support MESSAGEs\n");
>          # we have changed the R-URI with the contact address, ignore it now
>          if (m_store("$ou"))
>          {
>              log("MSILO: offline message stored\n");
>              t_reply("202", "Accepted");
>          }else{
>              log("MSILO: offline message NOT stored\n");
>              t_reply("503", "Service Unavailable");
>          };
>     }
>
>
>     -- 
>     Dani Popa
>
>
>
>
> -- 
> Dani Popa
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20130215/b9d8eb1d/attachment.htm>


More information about the Users mailing list