Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Tue Mar 19, 2024 6:48 am
Voice Broadcast System


All times are UTC




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: How to automatically create CallerID as Card Alias?
PostPosted: Thu Apr 05, 2007 6:29 am 
Offline

Joined: Mon Oct 02, 2006 8:51 am
Posts: 8
Whenever a new user signup, how can I automatically create the CallerID so that it is the same as the card alias? I want to be able to allow users to dial without asking for their PIN or having to add CallerID themselves.

Thanks in advance!!


Top
 Profile  
 
 Post subject: Any suggestion?
PostPosted: Mon Apr 16, 2007 12:36 am 
Offline

Joined: Mon Oct 02, 2006 8:51 am
Posts: 8
Can anyone help with this question? How can I automatically make CallerID = Card Alias at customer signup?

PLEASE HELP!

Thanks!


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 16, 2007 1:42 am 
Offline
Moderator
User avatar

Joined: Tue Jun 06, 2006 12:14 pm
Posts: 685
Location: florida
There are no provisions for that in A2B, you'd have to custom hack the code.


Top
 Profile  
 
 Post subject: Custom hack
PostPosted: Mon Apr 16, 2007 4:57 am 
Offline

Joined: Mon Oct 02, 2006 8:51 am
Posts: 8
Thanks for the reply. Any suggestion on where to start or easiest way to hack the solution?

Thanks again!!


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 13, 2008 7:53 pm 
Offline

Joined: Wed Jan 30, 2008 6:19 pm
Posts: 4
in Class.A2Billing.php search for

//CREATE A CARD AND AN INSTANCE IN CC_CARD

$QUERY_FIELS = 'username, useralias, userpass, uipass, credit, language, tariff, activated, typepaid, creditlimit, inuse,country,simultaccess';
$QUERY_VALUES = "'$card_gen', '".$this->CallerID."', '$passwd', '$uipass', '".$this->


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jun 14, 2008 6:21 am 
Offline
User avatar

Joined: Mon Apr 30, 2007 6:43 am
Posts: 1060
Location: Canada
This will not work because the called id is in a separate table.

voxcube, I am curious about one thing. Why are you so sure that having the card alias in the callerid field will let someone call without authentication?

The closest thing that come to mind is the cid_enable feature in a2billing.conf. It will let people call by authenticating them with the callerid instead of the "alias".

So all you need to do is to add the person's phone number to the cc_calledid table at signup.

Cheers


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 20, 2008 10:54 pm 
Offline

Joined: Fri Feb 15, 2008 2:43 pm
Posts: 58
On signup, run a script or write php code to do the following:

UPDATE cc_sip_buddies SET callerid = '$cardalias' WHERE accountcode like '$username';

INSERT INTO cc_callerid VALUES (NULL, '$cardalias', (SELECT id FROM cc_card WHERE username LIKE '$username'), 't');

This won't work as is - but with a little coding it should work fine.


Top
 Profile  
 
 Post subject: Re:
PostPosted: Sat Nov 01, 2014 2:02 pm 
Offline

Joined: Sat Jun 02, 2012 9:46 pm
Posts: 2
nitzan wrote:
On signup, run a script or write php code to do the following:

UPDATE cc_sip_buddies SET callerid = '$cardalias' WHERE accountcode like '$username';

INSERT INTO cc_callerid VALUES (NULL, '$cardalias', (SELECT id FROM cc_card WHERE username LIKE '$username'), 't');

This won't work as is - but with a little coding it should work fine.


Could anyone point where the code should be placed? In signup.php?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 
Predictive Dialer


All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


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