asterisk2billing.org http://forum.asterisk2billing.org/ |
|
Multiple SIP accounts on the same CARD number http://forum.asterisk2billing.org/viewtopic.php?f=15&t=4909 |
Page 1 of 1 |
Author: | zafeirop [ Sat Feb 21, 2009 1:48 pm ] |
Post subject: | Multiple SIP accounts on the same CARD number |
Hi all, I noticed that you can create multiple sip friends for the same card holder but when the system tries to authenticate a user with cc_sip_buddies.accountcode != cc_card.username the authentication fails. So the right way to do this is to set the ACCOUNT CODE (aka cc_sip_buddies.accountcode) for each of your sip friends that are connected to the same customer, to the customer's CARD NUMBER (aka cc_card.username) I think that it would be a grat idea if every SIP friend account had a different login name and webui password to access the Customer UI independetly. bye |
Author: | xrg [ Sat Feb 21, 2009 2:17 pm ] |
Post subject: | |
Implemented in v200.. If you dial that card, all the peers will ring simultaneously, too. |
Author: | zafeirop [ Sun Feb 22, 2009 6:39 pm ] |
Post subject: | |
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' |
Page 1 of 1 | All times are UTC |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |