Hi,
I’m trying to replicate a behavior from our (previous) 3Com NBX system, where any phone would auto-answer if the call originated internally, and if auto-answer was enabled on the phone. The phones even had an auto-answer button on the front panel. We really (really) loved this workflow – that is basically how we’ve called each other for years, and suddenly having to pick up the phone to answer each other is a bummer, when before we could just say “Melinda you there?”, and she would “Yeah, I’m out in the hall, hang on” and then walks over to her phone.
So I’m trying to basically get every extension to add the SIP header “answer-after:0”, so that when they dial, any receiving phone that is an internal phone will auto-answer, provided that auto-answer is otherwise enabled on the phone itself.
I’m new to Asterisk but not to programming, and the thing I’m not getting is that with FreePBX, you’re supposed to put this in the _custom.conf file. But how the devil do you figure out which Priority/Sequence/Line-number to give this? The obvious place to put this would be in [from-internal], but there’s already a ton of includes and ‘exten’ code. If I just barge in and do an exten => s,5,SIPAddHeader(“etc.etc.”), won’t I overwrite whatever is already on code line 5? Or does every context have new line-numbering starting from 1? Aren’t they then fighting over which context gets the call? What I really want is to squeeze this SIPAddHeader command in between code line 1 and code line 2 in whatever is already happening – essentialli placing it on line 1 1/2.
Is there a way to get all extensions to add this header when they dial out? This header won’t travel beyond the phone system, so only internal phones will understand it, and thus, we get our auto-answer for all internal calls if auto-answer is enabled on the phone functionality. We’d really love to get that back, as it is the one thing we sorely miss from the 3Com system. We’re not keen on the *80 workflow, neither are we keen on having different extensions for everyone so that you can intercom them, i.e. Bob is on 105, but if I want to incercom him, he’s on 205. Finally, we’re not interested in paging groups at all.
I’m saying this because I know that these workflows exists, but internal-to-internal auto-answer is what we’re after. If we can get the auto-answer NATIVE on the extension, then it can be used in combination with Busy Lamp Field, so an Extension Button on f.ex. a Grandstream phone not only shows someone’s line-activity, you can press the Extension Button to call them, auto-answer and all. If not, then you have to have your whole left row of buttons be the BLF, and the whole right row be the button you use to actually call people, which is a crazily wasteful workaround.
So, I’m hoping that someone is able to help, and I want to thank the FreePBX guys for their effort in building this system.
Best,
Per