Multiple Users For Jabber.conf

Home » Asterisk Users » Multiple Users For Jabber.conf
Asterisk Users 4 Comments

Hi all,

Been reading about chan_motif / chan_xmpp in the wiki’s for 1.8, 10 and
11 version of Asterisk. In each example i got the impression that the asterisk server is registering on a XMPP server as a single user with the credentials as specified in jabber.conf.

Instead of a single xmpp-user, could that also be multiple users?
For instance, for each sip-user an xmpp-user?

When i skim through most of the examples, the asteriskbox is used for making an outbound call with the jingle protocol.

But how about incoming calls?
I presume you need multiple xmpp-accounts, in order to differentiate multiple destinations. Not?

Or to describe it in an other way: If you just do a single xmpp-registration, how can you become a destination for different end-users? how about multiple presence-states?

[utterly confused] Hans

4 thoughts on - Multiple Users For Jabber.conf

  • Hans,

    I did not try 10 or 11 as I run 1.8.15. Following are the related conf files.


    context = default allowguest = yes ; Required if you want to accept calls from people Not on your contact list. bindaddr= ;; These two settings are very critical for getting externip= ;; gtalk audio with Asterisk server behind NAT
    disallow=all allow=ulaw

    [guest] ;;special account for options on guest account disallow=all allow=ulaw context=from-trunk connection=


    debug=no ;;Turn on debugging by default. autoprune=no ;;Auto remove users from buddy list. autoregister=yes ;;Auto register users from buddy list.

    [Jab01] ;; Label type = client ;; Client or Component connection serverhost =
    ;; Route to server username =>/asterisk ;; Username with optional resource. secret =
    ;; Password priority = 1 ;; Resource priority port = 5222 ;; Port to use, defaults to 5222
    usetls = yes ;; TLS is required by, you’ll get a ‘socket read error’ without usesasl = yes ;; Use sasl or not timeout0 ;; Timeout on the message stack status=available ;;

  • Thanks Vladimir,

    Will digg up an 1.8 machine and give it a try!
    afaics the only diference is that i am using a local xmpp server
    (ejabberd) instead of google, but that should only make things easier i think…