Assuming SIP users dial 9 to get FXO lines, and callerid's for them are set
as 11 and 12 in sip.conf, and Zap lines are also 1 and 2, you could do it
easily:
exten => 9,1,Dial(Zap/${CALLERIDNUM:1})
You can manipulate dial string further with arithmetic expressions too.
Hope this helps,
Soner
----- Original Message -----
From: "Tomislav Par?ina" <tparcina@lama.hr>
To: "Asterisk Users Mailing List - Non-Commercial Discussion"
<asterisk-users@lists.digium.com>
Sent: Friday, November 04, 2005 10:33 AM
Subject: [Asterisk-Users] Every SIP on its own FXO
I have two SIP phones and two FXO ports. I would like to be able to define
that every SIP phone can call POTS on specific FXO port. How to do that?
Right now I have done it on this way.
In sip.conf for every sip phone (every user) I have defined different
context in extensions.conf. And there, by using includes, I call different
external contexts (external_sip1 and external_sip2). It works but it doesn't
look nice. Imagine how it would look like if I needed to specify 100 lines.
Question.
Can I define one context for all SIP phones and then in dial plan chose -
for SIP1 dial on FXO1; for SIP2 dial on FXO2... I hope I have make my self
clear :))
Thank you for your time.
--
Tomislav Par?ina
Lama d.o.o.
www.lama.hr
tparcina#lama.hr
_______________________________________________
--Bandwidth and Colocation sponsored by 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