Re: [asterisk-users] Roaming callback?
t; >> ${FromPathFile}) exten => s,n,TrySystem(echo "Priority: ${ARG7} \n" >> ${FromPathFile}) exten => s,n,TrySystem(echo "CallerID: ${ARG8} \n" >> ${FromPathFile}) exten => s,n,TrySystem(echo "SetVar: ${ARG9} \n" >> ${FromPathFile}) exten => s,n,TrySystem(echo "Account: ${ARG10} \n" >> ${FromPathFile}) exten => s,n,Set(DestPathFile=${FromPathFile}) exten => s,n,Set(DestPathFile=${CALLFILE_PATH}${DestPathFile:4}) exten => s,n,System(nohup "${AGI_BIN_PATH}"/agi-exec-bckgd-for-move.sh "${FromPathFile}" "${DestPathFile}" 1>/dev/null 2>&1 &);one long line exten => s,n,Return() [doringback] ; in a NEW CHANNEL NOW-the call-file created channel Zap/3 exten => s,1,Verbose(== in context doringback ready to dial ring back caller) ; THE Zap/2 CALL WILL OCCUR (USUALLY) BEFORE THE CALL-FILE CALL ; exten => s,n,Dial(Zap/2,20,r) ; check DIALSTATUS etc exten => s,n,Hangup() Hope this helps, Gerald Harshany >> Original Message >> Subject: [SPAM] Re: [asterisk-users] Roaming callback? >> From: SIP <[EMAIL PROTECTED]> >> Date: Mon, April 28, 2008 1:25 pm >> To: Asterisk Users Mailing List - Non-Commercial Discussion >> >> Cc: Jerry Harshany <[EMAIL PROTECTED]> >> Jaap Winius wrote: >> > Quoting Jerry Harshany <[EMAIL PROTECTED]>: >> > >> > >> >> There is an additional alternative for a ringback to a caller, which >> >> is to use the Call File capability as noted in Van Meggelen's >> >> "Future of Telephone"; 2nd ed, p306. >> >> >> > >> > As it says in the book, call files allow calls to be created through >> > the Linux shell. If you've used this to create a roaming callback >> > service, then you must have created something that allows users to >> > submit a phone number to be called back on, after which a .call file >> > is created and moved to the /var/spool/asterisk/outgoing/ directory. >> > >> > >> >> sleep 8s >> >> mv "$1" "$2" >> >> exit 0 >> >> >> > >> > This looks like the step that moves the newly created call file to the >> > aforementioned directory. >> > >> > >> >> In my case, when the caller calls in to 'asterisk', he is prompted >> >> for the number he wishes to call. The caller can be at a US or >> >> international number, and he can call any US or international >> >> number, WITH or WITHOUT ringback. In other words the caller >> >> designates whether this is a direct connect call, or a ringback (and >> >> then bridge the called number). I have the complete flexibility of >> >> my dial plan extensions to do as I wish with the phone numbers. >> >> >> > >> > This is what I'm really interested in! How did you manage this? Would >> > you be willing to share how you did this? >> > >> > >> I would imagine if it's a callback, it creates a callfile. If it's not, >> it just connects the call as it would normally. We have a similar thing >> for our business customers built using a reasonably simple agi script to >> do verification of the caller/account and creation of the call files. A >> rather simple Dial command can handle the direct connection after >> verification, and a rather simple call file can handle the callback. The >> hardest part was getting the DTMF reading to work well. ;) >> N. ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Roaming callback?
Jaap Winius wrote: > Quoting Jerry Harshany <[EMAIL PROTECTED]>: > > >> There is an additional alternative for a ringback to a caller, which >> is to use the Call File capability as noted in Van Meggelen's >> "Future of Telephone"; 2nd ed, p306. >> > > As it says in the book, call files allow calls to be created through > the Linux shell. If you've used this to create a roaming callback > service, then you must have created something that allows users to > submit a phone number to be called back on, after which a .call file > is created and moved to the /var/spool/asterisk/outgoing/ directory. > > >> sleep 8s >> mv "$1" "$2" >> exit 0 >> > > This looks like the step that moves the newly created call file to the > aforementioned directory. > > >> In my case, when the caller calls in to 'asterisk', he is prompted >> for the number he wishes to call. The caller can be at a US or >> international number, and he can call any US or international >> number, WITH or WITHOUT ringback. In other words the caller >> designates whether this is a direct connect call, or a ringback (and >> then bridge the called number). I have the complete flexibility of >> my dial plan extensions to do as I wish with the phone numbers. >> > > This is what I'm really interested in! How did you manage this? Would > you be willing to share how you did this? > > I would imagine if it's a callback, it creates a callfile. If it's not, it just connects the call as it would normally. We have a similar thing for our business customers built using a reasonably simple agi script to do verification of the caller/account and creation of the call files. A rather simple Dial command can handle the direct connection after verification, and a rather simple call file can handle the callback. The hardest part was getting the DTMF reading to work well. ;) N. ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Roaming callback?
Quoting Jerry Harshany <[EMAIL PROTECTED]>: > There is an additional alternative for a ringback to a caller, which > is to use the Call File capability as noted in Van Meggelen's > "Future of Telephone"; 2nd ed, p306. As it says in the book, call files allow calls to be created through the Linux shell. If you've used this to create a roaming callback service, then you must have created something that allows users to submit a phone number to be called back on, after which a .call file is created and moved to the /var/spool/asterisk/outgoing/ directory. > sleep 8s > mv "$1" "$2" > exit 0 This looks like the step that moves the newly created call file to the aforementioned directory. > In my case, when the caller calls in to 'asterisk', he is prompted > for the number he wishes to call. The caller can be at a US or > international number, and he can call any US or international > number, WITH or WITHOUT ringback. In other words the caller > designates whether this is a direct connect call, or a ringback (and > then bridge the called number). I have the complete flexibility of > my dial plan extensions to do as I wish with the phone numbers. This is what I'm really interested in! How did you manage this? Would you be willing to share how you did this? Cheers, Jaap ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
[asterisk-users] Roaming callback?
Apologize for mis-directing this previouslyas a new topic, rather than a response. Hi Jaap, There is an additional alternative for a ringback to a caller, which is to use the Call File capability as noted in Van Meggelen's "Future of Telephone"; 2nd ed, p306. There is quite a deal of flexibility with this method, and it keeps all the instructions in the dial plan and only calls (not counting the System calls) one Bash script of 3 simple lines with a System application call: sleep 8s mv "$1" "$2" exit 0 As you can see, all the paths and file names are set up in extensions.conf. In my case, when the caller calls in to 'asterisk', he is prompted for the number he wishes to call. The caller can be at a US or international number, and he can call any US or international number, WITH or WITHOUT ringback. In other words the caller designates whether this is a direct connect call, or a ringback (and then bridge the called number). I have the complete flexibility of my dial plan extensions to do as I wish with the phone numbers. But, if most of my code were in AGI scripts, then I would probably stick with AGI scripts. I think Van Meggelen's book is clear enough, but if you would like some of my extension examples, please let me know, and I'll be more than happy to supply them. Thanks for listening, Gerald Harshany Using current Asterisk version: SVN-branch-1.6.0-r114304 (on Ubuntu-Gutsy with AMD X2 4000+) and Zaptel current branch SVN 1.4 (with digium's TDM400P) ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Roaming callback?
Hi Jaap, There is an additional alternative for a ringback to a caller, which is to use the Call File capability as noted in Van Meggelen's "Future of Telephone"; 2nd ed, p306. There is quite a deal of flexibility with this method, and it keeps all the instructions in the dial plan and only calls (not counting the System calls) one Bash script of 3 simple lines with a System application call: sleep 8s mv "$1" "$2" exit 0 As you can see, all the paths and file names are set up in extensions.conf. In my case, when the caller calls in to 'asterisk', he is prompted for the number he wishes to call. The caller can be at a US or international number, and he can call any US or international number, WITH or WITHOUT ringback. In other words the caller designates whether this is a direct connect call, or a ringback (and then bridge the called number). I have the complete flexibility of my dial plan extensions to do as I wish with the phone numbers. But, if most of my code were in AGI scripts, then I would probably stick with AGI scripts. I think Van Meggelen's book is clear enough, but if you would like some of my extension examples, please let me know, and I'll be more than happy to supply them. Thanks for listening, Gerald Harshany Using current Asterisk version: SVN-branch-1.6.0-r114304 (on Ubuntu-Gutsy with AMD X2 4000+) and Zaptel current branch SVN 1.4 (with digium's TDM400P) ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
[asterisk-users] Roaming callback?
Hi list, Regarding callback functionality, it seems that Asterisk only includes a provision for callback in the voicemail configuration, for authorization purposes, but not an actual callback mechanism. For that, there are various free 3rd party AGI (Asterisk Gateway Interface) scripts available: * Asterisk tips callback http://www.voip-info.org/wiki/view/Asterisk+tips+callback * capi Callback http://www.junghanns.net/en/callback.html Looking at the scripts, they don't seem too difficult to implement, but they don't exactly work as I was hoping either. First, they require your system to have a dedicated callback number that you ring once and then hang up. The system then calls you back at a predefined number, e.g. your mobile phone. Not a very flexible solution. What I had in mind was an option in the voicemail menu that would allow you to dial a number -- any number -- at which the system would call you back. I'd call this roaming callback. Is anything like this available for Asterisk? Cheers, Jaap ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users