Greetings! This is my first post to the list...and I'm kinda' new to Asterisk, so please be kind....I did a fair amount of Googling but was not able to find an answer. I am using Asterisk@Home 0.8 I was wondering if there is a way to select the outbound trunk based on the extension that making the call. Here is why I ask. Since I am already running my Asterisk server for my own use, I also wanted to let friends and family in on the action but I don't want to pay for their calls. So if I ask them to buy talk time from a termination provider and then setup a separate trunk for them, how do I make sure that only their calls use that outbound trunk? Any ideas?
Greetings! This is my first post to the list...and I'm kinda' new to Asterisk, so please be kind....I did a fair amount of Googling but was not able to find an answer. I am using Asterisk@Home 0.8 I was wondering if there is a way to select the outbound trunk based on the extension that making the call. Here is why I ask. Since I am already running my Asterisk server for my own use, I also wanted to let friends and family in on the action but I don't want to pay for their calls. So if I ask them to buy talk time from a termination provider and then setup a separate trunk for them, how do I make sure that only their calls use that outbound trunk? Any ideas?
> I was wondering if there is a way to select the outbound > trunk based on the extension that making the call.Set the context in the sip.conf file for that user to a context in extensions.conf that only has entries for dialing out through specific providers. Nabeel
You would use the caller ID to route the call. -Kerry -----Original Message----- From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Nabeel Jafferali Sent: Sunday, April 03, 2005 10:17 PM To: kapil@kapilville.com; Asterisk Users Mailing List - Non-Commercial Discussion Subject: RE: [Asterisk-Users] Asterisk@Home Question> I was wondering if there is a way to select the outbound trunk based > on the extension that making the call.Set the context in the sip.conf file for that user to a context in extensions.conf that only has entries for dialing out through specific providers. Nabeel _______________________________________________ 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
Message: 9 Date: Sun, 3 Apr 2005 23:52:39 -0500 From: * KAPIL * <sachdev@gmail.com> Subject: [Asterisk-Users] Asterisk@Home Question To: asterisk-users@lists.digium.com Message-ID: <c56da7730504032152461184e1@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Greetings! This is my first post to the list...and I'm kinda' new to Asterisk, so please be kind....I did a fair amount of Googling but was not able to find an answer. I am using Asterisk@Home 0.8 I was wondering if there is a way to select the outbound trunk based on the extension that making the call. Here is why I ask. Since I am already running my Asterisk server for my own use, I also wanted to let friends and family in on the action but I don't want to pay for their calls. So if I ask them to buy talk time from a termination provider and then setup a separate trunk for them, how do I make sure that only their calls use that outbound trunk? Any ideas? Set up a trunk for them Set up a route for them. Setup Outbound Routing Add Route Name your Route Dial Pattern 79|NXXXXXX 79|NXXNXXXXXX 79|1NXXNXXXXXX 79|011. Trunk Sequence Select there Trunk MAKE SURE they dial 79 for all there calls Jeff
> Greetings! > > This is my first post to the list...and I'm kinda' new to Asterisk, so > please be kind....I did a fair amount of Googling but was not able to > find an answer. > > I am using Asterisk@Home 0.8 > > I was wondering if there is a way to select the outbound trunk based > on the extension that making the call. > > Here is why I ask. Since I am already running my Asterisk server for > my own use, I also wanted to let friends and family in on the action > but I don't want to pay for their calls. So if I ask them to buy talk > time from a termination provider and then setup a separate trunk for > them, how do I make sure that only their calls use that outbound > trunk? >Being rather new myself, but the first thing I thought about your problem was putting those extensions in a different context to the one where you define your trunk calls.
Have each phone peer reference a different context. Have the different contexts set up to use the particular service for that user. ----- Original Message ----- From: "* KAPIL *" <sachdev@gmail.com> To: <asterisk-users@lists.digium.com> Sent: Sunday, April 03, 2005 11:52 PM Subject: [Asterisk-Users] Asterisk@Home Question> Greetings! > > This is my first post to the list...and I'm kinda' new to Asterisk, so > please be kind....I did a fair amount of Googling but was not able to > find an answer. > > I am using Asterisk@Home 0.8 > > I was wondering if there is a way to select the outbound trunk based > on the extension that making the call. > > Here is why I ask. Since I am already running my Asterisk server for > my own use, I also wanted to let friends and family in on the action > but I don't want to pay for their calls. So if I ask them to buy talk > time from a termination provider and then setup a separate trunk for > them, how do I make sure that only their calls use that outbound > trunk? > > Any ideas? > _______________________________________________ > 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 > > > -- > No virus found in this incoming message. > Checked by AVG Anti-Virus. > Version: 7.0.308 / Virus Database: 266.9.1 - Release Date: 4/1/2005 > >