Ability to retrieve un-validated account code?

38 views
Skip to first unread message

Brent Nesbit

unread,
Nov 11, 2015, 9:02:48 AM11/11/15
to NetSapiens Developer Forum
We have a potential future client (lawyer) that can currently enter an account code on their phone system when making a call. At the end of the day they get a report that shows what account codes were used and how long the calls were, so that they can enter it in to their billing system to bill those clients for that time. 

I did some research and it seems like un-validated account codes is the best way to do that on Netsapiens: https://help.netsapiens.com/hc/en-us/articles/204154330-Configuring-Un-Validated-Account-Codes (if anyone has any ideas on a better way, let me know).

The thing that I'm confused about though is how you can actually retrieve the entered codes so that I can create some kind of daily billing report. I can't find documentation on where that information is stored, and how I can work with it. I would expect to be able to get it from CDRs, but there isn't a parameter listed for it on dox.

Thanks.

Eric Hernaez

unread,
Nov 11, 2015, 10:16:02 AM11/11/15
to Brent Nesbit, NetSapiens Developer Forum
You can enable this in the UI Config of the Admin UI:


PORTAL_CALL_HISTORY_EXPORT_PAC
PORTAL_CALL_HISTORY_SHOW_PAC












On Wed, Nov 11, 2015 at 9:02 AM, Brent Nesbit <bne...@celito.net> wrote:
We have a potential future client (lawyer) that can currently enter an account code on their phone system when making a call. At the end of the day they get a report that shows what account codes were used and how long the calls were, so that they can enter it in to their billing system to bill those clients for that time. 

I did some research and it seems like un-validated account codes is the best way to do that on Netsapiens: https://help.netsapiens.com/hc/en-us/articles/204154330- Configuring-Un-Validated-Account-Codes (if anyone has any ideas on a better way, let me know).

The thing that I'm confused about though is how you can actually retrieve the entered codes so that I can create some kind of daily billing report. I can't find documentation on where that information is stored, and how I can work with it. I would expect to be able to get it from CDRs, but there isn't a parameter listed for it on dox.

Thanks.

--
You received this message because you are subscribed to the Google Groups "NetSapiens Developer Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to netsapiens-develope...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Chris Aaker

unread,
Nov 11, 2015, 11:17:46 AM11/11/15
to Eric Hernaez, Brent Nesbit, NetSapiens Developer Forum
Brent, 

Eric is correct, those will show in the portal. The API also does have the option as well. its the "pac" field. Its should be on the default field list via the cdr object, but you can also use the fields paremeter to set your own fields or "*" to see them all. We is an example response of a test i just did in JSON, you can see the last field, but in my case its empty. 

[
{ "term_callid": "20151110235536045336-f6779bbfd2bc41ab0ec1e3cac435b324", "orig_callid": "13834...@192.168.88.101", "orig_from_name": "Erin Wiedner", "orig_from_uri": "sip:52...@netsapiens.com", "term_to_uri": "sip:52...@netsapiens.com", "batch_tim_beg": "2015-11-10 23:55:36", "time_release": "2015-11-10 23:57:45", "batch_dura": "124", "route_to": "sip:[0-9][0-9][0-9][0-9]@*", "release_text": "Orig: Bye", "orig_to_user": "5226", "orig_sub": "5227", "orig_domain": "netsapiens.com", "by_sub": "5226", "by_domain": "netsapiens.com", "term_sub": "5226", "term_domain": "netsapiens.com", "time_answer": "2015-11-10 23:55:41", "disposition": "", "reason": "", "notes": "", "pac": "" },
.....
--

Chris Aaker

Vice President of Engineering | NetSapiens Inc.

P.O. Box 8588 La Jolla, CA 92038

(P) 858.764.5226 (F) 858.208.4424

(E) caa...@netsapiens.com (T) @NetSapiensChris


Website | News | Events | Facebook | Twitter | Linkedin


Brent Nesbit

unread,
Nov 11, 2015, 1:39:44 PM11/11/15
to NetSapiens Developer Forum
Eric,

I found those UI configs a few minutes after I posted this message. Thanks for that, it got me halfway there.

Chris,

I was planning on trying that to see if it was hidden in there once I saw that I could get it to show in the portal with a UI config. I knew that meant it definitely had to be in the CDR. Thanks for the info!
Reply all
Reply to author
Forward
0 new messages