I have an integration that builds op a conversation between call no 4001 and 4002. Now the phone starts ringing on 4001. after it’s picked up it starts to call 4002. How can I make sure the call on the initiating phone (4001) is auto answered? I am using a snom D720 as initiating phone.
Note setting a phone to autoanswer quietly makes it into an infinity transmitter, so it is not something that should ever be enabled out of the box and you should check your network security before doing it.
Also note that the common name for what you are doing is “click to call” and there will be many other internet articles describing the process, probably in more detail.
If your phone supports the methods already in place for intercom and paging in FreePBX, then you can just prefix the dialed digits with the intercom prefix,
channel: Local/*804001@from-internal
and, pro tip. If using a newer version of FreePBX, click to call is best done with the context originate-skipvm as it blocks the local extension from going to voicemail if the initiating party doesn’t answer their phone
channel: Local/*804001@originate-skipvm
Although, come to think of it, I have never tested the intercom prefix with the originate-skipvm context. I’m not sure that they work together.