We’re using asterisk, and as part of the dial plan, a 9 is required before the number to make calls out to the PSTN. Since our phones have a incoming call log, it would be very convient to have asterisk rewrite the CallerID value on calls from the PSTN to include this leading digit. I found this was rather easy to accomplish. Adding something similar to the following to whatever extension handles your incoming calls, all CallerID numbers will have a 9 added to the front.
exten => s,1,Set(CALLERID(num)=9${CALLERID(num)})
And proceed with your normal call routing logic. Change the preceding digit to whatever matches your system. If you have several extensions this is going to be used with, you could benefit from using a global variable for the leading digit.
Related posts:
- Asterisk GotoIf Application The description from asterisk for this is GotoIf(condition?[labeliftrue]:[labeliffalse]), however for...
Related posts brought to you by Yet Another Related Posts Plugin.
