How to link Digium TE410P card

hi everybody;
i got a Digium TE410P card and i want to know if it possible to link 2 of his port to the asterisk to transfer international calls and the 2 others must be link to the PSTN network for local calls.
asterisk must take decision to transfer call in international or to route them to the PSTN Network.
is it possible with the same card?
how can i do it?
thanks your reply.

sure you can. asterisk/zaptel sees each port as a separate channel and can address each port independent of the others

what you will want to do is put two of the channels in group1 and two in group2. This is done in zapata.conf. Then reboot (not reload) asterisk.

Your dialplan will look somethign like this-

exten => _1NXXNXXXXXX,1,Dial(Zap/g1/${EXTEN})
exten => _011.,1,Dial(Zap/g2/${EXTEN})

thus, any 11 digit call (this is for USA, your dialing pattern may be different) will go out on zap group 1, whereas any call that starts with 011 (int’l prefix from USA) will go out on zap group 2.

hoep that helps.