[asterisk-bugs] [Asterisk 0012569]: Receiving Text from chan_gtalk

noreply at bugs.digium.com noreply at bugs.digium.com
Thu May 15 16:30:42 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=12569 
====================================================================== 
Reported By:                eech55
Assigned To:                phsultan
====================================================================== 
Project:                    Asterisk
Issue ID:                   12569
Category:                   Channels/chan_gtalk
Reproducibility:            always
Severity:                   feature
Priority:                   normal
Status:                     feedback
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 115340 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             05-02-2008 00:38 CDT
Last Modified:              05-15-2008 16:30 CDT
====================================================================== 
Summary:                    Receiving Text from chan_gtalk
Description: 
Hello,

So far, chan_gtalk sends text to GTalk clients only. There is no way to
hear input from them which limit us a lot.

It will be awesome if we are able to receive text from GTalk users, to
provide extra services such as:

1) Voice menus. The user can select menus by sending corresponding keys
2) Or, "text" menus by which the chan_gtalk replies by text messages
instead of voice

I am glad that phsultan thought about it, however very disappointed that
it was canceled.
http://bugs.digium.com/bug_view_advanced_page.php?bug_id=8659


======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
related to          0008659 [patch] Add a jabber text receiver appl...
====================================================================== 

---------------------------------------------------------------------- 
 eech55 - 05-15-08 16:30  
---------------------------------------------------------------------- 
Hello phsultan, my apologies for the delay.

The patch seems working fine till now, and there was no segfault with me.

In an attempt to allow any user to call, as long as he is a buddy of my
Asterisk's gmail account, here's a related part of my extensions.conf.
jabber.conf and gtalk.conf remain unchanged.

[gtalk-in]
exten => s,1,answer()
exten => s,n,SendText("What extention to call?")
exten => s,n,JabberReceive(${CALLERID(name)},RCV_EXT) 
exten => s,n,goto(family,${RCV_EXT},1)
exten => s,n,hangup()

In the following output, I'm using the above configuration in
extensions.conf. Asterisk answers the GTalk call as supposed, however, when
I sent "000" to be dialed it wasn't successful. It works fine when I
manually type in the GTalk account name (I'm trying to allow any GTalk
account as long as he's a buddy, to have a similar effect as the 1st
patch):-

ABBER: asterisk INCOMING:
<message to="hqvoip at gmail.com/asterisk8299F195" type="chat" id="522"
from="mahmoud.khonji at gmail.com/Talk.v1042486D9A3"><body>000</body><active
xmlns="http://jabber.org/protocol/chatstates"/><nos:x value="disabled"
xmlns:nos="google:nosave"/><arc:record otr="false"
xmlns:arc="http://jabber.org/protocol/archive"/></message>
[May 16 01:11:35] NOTICE[28684]: res_jabber.c:1521 aji_handle_message:
chan->appl : JabberReceive
[May 16 01:11:35] NOTICE[28684]: res_jabber.c:1522 aji_handle_message:
chan->data : mahmoud.khonji at gmail.com/Talk.v1042486D9A3,RCV_EXT
[May 16 01:11:35] NOTICE[28684]: res_jabber.c:1539 aji_handle_message:
chan was FOUND 
  == Spawn extension (gtalk-in, s, 4) exited non-zero on
'Gtalk/mahmoud.khonji-d07c'

JABBER: asterisk OUTGOING: <iq type='set'
from='hqvoip at gmail.com/asterisk8299F195'
to='mahmoud.khonji at gmail.com/Talk.v1042486D9A3' id='aaabc'><session
type='terminate' id='3328567944'
initiator='mahmoud.khonji at gmail.com/Talk.v1042486D9A3'
xmlns='http://www.google.com/session'/></iq>
HQ*CLI> 
JABBER: asterisk INCOMING: <iq to="hqvoip at gmail.com/asterisk8299F195"
id="aaabc" type="result"
from="mahmoud.khonji at gmail.com/Talk.v1042486D9A3"/>

By they, how would you like me to test JabberReceive with SIP/IAX? 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
05-15-08 16:30  eech55         Note Added: 0086924                          
======================================================================




More information about the asterisk-bugs mailing list