Hi Philippe, <br><br><div class="gmail_quote">On Wed, Jun 4, 2008 at 7:36 AM, Philippe Sultan <<a href="mailto:philippe.sultan@gmail.com">philippe.sultan@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Matt,<br>
<br>
On Wed, Jun 4, 2008 at 1:05 AM, Matthew Gibson <<a href="http://mattgibson.ca" target="_blank">mattgibson.ca</a>@<a href="http://gmail.com" target="_blank">gmail.com</a>> wrote:<br>
> I'd be interested to know more about the status abilities as well, we've<br>
> tried to test jabberstatus application, but it doesn't seem to function as<br>
> we expect, it should be returning 0,1,2,3,4,5 based on users current status,<br>
> but switching to away doesn't seem to change it from 0 to 2 .. .<br>
><br>
> this could be an interesting thread :)<br>
<br>
JabberStatus is supposed to retrieve the XMPP status of a buddy, and<br>
store it in a diaplan variable. I just tested it on my Asterisk (1.6)<br>
server.<br>
<br>
Here is an example of how to use it :<br>
<br>
1234 => {<br>
JabberStatus(asterisk-gmail,<a href="mailto:buddy@gmail.com">buddy@gmail.com</a>,STATUS);<br>
if (${STATUS}=1) {<br>
NoOp(User is online and active, ring his Gtalk client.);<br>
Dial(Gtalk/asterisk-gmail/<a href="mailto:buddy@gmail.com">buddy@gmail.com</a>);<br>
} else {<br>
NoOp(Prefer the SIP phone);<br>
Dial(SIP/1234);<br>
}<br>
}<br>
<br>
Matt, if you're experiencing some problems with this application, for<br>
example on a 1.4 system, do not hesitate to file a bug report.<br>
</blockquote><div><br><br>Thanks for the snippet, I re-wrote it (badly) for regular extensions.conf usage, and verified it's also working here on 1.6, though I do get a warning about JabberStatus being depreciated. <br>
</div></div>-- <br>Thanks,<br><br>Matt Gibson<br><a href="http://www.voipphreak.ca">http://www.voipphreak.ca</a><br><a href="http://www.mattgibson.ca">http://www.mattgibson.ca</a><br><br>