[SR-Users] Take call counts from kamailio

Logeshwaran G logeshwarangs at gmail.com
Mon Aug 21 10:39:01 CEST 2017


Thanks, I have added like this

if(is_method("INVITE")){
                set_dlg_profile("outbound_call");
                set_dlg_profile("caller","$fu");
        }

I need to add something to this. Correct me if I am wrong
Because while executing it is saying the error as:
0(10636) CRITICAL: dialog [dialog.c:365]: fixup_profile(): profile
<outbound_call> not defined
 0(10636) ERROR: <core> [core/route.c:1154]: fix_actions(): fixing failed
(code=-6) at cfg:/usr/local/etc/kamailio/config/kamailio_final.cfg:559
 0(10636) ERROR: <core> [core/route.c:1154]: fix_actions(): fixing failed
(code=-6) at cfg:/usr/local/etc/kamailio/config/kamailio_final.cfg:564



Thanks & Kind Regards,
Logeshwaran G

On Mon, Aug 21, 2017 at 1:57 PM, Alex Balashov <abalashov at evaristesys.com>
wrote:

> On Mon, Aug 21, 2017 at 01:55:26PM +0530, Logeshwaran G wrote:
>
> > Yes Thanks, Also I have checked that command as well :
> >
> >  kamcmd dlg.profile_get_size outbound
> >
> > I am getting the below output as 0 calls.
> > [root at zeodialer kamailio]# kamcmd dlg.profile_get_size outbound_calls
> > error: 404 - Profile not found: outbound_calls
> >
> > [root at zeodialer kamailio]# kamcmd dlg.profile_get_size outbound
> > 0
> >
> > But There is 1 outgoing call is placed and continued.
>
> That's because it doesn't know what an "outbound" call is.
>
> You need to:
>
> 1) Define the profile:
>
> https://kamailio.org/docs/modules/5.0.x/modules/dialog.
> html#dialog.p.profiles_no_value
>
> 2) Add the call to the profile:
>
> https://kamailio.org/docs/modules/5.0.x/modules/dialog.
> html#dialog.f.set_dlg_profile
>
> -- Alex
>
> --
> Alex Balashov | Principal | Evariste Systems LLC
>
> Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free)
> Web: http://www.evaristesys.com/, http://www.csrpswitch.com/
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20170821/ed9321b4/attachment.html>


More information about the sr-users mailing list