[OpenSIPS-Users] pua_xmpp xmpp2simple presence -help

Anca Vamanu anca at opensips.org
Wed Jul 8 18:11:35 CEST 2009


Hi Mani,

I have tested now and gateway works perfectly for presence and message.
I would suggest to take care when setting the parameters.

Here is an example of how you should set the parameters:
Instead of
        _pres_server_ip_address_:_pres_server_port_ - put your dates
       opensips.org - the domain of your OpenSIPS server
       jabberserver.org - the domain of your Jabber server

modparam("presence|presence_xml", "db_url", 
"mysql://opensips:opensipsrw@127.0.0.1/opensips")
modparam("presence", "server_address", 
"sip:_pres_server_ip_address_:_pres_server_port_")
modparam("presence_xml", "force_active", 1)
modparam("pua", "db_url", "mysql://opensips:opensipsrw@127.0.0.1/opensips")
modparam("pua_xmpp", "server_address", 
"sip:_pres_server_ip_address_:_pres_server_port_")
modparam("pua_xmpp", "presence_server", 
"sip:sa at _pres_server_ip_address_:_pres_server_port_")
modparam("xmpp", "gateway_domain", "opensips.org")
modparam("xmpp", "xmpp_domain", "opensips.org")
modparam("xmpp", "xmpp_host", "jabberserver.org")
modparam("xmpp", "backend", "component")
modparam("xmpp", "outbound_proxy", 
"sip:"_pres_server_ip_address_:_pres_server_port_)


Also please update your code, just to be sure.

regards,
Anca


mani sivaraman wrote:
> Hi Anca
> I get the following error in tm module when the xmpp client buddy 
> changes state. As a result the sip client does not get "presence" 
> notify. This could be a simple config bug or error. I followd exactly 
> what;s in the example config. THe SIP client is promptly getting 
> NOTIFIES for the xmpp buddies's watcher.info <http://watcher.info> all 
> the time. The only problem is that it is not getting the 'preesnce' 
> notify. PLEASE I'm trying to get this working for almost a MONTH now. 
> Any help is appreciated. Just tell me what to look for in the debug 
> msg to make sure the presence 'subscribes' fot the xmpp buddies are 
> going out. WIth the latest code MESSAGES are not woring and even sip 2 
> xmpp presence is not working. I used the uri as you told.
>
>
> Jul  7 12:13:51 [5046] ERROR:core:parse_uri: uri too short: <> (0)
> Jul  7 12:13:51 [5046] ERROR:tm:uri2proxy: bad_uri:
> Jul  7 12:13:51 [5046] ERROR:tm:uri2su: failed create a dst proxy
> Jul  7 12:13:51 [5046] ERROR:tm:t_uac: no socket found
> Jul  7 12:13:51 [5046] ERROR:pua:send_subscribe: while sending request 
> with t_request
>
>




More information about the Users mailing list