[asterisk-users] JABBER_STATUS CODE 7

Marcelo Terres mhterres at gmail.com
Thu Oct 9 18:10:38 CDT 2014


Retrieves the numeric status associated with the buddy identified by
jid. If the buddy does not exist in the buddylist, returns 7.

https://wiki.asterisk.org/wiki/display/AST/Asterisk+11+Function_JABBER_STATUS_res_xmpp

Regards,
Marcelo H. Terres
mhterres at gmail.com
IM: marcelo at jabber.mundoopensource.com.br
http://www.mundoopensource.com.br
http://offtopicsandfun.blogspot.com
http://biertasters.blogspot.com
http://twitter.com/mhterres


On Thu, Oct 9, 2014 at 7:28 PM, ricky gutierrez <xserverlinux at gmail.com> wrote:
> anyone here?
>
> 2014-10-01 8:09 GMT-06:00 ricky gutierrez <xserverlinux at gmail.com>:
>> Hi all,I hope to find a solution with the help of the list, I'm trying
>> to get the status of my extensions with ejabberd , the idea is to
>> visualize my users ejabberd incoming calls or missed.
>>
>> I'm testing with my operator extension with this code but only get the
>> missed call notification does not show me where the call is coming.
>>
>> my piece of code
>>
>> [operadora]
>> exten => 0,1,Set(STATUS=${JABBER_STATUS(ejabberd,operadora at 172.16.8.59/alcides)})
>>         same=> n, GotoIf($[0${STATUS} = 1]?disponible:nodisponible)
>>         same=> n(disponible),
>> JabberSend(ejabberd,operadora at 172.16.8.59,"Llamada Entrante
>> ${CALLERID(num)}")
>>         same=> n,Dial(SIP/5001)
>>         same=> n,Hangup()
>>         same=> n(nodisponible),
>> JabberSend(ejabberd,operadora at 172.16.8.59,"Llamada perdida de
>> ${CALLERID(num)}
>> ")
>>         same=> n,Hangup()
>>
>>
>>
>> look the log
>>
>> Oct  1 08:04:10] NOTICE[4789][C-00000028]: res_xmpp.c:1631
>> acf_jabberstatus_read: Resource alcides of buddy operadora at 172.16.8.59
>> was not found.
>>     -- Executing [0 at locales:1] Set("SIP/5002-00000029", "STATUS=7") in new stack
>>     -- Executing [0 at locales:2] GotoIf("SIP/5002-00000029",
>> "0?disponible:nodisponible") in new stack
>>     -- Goto (locales,0,6)
>>     -- Executing [0 at locales:6] JabberSend("SIP/5002-00000029",
>> "ejabberd,operadora at 172.16.8.59,"Llamada perdida de 5002"") in new
>> stack
>>
>> [Oct  1 08:04:34] WARNING[13482][C-00000005]: pbx.c:6646
>> __ast_pbx_run: Channel 'Message/ast_msg_queue' sent to invalid
>> extension but no invalid handler: context,exten,priority=default,s,1
>>
>> not work for me, and I think this should work asterisk receiving presence status
>>
>> <--- XMPP received from 'operadora' --->
>> <presence from='operadora at 172.16.8.59/12233853371412171752845116'
>> to='operadora at 172.16.8.59/asterisk-xmpp'><show>chat</show><priority>1</priority><c
>> xmlns='http://jabber.org/protocol/caps' node='http://pidgin.im/'
>> hash='sha-1' ver='I22W7CegORwdbnu0ZiQwGpxr0Go='/><x
>> xmlns='vcard-temp:x:update'><photo/></x></presence>
>> <------------->
>>
>> any idea?
>>
>> regardss
>>
>>
>> --
>> rickygm
>>
>> http://gnuforever.homelinux.com
>
>
>
> --
> rickygm
>
> http://gnuforever.homelinux.com
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
>                http://www.asterisk.org/hello
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users



More information about the asterisk-users mailing list