[Asterisk-Users] Dialing out on TDM400p 4 port FXO

Henry Devito hdevito at qwest.net
Mon Jan 31 10:07:10 MST 2005


Hi,

I have two small companies that are going to be sharing a * box.  I have 2
TDM400's with 4  fxo ports each.

Each company has its own sales person and they would like the sales people
to always show their own caller id and have their own lines ring directly to
their phones.  Company 1 sales person uses the 1 port on the tdm400 and
company 2 sales person uses the 2nd port of the tdm400.  The other ports
ring to their companies respected Auto attendant. Ports 3-5 ring to one
company and 6-8 ring the other.

The part of ringing in to the sales people work fine.  Line 1 rings to
Extension 500 and Line 2 Rings to extension 600.  How can I make it so
Extension 500 always dials out on line 1 and extension 600 always dials out
on line 2.  Below is the relevant snippets of the extensions.conf, sip.conf,
and Zapata.conf.

extensions.conf

[sales1]
exten => s,1,Dial(SIP/500)
exten => _9.,1,Dial(Zap/g1/${EXTEN}:1)


[sales2]
exten => s,1,Dial(SIP/600)
exten => _9.,1,Dial(Zap/g2/${EXTEN}:1)


zapata.conf

context=sales1
signalling=fxs_ls
channel => 1
group = 1

context=sales2
signalling=fxs_ls
channel => 2
group = 2


sip.conf
 
[500]
type=friend
username=500
secret=500
qualify=200                     
;nat=yes                        
host=dynamic
canreinvite=no
callerid="Mike M" <500>
context=sales1


[600]
type=friend
username=600
secret=600
qualify=200   
;nat=yes 
host=dynamic
canreinvite=no
callerid="Sales Dave" <600>
context=sales2




More information about the asterisk-users mailing list