Mark Hatton
2005-Oct-06 05:10 UTC
[Asterisk-Users] Selecting outgoing trunk based on extension number
Hi all, I have situation in that we are renting out a room in our office building to another company, including the provision of phone lines via our Aterisk box. To keep billing simple, we would like them to be billed separately for all their calls. We think we can achieve this by them leasing their own outbound IAX trunk (which our providers have said is no problem) and having all their calls routed to that trunk. However, we use AMP and I can't see a way of selecting the outgoing route that should be used based on the extension number of the phone placing the call. I am reasonably certain that this can be achieved, but I can't find any information out on the net, despite a large amount of Googling. I haven't got a problem with adding custom stuff to the extensions-custom.conf that AMP provides, but I just don't have a clue what to add! If anyone has any ideas or can point me in the direction of some suitable documentation, that would be much appreciated. Thanks, Mark -- Mark Hatton, Xela Limited T: 01732 808000 F: 01732 865999 E: mark@xela.co.uk W: http://www.xela.net/ P: 2 Fircroft Mews, Fircroft Business Centre, Fircroft Way, Edenbridge, Kent, TN8 6EN
BJ Weschke
2005-Oct-06 05:34 UTC
[Asterisk-Users] Selecting outgoing trunk based on extension number
On 10/6/05, Mark Hatton <mark@xela.co.uk> wrote:> > Hi all, > > I have situation in that we are renting out a room in our office building > to > another company, including the provision of phone lines via our Aterisk > box. > To keep billing simple, we would like them to be billed separately for all > their calls. We think we can achieve this by them leasing their own > outbound > IAX trunk (which our providers have said is no problem) and having all > their > calls routed to that trunk. > > However, we use AMP and I can't see a way of selecting the outgoing route > that > should be used based on the extension number of the phone placing the > call. I > am reasonably certain that this can be achieved, but I can't find any > information out on the net, despite a large amount of Googling. > > I haven't got a problem with adding custom stuff to the > extensions-custom.conf > that AMP provides, but I just don't have a clue what to add! > > If anyone has any ideas or can point me in the direction of some suitable > documentation, that would be much appreciated. > > Thanks, > > Mark > > -- > Mark Hatton, Xela Limited > T: 01732 808000 F: 01732 865999 > E: mark@xela.co.uk W: http://www.xela.net/ > P: 2 Fircroft Mews, Fircroft Business Centre, > Fircroft Way, Edenbridge, Kent, TN8 6EN > _______________________________________________ > --Bandwidth and Colocation sponsored by Easynews.com <http://Easynews.com>-- > > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >Are you using the extensions version of AMP or the devices/users version of AMP? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20051006/3b230995/attachment.htm