[SR-Users] CNXCC Max Call control on Version 4.1.4

2015-02-20 Thread Jonathan Hunter
Hi Guys,
Using kamailio Version 4.1.4 on Centos 6.5 I have an issue when using cnxcc to 
control max call duration for all outbound calls.
In my configuration I set the following;
# -Dialog params -modparam(dialog, dlg_flag, 4)modparam(cnxcc, 
dlg_flag, 4)modparam(cnxcc, credit_check_period, 1)
Then I look to set some parameters for outbound calls;
###Set Max Call Duration for MT Call  #
$var(customer) = MTPublic;$var(max_time) = 
$var(MTMaxCallDuration);xlog(L_INFO,For setting Call Duration we have 
ProfileID=$var(profileIDMD) and we have  
var(max_time)=$var(max_time)\n);cnxcc_set_max_time($var(customer), 
$var(max_time));xlog(L_INFO,Max Call duration set to $var(max_time) 
seconds\n);


Feb 20 14:20:26 voip01 /usr/sbin/kamailio[1950]: INFO: script: Max Call 
duration set to 600 secondsFeb 20 14:20:35 voip01 /usr/sbin/kamailio[1960]: 
ALERT: cnxcc [cnxcc_check.c:157]: check_calls_by_time(): 
[74d7c02e-33ae-1233-edba-005056a48754] call has exhausted its time. Breaking 
the loopFeb 20 14:20:35 voip01 /usr/sbin/kamailio[1960]: INFO: script: 
[74d7c02e-33ae-1233-edba-005056a48754]: call killed as Max Call Duration 
ExpiredFeb 20 14:20:35 voip01 /usr/sbin/kamailio[1960]: ERROR: cnxcc 
[cnxcc_mod.c:1068]: terminate_call(): Error executing dlg_end_dlg command. 
Return code was [404]


Now as you can see, as soon as the Called party answers, the cnxcc module drops 
the call stating that Max Call duration has expired, however it was set to 600 
seconds.
If I restart kamailio this clears the issue and it works fine allowing calls to 
run up to 600 seconds.
Any help/comment on this would be great, is it just configuration related?
Thanks
Jon
  ___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] CNXCC Max Call control on Version 4.1.4

2015-02-20 Thread Carlos Ruiz Díaz
Hi Jonathan,

Cnxcc was heavily updated a couple of months ago, so I suggest you update
your copy and let me know if the update fixes this bug.

Regards,
Carlos
On Feb 20, 2015 8:45 AM, Jonathan Hunter hunter...@hotmail.com wrote:

 Hi Guys,

 Using kamailio Version 4.1.4 on Centos 6.5 I have an issue when using
 cnxcc to control max call duration for all outbound calls.

 In my configuration I set the following;

 # -Dialog params -
 modparam(dialog, dlg_flag, 4)
 modparam(cnxcc, dlg_flag, 4)
 modparam(cnxcc, credit_check_period, 1)

 Then I look to set some parameters for outbound calls;

 ###Set Max Call Duration for MT Call  #

 $var(customer) = MTPublic;
 $var(max_time) = $var(MTMaxCallDuration);
 xlog(L_INFO,For setting Call Duration we have
 ProfileID=$var(profileIDMD) and we have  var(max_time)=$var(max_time)\n);
 cnxcc_set_max_time($var(customer), $var(max_time));
 xlog(L_INFO,Max Call duration set to $var(max_time) seconds\n);



 Feb 20 14:20:26 voip01 /usr/sbin/kamailio[1950]: INFO: script: Max Call
 duration set to 600 seconds
 Feb 20 14:20:35 voip01 /usr/sbin/kamailio[1960]: ALERT: cnxcc
 [cnxcc_check.c:157]: check_calls_by_time():
 [74d7c02e-33ae-1233-edba-005056a48754] call has exhausted its time.
 Breaking the loop
 Feb 20 14:20:35 voip01 /usr/sbin/kamailio[1960]: INFO: script:
 [74d7c02e-33ae-1233-edba-005056a48754]: call killed as Max Call Duration
 Expired
 Feb 20 14:20:35 voip01 /usr/sbin/kamailio[1960]: ERROR: cnxcc
 [cnxcc_mod.c:1068]: terminate_call(): Error executing dlg_end_dlg command.
 Return code was [404]



 Now as you can see, as soon as the Called party answers, the cnxcc module
 drops the call stating that Max Call duration has expired, however it was
 set to 600 seconds.

 If I restart kamailio this clears the issue and it works fine allowing
 calls to run up to 600 seconds.

 Any help/comment on this would be great, is it just configuration related?

 Thanks

 Jon


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


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


Re: [SR-Users] CNXCC Max Call control on Version 4.1.4

2015-02-20 Thread Jonathan Hunter
Hi Carlos!
Thanks for the response!
Whats the latest version of Cnxcc for my reference please?  And presume it runs 
fine with kamailio 4.1.4 ?
thanks
Jon

Date: Fri, 20 Feb 2015 08:57:15 -0600
From: carlos.ruizd...@gmail.com
To: sr-users@lists.sip-router.org
Subject: Re: [SR-Users] CNXCC Max Call control on Version 4.1.4

Hi Jonathan,
Cnxcc was heavily updated a couple of months ago, so I suggest you update your 
copy and let me know if the update fixes this bug. 
Regards, 

Carlos 
On Feb 20, 2015 8:45 AM, Jonathan Hunter hunter...@hotmail.com wrote:



Hi Guys,
Using kamailio Version 4.1.4 on Centos 6.5 I have an issue when using cnxcc to 
control max call duration for all outbound calls.
In my configuration I set the following;
# -Dialog params -modparam(dialog, dlg_flag, 4)modparam(cnxcc, 
dlg_flag, 4)modparam(cnxcc, credit_check_period, 1)
Then I look to set some parameters for outbound calls;
###Set Max Call Duration for MT Call  #
$var(customer) = MTPublic;$var(max_time) = 
$var(MTMaxCallDuration);xlog(L_INFO,For setting Call Duration we have 
ProfileID=$var(profileIDMD) and we have  
var(max_time)=$var(max_time)\n);cnxcc_set_max_time($var(customer), 
$var(max_time));xlog(L_INFO,Max Call duration set to $var(max_time) 
seconds\n);


Feb 20 14:20:26 voip01 /usr/sbin/kamailio[1950]: INFO: script: Max Call 
duration set to 600 secondsFeb 20 14:20:35 voip01 /usr/sbin/kamailio[1960]: 
ALERT: cnxcc [cnxcc_check.c:157]: check_calls_by_time(): 
[74d7c02e-33ae-1233-edba-005056a48754] call has exhausted its time. Breaking 
the loopFeb 20 14:20:35 voip01 /usr/sbin/kamailio[1960]: INFO: script: 
[74d7c02e-33ae-1233-edba-005056a48754]: call killed as Max Call Duration 
ExpiredFeb 20 14:20:35 voip01 /usr/sbin/kamailio[1960]: ERROR: cnxcc 
[cnxcc_mod.c:1068]: terminate_call(): Error executing dlg_end_dlg command. 
Return code was [404]


Now as you can see, as soon as the Called party answers, the cnxcc module drops 
the call stating that Max Call duration has expired, however it was set to 600 
seconds.
If I restart kamailio this clears the issue and it works fine allowing calls to 
run up to 600 seconds.
Any help/comment on this would be great, is it just configuration related?
Thanks
Jon
  

___

SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list

sr-users@lists.sip-router.org

http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users




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


Re: [SR-Users] CNXCC Max Call control on Version 4.1.4

2015-02-20 Thread Jonathan Hunter
Hi Carlos,
Ok thanks.
Last question!
I have installed kamailio from packages on centos via yum. 
Would a yum update to 4.1.8 include cnxcc latest version?
Thanks
Jon

Date: Fri, 20 Feb 2015 10:27:58 -0600
From: carlos.ruizd...@gmail.com
To: sr-users@lists.sip-router.org
Subject: Re: [SR-Users] CNXCC Max Call control on Version 4.1.4

It should run on Kamailio 4.1.x. 
You can git clone master and copy the cnxcc directory to your 4.1.x copy and 
recompile the modules. That should work. 
Regards,

Carlos 
On Feb 20, 2015 10:21 AM, Jonathan Hunter hunter...@hotmail.com wrote:



Hi Carlos!
Thanks for the response!
Whats the latest version of Cnxcc for my reference please?  And presume it runs 
fine with kamailio 4.1.4 ?
thanks
Jon

Date: Fri, 20 Feb 2015 08:57:15 -0600
From: carlos.ruizd...@gmail.com
To: sr-users@lists.sip-router.org
Subject: Re: [SR-Users] CNXCC Max Call control on Version 4.1.4

Hi Jonathan,
Cnxcc was heavily updated a couple of months ago, so I suggest you update your 
copy and let me know if the update fixes this bug. 
Regards, 

Carlos 
On Feb 20, 2015 8:45 AM, Jonathan Hunter hunter...@hotmail.com wrote:



Hi Guys,
Using kamailio Version 4.1.4 on Centos 6.5 I have an issue when using cnxcc to 
control max call duration for all outbound calls.
In my configuration I set the following;
# -Dialog params -modparam(dialog, dlg_flag, 4)modparam(cnxcc, 
dlg_flag, 4)modparam(cnxcc, credit_check_period, 1)
Then I look to set some parameters for outbound calls;
###Set Max Call Duration for MT Call  #
$var(customer) = MTPublic;$var(max_time) = 
$var(MTMaxCallDuration);xlog(L_INFO,For setting Call Duration we have 
ProfileID=$var(profileIDMD) and we have  
var(max_time)=$var(max_time)\n);cnxcc_set_max_time($var(customer), 
$var(max_time));xlog(L_INFO,Max Call duration set to $var(max_time) 
seconds\n);


Feb 20 14:20:26 voip01 /usr/sbin/kamailio[1950]: INFO: script: Max Call 
duration set to 600 secondsFeb 20 14:20:35 voip01 /usr/sbin/kamailio[1960]: 
ALERT: cnxcc [cnxcc_check.c:157]: check_calls_by_time(): 
[74d7c02e-33ae-1233-edba-005056a48754] call has exhausted its time. Breaking 
the loopFeb 20 14:20:35 voip01 /usr/sbin/kamailio[1960]: INFO: script: 
[74d7c02e-33ae-1233-edba-005056a48754]: call killed as Max Call Duration 
ExpiredFeb 20 14:20:35 voip01 /usr/sbin/kamailio[1960]: ERROR: cnxcc 
[cnxcc_mod.c:1068]: terminate_call(): Error executing dlg_end_dlg command. 
Return code was [404]


Now as you can see, as soon as the Called party answers, the cnxcc module drops 
the call stating that Max Call duration has expired, however it was set to 600 
seconds.
If I restart kamailio this clears the issue and it works fine allowing calls to 
run up to 600 seconds.
Any help/comment on this would be great, is it just configuration related?
Thanks
Jon
  

___

SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list

sr-users@lists.sip-router.org

http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users




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

___

SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list

sr-users@lists.sip-router.org

http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users




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


Re: [SR-Users] CNXCC Max Call control on Version 4.1.4

2015-02-20 Thread Jonathan Hunter
Ok understood Carlos, is there a command I can run to check the CNXCC version?
Jon

Date: Fri, 20 Feb 2015 11:04:33 -0600
From: carlos.ruizd...@gmail.com
To: sr-users@lists.sip-router.org
Subject: Re: [SR-Users] CNXCC Max Call control on Version 4.1.4

I'm not sure if the builds are up to date with the latest changes on cnxcc. I 
would be a matter of trying and seeing.
Regards,Carlos
On Fri, Feb 20, 2015 at 10:36 AM, Jonathan Hunter hunter...@hotmail.com wrote:



Hi Carlos,
Ok thanks.
Last question!
I have installed kamailio from packages on centos via yum. 
Would a yum update to 4.1.8 include cnxcc latest version?
Thanks
Jon

Date: Fri, 20 Feb 2015 10:27:58 -0600
From: carlos.ruizd...@gmail.com
To: sr-users@lists.sip-router.org
Subject: Re: [SR-Users] CNXCC Max Call control on Version 4.1.4

It should run on Kamailio 4.1.x. 
You can git clone master and copy the cnxcc directory to your 4.1.x copy and 
recompile the modules. That should work. 
Regards,

Carlos 
On Feb 20, 2015 10:21 AM, Jonathan Hunter hunter...@hotmail.com wrote:



Hi Carlos!
Thanks for the response!
Whats the latest version of Cnxcc for my reference please?  And presume it runs 
fine with kamailio 4.1.4 ?
thanks
Jon

Date: Fri, 20 Feb 2015 08:57:15 -0600
From: carlos.ruizd...@gmail.com
To: sr-users@lists.sip-router.org
Subject: Re: [SR-Users] CNXCC Max Call control on Version 4.1.4

Hi Jonathan,
Cnxcc was heavily updated a couple of months ago, so I suggest you update your 
copy and let me know if the update fixes this bug. 
Regards, 

Carlos 
On Feb 20, 2015 8:45 AM, Jonathan Hunter hunter...@hotmail.com wrote:



Hi Guys,
Using kamailio Version 4.1.4 on Centos 6.5 I have an issue when using cnxcc to 
control max call duration for all outbound calls.
In my configuration I set the following;
# -Dialog params -modparam(dialog, dlg_flag, 4)modparam(cnxcc, 
dlg_flag, 4)modparam(cnxcc, credit_check_period, 1)
Then I look to set some parameters for outbound calls;
###Set Max Call Duration for MT Call  #
$var(customer) = MTPublic;$var(max_time) = 
$var(MTMaxCallDuration);xlog(L_INFO,For setting Call Duration we have 
ProfileID=$var(profileIDMD) and we have  
var(max_time)=$var(max_time)\n);cnxcc_set_max_time($var(customer), 
$var(max_time));xlog(L_INFO,Max Call duration set to $var(max_time) 
seconds\n);


Feb 20 14:20:26 voip01 /usr/sbin/kamailio[1950]: INFO: script: Max Call 
duration set to 600 secondsFeb 20 14:20:35 voip01 /usr/sbin/kamailio[1960]: 
ALERT: cnxcc [cnxcc_check.c:157]: check_calls_by_time(): 
[74d7c02e-33ae-1233-edba-005056a48754] call has exhausted its time. Breaking 
the loopFeb 20 14:20:35 voip01 /usr/sbin/kamailio[1960]: INFO: script: 
[74d7c02e-33ae-1233-edba-005056a48754]: call killed as Max Call Duration 
ExpiredFeb 20 14:20:35 voip01 /usr/sbin/kamailio[1960]: ERROR: cnxcc 
[cnxcc_mod.c:1068]: terminate_call(): Error executing dlg_end_dlg command. 
Return code was [404]


Now as you can see, as soon as the Called party answers, the cnxcc module drops 
the call stating that Max Call duration has expired, however it was set to 600 
seconds.
If I restart kamailio this clears the issue and it works fine allowing calls to 
run up to 600 seconds.
Any help/comment on this would be great, is it just configuration related?
Thanks
Jon
  

___

SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list

sr-users@lists.sip-router.org

http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users




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

___

SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list

sr-users@lists.sip-router.org

http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users




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

___

SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list

sr-users@lists.sip-router.org

http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users




-- 
Carloshttp://caruizdiaz.com


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