Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add information about profiles #14

Open
MosinAnton opened this issue Dec 8, 2020 · 0 comments
Open

Add information about profiles #14

MosinAnton opened this issue Dec 8, 2020 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@MosinAnton
Copy link

Can you add information about profiles?

getting names and types of profile:

(opensips-cli): mi list_all_profiles 
{
    "Profiles": [
        {
            "name": "call",
            "has value": false
        },
        {
            "name": "incoming",
            "has value": true
        }
    ]
}

if profiles without values - publish only count:

(opensips-cli): mi profile_get_size call
{
    "Profile": {
        "name": "call",
        "value": null,
        "count": 100,
        "shared": "no",
        "replicated": "no"
    }
}

if profile with values - publush values with count:

(opensips-cli): mi profile_get_values incoming
[
    {
        "value": "5550001",
        "count": 1
    },
    {
        "value": "5550002",
        "count": 2
    }
]
@RubenHoms RubenHoms added enhancement New feature or request help wanted Extra attention is needed labels Dec 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants