stmbtblljr / voipms-monitor-gadget

Automatically exported from code.google.com/p/voipms-monitor-gadget
0 stars 0 forks source link

Might need to change how you access the CDR data #3

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
One idea... I'm sure myself (and many others) use multiple sub accounts.

For instance, each interface of my PAP2T has a sub account, and I also have 
soft phones on a few PCs.

It looks that when you get the CDR info you are filtering it by the account 
supplied
[code]
URL = 
api_url+"api_username="+email+"&api_password="+password+"&account="+account+"&me
thod=getCDR&date_from="+date_from+"&date_to="+date_to+"&answered=1&noanswer=1&bu
sy=1&failed=1&timezone="+gmtHours+"&calltype=all&callbilling=all&account="+accou
nt;
[/code]

This means I only can see the incoming calls, since they are associated with 
the main account.

By removing the TWO occurences of &account="+account I can now see both 
incoming and outgoing, although I still do not see a registered server listed.

Original issue reported on code.google.com by pete...@gmail.com on 17 Mar 2012 at 6:10

GoogleCodeExporter commented 8 years ago
Thanks for your input and suggestion.

The next version (probably tomorrow) will have the fix about the "doublon" of 
the account variable. Thanks for pinpointing it, very appreciated. 

My vision for this widget was to have one by (sub)account (in fact, the API 
works mostly like that). So for each of your phones you can start a new widget 
and get the specific informations for that phone (registration & CDR). 

Maybe this is not practical, since your desktop can really be filled by tons of 
this widget. I'll have to think about a implementation for that. Any ideas ? 

About not being able to see the registered server listed, can you give me more 
details or a screenshot of what it is and tell me what it should be ?

Thans again!

Original comment by esenterre on 24 Mar 2012 at 2:51

GoogleCodeExporter commented 8 years ago
On the widget display, I see the top line VOIP.MS; then beneath it the account 
I have setup to monitor (1234578) and the account balance ($50.00)

The next line down, I see a little blue icon in the middle with the string n/a 
next to it, and beneath that, the last 7 or so calls I have made and received.

The thig is, I have my voip.ms account configured so that calls to my DID go to 
a ring group that has two subaccounts on it; 12345678_line1 and 12345678_line2; 
my ATA is configured to logon to 12345678_line1 and 12345678_line2 to allow me 
to make and receive two calls at the same time on the the two line handsets I 
have plugged into it.

However, this means i have no ATA registered with the account 12345678, so the 
connection status shows as n/a.

Original comment by pete...@gmail.com on 24 Mar 2012 at 2:58

GoogleCodeExporter commented 8 years ago
Oh I start to understand (sorry, I'm kinda new to VoIP in general, I only have 
a very basic setup here).

I'm thinking maybe to add a dropdown on the account (12345678), so you'll be 
able to select any of your sub-accounts too (_line1/2) from there and watch the 
registration and CDR for each of them.

Does this make any sense to you ? 

Original comment by esenterre on 24 Mar 2012 at 3:10

GoogleCodeExporter commented 8 years ago
Sure does... Ship me new versions if you want them tested at any time.

Original comment by pete...@gmail.com on 24 Mar 2012 at 3:56

GoogleCodeExporter commented 8 years ago
I just released version 1.1.0. You can try it out! 

Original comment by esenterre on 25 Mar 2012 at 1:13

GoogleCodeExporter commented 8 years ago
Well... Maybe it's just the way I have things configured but without making 
source level changes, the CDR portion is useless to me.

Let me detail my setup.

- Single incoming DID
- Routing defined as going to a ring group (My Ring)
- Ring group defined as containing two sub account (12345678_ata and 
12345678_line2)
- PAP2T ATA configured to have line1 associated with 12345678_ata and line2 
with 12345678_line2
- Two multi line handsets attached to the ATA; so either handset can make / 
receive calls on either line

So the net result of this is the following:
- Incoming calls show in the CDR as being associated with the main account 
12345678
- Outgoing calls show as associated with whichever sub account makes them, so 
either 1234578_ata OR 12345678_line2

Yes... withe 1.10 of the monitor I can select which account / subaccount to 
show; both within the CDR and the registration status; and yes, as long as I 
select the correct account I can see either the incoming OR outgoing calls.

However, if you pass NO account to the API and just use the API username and 
password, I DO see all calls correctly.

Original comment by pete...@gmail.com on 25 Mar 2012 at 6:45

GoogleCodeExporter commented 8 years ago
Hummm... Interesting! :)

So maybe I could add a dropdown option as "All accounts" (or any other 
naming?!). So I can call the API without specific account. And then you'll be 
able to see the CDR the way you want it ?

But then, where I'll point my "registration status" ? Any ideas ?

Because seeing CDR by "sub account" is something nice I think. I setup my 
daughter's iPod with a subaccount and she can now make calls with my VoIP 
account. And I can track where she call. And not have to see calls from all 
other subaccounts, only hers.

Maybe for the "All accounts" I can try to "rotate" the registration for each 
subaccounts something like :
[0] montreal2.voip.ms
[1] not registered

And only displaying one at a time for a few seconds. But it'll not be clear 
that the [0] or [1] will designate the account number... :-\

Or maybe removing the registration line altogether when the "All accounts" is 
selected.

Any other ideas/suggestions ? 

Original comment by esenterre on 26 Mar 2012 at 1:02