<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;}
@font-face
        {font-family:"Courrier New";
        panose-1:0 0 0 0 0 0 0 0 0 0;}
/* 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 set up a way that our users can send an XMPP message to Asterisk (unsolicited) to request information, such as voicemail status or the like. No matter what I set for the dialplan, I’m only seeing Asterisk execute the s,1
priority in the context defined in xmpp.conf for incoming messages, and then the “call” hangs up without executing further instructions. Anything I’ve tried to accomplish in that first priority has worked, but it never continues to an additional priority.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="text-autospace:none">Debug output looks like: <o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;font-family:"Courrier New"">[Aug 31 14:41:15]
<span style="color:#407F40">DEBUG</span>[6964]: <span style="color:#7F7F7F">res_xmpp.c</span>:<span style="color:#7F7F7F">2988</span>
<span style="color:#7F7F7F">xmpp_pak_message</span>: XMPP client 'testaccount' received a message<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;font-family:"Courrier New"">[Aug 31 14:41:15]
<span style="color:#407F40">DEBUG</span>[6964]: <span style="color:#7F7F7F">res_xmpp.c</span>:<span style="color:#7F7F7F">3029</span>
<span style="color:#7F7F7F">xmpp_pak_message</span>: Deleted 1 messages for client testaccount from JID jabberclient@my.jabber.server<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;font-family:"Courrier New"">[Aug 31 14:41:15]
<span style="color:#407F40">DEBUG</span>[6954][C-00000000]: <span style="color:#7F7F7F">
pbx.c</span>:<span style="color:#7F7F7F">4410</span> <span style="color:#7F7F7F">
pbx_extension_helper</span>: Launching 'Gosub'<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;font-family:"Courrier New"">[Aug 31 14:41:15]
<span style="color:#407F40">DEBUG</span>[6964]: <span style="color:#7F7F7F">res_xmpp.c</span>:<span style="color:#7F7F7F">3494</span>
<span style="color:#7F7F7F">xmpp_client_receive</span>: XML parsing successful<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;font-family:"Courrier New""> -- Executing [s@xmpp-incoming:1]
<span style="color:#407F7F">Gosub</span>("<span style="color:#7F407F">Message/ast_msg_queue</span>", "<span style="color:#7F407F">xmpp-incoming,message,1</span>") in new stack<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;font-family:"Courrier New"">[Aug 31 14:41:15]
<span style="color:#407F40">DEBUG</span>[6954][C-00000000]: <span style="color:#7F7F7F">
app_stack.c</span>:<span style="color:#7F7F7F">578</span> <span style="color:#7F7F7F">
gosub_exec</span>: Channel Message/ast_msg_queue has no datastore, so we're allocating one.<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;font-family:"Courrier New"">[Aug 31 14:41:15]
<span style="color:#407F40">DEBUG</span>[6954][C-00000000]: <span style="color:#7F7F7F">
pbx.c</span>:<span style="color:#7F7F7F">6065</span> <span style="color:#7F7F7F">
__ast_pbx_run</span>: Extension message, priority 0 returned normally even though call was hung up<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">The exact specifics of the debug after priority 1 varies a little based on what I try to do, but in every case, the next thing immediately after the priority 1 application is “Extension s, priority 1 returned normally even though call was
hungup” if I don’t use a Goto/Gosub, or “Extension gotoextension, priority 0 returned normally even though call was hungup” if I do.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I’m running Asterisk SVN-branch-11-r371592M on CentOS 6.3 64-bit. Asterisk is able to send using JabberSend via other processing in my dialplan.<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>