AW: AW: [asterisk-users] ReceiveText()?
...You can declare a variable whose values gets set/used anywhere in the dialplan. Regards, Roland. -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Yuan LIU Gesendet: 25 February 2007 08:41 An: asterisk-users@lists.digium.com Betreff: RE: AW: [asterisk-users] ReceiveText()? From: Roland Ndaka Fru [EMAIL PROTECTED] Date: Sun, 25 Feb 2007 07:45:57 +0100 Here is how you can send/receive text in the DialPlan using an AGI script: print STDERR 1. Testing 'sendtext'...; print SEND TEXT \hello world\\n; my $result = STDIN; checkresult($result); print STDERR 2. Receiving Text 'receivetext'...; print RECEIVE TEXT 3000\n; my $result = STDIN; checkresult($result); Greetz, Roland. That's cool. Thanks for the pointer, Roland. Gotta go back to test-agi again. Now, if only one can pass value back into dial plan... Yuan Liu -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Olle E Johansson Gesendet: 24 February 2007 10:52 An: Asterisk Users Mailing List - Non-Commercial Discussion Betreff: Re: [asterisk-users] ReceiveText()? 24 feb 2007 kl. 03.15 skrev Yuan LIU: How do I receive text sent from SendText() application? Asterisk lists text capability, so SendText() is successful. But I don't see an application to actually use it. EyeBeam and several SIP phones does receive those messages. We need to make sure that the application and the parser supports UTF8 messages, as both SIP and IAX2 is standardized on UTF8 text messaging. /O ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: AW: [asterisk-users] ReceiveText()?
What is the mechanism used to SEND TEXT over a Zap channel? Is it FSK? Roland Ndaka Fru wrote: Here is how you can send/receive text in the DialPlan using an AGI script: print STDERR 1. Testing 'sendtext'...; print SEND TEXT \hello world\\n; my $result = STDIN; checkresult($result); print STDERR 2. Receiving Text 'receivetext'...; print RECEIVE TEXT 3000\n; my $result = STDIN; checkresult($result); Greetz, Roland. -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Olle E Johansson Gesendet: 24 February 2007 10:52 An: Asterisk Users Mailing List - Non-Commercial Discussion Betreff: Re: [asterisk-users] ReceiveText()? 24 feb 2007 kl. 03.15 skrev Yuan LIU: How do I receive text sent from SendText() application? Asterisk lists text capability, so SendText() is successful. But I don't see an application to actually use it. EyeBeam and several SIP phones does receive those messages. We need to make sure that the application and the parser supports UTF8 messages, as both SIP and IAX2 is standardized on UTF8 text messaging. /O ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: AW: AW: [asterisk-users] ReceiveText()?
Roland Ndaka Fru wrote: ...You can declare a variable whose values gets set/used anywhere in the dialplan. Like so: print SET VARIABLE ret $result\n; Dialplan: ...,NoOp(the result is: ${ret}) Regards, Philipp -- amooma GmbH - Bachstr. 126 - 56566 Neuwied - http://www.amooma.de Let's use IT to solve problems and not to create new ones. Asterisk - http://www.das-asterisk-buch.de Geschäftsführer: Stefan Wintermeyer Handelsregister: Neuwied B 14998 ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: AW: AW: [asterisk-users] ReceiveText()?
From: Philipp Kempgen [EMAIL PROTECTED] Date: Sun, 25 Feb 2007 17:34:19 +0100 Roland Ndaka Fru wrote: ...You can declare a variable whose values gets set/used anywhere in the dialplan. Like so: print SET VARIABLE ret $result\n; This is one technique missed in a previous thread about returning results from AGI. So neat! Thanks a lot, Philipp and Roland. Yuan Liu Dialplan: ...,NoOp(the result is: ${ret}) Regards, Philipp ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: AW: [asterisk-users] ReceiveText()?
From: Michael Welter [EMAIL PROTECTED] Date: Sun, 25 Feb 2007 08:53:09 -0700 What is the mechanism used to SEND TEXT over a Zap channel? Is it FSK? show AGI send text indicates that it does so in channels that supports text. show agi receive text indicates that most channels do not support text. I take it that Zap channel doesn't. Yuan Liu Roland Ndaka Fru wrote: Here is how you can send/receive text in the DialPlan using an AGI script: print STDERR 1. Testing 'sendtext'...; print SEND TEXT \hello world\\n; my $result = STDIN; checkresult($result); print STDERR 2. Receiving Text 'receivetext'...; print RECEIVE TEXT 3000\n; my $result = STDIN; checkresult($result); Greetz, Roland. -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Olle E Johansson Gesendet: 24 February 2007 10:52 An: Asterisk Users Mailing List - Non-Commercial Discussion Betreff: Re: [asterisk-users] ReceiveText()? 24 feb 2007 kl. 03.15 skrev Yuan LIU: How do I receive text sent from SendText() application? Asterisk lists text capability, so SendText() is successful. But I don't see an application to actually use it. EyeBeam and several SIP phones does receive those messages. We need to make sure that the application and the parser supports UTF8 messages, as both SIP and IAX2 is standardized on UTF8 text messaging. /O ___ --Bandwidth and Colocation provided by Easynews.com -- ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: AW: [asterisk-users] ReceiveText()?
Yuan LIU wrote: From: Michael Welter [EMAIL PROTECTED] Date: Sun, 25 Feb 2007 08:53:09 -0700 What is the mechanism used to SEND TEXT over a Zap channel? Is it FSK? show AGI send text indicates that it does so in channels that supports text. show agi receive text indicates that most channels do not support text. I take it that Zap channel doesn't. This is the CLI help text: ---cut--- -= Info about application 'SendText' =- [Synopsis] Send a Text Message [Description] SendText(text[|options]): Sends text to current channel (callee). Result of transmission will be stored in the SENDTEXTSTATUS channel variable: SUCCESS Transmission succeeded FAILURE Transmission failed UNSUPPORTED Text transmission not supported by channel At this moment, text is supposed to be 7 bit ASCII in most channels. The option string many contain the following character: 'j' -- jump to n+101 priority if the channel doesn't support text transport ---cut--- So you might just try and see what SENDTEXTSTATUS you get. Regards, Philipp -- amooma GmbH - Bachstr. 126 - 56566 Neuwied - http://www.amooma.de Let's use IT to solve problems and not to create new ones. Asterisk - http://www.das-asterisk-buch.de Geschäftsführer: Stefan Wintermeyer Handelsregister: Neuwied B 14998 ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: AW: [asterisk-users] ReceiveText()?
From: Philipp Kempgen [EMAIL PROTECTED] Date: Mon, 26 Feb 2007 06:59:46 +0100 Yuan LIU wrote: From: Michael Welter [EMAIL PROTECTED] Date: Sun, 25 Feb 2007 08:53:09 -0700 What is the mechanism used to SEND TEXT over a Zap channel? Is it FSK? show AGI send text indicates that it does so in channels that supports text. show agi receive text indicates that most channels do not support text. I take it that Zap channel doesn't. This is the CLI help text: ---cut--- -= Info about application 'SendText' =- [Synopsis] Send a Text Message [Description] SendText(text[|options]): Sends text to current channel (callee). Result of transmission will be stored in the SENDTEXTSTATUS channel variable: SUCCESS Transmission succeeded FAILURE Transmission failed UNSUPPORTED Text transmission not supported by channel At this moment, text is supposed to be 7 bit ASCII in most channels. The option string many contain the following character: 'j' -- jump to n+101 priority if the channel doesn't support text transport ---cut--- So you might just try and see what SENDTEXTSTATUS you get. Regards, Philipp Mmm. In 1.2.x and 1.4.0, CLI show agi send text Usage: SEND TEXT text to send Sends the given text on a channel. Most channels do not support the transmission of text. Returns 0 if text is sent, or if the channel does not support text transmission. Returns -1 only on error/hangup. Text consisting of greater than one word should be placed in quotes since the command only accepts a single argument. Guess the morale is: always check in your own version. (I wasted numerous hours trying to get =~ to work in 1.2.13:-( Yuan Liu ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: AW: [asterisk-users] ReceiveText()?
Yuan LIU wrote: Mmm. In 1.2.x and 1.4.0, CLI show agi send text Usage: SEND TEXT text to send I posted the CLI help text of the SendText() application which should basically do the same thing. Sorry for not making that clear. Regards, Philipp -- amooma GmbH - Bachstr. 126 - 56566 Neuwied - http://www.amooma.de Let's use IT to solve problems and not to create new ones. Asterisk - http://www.das-asterisk-buch.de Geschäftsführer: Stefan Wintermeyer Handelsregister: Neuwied B 14998 ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
AW: [asterisk-users] ReceiveText()?
Here is how you can send/receive text in the DialPlan using an AGI script: print STDERR 1. Testing 'sendtext'...; print SEND TEXT \hello world\\n; my $result = STDIN; checkresult($result); print STDERR 2. Receiving Text 'receivetext'...; print RECEIVE TEXT 3000\n; my $result = STDIN; checkresult($result); Greetz, Roland. -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Olle E Johansson Gesendet: 24 February 2007 10:52 An: Asterisk Users Mailing List - Non-Commercial Discussion Betreff: Re: [asterisk-users] ReceiveText()? 24 feb 2007 kl. 03.15 skrev Yuan LIU: How do I receive text sent from SendText() application? Asterisk lists text capability, so SendText() is successful. But I don't see an application to actually use it. EyeBeam and several SIP phones does receive those messages. We need to make sure that the application and the parser supports UTF8 messages, as both SIP and IAX2 is standardized on UTF8 text messaging. /O ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
RE: AW: [asterisk-users] ReceiveText()?
From: Roland Ndaka Fru [EMAIL PROTECTED] Date: Sun, 25 Feb 2007 07:45:57 +0100 Here is how you can send/receive text in the DialPlan using an AGI script: print STDERR 1. Testing 'sendtext'...; print SEND TEXT \hello world\\n; my $result = STDIN; checkresult($result); print STDERR 2. Receiving Text 'receivetext'...; print RECEIVE TEXT 3000\n; my $result = STDIN; checkresult($result); Greetz, Roland. That's cool. Thanks for the pointer, Roland. Gotta go back to test-agi again. Now, if only one can pass value back into dial plan... Yuan Liu -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Olle E Johansson Gesendet: 24 February 2007 10:52 An: Asterisk Users Mailing List - Non-Commercial Discussion Betreff: Re: [asterisk-users] ReceiveText()? 24 feb 2007 kl. 03.15 skrev Yuan LIU: How do I receive text sent from SendText() application? Asterisk lists text capability, so SendText() is successful. But I don't see an application to actually use it. EyeBeam and several SIP phones does receive those messages. We need to make sure that the application and the parser supports UTF8 messages, as both SIP and IAX2 is standardized on UTF8 text messaging. /O ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users