Re: [SR-Users] MSILO offline messages are coming in reverse order.

2017-02-17 Thread Venkatesh Macha
Hi Daniel, We are using Mysql Database. But i am getting messages in reverse order. Thank you -- View this message in context: http://sip-router.1086192.n5.nabble.com/MSILO-offline-messages-are-coming-in-reverse-order-tp156098p156158.html Sent from the Users mailing list archive at Nabb

Re: [SR-Users] MSILO offline messages are coming in reverse order.

2017-02-15 Thread Daniel-Constantin Mierla
Hello, looking quickly at the code, the records fetched from db are ordered by 'id', so they should be in the order they were received, not the opposite. Are you using mysql or other database server? Cheers, Daniel On 15/02/2017 14:24, Venkatesh Macha wrote: > Hi all, > >I am using MSILO

Re: [SR-Users] msilo timestamp

2016-12-12 Thread Daniel-Constantin Mierla
Hello, it is the timestamp value (the value of time(NULL) C function), there should different functions that can be used for converting it to local datetime or utc. Cheers, Daniel On 10/12/2016 07:15, Slava Bendersky wrote: > Hello Everyone, > What format stored inc_time in msilo module ? I am

Re: [SR-Users] msilo

2016-12-04 Thread Slava Bendersky
Hello Daniel, I updated OFFLINE MESSAGE store based on username. https://paste.fedoraproject.org/499377/14809030/ Slava From: "Daniel-Constantin Mierla" To: "volga629" , "sr-users" Sent: Friday, 25 November, 2016 10:59:45 Subject: Re: [SR-Users] msilo

Re: [SR-Users] msilo

2016-12-03 Thread Slava Bendersky
7 November, 2016 02:12:21 Subject: Re: [SR-Users] msilo Hello Daniel, I am trying more simple example of $dbr in REGISTER first. Insert into location temporary data. The problem is not looping though all entries in database only last one. Which compare same entry 100 times. if(is_method("RE

Re: [SR-Users] msilo

2016-11-26 Thread Slava Bendersky
t;$var(ruid)")) { xlog("L_INFO", "AOR: Found match --> [$var(dbruid)] = [$var(ruid)]\n"); } else { sql_query_async("cb","DELETE FROM location WHERE ruid = '$var(dbruid)'"); sql_query_async("cb","INSERT INTO location(id, username, e

Re: [SR-Users] msilo

2016-11-26 Thread Slava Bendersky
Ok lua works right now. I was need remove "" in the value. Slava From: "volga629" To: "sr-users" Sent: Sunday, 27 November, 2016 00:29:39 Subject: Re: [SR-Users] msilo Hello Everyone, I tried use sr.pv.sets, but not sure how to pass value to it. #

Re: [SR-Users] msilo

2016-11-26 Thread Slava Bendersky
", "ruid") ---> In kamailio just static ruid Output AOR: New user Ruid -->[ruid] Slava. From: "volga629" To: "sr-users" Sent: Saturday, 26 November, 2016 23:41:46 Subject: Re: [SR-Users] msilo Hello Everyone, Can't find how actually retu

Re: [SR-Users] msilo

2016-11-26 Thread Slava Bendersky
og("L_INFO", "AOR: New user Ruid -->[$var(ruid)]\n"); sql_query_async("cb","INSERT INTO location(id, username, expires, contact, user_agent, domain, callid, ruid) VALUES(0, '$au', $TS, '$ct', '$ua', '$fd', '$ci

Re: [SR-Users] msilo

2016-11-25 Thread Daniel-Constantin Mierla
t; > Slava. > > -------- > *From: *"volga629" > *To: *mico...@gmail.com, "sr-users" > *Sent: *Thursday, 24 November, 2016 09:34:18 > *Subject: *Re: [SR-Users] msilo > > Hello Daniel, > That g

Re: [SR-Users] msilo

2016-11-25 Thread Daniel-Constantin Mierla
#if(!sl_send_reply("503", "Service Unavailable")) { > # sl_reply_error(); > #} > } > } > t_on_failure("SMS_FAIL_ROUTE"); > exit; > } > } > } > > > Slava. >

Re: [SR-Users] msilo

2016-11-24 Thread Slava Bendersky
Hello Everyone, I am trying run small lua script to generate random formatted string, but always get 1. Is script need be set in special way ? That related to MSILO setup which I am trying to do. xlog("L_INFO", "MSILO: New user request saving contact [$ct]\n"); $var(ruid) = lua_dofile("/usr/b

Re: [SR-Users] msilo

2016-11-24 Thread Slava Bendersky
ot;decryption key", "$avp(decrypted)"); $uac_req(method)="MESSAGE"; $uac_req(furi)=$avp(src); $uac_req(turi)=$avp(dst); $uac_req(body)= $avp(decrypted) ; uac_req_send(); } Slava. From: "volga629" To: mico...@gmail.com, "sr-users" S

Re: [SR-Users] msilo

2016-11-24 Thread Slava Bendersky
ccepted")) { sl_reply_error(); } } else { xlog("L_INFO", "MSILO: offline message NOT stored\n"); #if(!sl_send_reply("503", "Service Unavailable")) { # sl_reply_error(); #} } } t_on_failure("SMS_FAIL_ROUTE"); exit; } } } Slava. From:

Re: [SR-Users] msilo

2016-11-24 Thread Daniel-Constantin Mierla
ist > > > *From: *"volga629" > *To: *mico...@gmail.com > *Sent: *Thursday, 24 November, 2016 00:25:30 > *Subject: *Re: [SR-Users] msilo > > Hello Everyone, > I want to ask about another improvement for MSILO module. If possible > encrypt BODY

Re: [SR-Users] msilo

2016-11-24 Thread Daniel-Constantin Mierla
On 24/11/2016 05:28, Slava Bendersky wrote: > [] > > *From: *"volga629" > *To: *mico...@gmail.com > *Sent: *Wednesday, 23 November, 2016 21:10:53 > *Subject: *Re: [SR-Users] msilo > > Hel

Re: [SR-Users] msilo

2016-11-23 Thread Slava Bendersky
Sent message to mailing list From: "volga629" To: mico...@gmail.com Sent: Thursday, 24 November, 2016 00:25:30 Subject: Re: [SR-Users] msilo Hello Everyone, I want to ask about another improvement for MSILO module. If possible encrypt BODY column in database. That will im

Re: [SR-Users] msilo

2016-11-17 Thread Daniel-Constantin Mierla
insert staff. > > > Slava > > > *From: *"Daniel-Constantin Mierla" > *To: *"sr-users" > *Sent: *Wednesday, 16 November, 2016 04:37:24 > *Subject: *Re: [SR-Users] msilo > > He

Re: [SR-Users] msilo

2016-11-16 Thread Slava Bendersky
Hello Daniel, Yes that good alternative. I will use sql to fetch or insert staff. Slava From: "Daniel-Constantin Mierla" To: "sr-users" Sent: Wednesday, 16 November, 2016 04:37:24 Subject: Re: [SR-Users] msilo Hello, as an alternative, I think it should wor

Re: [SR-Users] msilo

2016-11-16 Thread Daniel-Constantin Mierla
sr-users" <mailto:sr-users@lists.sip-router.org>> > *Sent: *Tuesday, 15 November, 2016 03:00:19 > *Subject: *Re: [SR-Users] msilo > > Hello, > > for me it is fine to add a new parameter to m_store() that takes > the body content. > &

Re: [SR-Users] msilo

2016-11-15 Thread Slava Bendersky
g("L_INFO", "FROM --> $avp(from)\n"); xlog("L_INFO", "OLD_TO --> $avp(to)\n"); xlog("L_INFO", "NEW_TO --> $avp(new_to)\n"); } if(compare_ips("$td", "10.18.130.27")) { xlog("L_INFO", "Message

Re: [SR-Users] msilo

2016-11-15 Thread Federico Cabiddu
r-users" *Sent: *Tuesday, 15 November, 2016 03:00:19 *Subject: *Re: [SR-Users] msilo Hello, for me it is fine to add a new parameter to m_store() that takes the body content. Are you asking for more details of how can be done? Cheers, Daniel On 13/11/16 07:08, Slava Bendersky wrote: Hel

Re: [SR-Users] msilo

2016-11-15 Thread Slava Bendersky
Hello Daniel, I am not programmer, but I want place request if kaamilio devs can complete it . Thanks Slava. From: "Daniel-Constantin Mierla" To: "sr-users" Sent: Tuesday, 15 November, 2016 03:00:19 Subject: Re: [SR-Users] msilo Hello, for me it is fine to

Re: [SR-Users] msilo

2016-11-15 Thread Daniel-Constantin Mierla
Hello, for me it is fine to add a new parameter to m_store() that takes the body content. Are you asking for more details of how can be done? Cheers, Daniel On 13/11/16 07:08, Slava Bendersky wrote: > Hello Everyone, > I asking question/request to add improvement for msilo module where > will h

Re: [SR-Users] msilo route error

2016-08-17 Thread Daniel-Constantin Mierla
Hello, what is at line 613? Likely you mixed the #!ifdef/#!endif blocks, see the last message in the next snippet of logs: Aug 17 21:35:41 debian kamailio[3693]: : [cfg.y:3368]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 613, column 12: Aug 17 21:35:41 debian kam

Re: [SR-Users] msilo dump with non 2xx answer

2015-10-22 Thread Péter Barabás
ilto:mico...@gmail.com] Sent: Wednesday, October 21, 2015 2:16 PM To: Péter Barabás ; Kamailio (SER) - Users Mailing List Subject: Re: [SR-Users] msilo dump with non 2xx answer Hello, On 16/10/15 12:20, Péter Barabás wrote: Hi Daniel, thanks for the answer, i did that exactly. The reason of

Re: [SR-Users] MSILO module

2015-10-21 Thread SamyGo
That means save the psuedo variable $mb (read wiki) using the SQLops module to save the messages using sql_query() Msilo supports saving and retrieving for offline users and hence I couldnt figure out how I can permanently save msg history for users and hence did it manually as mentioned above. M

Re: [SR-Users] MSILO module

2015-10-21 Thread Safdar Khan
Hi Sam, Will u please elaborate.Means from where to start. Safdar. On Wed, Oct 21, 2015 at 6:29 PM, SamyGo wrote: > Hi Safdar, > > The way I did was save the $mb variable in db when the Method is MESSAGE. > > Regards, > Sam > On Oct 21, 2015 8:09 AM, "Safdar Khan" wrote: > >> How can i store

Re: [SR-Users] MSILO module

2015-10-21 Thread SamyGo
Hi Safdar, The way I did was save the $mb variable in db when the Method is MESSAGE. Regards, Sam On Oct 21, 2015 8:09 AM, "Safdar Khan" wrote: > How can i store messages in silo table not only offline also online.Demo > code will be appreciated.waiting for response. > > ___

Re: [SR-Users] msilo dump with non 2xx answer

2015-10-21 Thread Daniel-Constantin Mierla
Hello, On 16/10/15 12:20, Péter Barabás wrote: > > Hi Daniel, > > > > thanks for the answer, i did that exactly. > > > > The reason of 493 comes our special IM handling. We send encrypted > message and if client sends 493 back, it means, that the message > cannot be decrypted and now the messa

Re: [SR-Users] msilo dump with non 2xx answer

2015-10-16 Thread Péter Barabás
ehalf Of Daniel-Constantin Mierla Sent: Monday, October 12, 2015 2:17 PM To: Kamailio (SER) - Users Mailing List Subject: Re: [SR-Users] msilo dump with non 2xx answer Hello, On 08/10/15 11:58, Péter Barabás wrote: Hi, I set instant message store&forward in kamailio using MSILO module. It works

Re: [SR-Users] msilo dump with non 2xx answer

2015-10-12 Thread Daniel-Constantin Mierla
Hello, On 08/10/15 11:58, Péter Barabás wrote: > > Hi, > > > > I set instant message store&forward in kamailio using MSILO module. It > works fine in many cases. > > We have special message handing (encryption in „session”), i do not go > into detail since it is not necessarily to solve the prob

Re: [SR-Users] MSILO: Archiving every message

2015-08-03 Thread SamyGo
Thanks Daniel for pointing out. On Mon, Aug 3, 2015 at 6:30 AM, Daniel-Constantin Mierla wrote: > Hello, > > On 01/08/15 16:03, SamyGo wrote: > > Hi, > > > > Tried finding anything as weird as I am trying to do on mailing list > > but couldn't. The idea is to save a copy of the messages on datab

Re: [SR-Users] MSILO: Archiving every message

2015-08-03 Thread Daniel-Constantin Mierla
Hello, On 01/08/15 16:03, SamyGo wrote: > Hi, > > Tried finding anything as weird as I am trying to do on mailing list > but couldn't. The idea is to save a copy of the messages on database. > > MSILO module can keep the message as long as the destination user is > offline, or doesn't support met

Re: [SR-Users] msilo storage of message id

2015-06-07 Thread Shouvanik Chakrabarti
Thank you, Sir for your prompt reply. I am using the db_mysql module. I have temporarily resolved this by adding code to the m_store function to store each message with a unique message id. On Thu, Jun 4, 2015 at 4:48 PM, Daniel-Constantin Mierla wrote: > Hello, > > what database module are you

Re: [SR-Users] msilo storage of message id

2015-06-04 Thread Daniel-Constantin Mierla
Hello, what database module are you using? Cheers, Daniel On 03/06/15 10:25, Shouvanik Chakrabarti wrote: > Hello. > We have been using the msilo module to handle offline SIP messaging. I > have noticed that the m_store function ends up storing all the records > with the default message id which

Re: [SR-Users] msilo module

2015-03-24 Thread Anthony Messina
On Monday, March 23, 2015 04:33:14 PM Rajat Yadav wrote: > Hello i m very new to kamailio.I m trying to develop an application using > webrtc and kamailio. In this i tried using msilo module so as to store > offline messages but wasnt able to achieve it.After that i searched a lot > on internet abo

Re: [SR-Users] msilo clarification

2015-03-18 Thread Daniel-Constantin Mierla
On 13/03/15 12:55, mayamatakeshi wrote: > > > On Fri, Mar 13, 2015 at 8:25 PM, Daniel-Constantin Mierla > mailto:mico...@gmail.com>> wrote: > > Hello, > > > > On 13/03/15 10:54, mayamatakeshi wrote: >> Hello, >> maybe this phrase in the msilo doc is misleading: >> >> /Every ti

Re: [SR-Users] msilo clarification

2015-03-13 Thread mayamatakeshi
On Fri, Mar 13, 2015 at 8:25 PM, Daniel-Constantin Mierla wrote: > Hello, > > > > On 13/03/15 10:54, mayamatakeshi wrote: > > Hello, > maybe this phrase in the msilo doc is misleading: > > *Every time when a user registers with Kamailio, the module is looking > in database for offline messages

Re: [SR-Users] msilo clarification

2015-03-13 Thread Daniel-Constantin Mierla
Hello, On 13/03/15 10:54, mayamatakeshi wrote: > Hello, > maybe this phrase in the msilo doc is misleading: > > /Every time when a user registers with Kamailio, the module is looking > in database for offline messages intended for that user. All of them > will be sent to contact address provided

Re: [SR-Users] MSILO module not delivering messages

2014-10-21 Thread Daniel-Constantin Mierla
On 21/10/14 10:01, aawaise wrote: > I have seen and found that I haven't used "m_dump()" functionality. It is > required for getting offline messages on client. Now I want to know where to > use it ? Should it be added in registrar module or somewhere else ?? Should be done after you do save("loca

Re: [SR-Users] MSILO module not delivering messages

2014-10-21 Thread aawaise
I have seen and found that I haven't used "m_dump()" functionality. It is required for getting offline messages on client. Now I want to know where to use it ? Should it be added in registrar module or somewhere else ?? -- View this message in context: http://sip-router.1086192.n5.nabble.com/MS

Re: [SR-Users] MSILO not checking Expires header if Allow: is absent and Contact: is present but without expires

2014-07-25 Thread Daniel-Constantin Mierla
Thanks for testing and reporting the results, I will look to backport it soon to 4.1 branch. Cheers, Daniel On 23/07/14 18:46, Anthony Messina wrote: On Monday, July 21, 2014 10:16:38 AM Daniel-Constantin Mierla wrote: Hello, can you try the patch from next commit? http://git.sip-router.org

Re: [SR-Users] MSILO not checking Expires header if Allow: is absent and Contact: is present but without expires

2014-07-23 Thread Anthony Messina
On Monday, July 21, 2014 10:16:38 AM Daniel-Constantin Mierla wrote: > Hello, > > can you try the patch from next commit? > > http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=6559c438 > 3858d472637807c6ec4dd1e0616507fa > > If works ok, I will backport. This seems to work well

Re: [SR-Users] MSILO not checking Expires header if Allow: is absent and Contact: is present but without expires

2014-07-21 Thread Anthony Messina
I will give this a try on Tuesday and let you know. Thanks. -A Quoting Daniel-Constantin Mierla : Hello, can you try the patch from next commit? http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=6559c4383858d472637807c6ec4dd1e0616507fa If works ok, I will backport. Cheers

Re: [SR-Users] MSILO not checking Expires header if Allow: is absent and Contact: is present but without expires

2014-07-21 Thread Daniel-Constantin Mierla
Hello, can you try the patch from next commit? http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=6559c4383858d472637807c6ec4dd1e0616507fa If works ok, I will backport. Cheers, Daniel On 18/07/14 21:04, Anthony Messina wrote: In setting up Kamailio with MSILO, I've noticed t

Re: [SR-Users] Msilo not delivering message (status 408)

2014-07-21 Thread Daniel-Constantin Mierla
Maybe someone can make a blog post somewhere or an article on the wiki (http://www.kamailio.org/wiki/) with this topic, putting there the config, so it will help others in the future. Cheers, Daniel On 20/07/14 20:42, Peter Villeneuve wrote: Just to update the list in case anyone cares. Indee

Re: [SR-Users] Msilo not delivering message (status 408)

2014-07-20 Thread Peter Villeneuve
Just to update the list in case anyone cares. Indeed I have finally managed to get msilo working properly by setting the outbound proxy for msilo. And it works fine with just the TLS transport. I really appreciate your help Anthony. Your config file was invaluable to me. Cheers, Peter On Sat, J

Re: [SR-Users] Msilo not delivering message (status 408)

2014-07-18 Thread Peter Villeneuve
Yup, that was it thanks. Now I'm back to my original problem. I just have 1 tls listener on 5061. I'm going to try and enable other transports and set the outbound proxy and see if that fixes it. Cheers ERROR: tm [ut.h:343]: uri2dst2(): no corresponding socket for af 2 On Fri, Jul 18, 2014 at

Re: [SR-Users] Msilo not delivering message (status 408)

2014-07-18 Thread Anthony Messina
On Friday, July 18, 2014 11:34:27 PM Peter Villeneuve wrote: > Hi again, > > I've been playing around with Anthony's config posted above, and I believe > I'm almost there getting msilo to work properly, although it seems that > kamailio doesn't correctly recognize the callee is a local subscriber

Re: [SR-Users] Msilo not delivering message (status 408)

2014-07-18 Thread Peter Villeneuve
Hi again, I've been playing around with Anthony's config posted above, and I believe I'm almost there getting msilo to work properly, although it seems that kamailio doesn't correctly recognize the callee is a local subscriber so it rejects the message instead of storing it. Shouldn't the is_subsc

Re: [SR-Users] Msilo not delivering message (status 408)

2014-07-18 Thread Anthony Messina
On Friday, July 18, 2014 07:32:21 PM Peter Villeneuve wrote: > You are a star Anthony! > Thanks a lot for sharing your config. It is much appreciated. > I'm going to study your config in detail and see if I can get it to work on > my install. > > Cheers, > Peter Sure, Peter. One thing I noticed

Re: [SR-Users] Msilo not delivering message (status 408)

2014-07-18 Thread Peter Villeneuve
You are a star Anthony! Thanks a lot for sharing your config. It is much appreciated. I'm going to study your config in detail and see if I can get it to work on my install. Cheers, Peter On Fri, Jul 18, 2014 at 6:39 PM, Anthony Messina wrote: > On Friday, July 18, 2014 12:01:41 AM Daniel-Cons

Re: [SR-Users] Msilo not delivering message (status 408)

2014-07-18 Thread Anthony Messina
On Friday, July 18, 2014 12:01:41 AM Daniel-Constantin Mierla wrote: > You should not call m_store() if src_ip==myself -- in this way you avoid to > store notification messages that cannot be delivered. > > Why notifications are not delivered has to be troubleshooted there. Have you > tried also w

Re: [SR-Users] Msilo not delivering message (status 408)

2014-07-17 Thread Peter Villeneuve
> for us. > > > > Regards, > > Hugh > > > > > > *From:* sr-users-boun...@lists.sip-router.org [mailto: > sr-users-boun...@lists.sip-router.org] *On Behalf Of *Peter Villeneuve > *Sent:* 17 July 2014 13:10 > *To:* Daniel-Constantin Mierla; Kamailio (S

Re: [SR-Users] Msilo not delivering message (status 408)

2014-07-17 Thread Waite, Hugh
lleneuve Sent: 17 July 2014 13:10 To: Daniel-Constantin Mierla; Kamailio (SER) - Users Mailing List Subject: Re: [SR-Users] Msilo not delivering message (status 408) I guess no one really knows why it isn't working either. The only option I have left seems to be to try and update to the 4.

Re: [SR-Users] Msilo not delivering message (status 408)

2014-07-16 Thread Peter Villeneuve
And here's the full routing block. I copied it from someone else on the list that was troubleshooting msilo a while back. Also, I can confirm the message never gets delivered because it remains in msilo DB and kamailio logs shows it trying and trying. ### Routing Logic # Main SIP r

Re: [SR-Users] Msilo not delivering message (status 408)

2014-07-16 Thread Peter Villeneuve
Thanks for your help Daniel. OK I ngrepped port 5060 and indeed the message tries to get delivered. However it never arrives at the client (1010 in this case). I have added localhost listeners for UDP and TCP, even though all clients register through TLS only (could this be the root of the problem

Re: [SR-Users] Msilo not delivering message (status 408)

2014-07-16 Thread Daniel-Constantin Mierla
Hello, can you watch the sip traffic on the network to see if the sip messages is sent out? You can use ngrep, like: ngrep -d any -qt -W byline "sip" port 5060 Cheers, Daniel On 14/07/14 19:56, Peter Villeneuve wrote: Hi, This is most likely a stupid mistake on my route config, but msilo

Re: [SR-Users] MSILO - dumped messages get duplicated

2014-07-06 Thread Peter Villeneuve
Sorry to hijack this thread, but I was trying to follow along (Kamailio 4.1.4) and everything seems OK except that when the offline user registers and msilo attempts to deliver his messages, I get this "no corresponding socket for af 2" error and the messages remain in the db. I have TLS enabled in

Re: [SR-Users] msilo possible bug

2014-07-02 Thread Kelvin Chua
looks like it was. testing further, thanks Kelvin Chua On Mon, Jun 30, 2014 at 5:30 PM, Daniel-Constantin Mierla wrote: > Hello, > > is the message still in database table? > > Have you looked at loopback network interface, because it might used to > send out the SIP MESSAGE request back to i

Re: [SR-Users] msilo possible bug

2014-06-30 Thread Daniel-Constantin Mierla
Hello, is the message still in database table? Have you looked at loopback network interface, because it might used to send out the SIP MESSAGE request back to itself in order to do lookup location. Cheers, Daniel On 27/06/14 12:34, Kelvin Chua wrote: Hi guys, i think i have stumbled on a

Re: [SR-Users] MSILO - dumped messages get duplicated

2014-06-18 Thread Marc M .
Hi Daniel! I applied now the source ip check and it is working! Thanks a lot! regards Marc From: proy...@hotmail.com To: sr-users@lists.sip-router.org Date: Tue, 3 Jun 2014 21:38:32 + Subject: [SR-Users] MSILO - dumped messages get duplicated Hi, I have a Kamailio 3.2 setup up an

Re: [SR-Users] MSILO - dumped messages get duplicated

2014-06-18 Thread Marc M .
Hi, Can anybody help me with these duplicate messages? I guess the first message should be removed from the db, since it got a reply 202. Despite that, it end up again in the db. Can you help me what I am doing wrong? Many thanks Marc From: proy...@hotmail.com To: sr-users@lists.sip-router.o

Re: [SR-Users] MSILO add on deliver event route still no joy

2014-06-13 Thread Roberto Fichera
On 06/11/2014 04:17 PM, Roberto Fichera wrote: Hi Daniel, do you have an idea why I'm getting the issue below? Cheers, Roberto Fichera. > On 06/10/2014 12:40 PM, Roberto Fichera wrote: > > Hi, > >> On 06/10/2014 12:22 PM, Daniel-Constantin Mierla wrote: >> >> Hi, >> >>> >>> On 10/06/14 10:37, R

Re: [SR-Users] MSILO add on deliver event route still no joy

2014-06-11 Thread Roberto Fichera
On 06/10/2014 12:40 PM, Roberto Fichera wrote: Hi, > On 06/10/2014 12:22 PM, Daniel-Constantin Mierla wrote: > > Hi, > >> >> On 10/06/14 10:37, Roberto Fichera wrote: >>> [..] the parse from error don't seem to be from parse_msg(). Can you print the uac buffer and send it over here

Re: [SR-Users] MSILO add on deliver event route still no joy

2014-06-10 Thread Roberto Fichera
On 06/10/2014 12:22 PM, Daniel-Constantin Mierla wrote: Hi, > > On 10/06/14 10:37, Roberto Fichera wrote: >> [..] >>> the parse from error don't seem to be from parse_msg(). >>> >>> Can you print the uac buffer and send it over here to see if it is >>> something wrong there? >> >> Jun 10 09:32:2

Re: [SR-Users] MSILO add on deliver event route still no joy

2014-06-10 Thread Daniel-Constantin Mierla
On 10/06/14 10:37, Roberto Fichera wrote: [..] the parse from error don't seem to be from parse_msg(). Can you print the uac buffer and send it over here to see if it is something wrong there? Jun 10 09:32:29 ip-10-227-0-26.localdomain /usr/sbin/kamailio[29663]: DEBUG: msilo [msilo.c:1403]

Re: [SR-Users] MSILO add on deliver event route still no joy

2014-06-10 Thread Roberto Fichera
On 06/10/2014 10:20 AM, Daniel-Constantin Mierla wrote: > Hello, Hi, > the parse from error don't seem to be from parse_msg(). > > Can you print the uac buffer and send it over here to see if it is something > wrong there? Jun 10 09:32:29 ip-10-227-0-26.localdomain /usr/sbin/kamailio[29663]: DE

Re: [SR-Users] MSILO add on deliver event route still no joy

2014-06-10 Thread Daniel-Constantin Mierla
Hello, the parse from error don't seem to be from parse_msg(). Can you print the uac buffer and send it over here to see if it is something wrong there? You get a crash as well, very likely due to the shm free at the end. Cheers, Daniel On 10/06/14 09:40, Roberto Fichera wrote: On 06/09/20

Re: [SR-Users] MSILO add on deliver event route still no joy

2014-06-10 Thread Roberto Fichera
On 06/09/2014 08:55 PM, Daniel-Constantin Mierla wrote: > Hello, Hi, > the $ru should be the same as $tu in this case. $ru will change when the > message loops back and there is a > lookup("location") in the config, but in the callback you don't get it. > > If you really want to get the content

Re: [SR-Users] MSILO add on deliver event route still no joy

2014-06-09 Thread Daniel-Constantin Mierla
Hello, the $ru should be the same as $tu in this case. $ru will change when the message loops back and there is a lookup("location") in the config, but in the callback you don't get it. If you really want to get the content of the sip MESSAGE request sent out, you can find it in the t->uac[0

Re: [SR-Users] MSILO add on deliver event route still no joy

2014-06-09 Thread Roberto Fichera
On 06/09/2014 06:16 PM, Daniel-Constantin Mierla wrote: > Hello, Hi, > ps->req is null, because there is no incoming request, but you should have > ps->rpl available if there is a 200ok. Which is my case! Only triggered once a 200ok has been received! Anyway it seems to work because the event

Re: [SR-Users] MSILO add on deliver event route still no joy

2014-06-09 Thread Daniel-Constantin Mierla
Hello, ps->req is null, because there is no incoming request, but you should have ps->rpl available if there is a 200ok. Cheers, Daniel On 09/06/14 18:12, Roberto Fichera wrote: On 06/09/2014 06:03 PM, Roberto Fichera wrote: Hi, On 06/09/2014 05:49 PM, Daniel-Constantin Mierla wrote: Hel

Re: [SR-Users] MSILO add on deliver event route still no joy

2014-06-09 Thread Roberto Fichera
On 06/09/2014 06:03 PM, Roberto Fichera wrote: Hi, > On 06/09/2014 05:49 PM, Daniel-Constantin Mierla wrote: >> Hello, > > Hi, > >> On 09/06/14 17:41, Roberto Fichera wrote: >>> [...] >>> your patch seems a bit to complex -- I didn't figure out why you store the message in pkg memory.

Re: [SR-Users] MSILO add on deliver event route still no joy

2014-06-09 Thread Roberto Fichera
On 06/09/2014 05:49 PM, Daniel-Constantin Mierla wrote: > Hello, Hi, > On 09/06/14 17:41, Roberto Fichera wrote: >> [...] >> >>> your patch seems a bit to complex -- I didn't figure out why you store the >>> message in pkg memory. >> >> Ok! So I will need to shm_malloc() the memory in such case,

Re: [SR-Users] MSILO add on deliver event route still no joy

2014-06-09 Thread Daniel-Constantin Mierla
Hello, On 09/06/14 17:41, Roberto Fichera wrote: [...] your patch seems a bit to complex -- I didn't figure out why you store the message in pkg memory. Ok! So I will need to shm_malloc() the memory in such case, right? I don't get why you need to do that at all. If you need to access from,

Re: [SR-Users] MSILO add on deliver event route still no joy

2014-06-09 Thread Roberto Fichera
On 06/09/2014 05:16 PM, Daniel-Constantin Mierla wrote: > Hello, Hi, > your patch seems a bit to complex -- I didn't figure out why you store the > message in pkg memory. Ok! So I will need to shm_malloc() the memory in such case, right? > Also, you change to use Call-ID from database, any rea

Re: [SR-Users] MSILO - dumped messages get duplicated

2014-06-09 Thread Daniel-Constantin Mierla
Hello, messages that were sent by msilo are coming from your IP, you can skip setting the failure route for them: if(src_ip != myself) t_on_failure("FAIL_MESSAGE"); Cheers, Daniel On 03/06/14 23:38, Marc M. wrote: Hi, I have a Kamailio 3.2 setup up and running. Recently I configured msilo

Re: [SR-Users] MSILO add on deliver event route still no joy

2014-06-09 Thread Daniel-Constantin Mierla
Hello, your patch seems a bit to complex -- I didn't figure out why you store the message in pkg memory. Also, you change to use Call-ID from database, any reason for that? MESSAGE request doesn't create a dialog and reusing call-id later can result in side effects if the CSeq overlaps or is

Re: [SR-Users] msilo config

2014-03-05 Thread Daniel-Constantin Mierla
t_on_failure("1") works fine, I just gave it a try. Check the curly braces to be sure the route block doesn't end before th t_on_failure. Cheers, Daniel On 05/03/14 20:49, Peter Villeneuve wrote: Sorry to bug you, but I never got any feedback on this, and I can't get msilo working. Any hin

Re: [SR-Users] msilo config

2014-03-05 Thread Peter Villeneuve
Sorry to bug you, but I never got any feedback on this, and I can't get msilo working. Any hints/thoughts? Cheers On Tue, Feb 18, 2014 at 1:02 PM, Peter Villeneuve wrote: > Hi Daniel, > > Any thoughts on why t_on_failure("1") gives me the syntax error? > > Thanks > > > On Mon, Feb 17, 2014 at

Re: [SR-Users] msilo config

2014-02-18 Thread Peter Villeneuve
Hi Daniel, Any thoughts on why t_on_failure("1") gives me the syntax error? Thanks On Mon, Feb 17, 2014 at 4:31 PM, Peter Villeneuve wrote: > Hi Daniel, > > Thanks for replying. > > This is how I added msilo to the kamailio default config. It still doesn't > work for me (ie. offline messages a

Re: [SR-Users] msilo config

2014-02-17 Thread Peter Villeneuve
Hi Daniel, Thanks for replying. This is how I added msilo to the kamailio default config. It still doesn't work for me (ie. offline messages are not delivered - but that's likely me messing up the routing), but at least Kamailio starts ok. Further below I have pasted the config with the t_on_fail

Re: [SR-Users] msilo config

2014-02-16 Thread Daniel-Constantin Mierla
Hello, t_on_failure("1") should work fine with latest version, can you give the log messages with the errors? Cheers, Daniel On 16/02/14 20:41, Peter Villeneuve wrote: Hi, Can someone share a working msilo config for 4.1.1? I've tried following older tutorials out there but they no longer

Re: [SR-Users] Msilo message body type

2014-02-16 Thread Daniel-Constantin Mierla
Hello, msilo saves the body of one SIP MESSAGE request, image is not set usually about it. If it is and in one message then it should work. Cheers, Daniel On 07/02/14 13:56, sipa...@in.gr wrote: Dear All, Could you please provide any possible info regarding this issue. Best regards. -

Re: [SR-Users] Msilo message body type

2014-02-07 Thread sipatse
Dear All, Could you please provide any possible info regarding this issue. Best regards.   - Αρχικό μήνυμα - Από: sipa...@in.gr Ημ/νία: Τετάρτη, 05 Φεβρουαρίου 2014 12:11 μμ Πρός: sr-users@lists.sip-router.org Θέμα: [SR-Users] Msilo message body type Dear All, We would li

Re: [SR-Users] MSILO: remove "Offline message" prefix

2013-11-12 Thread Daniel-Constantin Mierla
Hello, I think add_date parameter controls whether to add or not the prefix message with date: - http://kamailio.org/docs/modules/stable/modules/msilo.html#idp16802896 Cheers, Daniel On 11/12/13 12:49 PM, Marc M. wrote: Hi! I have an up and running msilo config with kamailio 4.0.4. However,

Re: [SR-Users] Msilo: remove messages from db immediately after successful delivery

2013-11-05 Thread Daniel-Constantin Mierla
Hello, On 11/3/13 10:36 AM, Marc M. wrote: Hi! I have a running msilo config. However, messages remain in the db after after successful delivery, and get removed at the next clean period. Unfortunatelly, this makes support cases dificult, as we do not see from the db which messages are delive

Re: [SR-Users] msilo - use case: registered but not reachable

2013-11-01 Thread Daniel-Constantin Mierla
Hello, you have to set a failure route for MESSAGE request before relaying it. In failure route, you can call m_store(). If you look at current default config file, it has something similar for INVITE, to send it to voicemail if it is not answered. Cheers, Daniel On 11/1/13 2:05 PM, Marc M

Re: [SR-Users] Msilo dumping offline messages

2013-06-07 Thread Daniel-Constantin Mierla
rs Mailing List : Re: [SR-Users] Msilo dumping offline messages Hello, $ru is R-URI, the SIP uri in the first line of a request. Not providing a parameter to mdump() should be fine. If you don't get the messages sent out, then probably you don't allow local loops without authen

Re: [SR-Users] Msilo dumping offline messages

2013-06-07 Thread sipatse
o (SER) - Users Mailing List Θέμα: Re: [SR-Users] Msilo dumping offline messages Hello, $ru is R-URI, the SIP uri in the first line of a request. Not providing a parameter to mdump() should be fine. If you don't

Re: [SR-Users] Msilo dumping offline messages

2013-06-05 Thread Daniel-Constantin Mierla
Hello, $ru is R-URI, the SIP uri in the first line of a request. Not providing a parameter to mdump() should be fine. If you don't get the messages sent out, then probably you don't allow local loops without authentication. Look at the sip traffic with: ngrep -d any -qt -W byline port 5060

Re: [SR-Users] Msilo configuration

2013-05-20 Thread Stoyan Mihaylov
This works for me fine: loadmodule "msilo.so" modparam("msilo","db_url",DBURL) modparam("msilo","from_address","sip:regist...@sip.stribogkonsult.com") modparam("msilo","contact_hdr","Contact: regist...@sip.stribogkonsult.com:5060;msilo=yes\r\n") modparam("msilo","content_type_hdr","Content-Type:

Re: [SR-Users] Msilo configuration‏

2013-05-20 Thread sipatse
Dear All, Is there any update regarding the aforementioned issue? Best regards. Dear All, We would like to store SIP text Messages when the destination Subscriber is Offline. We have insert into kamailio cfg file the configuration lines below. Unfortunately storing message

Re: [SR-Users] msilo patch

2013-02-07 Thread Daniel-Constantin Mierla
For sake of archiving, the issue was solved in a different way, based on a discussion on devel list. On 1/29/13 5:01 PM, Stoyan Mihaylov wrote: When I used, last versions from git, I got error and crash of kamailo using m_dump. I got latest version from git, and I made one patch: diff --git a

Re: [SR-Users] MSILO Configuration

2012-10-19 Thread Daniel-Constantin Mierla
Hello, you would get better answer if you paste here the line 817 instead of the whole config - it is not convenient always to save the file and open it locally. Cheers, DAniel On 10/19/12 2:16 AM, Ed Brady wrote: Hi, I am having trouble configuring MSILO. I copied the example config into

Re: [SR-Users] msilo is failing to in db connection...

2012-03-06 Thread Krishna Kurapati
Thanks for the advice. Krish On Tue, Mar 6, 2012 at 10:35 AM, Henning Westerholt wrote: > On Tuesday 06 March 2012, Krishna Kurapati wrote: > > It finally worked. I reconstructed the config file step by step with the > > same modparam() and it worked. Still not sure what really was wrong > > bef

Re: [SR-Users] msilo is failing to in db connection...

2012-03-06 Thread Henning Westerholt
On Tuesday 06 March 2012, Krishna Kurapati wrote: > It finally worked. I reconstructed the config file step by step with the > same modparam() and it worked. Still not sure what really was wrong > before. > > The other day, I tried to create routes for sending asynchronous messages > to web servic

Re: [SR-Users] msilo is failing to in db connection...

2012-03-06 Thread Krishna Kurapati
Hi, It finally worked. I reconstructed the config file step by step with the same modparam() and it worked. Still not sure what really was wrong before. The other day, I tried to create routes for sending asynchronous messages to web service and the entire system stopped working. The routes becam

  1   2   >