<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">I’m trying to get my Asterisk 11 test box set up with XMPP, having troubles with JabberSend().<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">My jabber.conf file is as follows: <o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">[general]<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">debug=no<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">autoprune=no<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New""><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">[testaccount]<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">type=client<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">serverhost=my.jabber.server<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">username=myaccount@my.jabber.server<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">secret=mypassword<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">port=jabberport<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">usetls=yes<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">usesasl=yes<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">xmpp show connections gives the following output from the console:<o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:"Courier New"">testasterisk11*CLI> xmpp show connections<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:"Courier New"">Jabber Users and their status:<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:"Courier New""> [testaccount] asterisk@jabber.metalink.net - Connected<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:"Courier New"">----<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:"Courier New""> Number of clients: 1<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">xmpp show buddies lists out the users that are being auto-added to the “buddy list” from the XMPP server. I try to have a test extension send a message, and get this output (and the call fails with a “Declined” message on the calling phone).<o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:"Courier New""> -- Executing [20005@metalink:2]
<span style="color:#407F7F">JabberSend</span>("<span style="color:#7F407F">SIP/649EF376CA25-0000000c</span>", "<span style="color:#7F407F">testaccount,user@my.jabber.server,Test</span>") in new stack<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:"Courier New"">[Aug 21 15:42:54]
<span style="color:#7F4040">WARNING</span>[20469][C-0000000c]: <span style="color:#7F7F7F">
res_xmpp.c</span>:<span style="color:#7F7F7F">1752</span> <span style="color:#7F7F7F">
xmpp_send_exec</span>: JabberSend requires arguments (account,jid,message)<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I’ve tried putting in the full username and the [testaccount] for the first argument to JabberSend. I’ve tried just the username as well as the full
<a href="mailto:user@my.jabber.server">user@my.jabber.server</a> in the jid argument. I’ve tried multi-word and single word messages. I’ve tried encapsulating each argument in quotes. With XMPP debug on, I can see presence messages being received “XMPP received
from ‘test account’”, but no XMPP debug output occurs when I try to place my test call to send the XMPP message.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Kinda going cross-eyed from looking at this – is there anything else I should try or anything wrong in my configuration?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thank you,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Noah Engelberth<o:p></o:p></p>
<p class="MsoNormal">MetaLINK Technologies<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>