Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] Differents routes for differents extensions


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
blackspiraldancer at e...
Guest





PostPosted: Thu Apr 17, 2008 9:48 am    Post subject: [asterisk-users] Differents routes for differents extensions Reply with quote

Hi everybody,
I need to use different outbound routes from calls started by different
extensions; I mean, that the extension "A" when dialing "011543..." has
to get access always on the 1st trunk, the extension "B" when dialing
another number has always to access the outside world on the 2nd trunk,
and so on.
Some kind of solution I thought involved the use of a "fake dialcode",
whic is prepended to the dial number and then stripped from an "Outbound
route" section (and then the trunk is dialed):

ext. A "call 011543..." ----> prepend 41 ---> Outbound route for "41|."
---> Appropriate trunk dial "."

The only matter is that I have NO clue on where to append this code for
outgoing calls from these specific extensions.
If anyone has a simpler idea (yeah, mine is pretty twisted %) ) or knows
how to put a code before the dial string of an extension, let me know!
Thanks in advance,

Marco
Back to top
rjgonzale at gmail.com
Guest





PostPosted: Thu Apr 17, 2008 10:02 am    Post subject: [asterisk-users] Differents routes for differents extensions Reply with quote

Create different contexts and assign them to the extensions

[trunk1]
exten => .X,1,Dial(....)

[trunk2]
exten => .X,Dial(....)

and in sip.conf or iax.conf

[exten1]
...
context = trunk1

[exten2]
....
context=trunk2

Marco escribi?:
Quote:
Hi everybody,
I need to use different outbound routes from calls started by different
extensions; I mean, that the extension "A" when dialing "011543..." has
to get access always on the 1st trunk, the extension "B" when dialing
another number has always to access the outside world on the 2nd trunk,
and so on.
Some kind of solution I thought involved the use of a "fake dialcode",
whic is prepended to the dial number and then stripped from an "Outbound
route" section (and then the trunk is dialed):

ext. A "call 011543..." ----> prepend 41 ---> Outbound route for "41|."
---> Appropriate trunk dial "."

The only matter is that I have NO clue on where to append this code for
outgoing calls from these specific extensions.
If anyone has a simpler idea (yeah, mine is pretty twisted %) ) or knows
how to put a code before the dial string of an extension, let me know!
Thanks in advance,

Marco



_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3245 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20080417/15b7052f/attachment.bin
Back to top
blackspiraldancer at e...
Guest





PostPosted: Thu Apr 17, 2008 11:01 am    Post subject: [asterisk-users] Differents routes for differents extensions Reply with quote

That makes PERFECT sense and also makes me aware that I need to review
asterisk theory Razz
I'll put it under test and let you know how it works.
Thanks a lot!

Marco

Rodrigo Gonzalez ha scritto:
Quote:
Create different contexts and assign them to the extensions

[trunk1]
exten => .X,1,Dial(....)

[trunk2]
exten => .X,Dial(....)

and in sip.conf or iax.conf

[exten1]
...
context = trunk1

[exten2]
....
context=trunk2

Marco escribi?:
Quote:
Hi everybody,
I need to use different outbound routes from calls started by different
extensions; I mean, that the extension "A" when dialing "011543..." has
to get access always on the 1st trunk, the extension "B" when dialing
another number has always to access the outside world on the 2nd trunk,
and so on.
Some kind of solution I thought involved the use of a "fake dialcode",
whic is prepended to the dial number and then stripped from an "Outbound
route" section (and then the trunk is dialed):

ext. A "call 011543..." ----> prepend 41 ---> Outbound route for "41|."
---> Appropriate trunk dial "."

The only matter is that I have NO clue on where to append this code for
outgoing calls from these specific extensions.
If anyone has a simpler idea (yeah, mine is pretty twisted %) ) or knows
how to put a code before the dial string of an extension, let me know!
Thanks in advance,

Marco



_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users




------------------------------------------------------------------------

_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services