Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Wed Apr 24, 2024 3:11 am
VoIP Billing solution


All times are UTC




Post new topic Reply to topic  [ 12 posts ] 
Author Message
 Post subject: SIP/IAX buddies - Not being deleted
PostPosted: Mon Dec 31, 2007 1:57 pm 
Offline

Joined: Mon Oct 01, 2007 10:44 pm
Posts: 230
Location: Bovey, Devon, UK
If you delete an account, you're told that any related iax/sip entries will be deleted too.

Upon deleting the account, the ID in sip/iax is set to -1, however these records are still written to the .conf files.

This would be a simple fix of the SQL if I could find where the .conf files get written from.


regards


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 31, 2007 3:01 pm 
Offline

Joined: Thu Oct 19, 2006 9:56 am
Posts: 300
Location: Athens, Greece
This is a feature, not a bug!
There is a configuration variable: "delete_fk_card" about that. I had explicitly requested Areski NOT to delete the IAX friends when their card is removed. So, he made it configurable.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 31, 2007 5:09 pm 
Offline

Joined: Mon Oct 01, 2007 10:44 pm
Posts: 230
Location: Bovey, Devon, UK
Then it's not working as expected, I have


; Delete the SIP/IAX Friend & callerid when a card is deleted
delete_fk_card = yes

unless of course I should have NO set

regards


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 31, 2007 5:32 pm 
Offline

Joined: Fri Apr 28, 2006 5:11 am
Posts: 426
I agree, this is BUG! and i was complaining to areski about it also long time ago... with no result. :cry:


Top
 Profile  
 
 Post subject: Re: SIP/IAX buddies - Not being deleted
PostPosted: Tue Jan 01, 2008 12:24 am 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
middletn wrote:
This would be a simple fix of the SQL if I could find where the .conf files get written from.
A2Billing_UI/Public/CC_generate_friend_file.php
Hope that helps :wink:


Top
 Profile  
 
 Post subject: Re: SIP/IAX buddies - Not being deleted
PostPosted: Tue Jan 01, 2008 12:19 pm 
Offline

Joined: Mon Oct 01, 2007 10:44 pm
Posts: 230
Location: Bovey, Devon, UK
stavros wrote:
middletn wrote:
This would be a simple fix of the SQL if I could find where the .conf files get written from.
A2Billing_UI/Public/CC_generate_friend_file.php
Hope that helps :wink:


Sure did, thanks

Patch file attached for v1.3.1, and I'll submit to trac

regards


Attachments:
File comment: If ID in buddies file is -1 (deleted) don't write it out to sip/iax conf files
CC_generate_friend_file.txt [742 Bytes]
Downloaded 437 times
Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 01, 2008 3:42 pm 
Offline

Joined: Fri Apr 28, 2006 5:11 am
Posts: 426
Awesome!!!
Thank you, middletn!! i was waiting for it so looooong time! :clap2:


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 23, 2008 5:42 pm 
Offline

Joined: Tue Aug 07, 2007 6:46 pm
Posts: 19
for me it doesn't work!!! I have 1.3.1 and I've applied the patch and no success!!!

When I delete a customer, a2billing informs me than there is a sip account associated and is going to be deleted, but then it doesn't show the reload screen and, of course, the sip friend is not deleted. Also if I delete the sip friend manually, still have the user in additional_a2billing_sip.conf

I've upgraded to 1.3.2 (wich seems to be patched) and the same behaviou!!!

delete_fk_card is set to YES

any idea???

Added after 3 hours 59 minutes:

ummhhh, setting delete_fk_card=NO, now deletes the sipfriend in the mysql database, altough there is no reload, so the addtiional_a2billing_sip.conf is unchanged.....


Top
 Profile  
 
 Post subject: same
PostPosted: Tue Jan 29, 2008 2:40 pm 
Offline
User avatar

Joined: Fri Jan 25, 2008 6:53 pm
Posts: 15
Location: Ukraine/Russia
Hello,

Same bug on 1.3.2, fresh install.

sip friends lefts in additional_.... conf


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 29, 2008 7:00 pm 
Offline

Joined: Sun Jan 20, 2008 12:00 am
Posts: 71
paketecuento wrote:
for me it doesn't work!!! I have 1.3.1 and I've applied the patch and no success!!!

When I delete a customer, a2billing informs me than there is a sip account associated and is going to be deleted, but then it doesn't show the reload screen and, of course, the sip friend is not deleted. Also if I delete the sip friend manually, still have the user in additional_a2billing_sip.conf

I've upgraded to 1.3.2 (wich seems to be patched) and the same behaviou!!!

delete_fk_card is set to YES

any idea???

Added after 3 hours 59 minutes:

ummhhh, setting delete_fk_card=NO, now deletes the sipfriend in the mysql database, altough there is no reload, so the addtiional_a2billing_sip.conf is unchanged.....


this is confirmed - a Bug.


Top
 Profile  
 
 Post subject: no idea
PostPosted: Sun May 11, 2008 2:14 am 
Offline
User avatar

Joined: Tue Dec 04, 2007 12:05 am
Posts: 295
sonvan wrote:
paketecuento wrote:
for me it doesn't work!!! I have 1.3.1 and I've applied the patch and no success!!!

When I delete a customer, a2billing informs me than there is a sip account associated and is going to be deleted, but then it doesn't show the reload screen and, of course, the sip friend is not deleted. Also if I delete the sip friend manually, still have the user in additional_a2billing_sip.conf

I've upgraded to 1.3.2 (wich seems to be patched) and the same behaviou!!!

delete_fk_card is set to YES

any idea???

Added after 3 hours 59 minutes:

ummhhh, setting delete_fk_card=NO, now deletes the sipfriend in the mysql database, altough there is no reload, so the addtiional_a2billing_sip.conf is unchanged.....


this is confirmed - a Bug.


UFF I make manual because never delete SIP AND IAX

and I have very sure
; Delete the SIP/IAX Friend & callerid when a card is deleted
delete_fk_card = yes


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 13, 2008 9:48 am 
Offline
User avatar

Joined: Thu Jan 31, 2008 10:49 am
Posts: 23
Location: Amsterdam, Netherlands
For me it only works if I negate it:

Code:
; Delete the SIP/IAX Friend & callerid when a card is deleted
delete_fk_card = no
:lol:


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ] 
Auto Dialer Software


All times are UTC


Who is online

Users browsing this forum: No registered users and 10 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group