Hi
Can anyone tell me how i can do a call routing in extensions.conf based on the dialed number and also based on the station that is initiating the call together.
The reason why I need this is because i have several sip accounts at a sip provider. station 301 has the public number +15011301, station 302 has the public number +15011302 and so on.
when station 301 wants to call outside it should use the corresponding sip account from my sip provider.
Right now i use the following routing to route external calls to MYSIPPROVIDER. I allready have several sip accounts configured in sip.conf for the different numbers I have at the sip provider, I just don’t know how I tell asterisk which sip account of the provider it should use for which station.
;This listens for sip end point connected directly to asterisk and
;will listen for traffic that starts with a 9 and send every digit
;after 9 to MYSIPPROVIDER for Asterisk
exten=>_9.,1,Dial(SIP/MYSIPPROVIDER/${EXTEN:1},20)
exten=>_9.,n,hangup()
Regards and thanks in advance
ironshirt