Klaus-Peter Junghanns
2003-May-26 00:47 UTC
[Asterisk-Users] FW: NEWBIE: HOWTO make asterisk only accept calls when extension is picked up
Hi Ben, just dont _answer_ the call before you call the extension: [capiin] exten => s,1,Dial(SIP/phoneip,20) exten => s,2,VoiceMail(u1234) exten => s,3,Hangup exten => s,102,VoiceMail(b1234) exten => s,103,Hangup regards kapejod -- Klaus-Peter Junghanns CEO,CTO Junghanns.NET GmbH Breite Strasse 13 - 12167 Berlin - Germany fon: +49 30 79705392 fax: +49 30 79705391 iaxtel: 1-700-157-8753 email: kpj@junghanns.net http://www.junghanns.net/asterisk Am Mon, 2003-05-26 um 10.30 schrieb Ben Bosshardt:> I am running asterisk with a AVM euroisdn card and a few sip extensions. How > can I configure asterisk that the calls only get accepted when the extension > is picked up to avoid charges fort he called when I am out. I only want to > accept the call and send it to voicemail after 20s to avoid charges for any > called wanting to hang up before. > > Thanks in advance > Ben Bosshardt > > > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users
Ben Bosshardt
2003-May-26 01:30 UTC
[Asterisk-Users] FW: NEWBIE: HOWTO make asterisk only accept calls when extension is picked up
I am running asterisk with a AVM euroisdn card and a few sip extensions. How can I configure asterisk that the calls only get accepted when the extension is picked up to avoid charges fort he called when I am out. I only want to accept the call and send it to voicemail after 20s to avoid charges for any called wanting to hang up before. Thanks in advance Ben Bosshardt
Brian Capouch
2003-May-26 10:42 UTC
[Asterisk-Users] FW: NEWBIE: HOWTO make asterisk only accept calls when extension is picked up
Ben Bosshardt wrote:> I am running asterisk with a AVM euroisdn card and a few sip extensions. How > can I configure asterisk that the calls only get accepted when the extension > is picked up to avoid charges fort he called when I am out. I only want to > accept the call and send it to voicemail after 20s to avoid charges for any > called wanting to hang up before. >That reminds me of a couple of other scenarios I have wanted to play around with but am not quite sure how to do: 1. "Count rings" generically, in the sense that I want to save the caller the connect fee by not picking up until so many rings have been sent to the local instrument channel. 2. Better, answer differentially depending on whether there is voicemail for a particular user (or perhaps any of a group thereof). I am basically a one-person shop, so for me any voicemail anywhere (I have a couple of different voicemail boxes for purposes of convenience) would ideally trigger the behavior of my answering machine, and pick up more quickly than if there were no voicemail to be gotten. Thx. B.
John Todd
2003-May-26 10:53 UTC
[Asterisk-Users] FW: NEWBIE: HOWTO make asterisk only accept calls when extension is picked up
>Ben Bosshardt wrote: >>I am running asterisk with a AVM euroisdn card and a few sip extensions. How >>can I configure asterisk that the calls only get accepted when the extension >>is picked up to avoid charges fort he called when I am out. I only want to >>accept the call and send it to voicemail after 20s to avoid charges for any > >called wanting to hang up before. > >That reminds me of a couple of other scenarios I have wanted to play >around with but am not quite sure how to do: > >1. "Count rings" generically, in the sense that I want to save the >caller the connect fee by not picking up until so many rings have >been sent to the local instrument channel. > >2. Better, answer differentially depending on whether there is >voicemail for a particular user (or perhaps any of a group thereof). >I am basically a one-person shop, so for me any voicemail anywhere >(I have a couple of different voicemail boxes for purposes of >convenience) would ideally trigger the behavior of my answering >machine, and pick up more quickly than if there were no voicemail to >be gotten. > >Thx. > >B.Sounds like this can be done with a quick shell script AGI to check if there is email for that "user" (or, in your case, for that "line"), and then a GotoIf that sends the inbound call to a different Dial statement with a specific delay that depends on the result of the AGI. JT