Multiple accounts and "Calls Live"
Forum » WikiPBX / General » Multiple accounts and "Calls Live"
Started by: leddaledda
On: 1276694941|%e %b %Y, %H:%M %Z|agohover
Number of posts: 4
rss icon RSS: New posts
Summary:
Different accounts are able to see and hangup all active FS calls.
Multiple accounts and "Calls Live"
leddaledda 1276694941|%e %b %Y, %H:%M %Z|agohover

I have two accounts configured.
When endpoint of account1 is making call account2 is able to see and hangup this call.

It seems to me that in multi tenant install accounts should not be able to see and control calls of other accounts.

Is it a bug or feature?

Reply  |  Options
Unfold Multiple accounts and "Calls Live" by leddaledda, 1276694941|%e %b %Y, %H:%M %Z|agohover
Re: Multiple accounts and "Calls Live"
stas_shtinstas_shtin 1276709377|%e %b %Y, %H:%M %Z|agohover

It's a bug. I've added it to our bug tracker.

Reply  |  Options
Unfold Re: Multiple accounts and "Calls Live" by stas_shtinstas_shtin, 1276709377|%e %b %Y, %H:%M %Z|agohover
Re: Multiple accounts and "Calls Live"
leddaledda 1276781151|%e %b %Y, %H:%M %Z|agohover

While making two simultaneous calls from one extension I see the following channels:

uuid,direction,created,created_epoch,name,state,cid_name,cid_num,ip_addr,dest,application,application_data,dialplan,context,read_codec,read_rate,write_codec,write_rate,secure,hostname,presence_id,presence_data

41b249f8-7a0f-11df-971d-674148912bd7,inbound,2010-06-17 15:52:58,1276779179,sofia/DCext/13.1.861.291|101#13.1.861.291|101,CS_EXECUTE,Dimaa M 1234,101,192.168.1.13,103,bridge,sofia/gateway/My_DC_gw/441,XML,enum,default,PCMU,8000,PCMU,8000ast

41c6b1c2-7a0f-11df-971f-674148912bd7,outbound,2010-06-17 15:52:59,1276779179,sofia/DCext/441,CS_EXCHANGE_MEDIA,Dimaa M 1234,101,192.168.1.13,441,playback,local_stream://moh,XML,enum,default,PCMU,8000,PCMU,8000ast

4c05a792-7a0f-11df-9725-674148912bd7,outbound,2010-06-17 15:53:16,1276779196,sofia/DCext/441,CS_REPORTING,Dimaa M 1234,101,192.168.1.13,441,XML,enum,default,PCMU,8000,PCMU,8000ast,,

5796698e-7a0f-11df-9728-674148912bd7,inbound,2010-06-17 15:53:35,1276779215,sofia/DCext/13.1.861.291|101#13.1.861.291|101,CS_EXECUTE,Dimaa M 1234,101,192.168.1.13,106,echoXML,enum,default,PCMU,8000,PCMU,8000ast,,

4 total.

It seems to me the only common part in these channels is DCext profile name. So if every tenant has its own profile, channels can be filtered by profile.

Channels 1 and 4 can be filtered by domain name, but then channels 2 and 3 wont be visible in any Account.

Probably the same approach should be applied to CDRs for the cases where right now we raise an error:
"Cannot associate this CDR with an account. Did not find either a valid account_id or domain_name channel variable"

Reply  |  Options
Unfold Re: Multiple accounts and "Calls Live" by leddaledda, 1276781151|%e %b %Y, %H:%M %Z|agohover
Re: Multiple accounts and "Calls Live"
stas_shtinstas_shtin 1276807294|%e %b %Y, %H:%M %Z|agohover

I don't think it's a problem if two channels won't be visible in this case. In fact, it would be easier for the user to figure out which call he wants to hangup. The same goes to CDR - users are interested in calls rather than channels.

But we can get another issue here. After adding multi-tenancy to wikipbx Traun noticed that that one of the gateways was using his server's IP instead of domain name for making incoming calls. We've got a workaround for authenticating such calls - domain name is specified in SIP request parameters that are received in SIP invite later. However, we won't be able to use that parameters for filtering channels as they aren't available in freeswitch command's response. In this case, it's still better to be too restrictive than too permissive, but I'd prefer to have something that always works correctly. One thing I haven't thought before is replacing IP with domain in channel variable after applying domain hack - this could work in theory.

Reply  |  Options
Unfold Re: Multiple accounts and "Calls Live" by stas_shtinstas_shtin, 1276807294|%e %b %Y, %H:%M %Z|agohover
New Post
page_revision: 0, last_edited: 1226259295|%e %b %Y, %H:%M %Z (%O ago)
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License