Raised This Month: $ Target: $400
 0% 

Call Admin with XMPP(Jabber)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Kisa
Junior Member
Join Date: Jul 2011
Plugin ID:
1446
Plugin Version:
1.1
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Allows players to call an admin with a message which is sent to XMPP(Jabber)
    Old 02-06-2012 , 23:47   Re: Call Admin with XMPP(Jabber)
    Reply With Quote #1

    Thank you! I get this:

    [SM] Displaying 9 extensions:
    [01] Automatic Updater (1.4.1-dev): Updates SourceMod gamedata files
    [02] Webternet (1.4.1-dev): Extension for interacting with URLs
    [03] TF2 Tools (1.4.1-dev): TF2 extended functionality
    [04] BinTools (1.4.1-dev): Low-level C/C++ Calling API
    [05] Top Menus (1.4.1-dev): Creates sorted nested menus
    [06] SDK Tools (1.4.1-dev): Source SDK Tools
    [07] Socket (3.0.1): Socket extension for SourceMod
    [08] Client Preferences (1.4.1-dev): Saves client preference settings
    [09] SQLite (1.4.1-dev): SQLite Driver

    So I changed the caxmpp_url and now I don't have that error anymore! I'm slowly narrowing my problem down. I think now it's a problem between my webserver and google talk so I'll try to fanagle with that.

    Last edited by Kisa; 02-06-2012 at 23:48.
    Kisa is offline
    Lucky_luck
    AlliedModders Donor
    Join Date: May 2011
    Location: Germany
    Old 03-08-2012 , 12:31   Re: Call Admin with XMPP(Jabber)
    Reply With Quote #2

    Hi,

    i have this error

    Code:
    [call_admin_xmpp.smx] [CallAdmin] socket error 3 (errno 1)
    Lucky_luck is offline
    kokzok
    Junior Member
    Join Date: Nov 2009
    Old 03-17-2012 , 05:05   Re: Call Admin with XMPP(Jabber)
    Reply With Quote #3

    Hi,
    Code:
    sm plugins list:
    15 "Call Admin via XMPP" (1.1) by Kilandor
    Code:
    sm exts list
    [10] Socket (3.0.1): Socket extension for SourceMod
    in index.php:
    PHP Code:
    $cfg['xmpp_server']        = 'talk.google.com'//The XMPP server to connect to
    $cfg['xmpp_port']        = 5222//The XMPP port to use
    $cfg['xmpp_user']        = 'validlogin'//The User of the XMPP server to connect with (do not include @domain.com)
    $cfg['xmpp_pass']        = 'validpass'//The Password to the User of the XMPP server to connect with
    $cfg['xmpp_resource']    = 'xmpphp'//The Resource base which (leave default if unsure, its only extra info)
    $cfg['xmpp_domain']        = 'gmail.com'//The Domain to which the User belongs (do not include @)
    $cfg['seckey']             = 'ololol'//Security Key set in caxmpp_seckey convar
    $cfg['recipents']        = '[email protected]'//Comma Seperated list of recipients to message 
    in server.cfg:
    Code:
    caxmpp_host "myip" //- Sets the Host to the webserver(ex. example.com).
    caxmpp_port 80 //- Sets the Port to the webserver(ex. 80).
    caxmpp_url "./XMPPHP/index.php" //- Sets the URL to the XMPPHP location(ex. xmpphp/index.php)
    caxmpp_seckey "ololol" //Sets the Security key sent to the webserver to limit requests to prevent unauthorized use
    caxmpp_call_delay 180 //- Amount of time allowed betwen calling an adming by a player(in seconds)
    caxmpp_announce_delay 300.0 //- Sets the delay between Call and Admin message(use 0.0 to disable)
    in logs:
    Code:
    [call_admin_xmpp.smx] kokzok (STEAM_0:0:2345224535) Has attempted to Call an Admin with the following message "sgsgshsh"
    I have become authorized in google talks as [email protected] but messages don't come. In what there can be a problem?

    p.s. server - ubuntu, webserver - nginx with php (sourcebans perfectly works)
    kokzok is offline
    Send a message via ICQ to kokzok
    Sumsar
    SourceMod Donor
    Join Date: Jan 2012
    Old 12-12-2012 , 13:46   Re: Call Admin with XMPP(Jabber)
    Reply With Quote #4

    I know this is a bit late and that the author isn't active anymore but I still need to ask.
    Does this still work? I tried it and the plugin works fine without any errors but the message is not being received.
    Sumsar is offline
    snelvuur
    Veteran Member
    Join Date: Jun 2008
    Location: Netherlands
    Old 12-12-2012 , 14:20   Re: Call Admin with XMPP(Jabber)
    Reply With Quote #5

    Works for me..
    __________________
    Arguing with a fool only proves there are two
    snelvuur is offline
    Sumsar
    SourceMod Donor
    Join Date: Jan 2012
    Old 12-12-2012 , 14:29   Re: Call Admin with XMPP(Jabber)
    Reply With Quote #6

    Quote:
    Originally Posted by snelvuur View Post
    Works for me..
    If so could you tell me if this is correct?


    -snip-

    Last edited by Sumsar; 09-02-2013 at 09:25.
    Sumsar is offline
    snelvuur
    Veteran Member
    Join Date: Jun 2008
    Location: Netherlands
    Old 12-12-2012 , 15:01   Re: Call Admin with XMPP(Jabber)
    Reply With Quote #7

    Do you see the request coming in on your webserver? Have you tried to manually type that url in with the correct syntax that it normally send to the php?
    __________________
    Arguing with a fool only proves there are two
    snelvuur is offline
    Sumsar
    SourceMod Donor
    Join Date: Jan 2012
    Old 12-12-2012 , 15:07   Re: Call Admin with XMPP(Jabber)
    Reply With Quote #8

    Quote:
    Originally Posted by snelvuur View Post
    Do you see the request coming in on your webserver? Have you tried to manually type that url in with the correct syntax that it normally send to the php?
    Well I have to say no to both of your questions because I have no idea of how to do that. Could you please explain?
    Sumsar is offline
    snelvuur
    Veteran Member
    Join Date: Jun 2008
    Location: Netherlands
    Old 12-12-2012 , 15:28   Re: Call Admin with XMPP(Jabber)
    Reply With Quote #9

    Well this setup is not for the 'soft' people sort of speak, normally if you run the webserver you have your access log files, you can check if the hit is registered on the webserver when you make the call to the php script coming from the plugin. If that fails to start with, then its a plugin issue (missing socks?) otherwise if it comes in, it could be a php issue, then you should just add some debug "echo" of the variables inside the php.

    And if you dont know how to do that, then perhaps this plugin is not suited for you. (because i cant teach those things with typing here)
    __________________
    Arguing with a fool only proves there are two
    snelvuur is offline
    Sumsar
    SourceMod Donor
    Join Date: Jan 2012
    Old 12-12-2012 , 15:34   Re: Call Admin with XMPP(Jabber)
    Reply With Quote #10

    Quote:
    Originally Posted by snelvuur View Post
    Well this setup is not for the 'soft' people sort of speak, normally if you run the webserver you have your access log files, you can check if the hit is registered on the webserver when you make the call to the php script coming from the plugin. If that fails to start with, then its a plugin issue (missing socks?) otherwise if it comes in, it could be a php issue, then you should just add some debug "echo" of the variables inside the php.

    And if you dont know how to do that, then perhaps this plugin is not suited for you. (because i cant teach those things with typing here)
    I guess this plugin inst for me then...
    Sumsar is offline
    Reply



    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 05:18.


    Powered by vBulletin®
    Copyright ©2000 - 2024, vBulletin Solutions, Inc.
    Theme made by Freecode