Re: [asterisk-users] AEL keyword IfTime with variable on time range
Sorry, I forget to tell I tried, but not works. *Context:* context ivr_temp2 { s = { Proceeding(); str_time_01 = '06:00-12:00|*|*|*'; // Manhã ifTime (${str_time_01}) { Playback(ura/bom_dia); } } } The error is showed on ael reload. *Console errors:* rssr304*CLI ael reload Command 'ael reload' failed. [May 12 14:31:52] NOTICE[20773]: pbx_ael.c:164 pbx_load_module: Starting AEL load process. [May 12 14:31:52] ERROR[20773]: ael.y:840 ael_yyerror: File: /etc/asterisk/extensions.ael, Line 315, Cols: 32-32: Error: syntax error, unexpected ')', expecting '|' [May 12 14:31:52] NOTICE[20773]: pbx_ael.c:177 pbx_load_module: AEL load process: parsed config file name '/etc/asterisk/extensions.ael'. [May 12 14:31:52] ERROR[20773]: pbx_ael.c:197 pbx_load_module: Sorry, but 1 syntax errors and 0 semantic errors were detected. It doesn't make sense to compile. [image: Sua Foto] rafaels...@gmail.comRafael S. SaraivaPorto Alegre - RS | Mobile: (51) 8174-7956 http://br.linkedin.com/pub/rafael-saraiva/52/aab/230 https://plus.google.com/u/0/+RafaelSaraivaRS 2015-05-12 13:51 GMT-03:00 Tech Support aster...@voipbusiness.us: You should try it and find out if it works. If it does, let us know. Regards; John *From:* asterisk-users-boun...@lists.digium.com [mailto: asterisk-users-boun...@lists.digium.com] *On Behalf Of *Rafael dos Santos Saraiva *Sent:* Tuesday, May 12, 2015 11:58 AM *To:* Asterisk Users Mailing List - Non-Commercial Discussion *Subject:* [asterisk-users] AEL keyword IfTime with variable on time range Hi It's possible using a variable in the iftime keyword argument? E.g: context text { s = { timerange = '06:00-12:00|*|*|*'; ifTime(${timerange} { Playback(ivr/goodbye); } } } thanks [image: Image removed by sender. Sua Foto] rafaels...@gmail.com *Rafael S. Saraiva* Porto Alegre - RS | Mobile: [image: Image removed by sender.] (51) 8174-7956 [image: Image removed by sender.] http://br.linkedin.com/pub/rafael-saraiva/52/aab/230 [image: Image removed by sender.] https://plus.google.com/u/0/+RafaelSaraivaRS -- _ -- 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 -- _ -- 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
Re: [asterisk-users] AEL keyword IfTime with variable on time range
You should try it and find out if it works. If it does, let us know. Regards; John From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Rafael dos Santos Saraiva Sent: Tuesday, May 12, 2015 11:58 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: [asterisk-users] AEL keyword IfTime with variable on time range Hi It's possible using a variable in the iftime keyword argument? E.g: context text { s = { timerange = '06:00-12:00|*|*|*'; ifTime(${timerange} { Playback(ivr/goodbye); } } } thanks mailto:rafaels...@gmail.com Image removed by sender. Sua Foto Rafael S. Saraiva Porto Alegre - RS | Mobile: Image removed by sender. (51) 8174-7956 http://br.linkedin.com/pub/rafael-saraiva/52/aab/230 Image removed by sender. https://plus.google.com/u/0/+RafaelSaraivaRS Image removed by sender. -- _ -- 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
Re: [asterisk-users] Retransmission Timeout results in dropped calls after 32 seconds
- Original Message - From: Andrew Martin amar...@xes-inc.com To: Asterisk Users Mailing List - Non-Commercial Discussion asterisk-users@lists.digium.com Sent: Monday, May 11, 2015 4:18:58 PM Subject: Re: [asterisk-users] Retransmission Timeout results in dropped calls after 32 seconds - Original Message - From: Andrew Martin amar...@xes-inc.com To: Asterisk Users Mailing List - Non-Commercial Discussion asterisk-users@lists.digium.com Sent: Monday, May 11, 2015 1:35:07 PM Subject: Re: [asterisk-users] Retransmission Timeout results in dropped calls after 32 seconds That should be all that is required. If that were broken I'd expect issue reports to implode - what's the configuration? Here's the sip.conf (only showing a single extension since they're all the same): [general] directmedia=no directrtpsetup=no dtmfmode=rfc2833 context=asterisk-internal allowsubscribe=no qualify=no disallow=all allow=ulaw allow=alaw allow=gsm localnet=10.10.32.0/255.255.248.0 localnet=192.168.32.0/255.255.255.0 [146] secret= host=dynamic type=friend From the aforementioned sip debug capture, 146 is on the 10.10.32.0/21 network and 113 is on the 192.168.32.0/24 network (these are directly route-able so no NAT is involved). However, I have now been able to reproduce the problem between two devices directly on the 10.10.32.0/21 network as well. I've gathered the log for this dialog from the SIP phone: http://pastebin.com/aAWs4j6i What I see is that there's an INVITE for CSeq 103, then an OK for CSeq 103, then another INVITE is received for CSeq 103, at which point the phone reports an error: 0 | ERROR | receive a request with same cseq?? From the asterisk side, it never seems to receive this OK for CSeq 103, hence the reason it sends out the INVITE again. Joshua, As a mitigation for this problem, could I increase the timerb option in sip.conf to a large value, say 1 hour (instead of the default 32 seconds)? What other consequences would there be from this change? Thanks, Andrew -- _ -- 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
Re: [asterisk-users] Retransmission Timeout results in dropped calls after 32 seconds
Andrew Martin wrote: snip Joshua, As a mitigation for this problem, could I increase the timerb option in sip.conf to a large value, say 1 hour (instead of the default 32 seconds)? What other consequences would there be from this change? I don't know if chan_sip will allow this, but if it does... it'll keep transmitting over and over... it would be better to get to the bottom of the problem. Do a packet capture on the machine running Asterisk and see where the packet goes. That's the only thing left really. It's also possible something got fixed in relation to directmedia between your version and latest 11. -- Joshua Colp Digium, Inc. | Senior Software Developer 445 Jan Davis Drive NW - Huntsville, AL 35806 - US Check us out at: www.digium.com www.asterisk.org -- _ -- 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
[asterisk-users] AEL keyword IfTime with variable on time range
Hi It's possible using a variable in the iftime keyword argument? E.g: context text { s = { timerange = '06:00-12:00|*|*|*'; ifTime(${timerange} { Playback(ivr/goodbye); } } } thanks [image: Sua Foto] rafaels...@gmail.comRafael S. SaraivaPorto Alegre - RS | Mobile: (51) 8174-7956 http://br.linkedin.com/pub/rafael-saraiva/52/aab/230 https://plus.google.com/u/0/+RafaelSaraivaRS -- _ -- 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