Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Tue Apr 16, 2024 8:08 am
Auto Dialer Software


All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: PHP script to add DID & Destination records in a2b table
PostPosted: Fri Dec 26, 2008 5:10 pm 
Offline

Joined: Tue Jan 09, 2007 9:57 am
Posts: 8
Hello folks,

I'm looking for a very simple PHP script to run from the shell command line.

The first script will add the 2 records in the DID and Destination tables, for example:

add_destination.php $PIN $DID $DESTINATION

The php script will create the new entry in the DID table with $DID as the key. Secondly, it will create the new entry in the Destinations table, pointing to the $DID record in the DID table and using PIN as the other required field.

A second script will delete the 2 records created above, for example:

del_destination.php $DID

I guess only $DID is needed for the script to locate the corresponding entries in the DID and Destination tables and have them removed.

Does anybody have a hint on how to do this?

Thanks
Clovis


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 
Voice Broadcast System


All times are UTC


Who is online

Users browsing this forum: No registered users and 8 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