Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Tue Apr 23, 2024 8:03 pm
Auto Dialer Software


All times are UTC




Post new topic Reply to topic  [ 44 posts ]  Go to page Previous  1, 2, 3
Author Message
 Post subject: Access Control
PostPosted: Sat May 10, 2008 11:13 am 
Offline

Joined: Tue Aug 28, 2007 3:21 am
Posts: 16
Hi Guys,
Quick Question: How do you expose only API directory without exposing the whole A2Billing_UI foler?
Thanks for your time.
Regards,
David


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 30, 2008 12:46 pm 
Offline
User avatar

Joined: Thu Jan 18, 2007 5:37 pm
Posts: 131
Location: Mallorca / Spain
apache2 Alias


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 21, 2009 11:47 am 
Offline

Joined: Wed Jun 11, 2008 10:19 am
Posts: 92
Location: Italy
Hello all,

why when I select other currency value not working.

I have in rates.php:
("http://sip.divafone.com/A2Billing_UI/api/display_ratecard.php?".
"key=3983f14d41eb60a07d27666b06e24ebf".
"&page_url=http://www.voip.divafone.com/rates.php".
"&fullhtmlpage=0".
"&merge_form=1".
"&ratecardid=69".
"&browse_letter=no".
"&field_to_display=t1.destination,t1.dialprefix,t1.rateinitial".
"&column_name=Destination,Prefix,Rate/Min".
"&field_type=,,money".
"&currency_select=EUR".$_SERVER['QUERY_STRING']);
"&css_url=http://www.voip.divafone.com/emx_nav_left.css"
?>


Attachments:
rates.jpg
rates.jpg [ 66.55 KiB | Viewed 17094 times ]
Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 21, 2009 3:58 pm 
Offline

Joined: Mon Apr 14, 2008 8:37 pm
Posts: 356
Location: Canada
wow.. that looks good! :D


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 21, 2009 5:13 pm 
Offline

Joined: Sat Sep 30, 2006 11:22 am
Posts: 167
Location: South East Florida
Hey smart187,

I fanally got mine working but with the help of the group. Just about everything is detailed here. I noticed two things you may want to try and see if works.

1) "&field_type=,,money". Try it this way "&field_type=,,money&".

2) I honestly don't know if the "&currency_select=EUR". is not allowing you to select another currency. I don't have that line on mine but mine defaults to US currency which is what I need.

Please let us know if this helps.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Mar 22, 2009 11:09 am 
Offline

Joined: Wed Jun 11, 2008 10:19 am
Posts: 92
Location: Italy
ladca2003 wrote:
Hey smart187,

I fanally got mine working but with the help of the group. Just about everything is detailed here. I noticed two things you may want to try and see if works.

1) "&field_type=,,money". Try it this way "&field_type=,,money&".

2) I honestly don't know if the "&currency_select=EUR". is not allowing you to select another currency. I don't have that line on mine but mine defaults to US currency which is what I need.

Please let us know if this helps.


Thank you ladca2003 for your reply. :)

I have tried with "&field_type=,,money&". but it isn't works

Maybe that API ratecard works only if in a2billing.conf (base_currency = usd) ?


Top
 Profile  
 
 Post subject:
PostPosted: Sun Mar 22, 2009 2:17 pm 
Offline

Joined: Sat Sep 30, 2006 11:22 am
Posts: 167
Location: South East Florida
Yes, it could be. I did mine by Zuuldibo in the 2nd page of this post.

<html>
<body>
<?php include
("https://yourdomain/a2billing/api/display_ratecard.php?".
"key=thekey".
"&page_url=https://yourdomain/rates.php".
"&ratecardid=4".
"&field_to_display=t1.destination,t1.dialprefix,t1.rateinitial".
"&column_name=Destination,Prefix,Rate/Min".
"&browse_letter=yes".
"&field_type=,,money&".
$_SERVER['QUERY_STRING']);
?>
</body>
</html>


Top
 Profile  
 
 Post subject: Re: Display Ratecard on website -API
PostPosted: Mon May 11, 2009 3:25 pm 
Offline

Joined: Fri May 08, 2009 4:46 pm
Posts: 4
I got everything working. Except how would I take out " select a county " ? We are only trying to list one country


Top
 Profile  
 
 Post subject: Re: Display Ratecard on website -API
PostPosted: Thu May 21, 2009 1:27 pm 
Offline

Joined: Sat Sep 30, 2006 11:22 am
Posts: 167
Location: South East Florida
Hey everyone. What main changes are there in version 1.4 if any, in order to display the rate card.

I have upgraded instead of new install and upgraded the destination table but when I call the rates.php the page displays but I'm getting "Rate list No rate found !!!" I'm calling the ratecard by it's id number.

Has anyone had the something like this happened. I also think if the page is displaying then the directories are in order but the script is not finding the ratecard, my guess, I don't know.

Thank you.


Top
 Profile  
 
 Post subject: Re: Display Ratecard on website -API
PostPosted: Sun Jul 12, 2009 8:44 pm 
Offline
User avatar

Joined: Tue Dec 04, 2007 12:05 am
Posts: 295
any idea why I get
Fatal error: Call to undefined function getpost_ifset() in /var/www/html/a2billing/webservice/display_ratecard.php on line 65


Top
 Profile  
 
 Post subject: Re: Display Ratecard on website -API
PostPosted: Sun Jul 12, 2009 11:44 pm 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
gineta wrote:
any idea why I get
Fatal error: Call to undefined function getpost_ifset() in /var/www/html/a2billing/webservice/display_ratecard.php on line 65
Because ../lib/Misc.php isn't available? But surely your PHP log file would also show this as an error too...


Top
 Profile  
 
 Post subject: Re: Display Ratecard on website -API
PostPosted: Wed Aug 05, 2009 10:21 am 
Offline

Joined: Wed Aug 05, 2009 9:49 am
Posts: 5
please help,

i am getting the following error

Warning: include(http://www.abcd.com/A2Billing_UI/api/di ... select=USD) [function.include]: failed to open stream: no suitable wrapper could be found in /var/www/localhost/htdocs/rate.php on line 51

Warning: include() [function.include]: Failed opening 'http://www.abcd.com/A2Billing_UI/api/display_ratecard.php?key=0951aa29a67836b860b0865bc495225c&page_url=http://www.abcd.net/rate.php&fullhtmlpage=0&field_to_display=t1.destination,t1.dialprefix,t1.rateinitial&column_name=Destination,Prefix,Rate/Min&field_type=,,money&ratecardid=404998&css_url=http://www.callhub.net/style.css&currency_select=USD' for inclusion (include_path='.:/usr/share/php5:/usr/share/php') in /var/www/localhost/htdocs/rate.php on line 51

Regards,
nagar


Top
 Profile  
 
 Post subject: Re: Display Ratecard on website -API
PostPosted: Thu Apr 15, 2010 1:24 pm 
Offline

Joined: Wed Nov 25, 2009 12:01 pm
Posts: 90
hi..guys..i've followed your guide to get the ratecard displayed but all i get is a blank page..no error noting.

this is what i got
i am testing this in my local area hosting with apache.

<html>
<body>
<?php include
("http://192.168.1.4/a2billing/webservice/display_ratecard.php?".
"key=3983F14D41EB60A07D27666B06E24EBF".
"&page_url=http://192.168.1.2/rates.php".
"&ratecardid=1".
"&field_to_display=t1.destination,t1.dialprefix,t1.rateinitial".
"&column_name=Destination,Prefix,Rate/Min".
"&browse_letter=yes".
"&field_type=,,money&".
$_SERVER['QUERY_STRING']);
?>
</body>
</html>


what am i doing wrong?..i changed the api key and got the md5 key and alo added my ip (192.168.1.2 to the Authorised Ip)
i've been tring to get this work for the last few days but failed.
please help me..

thanks.



UPDATE:

now im getting this error:

Warning: include() [function.include]: URL file-access is disabled in the server configuration in /var/www/html/a2billing/rates.php on line 11

Warning: include(http://192.168.1.4/a2billing//webservic ... =,,money&&) [function.include]: failed to open stream: no suitable wrapper could be found in /var/www/html/a2billing/rates.php on line 11

Warning: include() [function.include]: Failed opening 'http://192.168.1.4/a2billing//webservice/display_ratecard.php?key=65e67f545c8c7561617ac83480b07cc3&page_url=http://192.168.1.4/a2billing/rates.php&&field_to_display=t1.destination,t1.dialprefix,t1.rateinitial&&column_name=Destination,Prefix,Rate/Min&&currency_select=USD&&field_type=,,money&&' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/html/a2billing/rates.php on line 11

any help? please...


Top
 Profile  
 
 Post subject: Re: Display Ratecard on website -API
PostPosted: Fri Nov 19, 2010 7:39 pm 
Offline

Joined: Thu Aug 26, 2010 5:56 pm
Posts: 15
Anyone out there familiar with setting this up want to give me a hand? We have a small budget to get this done, so if you can do it PM or email me and let me know what $ would get you to set this up for me?

[email protected]

Thanks!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 44 posts ]  Go to page Previous  1, 2, 3
Auto Dialer Software


All times are UTC


Who is online

Users browsing this forum: No registered users and 11 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:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group