[asterisk-users] forward calls by the ports

2011-02-08 Thread mehran khajavi
hi
i searched a lot but i couldn't find the answer
i have two openvox(fxo/fxs) card so I have 24 ports! on first card i have 12
fxs and on the second i have 12 fxo
i want to then one person calling from  dahdi/13 forward it to dahdi/1
when a person calling from  dahdi/14 forward it to dahdi/2
when a person calling from dahdi/15 forward it to dahdi/3

how can i do this?
i should make an AGI? or can i make it with extentions.conf? how can i get
the caller's port number?


thanks
--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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

Re: [asterisk-users] forward calls by the ports

2011-02-08 Thread Steve Howes
On 8 Feb 2011, at 14:52, mehran khajavi wrote:
 i searched a lot but i couldn't find the answer

.

 i have two openvox(fxo/fxs) card so I have 24 ports!

Ok!

 on first card i have 12 fxs and on the second i have 12 fxo
 i want to then one person calling from  dahdi/13 forward it to dahdi/1
 when a person calling from  dahdi/14 forward it to dahdi/2
 when a person calling from dahdi/15 forward it to dahdi/3
 
 how can i do this?

You dont need a PBX for that... Just plug the phones into the line?..

 i should make an AGI? or can i make it with extentions.conf? how can i get 
 the caller's port number?

You could do either. extensions.conf is more sensible. Put ports in different 
contexts / use channel variables. How to do this is probably in the extensive 
documentation you've been studying.

S
--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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