Зачастую встречается ситуация когда звонок на внутренний номер сотрудника тем или иным способом переадресовывается на его мобильный номер. В этом случае в качестве входящего звонка будет отображаться номер АТС, а не клиента. Выход из этой ситуации состоит в отправке номера звонящего на email сотрудника.
Для этого необходимо изменить диалплан для соответствующего экстеншена.
Для FreePBX идем в /etc/asterisk/extensions_additional.conf и копируем оттуда нужный нам кусок диалплана для номера 210:
exten => 210,1,Set(__RINGTIMER=${IF($["${DB(AMPUSER/210/ringtimer)}" > "0"]?${DB(AMPUSER/210/ringtimer)}:${RINGTIMER_DEFAULT})})exten => 210,n,Macro(exten-vm,novm,210,0,0,0)exten => 210,n(dest),Set(__PICKUPMARK=)exten => 210,n,GotoIf($["${IVR_CONTEXT}" != ""]?${IVR_CONTEXT},return,1)exten => 210,hint,PJSIP/210&Custom:DND210,CustomPresence:210
Далее добавляем строчку:
exten => 210,n,System(mail -s "${CALLERID(num)}" your_mail@it-crowd.by < /dev/null)
Указываем свой email, на который будут приходить сообщения. Предварительно у вас должен быть настроен postfix.
Далее идем в extensions_override_freepbx.conf и копируем всё туда:
[ext-local]exten => 210,1,Set(__RINGTIMER=${IF($["${DB(AMPUSER/210/ringtimer)}" > "0"]?${DB(AMPUSER/210/ringtimer)}:${RINGTIMER_DEFAULT})})exten => 210,n,System(mail -s "${CALLERID(num)}" vityas@tut.by < /dev/null)exten => 210,n,Macro(exten-vm,novm,210,0,0,0)exten => 210,n(dest),Set(__PICKUPMARK=)exten => 210,n,GotoIf($["${IVR_CONTEXT}" != ""]?${IVR_CONTEXT},return,1)exten => 210,hint,PJSIP/210&Custom:DND210,CustomPresence:210
Выполняем dialplan reload и радуемся результату.

References:
Spielhalle online Deutschland https://online-british-casino.online-spielhallen.de/
The variety of games is just insane. I spent the whole weekend exploring and I am still not bored. k777game is definitely my new favorite spot.
Love the variety of games available here. It keeps things exciting and the graphics are really crisp. I’m spending a lot of my free time on bdxx777 lately.
Finally found a platform that actually delivers on its promises. The rewards are fair and the community vibe is great. Highly recommend giving pamanuncleempire a shot.
If you are looking for a site that actually pays out and doesn’t crash every five minutes, this is it. Super satisfied with bdbajji777 so far.
The app version is way more convenient than the browser. I can play anywhere and the connection is stable. Love using bd89bdapp on my phone.