[OpenSIPS-Users] msilo on failure_route

2013-02-15 Thread Dani Popa
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
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] msilo on failure_route

2013-02-15 Thread Dani Popa
Five SIP clients with the same username.

Dani


On Fri, Feb 15, 2013 at 12:19 PM, Dani Popa dani.p...@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@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] msilo on failure_route

2013-02-15 Thread Bogdan-Andrei Iancu

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.p...@gmail.com 
mailto:dani.p...@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@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] msilo on failure_route

2013-02-15 Thread Dani Popa
Thanks,

Dani


On Fri, Feb 15, 2013 at 1:22 PM, Bogdan-Andrei Iancu bog...@opensips.orgwrote:

 **
 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 Developerhttp://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.p...@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 
 listUsers@lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users




-- 
Dani Popa
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users