[asterisk-bugs] [Asterisk 0012569]: [branch] Receiving Text from res_jabber
Asterisk Bug Tracker
noreply at bugs.digium.com
Wed Jan 14 09:11:28 CST 2009
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: Resources/res_jabber
Reproducibility: always
Severity: feature
Priority: normal
Status: ready for testing
Asterisk Version: SVN
Regression: No
SVN Branch (only for SVN checkouts, not tarball releases): trunk
SVN Revision (number only!): 115340
Disclaimer on File?: N/A
Request Review:
======================================================================
Date Submitted: 2008-05-02 00:38 CDT
Last Modified: 2009-01-14 09:11 CST
======================================================================
Summary: [branch] Receiving Text from res_jabber
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...
======================================================================
----------------------------------------------------------------------
(0097720) phsultan (manager) - 2009-01-14 09:11
http://bugs.digium.com/view.php?id=12569#c97720
----------------------------------------------------------------------
blitzrage: you don't even need to have a GoogleTalk client to test the
JABBER_RECEIVE function, a regular XMPP client without any media capability
can be used. Here is a dialplan example, that allows the user
bob at jabber.org to interact with Asterisk when a call comes to extension
1234 :
context from-ext {
1234 => {
Answer();
JabberSend(asterisk-xmpp,bob at jabber.org,Call from $CALLERID(num) -
choose an option to process the call);
JabberSend(asterisk-xmpp,bob at jabber.org,1 : forward to cellphone);
JabberSend(asterisk-xmpp,bob at jabber.org,2 : forward to work phone);
JabberSend(asterisk-xmpp,bob at jabber.org,Default action : forward to
your voicemail);
Set(OPTION=${JABBER_RECEIVE(asterisk-xmpp,bob at jabber.org,20)});
switch (${OPTION}) {
case 1:
JabberSend(asterisk-xmpp,bob at jabber.org,(Calling cellphone...);
Dial(SIP/987654321);
break;
case 2:
JabberSend(asterisk-xmpp,bob at jabber.org,(Calling workphone...);
Dial(SIP/${EXTEN});
break;
default:
Voicemail(${EXTEN}|u)
}
}
}
If you have a media capable XMPP client (ex. GoogleTalk), you can use the
CALLERID(name) variable content along with the SendTextJABBER_RECEIVE
application/function to chat with the end user. In the following example, a
user establishes a voice call from his GoogleTalk client to Asterisk, and
Asterisk asks him to enter an extension number that it will furtherly call
:
context gtalk-in {
s => {
NoOp(Caller id : ${CALLERID(all)});
Answer();
SendText(Please enter the number you wish to call);
Set(NEWEXTEN=${JABBER_RECEIVE(asterisk-xmpp,${CALLERID(name)})});
SendText(Calling ${NEWEXTEN} ...);
Dial(SIP/${NEWEXTEN);
Hangup();
}
}
Issue History
Date Modified Username Field Change
======================================================================
2009-01-14 09:11 phsultan Note Added: 0097720
======================================================================
More information about the asterisk-bugs
mailing list