Outgoing calls and extensions

I have a problem with the outgoing calls. I have now 2 zaptel channels with a Digium card. I have also 2 IPPhones that runs ok. When a outgoing called enter, was redirected to the phone preassigned.

But my problem is, that i need to assign a zaptel channel exclusivelly to each IPPHone. If not , the phones will call with the zaptel channel free priority, and i need that ipphone 1, uses zaptel channel 1 always, and ipphone2, uses zaptel channel 2 always, for outgoing calls.

What i can do?


Give each of the phones their own context and assign their about dialing to single Zap channels instead of a Zap group. This is how to create what is effectively a ‘Class of Service’ in Asterisk.


I have understand you, but i don?t know how to do this …

I am reading the .conf files, and i have a few idea, but i don?t know how i need to create, and where.

More help please?


in sip.conf (if you’re using sip) set each phone to have a different context where they start, e.g.



extensions.conf : [code][out-zap-1]
exten => _XXXXXX,1,Dial(Zap/1/${EXTEN},60,TW)

exten => _XXXXXX,1,Dial(Zap/2/${EXTEN},60,TW)

exten => 100,1,Dial(SIP/100,60,TtWw)
exten => 101,1,Dial(SIP/101,60,TtWw)
exten => h,1,Hangup()