RE: [Asterisk-Users] pre-paid (new to asterisk, pls don't shoot on me)
On this subject - has anybody managed to implement a method of warning the caller that their call will expire? I've written a similar PrePaid test app in PHP/mySQL, I can calculate the timeout for the call and set the timeout etc - but I'd like to warn the user with beeps 15seconds before the call is disconnected. I've tried modifying the source so a flag is set whentowarn = (whentohangup - 15 seconds), this gives me the ability to execute a line in the main call loop. If I execute ast_streamfile c, beep, c-language the call bombs out. (I don't have the error to hand) Two questions; Has anybody successfully implemented this, either by way of source changes or by using the T extension (possibly something obvious I've missed?) Is it possible to interrupt a call with ast_streamfile, if so what is the correct sequence of code to do this (waitstream, stopstream etc?) - Original Message Follows - From: Alexander Romanov [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: RE: [Asterisk-Users] pre-paid (new to asterisk, pls don't shoot on me) Date: Tue, 30 Mar 2004 10:06:50 +1000 Check out app_prepaid.c (http://www.voip-info.org/tiki-index.php?page=Asterisk%20c allingcard) It needs a finish but it's a good start Cheers Alex. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Brent Franks Sent: Tuesday, 30 March 2004 2:35 AM To: [EMAIL PROTECTED] Subject: RE: [Asterisk-Users] pre-paid (new to asterisk, pls don't shoot on me) Google: Asterisk Calling Card - Brent -Original Message- From: [EMAIL PROTECTED] [mailto:asterisk-users- [EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Monday, March 29, 2004 11:23 AM To: [EMAIL PROTECTED] Subject: [Asterisk-Users] pre-paid (new to asterisk, pls don't shoot on me) Hi everybody =) new to asterisk, i'm trying to understand if it supports pre-paid cards with pin number, or if any software to manage pre-paid cards pins (better if open source) may be linked to asterisk. Or may be asterisk linked to a mysql/postgre/others database to update check credit expiration, shutting down the current call on credit expiration ? thanks, luca f. perozzo ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] pre-paid (new to asterisk, pls don't shoot on me)
Hi, On this subject - has anybody managed to implement a method of warning the caller that their call will expire? I've Two questions; Has anybody successfully implemented this, either by way of source changes or by using the T extension (possibly something obvious I've missed?) I made a patch to play a tone before absolutetimeout. Its ugly but it works, at least for me. http://bugs.digium.com/bug_view_page.php?bug_id=773 Best regards, Nicolas ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
[Asterisk-Users] pre-paid (new to asterisk, pls don't shoot on me)
Hi everybody =) new to asterisk, i'm trying to understand if it supports pre-paid cards with pin number, or if any software to manage pre-paid cards pins (better if open source) may be linked to asterisk. Or may be asterisk linked to a mysql/postgre/others database to update check credit expiration, shutting down the current call on credit expiration ? thanks, luca f. perozzo ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
RE: [Asterisk-Users] pre-paid (new to asterisk, pls don't shoot on me)
Google: Asterisk Calling Card - Brent -Original Message- From: [EMAIL PROTECTED] [mailto:asterisk-users- [EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Monday, March 29, 2004 11:23 AM To: [EMAIL PROTECTED] Subject: [Asterisk-Users] pre-paid (new to asterisk, pls don't shoot on me) Hi everybody =) new to asterisk, i'm trying to understand if it supports pre-paid cards with pin number, or if any software to manage pre-paid cards pins (better if open source) may be linked to asterisk. Or may be asterisk linked to a mysql/postgre/others database to update check credit expiration, shutting down the current call on credit expiration ? thanks, luca f. perozzo ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
RE: [Asterisk-Users] pre-paid (new to asterisk, pls don't shoot on me)
Check out app_prepaid.c (http://www.voip-info.org/tiki-index.php?page=Asterisk%20callingcard) It needs a finish but it's a good start Cheers Alex. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Brent Franks Sent: Tuesday, 30 March 2004 2:35 AM To: [EMAIL PROTECTED] Subject: RE: [Asterisk-Users] pre-paid (new to asterisk, pls don't shoot on me) Google: Asterisk Calling Card - Brent -Original Message- From: [EMAIL PROTECTED] [mailto:asterisk-users- [EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Monday, March 29, 2004 11:23 AM To: [EMAIL PROTECTED] Subject: [Asterisk-Users] pre-paid (new to asterisk, pls don't shoot on me) Hi everybody =) new to asterisk, i'm trying to understand if it supports pre-paid cards with pin number, or if any software to manage pre-paid cards pins (better if open source) may be linked to asterisk. Or may be asterisk linked to a mysql/postgre/others database to update check credit expiration, shutting down the current call on credit expiration ? thanks, luca f. perozzo ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users