Templates & WHMCS

Read 26255 times
I have created templates for my packages, WHMCS does not yet auto create yet, although the quick login buttons in the clients area do work and log the client in.

When I use one of my templates to create, even though I have auto dj set enabled - when it creates the auto dj is not enabled.

I have created a test template and account and PM'd the info for my server to STEVE.

Also do you know how or when we can get a WHMCS module, the automation will be very important.

My Auto DJ
Orlando, FL USA
Quality SHOUTcast Hosting http://myautodj.com
SHOUTcast Widgets http://shoutcastwidgets.com
When I use one of my templates to create, even though I have auto dj set enabled - when it creates the auto dj is not enabled.
Hmmm.. that's really odd, as that should be internal to the account template and shouldn't be dependent on the compatibility of the WHMCS module at all.

I have created a test template and account and PM'd the info for my server to STEVE.
Thanks, I'll take a look shortly.

Also do you know how or when we can get a WHMCS module, the automation will be very important.
Yup, it's in /usr/local/centovacast/extra/billing/whmcs on your v3 server.  It's not fully tested yet but it's definitely more compatible with v3 than the v2 module is.
WHMCS MOD
I still get the same error message

Module Command Error
Error contacting server: HTTP connection to 173.255.141.34 port 2199 failed

but am able to login with the admin server login button through WHMCS
My Auto DJ
Orlando, FL USA
Quality SHOUTcast Hosting http://myautodj.com
SHOUTcast Widgets http://shoutcastwidgets.com
That's not a problem with the module, that means the server running WHMCS can't make an outbound connection to 173.255.141.34 port 2199.  Make sure you don't have an outbound firewall on your WHMCS machine and that nothing else is preventing it from establishing the connection.  Try a connection with telnet or netcat from the WHMCS machine if the problem persists, and that might give you more details.
Firewall is disabled
service iptables stop

Is anyone else having this problem?
My Auto DJ
Orlando, FL USA
Quality SHOUTcast Hosting http://myautodj.com
SHOUTcast Widgets http://shoutcastwidgets.com
Try using SSH to log in the server hosting WHMCS, and run:

echo "GET / HTTP/1.1\r\n\r\n" | nc -v 173.255.141.34 2199

That may give some insight as to what's going on.
Yes that is the problem that is the one site I have hosted with a outside hosting provider I did not want my client area running on any of my SHOUTcast servers, I do not have root access to it :( Hopefully someone else will have this problem soon!
My Auto DJ
Orlando, FL USA
Quality SHOUTcast Hosting http://myautodj.com
SHOUTcast Widgets http://shoutcastwidgets.com
Ahh I think you may have missed a key part of what I wrote earlier then... I was referring to an *outbound* firewall on your WHMCS machine.  It's common for hosting providers and datacenters to block outbound connections, as these are commonly used by exploit authors to spawn reverse shells.  Virtually all decent hosts/DCs will add an exception for you if you ask though.

If you want to test it out first, though, here's a short script that you can use:

Code: [Select]
<?php
$host 
'173.255.141.34';
$port 2199;

Header('Content-type: text/plain');
$fp fsockopen($host,$port,$errno,$errstr,5);
if (
is_resource($fp)) {
        echo 
"Connection to $host:$port successful, sending request ...\n";
        
fwrite($fp,"GET /login/index.php HTTP/1.1\r\nHost: $host\r\nConnection: close\r\n\r\n");
        echo 
"Response:\n\n";
        
fpassthru($fp);
        
fclose($fp);
} else {
        echo 
"Socket connection failed: $errno / $errstr\n";
}
?>


Upload it to the server hosting WHMCS as "porttest.php" or somesuch, then visit http://your-whmcs-domain/porttest.php to see what's going on.
AHHH you hit on something, I remember when I first started this several years ago I was trying to display current listener stats using a php script and I had to ask the host to allow access to that port for each stations stats -- that's what it is because it is the same host, Hostgator :)
My Auto DJ
Orlando, FL USA
Quality SHOUTcast Hosting http://myautodj.com
SHOUTcast Widgets http://shoutcastwidgets.com
yes that was it they had to open port 2199 for outbound connections

But now I get stuck @ this, this is using the new file I uploaded to whmcs/modules/servers/centovacast  it's that 2 different password requirement


Module Command Error
Error updating account settings: Error saving streaming server settings: ShoutCast DNAS v2 requires that your source and administrator passwords must be different

My Auto DJ
Orlando, FL USA
Quality SHOUTcast Hosting http://myautodj.com
SHOUTcast Widgets http://shoutcastwidgets.com
Just so you know, I haven't forgotten about this WHMCS issue.  The problem is that I don't think WHMCS allows us to present a password field to clients during the WHMCS signup process, so it may be tricky to work around this problem.  We may have to resort to a plaintext input field, which is rather less than ideal.

I'm having some troubles accessing my developer account with WHMCS, though, so I can't check their SDK at the moment... will update when I've managed to get in.

Well just so you know all the other actions work fine, suspend, create reseller accounts, terminate
My Auto DJ
Orlando, FL USA
Quality SHOUTcast Hosting http://myautodj.com
SHOUTcast Widgets http://shoutcastwidgets.com
Any news about this? I upgraded to the whmcs module supplied with v3, but I get socket error error api. If I leave the module v2 I get the error that you need two different passwords for Shoutcast v2.

Streaming Ciclano Host
-------------------------------------
http://www.ciclanohost.com.br
+55(55)3025-3315
Error updating account settings: Error saving streaming server settings: ShoutCast DNAS v2 requires that your source and administrator passwords must be different
FYI this was changed quite a while back -- the updated module distributed with v3 automatically sets the source password to the administrator password plus the letters "dj".  That avoids the issue with being unable to present a password field in WHMCS.

Any news about this?
Per above.

I upgraded to the whmcs module supplied with v3, but I get socket error error api.
Please start a new thread if you have a new issue to report -- this issue is unrelated to what My Auto DJ was reporting above.
Streaming Ciclano Host
-------------------------------------
http://www.ciclanohost.com.br
+55(55)3025-3315