Re: [SR-Users] unsubscribe

2019-07-22 Thread Pavel Eremin
Don't worry, he will back. He just need a time. :) вт, 23 июл. 2019 г. в 05:20, Alex Balashov : > No no, stay subscribed! It’s good content. > > — > Sent from mobile, with due apologies for brevity and errors. > > On Jul 22, 2019, at 6:33 PM, Carlos Cruz wrote: > > > > >

[SR-Users] unsubscribe

2019-07-22 Thread Carlos Cruz
Unsubscribe --- This email has been checked for viruses by AVG. https://www.avg.com ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

Re: [SR-Users] unsubscribe

2019-07-22 Thread Alex Balashov
No no, stay subscribed! It’s good content. — Sent from mobile, with due apologies for brevity and errors. > On Jul 22, 2019, at 6:33 PM, Carlos Cruz wrote: > > > > > > This email has been checked for viruses by AVG antivirus software. > www.av

[SR-Users] unsubscribe

2019-07-22 Thread Carlos Cruz
--- This email has been checked for viruses by AVG. https://www.avg.com ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

Re: [SR-Users] How to hook to Register And Unregister event in Kamailio

2019-07-22 Thread Anuran Barman
Thanks, I will try these out and get back to you. On Mon, Jul 22, 2019 at 11:18 PM Henning Westerholt wrote: > Hello, > > you can get the result of the register module "save()" function call from > its return value: > > > https://www.kamailio.org/docs/modules/5.2.x/modules/registrar.html#registr

Re: [SR-Users] How to hook to Register And Unregister event in Kamailio

2019-07-22 Thread Henning Westerholt
Hello, you can get the result of the register module "save()" function call from its return value: https://www.kamailio.org/docs/modules/5.2.x/modules/registrar.html#registrar.f.save and then use a similar logic like you quoted in the initial question. You can of course also just query the usr

Re: [SR-Users] How to hook to Register And Unregister event in Kamailio

2019-07-22 Thread David Villasmil
For REGISTERs On this line https://github.com/kamailio/kamailio/blob/master/etc/kamailio.cfg#L762 The register has already been authenticated sucessfully, so you can put it there. For UN-REGISTERs just check (at the same point, since a user _must_ authenticate to un-register) the expire header, so

Re: [SR-Users] How to hook to Register And Unregister event in Kamailio

2019-07-22 Thread Anuran Barman
that will be helpful. Thanks On Mon, 22 Jul 2019 at 11:06 PM, David Villasmil < david.villasmil.w...@gmail.com> wrote: > You do right after the authentication challenge. I will send a snipped (on > my phone) > > On Mon, 22 Jul 2019 at 13:38, Anuran Barman > wrote: > >> evapi seems to be complica

Re: [SR-Users] How to hook to Register And Unregister event in Kamailio

2019-07-22 Thread David Villasmil
You do right after the authentication challenge. I will send a snipped (on my phone) On Mon, 22 Jul 2019 at 13:38, Anuran Barman wrote: > evapi seems to be complicated and more than necessary for I want to do. > Can't I get the successful register and unregister event from config file > just lik

Re: [SR-Users] Two GWs with the same IP

2019-07-22 Thread Igor Olhovskiy
Can you show a diagram? Cause I'm not sure it's Kamailio and not your 3rd party software who is acting wrong On Jul 22 2019, at 2:49 pm, Duarte Rocha wrote: > Greetings, > > I'm building some testing procedures for my Kamailio proxy. In order to do > that i have a SipTester (Acting as Calling N

Re: [SR-Users] How to hook to Register And Unregister event in Kamailio

2019-07-22 Thread Anuran Barman
evapi seems to be complicated and more than necessary for I want to do. Can't I get the successful register and unregister event from config file just like got INVITE event without using it? On Mon, Jul 22, 2019 at 6:02 PM Anuran Barman wrote: > # IP authorization and user authentication > route

Re: [SR-Users] How to hook to Register And Unregister event in Kamailio

2019-07-22 Thread Anuran Barman
# IP authorization and user authentication route[AUTH] { #!ifdef WITH_AUTH #!ifdef WITH_IPAUTH if((!is_method("REGISTER")) && allow_source_address()) { # source IP allowed return; } #!endif if (is_method("REGISTER") || from_uri==myself) { xlog("LOG_LOCAL3","L_INFO","authentication request from do

Re: [SR-Users] How to hook to Register And Unregister event in Kamailio

2019-07-22 Thread E. Schmidbauer
you should be doing some sort of authentication and then saving the user's registration data. add a route to fire an event when the registration data is saved. or even better IMO would be to use an event queue like mqueue and rtimer to push events into a queue and process them with rtimer and evapi

[SR-Users] Two GWs with the same IP

2019-07-22 Thread Duarte Rocha
Greetings, I'm building some testing procedures for my Kamailio proxy. In order to do that i have a SipTester (Acting as Calling Number) from where i want to originate calls to Kamailio. After Kamailio processes the call, i want it to route it to SipTester again so it can act as Called Number. Th

Re: [SR-Users] How to hook to Register And Unregister event in Kamailio

2019-07-22 Thread Anuran Barman
But it does not tell me if thats a successful register. I can make the user online but may be the request fails as credentials are wrong. So the REGISTER is not successful. How can I handle that? On Mon, 22 Jul 2019 at 5:14 PM, David Villasmil < david.villasmil.w...@gmail.com> wrote: > Just as yo

Re: [SR-Users] How to hook to Register And Unregister event in Kamailio

2019-07-22 Thread David Villasmil
Just as you do is_method(“INVITE”) you can do is_method(“REGISTER”) after that you can check the EXPIRE, if it is zero then it is an UN-REGISTER. On Mon, 22 Jul 2019 at 12:35, E. Schmidbauer wrote: > here is a good example of how you can use evapi in kamailio: > http://kb.asipto.com/kamailio:k4

Re: [SR-Users] How to hook to Register And Unregister event in Kamailio

2019-07-22 Thread E. Schmidbauer
here is a good example of how you can use evapi in kamailio: http://kb.asipto.com/kamailio:k43-async-sip-routing-nodejs#evapi_processing here is a good example of how you can implement it with a go app: https://github.com/cgrates/kamevapi On Mon, Jul 22, 2019 at 7:18 AM Anuran Barman wrote:

Re: [SR-Users] How to hook to Register And Unregister event in Kamailio

2019-07-22 Thread Anuran Barman
It seems like this module is useful for making the connection/message flow. But that I need when I have the events of Register and unregister. How to get the events from this module? On Mon, Jul 22, 2019 at 3:51 PM Anuran Barman wrote: > Though I have already a NodeJS server running, I will try

Re: [SR-Users] How to hook to Register And Unregister event in Kamailio

2019-07-22 Thread Anuran Barman
Though I have already a NodeJS server running, I will try the evapi module. If there are some tutorial/Wiki on how to do this please share that with me. That will be great help. On Mon, Jul 22, 2019 at 3:39 PM E. Schmidbauer wrote: > I would recommend using `evapi` for something like this > You

Re: [SR-Users] How to hook to Register And Unregister event in Kamailio

2019-07-22 Thread E. Schmidbauer
I would recommend using `evapi` for something like this You could build a small go app that connects via evapi and send/receive events to/from kamailio. On Mon, Jul 22, 2019 at 3:07 AM Anuran Barman wrote: > Hi, > I am integrating Kamailio into my application. I want to hook to the > successfu

[SR-Users] How to hook to Register And Unregister event in Kamailio

2019-07-22 Thread Anuran Barman
Hi, I am integrating Kamailio into my application. I want to hook to the successful REGISTER and unregister event into Kamailio into my application. For now, I am able to hook into INVITE event and can hit my server to send a email to the callee user that user X is calling you. The way I am doing