Here shows how to automatically add a '9' to all incoming calls in Elastix.
- Edit /etc/asterisk/extensions_override_elastix.conf
- Append below lines. These codes add '9' in front of the caller number if it looks like a local one (8 digits in our case).
[macro-user-callerid]
include => macro-user-callerid-custom
exten => s,1,Set(AMPUSER=${IF($["foo${AMPUSER}" = "foo"]?${CALLERID(number)}:${AMPUSER})})
exten => s,n,GotoIf($["${CHANNEL:0:5}" = "Local"]?report)
exten => s,n,ExecIf($["${REALCALLERIDNUM:1:2}" = ""]?Set(REALCALLERIDNUM=${CALLERID(number)}))
exten => s,n,Set(AMPUSER=${DB(DEVICE/${REALCALLERIDNUM}/user)})
exten => s,n,Set(AMPUSERCIDNAME=${DB(AMPUSER/${AMPUSER}/cidname)})
exten => s,n,GotoIf($["x${AMPUSERCIDNAME:1:2}" = "x"]?report)
exten => s,n,Set(AMPUSERCID=${IF($["${DB_EXISTS(AMPUSER/${AMPUSER}/cidnum)}" = "1"]?${DB_RESULT}:${AMPUSER})})
exten => s,n,Set(CALLERID(all)="${AMPUSERCIDNAME}" <${AMPUSERCID}>)
exten => s,n,ExecIf($["${DB(AMPUSER/${AMPUSER}/language)}" != ""]?Set(CHANNEL(language)=${DB(AMPUSER/${AMPUSER}/language)}))
exten => s,n(report),GotoIf($[ "${ARG1}" = "SKIPTTL" ]?continue)
exten => s,n(report2),Set(__TTL=${IF($["foo${TTL}" = "foo"]?64:$[ ${TTL} - 1 ])})
exten => s,n,GotoIf($[ ${TTL} > 0 ]?continue)
exten => s,n,Wait(${RINGTIMER})
exten => s,n,Answer
exten => s,n,Wait(2)
exten => s,n,Playback(im-sorry&an-error-has-occured&with&call-forwarding)
exten => s,n,Macro(hangupcall,)
exten => s,n,Congestion(20)
exten => s,n(continue),Noop(Original Using CallerID ${CALLERID(all)})
exten => s,n,Set(CALLERID(number)=${CALLERID(number):0:40})
exten => s,n,Set(CALLERID(name)=${CALLERID(name):0:40})
exten => s,n,ExecIf($[ LEN(${CALLERID(number)}) = 8 ]?Set(CALLERID(number)=9${CALLERID(number)}))
exten => s,n,Noop(Using CallerID ${CALLERID(all)})
exten => h,1,Macro(hangupcall,)
; end of [macro-user-callerid]
- This approach basically supercedes the original [macro-user-callerid] of Elastix and you have control on how the caller id would be presented to your extensions. However, if you upgrade Elastix later, you need to check if these customization align with the upgraded Elastix source code .
Now you can win free stuff online, enter yourself into giveaways daily and win the latest products instantly. You can win free cash as a free giveaway every time we run a giveaway. https://isocialhub.net/
ReplyDelete
ReplyDeleteشكرا معلومات مفيدة يمكنك زيارة ايضا لمعلومات قيمة اخرى قم بزيارة :
شركة غسيل خزانات بالمدينة المنورة
افضل شركة تنظيف
ReplyDeleteThank you very much for your information.
Australia ETA/eVisitor Visa
is quiet easy to apply online from Singapore,
Malaysia, United Kingdom, United States, Canada, France and including all others ETA Eligible Countries from our website.
You are not sure on how to get your first ecommerce website development then visit best website designing company in kanpur we also help you to promot your business with the email marketing and message marketing.
ReplyDeletethanks your post and share and visit my web at http://suppliertalilanyard.com/
ReplyDeleteI am glad reading your article. But should remark on few
ReplyDeletegeneral things, The web site style is great, the articles is really nice
If you want to know about the Desert tour and rates,For any query click the below link. Musandam tour,Desert safari tour,hatta tour
TOP ONLINE CASINO in KOREA
ReplyDelete토토사이트추천
엔트리 파워 볼
Very good article and I like it. Thank you for giving me information
ReplyDeletePlease Visit to mboplay888.com Slot gambling agent, ball, live casino Indonesia
Nikmati bonus menarik dari MBOPLAY :
Welcome Bonus New Member 20% ALL GAMES [ BOLA, POKER, LIVE CASINO, SLOT, IDN LIVE ]
Promo Cashback Mingguan BOLA UP TO 7.5%
Promo Cashback Mingguan BOLA UP TO SLOT 1%
Promo Cashback Mingguan BOLA UP TO LIVE CASINO 1%
Bonus Next Deposit 5% [ BOLA, LIVE CASINO, SLOT, IDN LIVE ]
Komisi IDNPOKER 0.5%
MBOPLAY
SPBO BOLA
AGEN SBOBET
BANDAR JUDI
AGEN IDN SPORTS
BURSA TARUHAN BOLA
JUDI BOLA TERPERCAYA
BANDAR SPORTS ONLINE TERPERCAYA
Contact us MBOPLAY.COM :
Livechat : https://mboplay88b.com/?ref=daftar
Whatsapp : +6282117858228
Link Alternatif MBOPLAY :
https://mboplay88b.com/?ref=daftar
https://mboplay88c.com/?ref=daftar
https://mboplay888.com/?ref=daftar
The subject of the article is explained to the creator as beautiful in the content. We read this article with pleasure. Thank you very much.
ReplyDeletehasta yatağı
Adobe Animate CC Crack
ReplyDeleteAvocode Crack
Reason Crack
Save2pc Ultimate Crack
Webcam Surveyor Crack K
Nitro Pro Crack
MixPad Crack
Rosetta Stone Crack
focus keyword
Uninstaller Pro Crack
CorelDRAW Crack
Voicemod Pro Crack
Apeaksoft Screen Recorder Crack
Cubase Pro Crack
Deep Freeze Crack Standard
Scrivener Crack
Quick Heal Total Security Crack
Avast Cleanup Premium Crack
Total Network Inventory Crack
Movavi Video Editor Crack
Malware Fighter Pro Crack
Iperius Backup Crack
Mobirise Crack
Ant Download Manager Crack
ReSharper Crack
Serato DJ Pro Crack
Format Factory Pro Crack
ReSharper Crack
UpdateStar Premium Edition 11
Google SketchUp Pro 2020
Good information you provide to your visitor. I really like this page.
Please Carry on and follow us and visit these links
Nice info, thanks for share, oh ya saya mau berbagi, baru saja saya menemukan Video Viral tentang Hobby jadi Bisnis trus minum Kopi Terbaik sambil simak Media Kalteng baca tentang Paid Promote / Jasa Endorse untuk Jual Akik Gambar buat modal Usaha sablon kaos Lebihnya buat cari jasa edit foto sambil belajar Pidato Komunikasi Publik
ReplyDeleteGet DLF Share price detailed and news for your profit.
ReplyDelete