[asterisk-users] Mr. Spencer Written
Hi, Mr. Spencer written the article Using DUNDi with a Cluster of Asterisk Servers http://www.voip-magazine.com/content/view/3644/0/1/0/ in the VoIP Magazine and the piece follow: [lookupdundi] exten = _X,1,Goto(${ARG1},1) switch = DUNDi/priv exten = i,1,Goto(lookupmysql,${INVALID_EXTEN},1) I didn't get understand the usage ARG1 argument in the context. Do use ARG1 variable only into macro? Is not this usage apparent contradiction with Asterisk documents? Do anyone get explain this? Regards, Cleviton ___ --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
RES: [asterisk-users] Mr. Spencer Written
Perfect, Auriol! Exactly this. Cléviton. -Mensagem original- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Em nome de Seb Auriol Enviada em: terça-feira, 15 de maio de 2007 12:45 Para: 'Asterisk Users Mailing List - Non-Commercial Discussion' Assunto: RE: [asterisk-users] Mr. Spencer Written Kristian Kielhofner wrote: On 5/15/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, Mr. Spencer written the article Using DUNDi with a Cluster of Asterisk Servers in the VoIP Magazine and the piece follow: [lookupdundi] exten = _X,1,Goto(${ARG1},1) switch = DUNDi/priv exten = i,1,Goto(lookupmysql,${INVALID_EXTEN},1) I didn't get understand the usage ARG1 argument in the context. Do use ARG1 variable only into macro? Is not this usage apparent contradiction with Asterisk documents? Do anyone get explain this? Regards, Cleviton Cleviton, You can pass arguments into a macro: exten = 500,1,Macro(something,${EXTEN}) [macro-something] exten = s,1,Dial(SIP/${ARG1},60) This is perfectly valid. You can pass multiple arguments and read them with ${ARG1}, ${ARG2}, etc, etc: http://www.voip-info.org/wiki-Asterisk+variables#Macrospecificvariables Kristian, I think Cleviton's point was that [lookupdundi] does not appear to be a macro, and so how can it have arguments if it just a normal context / extension? Kind regards, Sebastian ___ --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
[asterisk-users] Support for Intel Boards On Asterisk
Folks, Anyone have any News about partner among Digium and Intel Dialogic for the Asterisk Business Edition offers support for the Dialogic Boards? Regards, Cleviton Mendes de Araujo Telecommunications Engineer CAIXA ECONOMICA FEDERAL of Brazil +55 11 3685-6641. ___ --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
RES: [Asterisk-Users] Meetme max users
Hi, Matt: What´s your server specifications that did you use? Best Regards, Cleviton. -Mensagem original- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] nome de Matt Florell Enviada em: sexta-feira, 23 de junho de 2006 11:38 Para: Asterisk Users Mailing List - Non-Commercial Discussion Assunto: Re: [Asterisk-Users] Meetme max users We've had over 100 participants spread across 30 meetme rooms on a single server before, and the most we've had in a single meetme room is 46. I don't know of a hard limit for meetme participants and I haven't seen a limit in the code. You would most likely be limited by the resources on your server I would guess. MATT--- On 6/23/06, Bartosz Wegrzyn - asterisk [EMAIL PROTECTED] wrote: Does anyone knows what is the max of users that meefme can handle. I am using Iax2 clients to connect to the conference. Thanks ___ --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
[Asterisk-Users] Script AGI on C
Hi Folks: I used that one example for AGI script on C web, only to fill the working with the Asterisk. I compiled and it worked great. I executed accidentally the ls -l command in directory where was the source and executable, I noted and was surprised that because the executable size was to further 20 times more than source. I executed the gcc -Os source.c -o executable.agi command several times, with otimization flags different. Maximum i can affort to reduce the executable size was 17 times. The source size full comment is 448 Bytes; The size executable was about 7615 Bytes. (the maximum i got to reduce) I was hope the executable size was in the order of magnitude of the proper source size, since the comments are long. Do one get to explain because of this? Is this overhead consequence of linking with the operational system? The script use only four functions of stdio.h library. It was seem that the compiler include all stdio.h functions and compile all them. I would like somebody of list to clear my doubt. Regards, Cleviton. Here below small script used I grasp on site: http://home.cogeco.ca/~camstuff/agi.html /* C works just fine with Asterisk but you should use 'setlinebuf' on stdout and stderr. This causes buffering one line at a time (rather than using a larger buffer). If you *don't* do this on stdout then your script will hang up while Asterisk waits for a command but the (long) buffer isn't full yet. A minimal AGI script in C looks like this: */ // #include stdio.h main() { charline[80]; /* use line buffering */ setlinebuf(stdout); setlinebuf(stderr); /* read and ignore AGI environment */ while (1) { fgets(line,80,stdin); if (strlen(line) = 1) break; } /* Send asterisk a command */ printf(SAY NUMBER 123 \\\n); /* Read response from Asterisk and show on console */ fgets(line,80,stdin); fputs(line,stderr); } ___ --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
RES: [Asterisk-Users] GET DATA and STREAM FILE com mands, don´t work
Mr. McAllister, thanks by the tip. It´s working perfect. Cleviton. -Mensagem original- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] nome de Josh McAllister Enviada em: segunda-feira, 15 de maio de 2006 15:40 Para: Asterisk Users Mailing List - Non-Commercial Discussion Assunto: RE: [Asterisk-Users] GET DATA and STREAM FILE commands, don´t work -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Monday, May 15, 2006 8:19 AM To: asterisk-users@lists.digium.com Subject: [Asterisk-Users] GET DATA and STREAM FILE commands, don´t work ... Now, below is my script in bash shell, scriptTest.bsh: #!/bin/bash #echo -e Testing the working GET DATA and STREAM FILE\n 2 echo -e STREAM FILE demo-instruct \\\n echo -e GET DATA myprompt 4000 6\n read getDigits echo -e My Digits are: $getDigits\n 2 echo -e HUNGUP\n The first thing asterisk does once it starts an AGI process is to send various details about the caller to your script's STDIN. You need to read all that in before issuing any commands. Add the following to the top of your script: declare -a array while read -e ARG [ $ARG ] ; do array=(` echo $ARG | sed -e 's/://'`) export ${array[0]}=${array[1]} done This will export various ENV variables containing the info asterisk is sending. For more info look at the BASH resources on the Asterisk AGI page of voip-info.org. (http://www.voip-info.org/wiki-Asterisk+AGI) Josh McAllister ___ --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
[Asterisk-Users] GET DATA and STREAM FILE command s, don´t work
Hi, I have been written an small script for test the use these commands. I had done massive test with commands, but I didn´t get success it. Any of the cases, I don´t listen nothing on channel that call 2100 extension. I dial 2100 extension through an cisco phone 7912 with SIP, also I dialed through ATA SIP (Linksys PAP-2). I´m using Asterisk 1.2.7.1 and ztdummy driver, linux kernel 2.6.11.4. I also have been done exhausting testing another Asterisk functionalities and all had worked very well, perfectly well. But, some AGI commands not. I would like get help upon it. Somebody already faced this before? Following, my dialplan that call agi script: exten=2100,1,Answer() exten=2100,2,Agi(scriptTest.bsh) Now, below is my script in bash shell, scriptTest.bsh: #!/bin/bash #echo -e Testing the working GET DATA and STREAM FILE\n 2 echo -e STREAM FILE demo-instruct \\\n echo -e GET DATA myprompt 4000 6\n read getDigits echo -e My Digits are: $getDigits\n 2 echo -e HUNGUP\n I changed some times the path, put full path (/var/lib/asterisk/sounds) to the demo-instruct and mypromt files, but didn´t work. I entered all the command arguments, but it didn´t. Regards, Cleviton Araujo Below, follow the console verbose of the several attempts. Sorry by bit verboses, but think be need at the detail of the problem: Connected to Asterisk 1.2.7.1 currently running on linux (pid = 19044) Verbosity is at least 18 -- Executing AGI(SIP/8070-609b, teste.bsh) in new stack -- Launched AGI Script /var/lib/asterisk/agi-bin/teste.bsh AGI Tx agi_request: teste.bsh AGI Tx agi_channel: SIP/8070-609b AGI Tx agi_language: en AGI Tx agi_type: SIP AGI Tx agi_uniqueid: 1147466306.21 AGI Tx agi_callerid: 8070 AGI Tx agi_calleridname: Michely Germano AGI Tx agi_callingpres: 0 AGI Tx agi_callingani2: 0 AGI Tx agi_callington: 0 AGI Tx agi_callingtns: 0 AGI Tx agi_dnid: 2100 AGI Tx agi_rdnis: unknown AGI Tx agi_context: test AGI Tx agi_extension: 2100 AGI Tx agi_priority: 1 AGI Tx agi_enhanced: 0.0 AGI Tx agi_accountcode: AGI Tx AGI Rx GET DATA /var/lib/asterisk/sounds/demo-instruct -- Playing '/var/lib/asterisk/sounds/demo-instruct' (language 'en') AGI Rx AGI Tx 510 Invalid or unknown command AGI Rx HANGUP AGI Tx 200 result=1 AGI Rx AGI Tx 510 Invalid or unknown command -- AGI Script teste.bsh completed, returning 0 linux*CLI Connected to Asterisk 1.2.7.1 currently running on linux (pid = 19044) Verbosity is at least 18 -- Executing AGI(SIP/8070-5638, teste.bsh) in new stack -- Launched AGI Script /var/lib/asterisk/agi-bin/teste.bsh AGI Tx agi_request: teste.bsh AGI Tx agi_channel: SIP/8070-5638 AGI Tx agi_language: en AGI Tx agi_type: SIP AGI Tx agi_uniqueid: 1147466526.25 AGI Tx agi_callerid: 8070 AGI Tx agi_calleridname: Michely Germano AGI Tx agi_callingpres: 0 AGI Tx agi_callingani2: 0 AGI Tx agi_callington: 0 AGI Tx agi_callingtns: 0 AGI Tx agi_dnid: 2100 AGI Tx agi_rdnis: unknown AGI Tx agi_context: test AGI Tx agi_extension: 2100 AGI Tx agi_priority: 1 AGI Tx agi_enhanced: 0.0 AGI Tx agi_accountcode: AGI Tx AGI Rx GET DATA demo-instruct 4000 5 -- Playing 'demo-instruct' (language 'en') AGI Rx AGI Tx 510 Invalid or unknown command AGI Rx HANGUP AGI Tx 200 result=1 AGI Rx AGI Tx 510 Invalid or unknown command -- AGI Script teste.bsh completed, returning 0 linux*CLI Connected to Asterisk 1.2.7.1 currently running on linux (pid = 19044) Verbosity is at least 18 -- Executing AGI(SIP/8070-7f33, teste.bsh) in new stack -- Launched AGI Script /var/lib/asterisk/agi-bin/teste.bsh AGI Tx agi_request: teste.bsh AGI Tx agi_channel: SIP/8070-7f33 AGI Tx agi_language: en AGI Tx agi_type: SIP AGI Tx agi_uniqueid: 1147466745.27 AGI Tx agi_callerid: 8070 AGI Tx agi_calleridname: Michely Germano AGI Tx agi_callingpres: 0 AGI Tx agi_callingani2: 0 AGI Tx agi_callington: 0 AGI Tx agi_callingtns: 0 AGI Tx agi_dnid: 2100 AGI Tx agi_rdnis: unknown AGI Tx agi_context: test AGI Tx agi_extension: 2100 AGI Tx agi_priority: 1 AGI Tx agi_enhanced: 0.0 AGI Tx agi_accountcode: AGI Tx AGI Rx Testing the working GET DATA and STREAM FILE AGI Tx 510 Invalid or unknown command AGI Rx AGI Tx 510 Invalid or unknown command AGI Rx GET OPTION demo-instruct #2 -- Playing 'demo-instruct' (escape_digits=#2) (timeout 5000) AGI Rx AGI Tx 510 Invalid or unknown command AGI Rx HANGUP AGI Tx 200 result=1 == Spawn extension (test, 2100, 1) exited non-zero on 'SIP/8070-7f33' linux*CLI linux:/var/lib/asterisk/agi-bin # Connected to Asterisk 1.2.7.1 currently running on linux (pid = 19044) Verbosity is at least 18 -- Executing AGI(SIP/8070-3abb, teste.bsh) in new stack -- Launched AGI Script /var/lib/asterisk/agi-bin/teste.bsh AGI Tx agi_request: teste.bsh AGI Tx agi_channel: SIP/8070-3abb AGI Tx agi_language: en AGI Tx agi_type: SIP AGI Tx agi_uniqueid: 1147467069.29 AGI Tx agi_callerid: 8070 AGI Tx agi_calleridname: Michely