Restcomm jDiameter: Event Charging Client - restcomm

I'm new to Mobicents/Restcomm. We need to setup a basic DCCA client application which will receive REST request from clients and send CCR (Event Charging without reservation) to Billing server.
Where can I find some detailed instructions (preferably step by step guide) to start, install, configure, develop/customize and test?
Any help would be really appreciated.
Regards,
Arif

Did you try looking at the documentation at http://documentation.telestax.com/core/diameter/Diameter_User_Guide.html and some of the examples in the project itself https://github.com/RestComm/jdiameter/tree/master/examples ?
You can also look at examples from SIP Servlets using jDiameter https://github.com/RestComm/sip-servlets/tree/master/sip-servlets-examples/diameter-event-charging

Related

Debugging Parse Cloud-Code

What would be the best way to debug Parse Cloud Code? Currently it's a mess of logging to the console and checking logs. Does anyone have a good workable solution?
During development, you should begin by testing against a local hosted server. I.e., I use VS Code. You can set breakpoints and watch variables for their values. You can set up a tool like ngrok to get a remote URL for your local endpoint so you can test with non-local hosted clients if you'd like.
We also use Slack extensively. We've created our own slack bot, and it has several channels it reports relevant information too, triggered from our parse-server. One of these is a dev error channel. Instead of console.logs, which are hard to sift through and find what you're looking for, we push important information to Slack. We don't switch every single console.log to a slack message, just the important "Hey something went wrong here's the information" messages. This brings them to our attention so we can identify and resolve them way faster. Slack is awesome. I recommend using slack, even on a solo project.
at the moment you can access your Logs using a console.log() or console.error() for functions and all general logs of everything that happens with your app, at Back4App you can access using: Server Settings -> Logs -> Settings -> Server System Log.
Or functions and all logs generated by Parse server, they're: request.log.info() and request.log.error(), at Back4App you can access using: Dashboard -> Logs.

Connecting IntelliJ Idea Servers to GitLab.com: what info is actually needed?

I'm trying to configure IntelliJ IDEA 2017.1.2 in order to get the tasks from a private repository on GitLab.com.
To do that I have to create the corresponding entry in the Servers window.
Now, I don't have the faintest idea about how I should fill the Servers form in IDEA.
What URL I have to use for Server URL ?
What token ?
Any advice? Thx in advance.
UPDATE: Based on the information mentioned in the issue IDEA-193736, the connectivity problem with the new GitLab Issues API (V4) should be fixed when the update 2018.2 is released.
The https://gitlab.com URL didn't work for me as the API URL was updated to V4 on GitLab. So, after some trial and error I was able to make it work by completing the following steps:
Create a Personal Access Token on GitLab (https://gitlab.com/profile/personal_access_tokens) with API and read_user access permissions
In IntelliJ (or Pycharm in my case), the Server URL should be https://gitlab.com/api/v4/issues? (with the question mark at the end)
The token is the Personal Access Token that was generated previously
Also, don't forget to increase the connection timeout to 15000 milliseconds under the Tasks section in the Settings (Settings => Tools => Tasks).
Task Server Screenshot
Hope it helps someone else.
[EDIT] This answer was valid in '17, when it was created. For an up to date anwer, pls see other answers in the thread.
So, here's how to do it.
First of all, go to gitlab.
Access with your data and get a personal access token.
Then, you can configure IntelliJ Idea with the following values:
You can now check all your GitLab's issues directly in Idea, as shown here below.

Spring Config Client - ConfigClientWatch

I am looking at the class ConfigClientWatch in the package package org.springframework.cloud.config.client;
I was expecting that I could use this to poll the server periodically to see if the config had changed and then execute an refresh.
I am not able to get this to work? How does the value
String newState = this.environment.getProperty("config.client.state");
Get updated.
I have not been able to find any documentation on this.
Thanks in Advance
Raghu
Unfortunately, this property is only used by Vault backend. Anyway, there is a thread in the Spring Config's GitHub proposing changes to support other backends such as Git.
If you are using Git-backed configurations, this solution may work for you:
https://github.com/spring-cloud/spring-cloud-config/issues/1378#issuecomment-492073851
Please, upvote the GitHub thread so this feature gets accepted.

How to define the leak period date in SonarQube using the API?

I am using SonarQube 6.0
Has anyone defined the leak period date in SonarQube using the API?
I have looked at the Web API (localhost:9000/web_api/) but have not seen a section that details this operation.
Any advise is appreciated.
Thanks
As indicated in the documentation go to Administration > General Settings > General > Differential Views. If you want to do it with a script, have a look at api/properties web services.
So I've tried this url,
curl -u d****#****.com:****** -X POST https://*****.com/api/properties?id=sonar.timemachine.period1&value=2018-06-01&resource=AdManager
and my response code is;
{"err_code":200,"err_msg":"property created"}
But, the property is not updated. Is there a way I can see why this failed? The logs don't seem to mention anything.

Register CallBackHandler IOS application,SUP,Xcode

we are following the steps mentioned in the infocentersybase. we need to register a cal back to retrive the information.ie, the following step
**To configure an application to synchronize and retrieve MBO data you must start the client
engine, configure the physical device settings, listen for messages from the server, and
subscribe to a package.
Register a callback.
Development Task Flows
Developer Guide: iOS Native Applications 13
The client framework uses a callback mechanism to notify the application when messages
arrive from the server. Some examples of events that are sent include login success or
failure, subscription success or failure, or a change to a MBO.
Register the callback object by executing:
MyCallbackHandler* theCallbackHandler = [MyCallbackHandler new];
[SampleApp_SampleAppDB registerCallbackHandler:theCallbackhandler];
We have SUPCallBackHandler.h file and SUPDefaultCallBackHandler.h in the public directory. so Where should we write the corresponding .m files. Please help us. if question is not clear then jus read that above mentioned step and please explain what does that mean. please help us.