Jeremy Salmon Posted January 4, 2012 Report Posted January 4, 2012 Hi All, I have a trunk with multiple DID (ex : 33144736315, 33356764576, ...) I want to select the outgoing DID from Dialplan ... For example when I call a 335xxxxxxxx I want to use the local 33356764576. How can I play with replacement to make this ? Thanks ! JS Quote
Vodia PBX Posted January 4, 2012 Report Posted January 4, 2012 The way to get this working is to use the ANI as a list. In the extension setting, you can not only put one ANI there, you can actually put a list of ANI there (sepersted by spaces). If you want to link a ANI to a specific trunk, you can put the trunk name in front of it, e.g. "Trunk1:3392271234 9781234567". Then on "Trunk1" it would use the 339 number, otherwise by default the 978 number for this extension. Quote
Jeremy Salmon Posted January 4, 2012 Author Report Posted January 4, 2012 hmmm ... Thanks for this idea ... But not working for me. I have 9 DID for 9 geographic area ... In asterisk I wrote Set(CALLERID(num)=33144675643 in my dialplan to rewrite the outgoing callerid ... In this post you talked about dialplan replacement parameters : http://forum.snomone.com/index.php?/topic/3412-dialplan-replacement/ What is parameter 1,2,3 ??? The last solution is to subscribe 9 trunk to my provider ... but it's expensive .... 2 euros for a DID, 12 euros for a trunk ... Quote
Vodia PBX Posted January 5, 2012 Report Posted January 5, 2012 You dont have to purchase new trunks. Just create more trunks with the same outbound proxy and set them to outbound only (no inbound). Then you can select the right trunk from the dropdown in the dial plan. You can use the trunk text mode to quickly copy & paste a trunk. Trunks can also have their own ANI, so you dont have to do this for each extension; you can also do it on trunk basis. Quote
Jeremy Salmon Posted January 5, 2012 Author Report Posted January 5, 2012 Great ! Thanks ... Not the same philosophy with Asterisk ... That's why I have not thought of that Many thanks, Jeremy Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.