As requested earlier, I would prefer rule based dialing. For instance I use sip to PSTN gateway to call sip numbers when not connected to the internet. In this case, the user can create a rule like- numbers starting with 747xxxx use this no. for calling. similarly no. starting with +44xxxx use this calling card. Also my opinion about priority: it will slow down things as it will have to check priorities before dialing.