Lets say you have a bunch of different trunks, sometimes you need to send calls to a specific destination and NOT use DID routing.
This example has calls that come in on a specific trunk, regardless of what the DID is, caller ID or any other identifying manner, will send the call to an internal number. This could be a ring group that points to an IVR, or a queue etc.
This was tested in FREEPBX distro but should work in most versions of asterisk. You might need to use the extensions.conf file instead of the override file outlined below for non-freepbx gui users.
Create your trunk in asterisk and at least verify it works.
then in your context for your trunk put this line in:
context=from-yourcustomdestination
then open up /etc/asterisk/extensions_override_freepbx.conf
put this in as an example: (this one dials extension/ringgroup/queue # of 6990. Just changed the 6990 number to a destination number.
[from-yourcustomdestination]
exten => s,1,Dial(local/6990@from-internal/n,)
When you place a call to that trunk, the trunk should dial 6990.
This example has calls that come in on a specific trunk, regardless of what the DID is, caller ID or any other identifying manner, will send the call to an internal number. This could be a ring group that points to an IVR, or a queue etc.
This was tested in FREEPBX distro but should work in most versions of asterisk. You might need to use the extensions.conf file instead of the override file outlined below for non-freepbx gui users.
Create your trunk in asterisk and at least verify it works.
then in your context for your trunk put this line in:
context=from-yourcustomdestination
then open up /etc/asterisk/extensions_override_freepbx.conf
put this in as an example: (this one dials extension/ringgroup/queue # of 6990. Just changed the 6990 number to a destination number.
[from-yourcustomdestination]
exten => s,1,Dial(local/6990@from-internal/n,)
save your changes and exit the editor
type in
asterisk -rx 'core reload'
Call your trunk and test.
When you place a call to that trunk, the trunk should dial 6990.
No comments:
Post a Comment
Feel free to leave a comment! If you have any information that you think should be included, please do so here and I'll get it added in.