i used the cnxcc module its successfully terminated the call. but if you want i can help you.

On Thu, Oct 27, 2016 at 12:58 AM, <sr-users-request@lists.sip-router.org> wrote:
Send sr-users mailing list submissions to
        sr-users@lists.sip-router.org

To subscribe or unsubscribe via the World Wide Web, visit
        http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
or, via email, send a message with subject or body 'help' to
        sr-users-request@lists.sip-router.org

You can reach the person managing the list at
        sr-users-owner@lists.sip-router.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of sr-users digest..."


Today's Topics:

   1. Re: cnxcc doesn't terminate calls (Igor Potjevlesch)
   2. logfile is empty (Hermann Norpois)
   3. Re: Out of memory in UB 210: OOM killed process 12261
      (kamailio) score 0 vm:1614768kB, rss:280200kB, swap:131408kB
      (Jurijs Ivolga)


----------------------------------------------------------------------

Message: 1
Date: Wed, 26 Oct 2016 12:48:29 +0200
From: "Igor Potjevlesch" <igor.potjevlesch@gmail.com>
To: "'Kamailio \(SER\) - Users Mailing List'"
        <sr-users@lists.sip-router.org>
Subject: Re: [SR-Users] cnxcc doesn't terminate calls
Message-ID: <009c01d22f76$7d0c9a30$7725ce90$@gmail.com>
Content-Type: text/plain; charset="utf-8"

Hi,



Yep, the dialog is created. I put the dialog into DB and see it.

Nothing appears in the logs when the timer is reached.



I succeed to do the same behaviour with dialog module only and dlg_set_timeout. Looks to do why I want.



I'm a bit frustrating about cnxcc because I really don't understand why nothing happen after max_time, but, anyway, it works with dialog only.



Regards,



Igor.



De : sr-users [mailto:sr-users-bounces@lists.sip-router.org] De la part de Arsen
Envoyé : mercredi 26 octobre 2016 11:15
À : Kamailio (SER) - Users Mailing List <sr-users@lists.sip-router.org>
Objet : Re: [SR-Users] cnxcc doesn't terminate calls



Hi Igor,



Make sure that you create a dialog for this call and  $dlg_var(key) is available (This pseudo-variable will be available only for subsequential requests after doing loose_route().)



Also check kamailio logs maybe you try to terminate call for wrong customer id.



On Wed, Oct 26, 2016 at 10:52 AM, Igor Potjevlesch <igor.potjevlesch@gmail.com <mailto:igor.potjevlesch@gmail.com> > wrote:

Hi,



I'm testing cnxcc module in order to make a simple call duration limitation.

My understanding is to use the function like this :



$dlg_var(customer_id)           = "customer-" + $fU;

            $var(max_time)                                  = 5;



            if (!cnxcc_set_max_time("$dlg_var(customer_id)", "$var(max_time)"))



Unfortunately, after 5 seconds, nothing happen. I don't even see an error from dialog module.



Anyone has a better understanding of the way the module runs? Thank you!



Regards,



Igor.


_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org <mailto:sr-users@lists.sip-router.org>
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users







--

Regards,
Arsen.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20161026/7bb4b10a/attachment-0001.html>

------------------------------

Message: 2
Date: Wed, 26 Oct 2016 21:27:04 +0200
From: Hermann Norpois <hnorpois@gmail.com>
To: sr-users <sr-users@lists.sip-router.org>
Subject: [SR-Users] logfile is empty
Message-ID:
        <CAKyZeBvPaoyerMeMfWB6Z6La+AL8eFJ++LSjJZY7JOXQD3Zxdw@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

 my logfile  /var/log/kamailio/kamailio.log is empty.


1)
/etc/rsyslog.d/kamailio.cfg exists with the entry:
log_facility=LOG_LOCAL0

2)
/etc/rsyslog.con has the entry:
#
# don't log messages with LOG_LOCAL0 in /var/log/syslog anymore
*.*;auth,authpriv.none,local0.none              -/var/log/syslog

#
# log messages with LOG_LOCAL0 in /var/log/kamailio.log
local0.*                        -/var/log/kamailio.log
#

 local0.*                        -/var/log/kamailio/kamailio/kamailio.log

Alternatively I edited /etc/rsyslog.d/kamailio.conf that should be used by
rsylog.conf

3)
/etc/rsyslog.d/kamailio.conf exists with the entry:
local0.*                        -/var/log/kamailio/kamailio.log


I am working with ubuntu on an amazon instance.


Why is the logfile empty?

Thanks Herman
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20161026/7eb2f323/attachment-0001.html>

------------------------------

Message: 3
Date: Wed, 26 Oct 2016 14:12:16 +0300
From: Jurijs Ivolga <jurijs.ivolga@gmail.com>
To: Daniel-Constantin Mierla <miconda@gmail.com>
Cc: "Kamailio \(SER\) - Users Mailing List"
        <sr-users@lists.sip-router.org>
Subject: Re: [SR-Users] Out of memory in UB 210: OOM killed process
        12261 (kamailio) score 0 vm:1614768kB, rss:280200kB, swap:131408kB
Message-ID:
        <CAOrA2UZvXGU7XYhgmHG0=sTJ=BuUY7C-wAZDmqucgJpHj3B7bg@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Hi Daniel,

I ran again with valgrind and still there is some issues.

It will be really nice if you can take a look. :)

With kind regards,

Jurijs

On Fri, Oct 21, 2016 at 12:36 PM, Daniel-Constantin Mierla <
miconda@gmail.com> wrote:

> Hello,
>
>
> On 21/10/16 11:22, Jurijs Ivolga wrote:
> > Hi Daniel,
> >
> > After 8 days there is still small memory leak, 200MB of Ram wasn't
> > freed during this 8 days, please check diagram below.
> >
> > 1) Is this something usual?
> > 2) Memory leak seems very small, maybe I should never worry about
> > this? What you think?
> >
> 200MB in 8 days it's still relevant and a leak. Maybe you can run again
> with valgrind...
>
> Unless it is unclaimed memory by kernel:
>
>   -
> https://www.kamailio.org/wiki/tutorials/troubleshooting/
> memory#os_memory_reports
>
> Cheers,
> Daniel
>
> --
> Daniel-Constantin Mierla
> http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
> Kamailio Advanced Training, Berlin, Oct 24-26, 2016 -
> http://www.asipto.com
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20161026/f7bad45e/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: memory.zip
Type: application/zip
Size: 952715 bytes
Desc: not available
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20161026/f7bad45e/attachment.zip>

------------------------------

Subject: Digest Footer

_______________________________________________
sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


------------------------------

End of sr-users Digest, Vol 137, Issue 25
*****************************************



--
With Regards,
Surendra Tiwari
+91-9409647941