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

2019-07-23 Thread Anuran Barman
Where should I put this line? ul_register_ulcb("3", "usrloc:contact-expired"); Am I supposed to to put it in request_route{} block ?? If i put it there kamailio fails to start up giving error ERROR: [cfg.y:3235]: yyparse(): cfg. parser: failed to find command ul_register_ulcb (params 2) On

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

2019-07-23 Thread Anuran Barman
This method looks promising. In the doc its saying last one parameter is the some params which you wanna pass to the callback, how can I pass the expired username to the callback? On Tue, Jul 23, 2019 at 10:04 PM David Villasmil < david.villasmil.w...@gmail.com> wrote: > You can register a

Re: [SR-Users] [EXT] Re: P-CSCF and I-CSCF ports

2019-07-23 Thread Woscek, Martin W.
DNS is fine. I flip the NAPTR records when I flip back and forth the 4060/5060 btwn the P and I. Martin Woscek The MITRE Corp. mwos...@mitre.org Phone: 703-983-2650 FAX: 703-983-7142 From: sr-users On Behalf Of Ali Shirvani Sent: Tuesday, July 23, 2019 1:40 PM To:

Re: [SR-Users] P-CSCF and I-CSCF ports

2019-07-23 Thread Ali Shirvani
Hi Martin, As Amar pointed out it may some DNS configuration. You can check the DNS entry of I-CSCF with: $ dig -t srv Regards, Ali On Tue, Jul 23, 2019 at 7:15 PM Amar Tinawi wrote: > Hello Martin > > I think you are missing the DNS part. > > > On Tue, Jul 23, 2019, 5:30 PM Woscek,

Re: [SR-Users] Debugging kamailio module

2019-07-23 Thread Ali Shirvani
Hello Henning, Thanks for your help. I test both -D and -DD option when running kamailio in gdb. When running kamailio with -D it doesn't accept any request on TCP, and when I run with -DD option gdb doesn't stop on the break point. In summary: $ sudo gdb kamailio (gdb) b isc_from_as (gdb) r -f

Re: [SR-Users] Debugging kamailio module

2019-07-23 Thread Henning Westerholt
(adding sr-dev to CC) Hello Ali, have a look to the kamailio binary parameter and the children parameter in configuration. You can actually start kamailio with (almost) no forking. You will get a lot of debugging information if you enable the kamailio debugging in the cfg. If you want to

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

2019-07-23 Thread David Villasmil
You can register a callback for any events on the usrloc module, i.e.: ul_register_ulcb("3", "usrloc:contact-expired"); then create a route like: event_route[usrloc:contact-expired] { ... do your thing here ... } I've never had the need to use it, but should work for you Regards, David

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

2019-07-23 Thread David Villasmil
you should be able to use usrloc's function: 1.15. ul_register_ulcb(type ,callback, param) The function register with USRLOC a callback function to be called when some event occures inside USRLOC. Meaning of the parameters is as follows: - *int types* - type of event for which the

Re: [SR-Users] P-CSCF and I-CSCF ports

2019-07-23 Thread Amar Tinawi
Hello Martin I think you are missing the DNS part. On Tue, Jul 23, 2019, 5:30 PM Woscek, Martin W. wrote: > Hi IMS users, > > > > I can configure the P-CSCF to use 5060, and the I-CSCF to use 4060 and > both come up listening to their respective ports when each module is > started. > > But

[SR-Users] P-CSCF and I-CSCF ports

2019-07-23 Thread Woscek, Martin W.
Hi IMS users, I can configure the P-CSCF to use 5060, and the I-CSCF to use 4060 and both come up listening to their respective ports when each module is started. But the P-CSCF is hardcoded to use 5060 for the I-CSCF. Before I make code changes to the executable: Is there some additional

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

2019-07-23 Thread Anuran Barman
yeah it is removing. that sip phone had expiration time more so it was not getting deleted. later I found out. Thanks On Tue, 23 Jul 2019 at 7:46 PM, David Villasmil < david.villasmil.w...@gmail.com> wrote: > The module should remove the user's contact when the register expires. > > Regards, > >

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

2019-07-23 Thread David Villasmil
The module should remove the user's contact when the register expires. Regards, David Villasmil email: david.villasmil.w...@gmail.com phone: +34669448337 On Tue, Jul 23, 2019 at 10:07 AM Anuran Barman wrote: > db_mode is already set to 2. There is one parameter I saw which is saying > about

Re: [SR-Users] unsubscribe

2019-07-23 Thread Daniel-Constantin Mierla
Hello, to unsubscribe, use the form at the bottom of the web page for the mailing list: * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users Cheers, Daniel On Tue, Jul 23, 2019 at 2:40 AM Carlos Cruz wrote: > Unsubscribe > > > -- > [image: AVG logo]

[SR-Users] Debugging kamailio module

2019-07-23 Thread Ali Shirvani
Hi all, I want to trace function calls in a kamailio module, e.g. ims_isc module. I installed kamailio-dbg package and started the kamailio with gdb: `gdb kamailio` I also set break point on target function, but it seems gdb doesn't stop on that break point. How should I start gdb and set break

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

2019-07-23 Thread Anuran Barman
db_mode is already set to 2. There is one parameter I saw which is saying about cleaning expired db records so I set it to Enabled. But it did not change anything. modparam("usrloc", "db_timer_clean", 1) On Tue, Jul 23, 2019 at 1:34 PM Henning Westerholt wrote: > Hello, > > have a look to the

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

2019-07-23 Thread Henning Westerholt
Hello, have a look to the db_mode parameter in the usrloc module. You can operate the module in different database modes. Cheers, Henning Am 23.07.19 um 09:48 schrieb Anuran Barman: So I tried the the Expires header for UNREGISTER and it is working fine. Thanks for that. But the problem is

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

2019-07-23 Thread Anuran Barman
So I tried the the Expires header for UNREGISTER and it is working fine. Thanks for that. But the problem is that SIP Phone does not send UNREGISTER event. It only sends REGISTER method periodically. So in my Server it will be always online. So to overcome that I will be running e cron job which