xrg wrote:
Implemented in v200..
If you dial that card, all the peers will ring simultaneously, too.
Another case where i need your advise is the following scenario:
A user is registered in our system and in our cc_card table.
We create multiple SIP-friend accounts that are linked to that user. If you enable
sip_iax_friends = YES
and permit inter-a2billing calls then you realize that these SIP accounts can't dial each other. A valid Dial command executes only when the destination number is equal to cc_card.useralias. The cc_card.useralias field belongs to cc_card table and it is unique, pointing to the unique customer.
The exact QUERY command prior to Dial execution is:
QUERY = SELECT name FROM cc_sip_buddies, cc_card WHERE cc_sip_buddies.name=cc_card.username AND useralias='XXXXX'
where XXXX is the called number
A quick fix for this is to alter the query to:
QUERY = SELECT name FROM cc_sip_buddies, cc_card WHERE cc_sip_buddies.accountcode=cc_card.username AND cc_sip_buddies.username='XXXXX'