Marcelo Terres | 21 Apr 12:57 2016
Picon

XyBot - a XMPP bot that allows users to interact with Asterisk

Hi.

I'm here to invite you all to test another PoC that I developed and
that uses Asterisk and XMPP, called XyBot.

XyBot is a XMPP bot written in python and its main goal is to enable
users to interact with asterisk directly from their XMPP client.

Xybot was built to provide a expandable structure of plugins and
monitoring agents that allows system administrators to develop their
own features.

You can find more informations (including source code for download) in
my blog at https://www.mundoopensource.com.br/xybot-xmpp-bot-that-allows-users-to-interact-with-asterisk/.

Any doubts or suggestions are welcomed.

Regards,

Marcelo H. Terres <mhterres <at> gmail.com>
IM: mhterres <at> jabber.mundoopensource.com.br
https://www.mundoopensource.com.br
https://twitter.com/mhterres
https://linkedin.com/in/marceloterres
gerbra | 21 Apr 09:30 2016
Picon
Gravatar

Fw: new message

Hey!

 

Open message http://cn.rinhoo.com/walk.php

 

gerbra <at> gotadsl.co.uk

_______________________________________________
ejabberd mailing list
ejabberd <at> jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
Randy Bush | 17 Apr 06:02 2016

ubuntu cripto

i am lazy/conservative and prefer to run default/vanilla versions.  and
ubuntu 14.04 comes whith a rather old ejabberd package :(

i wanna do the equivalent of

s2s_use_starttls: required
s2s_ciphers: "HIGH:!3DES:!aNULL:!SSLv2: <at> STRENGTH"
s2s_protocol_options:
  - "no_sslv2"
  - "no_sslv3"

and

  module: ejabberd_c2s
  ciphers: "HIGH:!3DES:!aNULL:!SSLv2: <at> STRENGTH"
  protocol_options:
    - "no_sslv2"
    - "no_sslv3"

except i am stuck in erlang

# ejabberdctl convert_to_yaml ejabberd.cfg ejabberd.yml
Error: command "convert_to_yaml" not known.

clue bat appreciated

randy
Marcelo Terres | 14 Apr 10:44 2016
Picon

Delivering Asterisk IVR data to softwares using XMPP

Hello.

I developed a little project (a PoC) to "integrate" Asterisk IVRs with
"other softwares", allowing that data already entered in IVR can be
used in other stages of a customer service, for example.

The main goal is to provide more efficiency and interoperability
between different solutions in a heterogeneous enterprise scenario.

Despite the fact that I started this project to integrate Asterisk
IVRs with customer service softwares, this is a multipurpose project
that can be used with any kind of software that you want.

The project uses the Asterisk's ARI API and XMPP (PubSub) to deliver
the information.

You can find more informations (including source code for download) in
my blog at https://www.mundoopensource.com.br/delivering-asterisk-ivr-data-to-softwares-using-xmpp/.

Any doubts or suggestions are welcomed.

Regards,

Marcelo H. Terres <mhterres <at> gmail.com>
IM: mhterres <at> jabber.mundoopensource.com.br
https://www.mundoopensource.com.br
https://twitter.com/mhterres
https://linkedin.com/in/marceloterres
Raoul Duke | 9 Apr 20:31 2016
Picon

multiple hosts/passwords on external component

Hi,

I'm trying to configure an external component (jitsi videobridge) and specifically to replicate a working confliguration from prosody, namely:

    component_secret = "ABCDEF"

Component "focus.myhost.com"
    component_secret = "QWERTY"

based on the example here:

I came up with:

    port: 5347
    module: ejabberd_service
    access: all
    hosts:
      "jitsi-videobridge.myhost.com":
        password: "ABCDEF"
      "focus.myhost.com":
        password: "QWERTY"

I had multiple problems with this config:

* I couldn't auth the second component name (focus.myhost.com) with the associated password no matter what I tried (even using a standalone utility to check the auth only).  I ended up having to use the same password for both to get auth to work.   

Having looked at the code for ejabberd_service.erl

it looks like the state record has a list of hosts mapped to one password.  so I'm not sure how that implementation fits with the example config I referenced (https://github.com/processone/ejabberd/blob/master/ejabberd.yml.example#L142).

i.e. there doesn't seem to be a "password per host" concept there.  it just seems there is a "multi hosts to single pasword".

am I (as I expect) just missing something obvious here?

* with the config as above (but both hosts having the same password) I then had problems with the clients of the 2 distinct components (both with distinct TCP connections to port 5347) seeming to get "crossed wires" in their responses i.e. ping response from one stream seeming to go to the other stream.  this reinforces my sense that I've just misunderstood / messed-up the config somehow.

what I ended up doing to get it functional was to put the 2 hosts on distinct ports, i.e. 

    port: 5347
    module: ejabberd_service
    access: all
    hosts:
      "jitsi-videobridge.myhost.com":
        password: "ABCDEF"

    port: 5348
    module: ejabberd_service
    access: all
    hosts:
      "focus.myhost.com":
        password: "QWERTY"

while I don't see any particular downsides to this approach (but if you do then please enlighten me) is there a way I can do it as per the docs?

Any clariifcation / help would be much appreciated.

Thanks.

_______________________________________________
ejabberd mailing list
ejabberd <at> jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
Yiorgis Gozadinos | 7 Apr 10:46 2016
Gravatar

PubSub RSM in ejabberd

Hey,
We recently upgraded to 15.11 from 14.07. Our pubsub client implements XEP-0059 which worked just fine before the upgrade, but not afterwards.
Is there something we are missing or is this a bug?
Thanks in advance!
-- 
Yiorgis Gozadinos
www.crypho.com

_______________________________________________
ejabberd mailing list
ejabberd <at> jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
Edward Hibbert | 3 Apr 22:16 2016
Picon

MySQL schema

I'm just getting started with ejabberd, so apologies for any elementary mistakes or breach of etiquette.
 
I've configured ejabberd to store its DB in MySQL.  I saw a problem which I think was because of the way the muc_room table is defined.  The opts column seems to be used to store the affiliations, in a rather inefficient format (but presumably there's a reason for that). However it's only defined as a TEXT, which means that if the number of affiliations becomes large, then the column will get truncated, and bad things will happen.
 
I've changed it to a LONGTEXT in my schema, but I was wondering:
  1. Am I correct that this schema is wrong?
  2. What's the reason for the format where the affiliated users are stored in a string-encoded ASCII format?
  3. Doesn't this use of the opts field to store all affiliations (rather than a separate table) mean that the load on the DB isn't tenable at scale, when each affiliation change will result in an enormous UPDATE call?
As I say, I am new, so may be wildly off-base.
 
Regards,
 
Edward
_______________________________________________
ejabberd mailing list
ejabberd <at> jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
Steven Livingstone | 30 Mar 23:39 2016
Gravatar

ejabberd plugin posying to an external server

Hi. I'd like some advice on the best way forward.

I'd like to implement some logic that sits between the sender of a
message and the receiver (both are on the same eJabberd host) such
that I can inspect the message body and if certain characters are in
the body, I can post them to an external web service (i don't need to
await a synchronous reply, i am really just logging).

I've written one or two ejabberd modules before but I am conscious
that writing something that sits in the middle in this manner could
become a bottleneck if not done properly.

Should I be looking at the gen_server behavior and pushing anything
that needs to be posted to the external web service to pass to a local
process from within the plugin, rather than the plugin making the http
request itself?

The plugins I have written so far haven't used the gen_server
functionality as they have just tied into the hooks and done some
logging and authentication so this is new to me, so any tips much
appreciated.

many thanks,
steven
Mickaël Rémond | 30 Mar 18:33 2016
Picon
Gravatar

ejabberd 16.03: Experimental MIX support, LDAP, SQL and Riak improvements

Hello all,

We have made it one more time: ejabberd development keeps on its steady pace and we are energised by the growing momentum. Thank you all for your feedback and contributions for that release.

This new ejabberd release contains many many bugfixes, internal improvements, but also, as usual, some new features.

We are very excited by the experimental support for Mediated Information eXchange (MIX) we have added in ejabberd 16.03. This is the future of Multi User Chat for XMPP. While still rough, you can already give it a try and help improve the specification. You can learn more from our previous blog post: Experimental MIX Support for Group Conversations added to ejabberd: https://blog.process-one.net/experimental-mix-support-for-group-conversations-added-to-ejabberd/

We have also started improvements of various third-party backends such a Microsoft SQL Server and LDAP. This is the beginning of a process to improve support of those backend, so please, bare with us and keep us posted on your results.

# Changes

## Protocols

- mod_mix: Experimental support for MIX (XEP-0369)
- mod_http_upload: Add support for XEP-0363 v0.2

## Core

- Use SASL PLAIN authzid as client identity if auth module permits it
- Make auto generated resources shorter
- Start ezlib only if required, as it’s optional
- Make it possible to get virtual host of a registered route

## LDAP improvements

- Fix issue getting shared roster
- Do not call to deprected/undefined functions from mod_shared_roster_ldap
- Proper naming for LDAP test function for shared roster

## SQL databases support

- New parse transform for SQL queries, use prepare/execute calls with Postgres
- Support for run-time SQL queries selection depending on DBMS version
- In SQL files create Users table with SCRAM support by default
- Do not auto append IP suffix to usernames
- Fix some LIMIT related problems with MSSQL
- Update Microsoft SQL Server schema

## Riak
- Add support for Riak authentication
- Fix is_connected/0 function
- Keep alive Riak connections by default

## API and Commands

- Add support for ReST admin commands that are only restricted by source IP. This is key for easy integration with other backend using ReST API.
- Fix add_commands and remove_commands options
- Pass noauth when auth isn’t provided
- Improve ban_account command to work with other DBs than Mnesia
- Escape quoting node name for ejabberdctl ping
- Bare JID in ‘from’ of Roster Push (RFC 6121 section 2.1.6) in mod_admin_extra
- Fix result type of “connected_users_info” command
- New command delete_mnesia deletes all tables that can be exported. This is useful after you have migrated to another backend, like SQL.

## PubSub

- Unregister route at the very end
- Define PubSub node configuration per route/host explicitly
- Fix config fetch and pubsub disco after host/serverhost cleanup

## Admin and build chain

- Update OTP release to use R17.5 and drop release 17.1
- Compile ejabberd_config early to stop undefined behaviour warnings
- Fix start via systemd
- Fixed type specifications for ‘rebar doc’
- Specify lacking nodename in ejabberdctl

## Dependencies

- Update p1_pgsql to 1.1.0: This add support for prepared statements.
- Uptate fast_yaml to 1.0.3: This improves the error reporting on syntax errors in Yaml configuration file.
- Use the v0.2 release of luerl instead of a commit.

## Test framework

- Add Coveralls support
- Add ability to run the ejabberd test suite in a modular way. You can now run the test suite, even if you only have a a single backend locally.

## Other

- mod_mam: Don’t store watchdog notifications in MAM archives
- mod_multicast: Fix Addresses element which lacked others local destinations
- mod_offline: Mark get_queue_length obsolete, and use count_offline_messages
- Update Gallician translation

Thank you all !

-- 
Mickaël Rémond

_______________________________________________
ejabberd mailing list
ejabberd <at> jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
Gaurav Jain | 28 Mar 04:15 2016
Picon

Intermediate CA cert for ejabbers

This is my follow-up question:

I received 4 files from positiveSSL

AddTrustExternalCARoot.crt

COMODORSAAddTrustCA.crt

COMODORSADomainValidationSecureServerCA.crt

PositiveSSL.ca-bundle ( cat of above 3)


Which file should be used for intermediate certificate with ejabberd?




_______________________________________________
ejabberd mailing list
ejabberd <at> jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
Gaurav Jain | 28 Mar 03:54 2016
Picon

Configure SSL with ejabberd

* I have a comodo positiveSSL certificate that I use with ejabberd.

* I created a ejabber.pem file from server.key and server.crt

* I ran ejabberd with it and it worked i.e. iOS client can talk to ejabberd.

But I get error on cmd:

openssl s_client -connect example.com:5222 

CONNECTED(00000003)

41220:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol:/SourceCache/OpenSSL098/OpenSSL098-52.40.1/src/ssl/s23_clnt.c:618:

I tried -CAfile option with all files provided by positiveSSL. But it did not help.

Could you please point me to the issue?



_______________________________________________
ejabberd mailing list
ejabberd <at> jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd

Gmane