<p>The RPC interface is designed for positional parameters, not named parameters, in other words, the order is important. For example binrpc (implemented by ctl and used by kamcmd) doesn't have a way to give names for params, and, iirc, xmlrpc (initial) specs were also with positional params. If you look at the docs for rpc commands, they do not define names for parameters.</p>
<p>The jsonrpcs ignore the names and use the values based on position.</p>
<p>I am closing this one, even a feature request is something that needs a lot of work in couple of modules. of course, a pull request with such enhancement will be considered, but it is out of scope to keep it as a feature request.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/1550#issuecomment-392877828">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AF36ZYgZ3_cHa8fEJowN3yTVytScPExaks5t3Y2sgaJpZM4UR8u7">mute the thread</a>.<img src="https://github.com/notifications/beacon/AF36ZWvv7jj70Leun01qFiHo0nL7-3Yfks5t3Y2sgaJpZM4UR8u7.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","potentialAction":{"@type":"ViewAction","target":"https://github.com/kamailio/kamailio/issues/1550#issuecomment-392877828","url":"https://github.com/kamailio/kamailio/issues/1550#issuecomment-392877828","name":"View Issue"},"description":"View this Issue on GitHub","publisher":{"@type":"Organization","name":"GitHub","url":"https://github.com"}}</script>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/kamailio/kamailio","title":"kamailio/kamailio","subtitle":"GitHub repository","main_image_url":"https://assets-cdn.github.com/images/email/message_cards/header.png","avatar_image_url":"https://assets-cdn.github.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/kamailio/kamailio"}},"updates":{"snippets":[{"icon":"PERSON","message":"@miconda in #1550: The RPC interface is designed for positional parameters, not named parameters, in other words, the order is important. For example binrpc (implemented by ctl and used by kamcmd) doesn't have a way to give names for params, and, iirc, xmlrpc (initial) specs were also with positional params. If you look at the docs for rpc commands, they do not define names for parameters.\r\n\r\nThe jsonrpcs ignore the names and use the values based on position.\r\n\r\nI am closing this one, even a feature request is something that needs a lot of work in couple of modules. of course, a pull request with such enhancement will be considered, but it is out of scope to keep it as a feature request."}],"action":{"name":"View Issue","url":"https://github.com/kamailio/kamailio/issues/1550#issuecomment-392877828"}}}</script>
<script type="application/ld+json">{
"@type": "MessageCard",
"@context": "http://schema.org/extensions",
"hideOriginalBody": "false",
"originator": "37567f93-e2a7-4e2a-ad37-a9160fc62647",
"title": "Re: [kamailio/kamailio] JSONRPCS replacing keys in params gives unexpected behaivor (#1550)",
"sections": [
{
"text": "",
"activityTitle": "**Daniel-Constantin Mierla**",
"activityImage": "https://assets-cdn.github.com/images/email/message_cards/avatar.png",
"activitySubtitle": "@miconda",
"facts": [

]
}
],
"potentialAction": [
{
"name": "Add a comment",
"@type": "ActionCard",
"inputs": [
{
"isMultiLine": true,
"@type": "TextInput",
"id": "IssueComment",
"isRequired": false
}
],
"actions": [
{
"name": "Comment",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"IssueComment\",\n\"repositoryFullName\": \"kamailio/kamailio\",\n\"issueId\": 1550,\n\"IssueComment\": \"{{IssueComment.value}}\"\n}"
}
]
},
{
"targets": [
{
"os": "default",
"uri": "https://github.com/kamailio/kamailio/issues/1550#issuecomment-392877828"
}
],
"@type": "OpenUri",
"name": "View on GitHub"
},
{
"name": "Unsubscribe",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"MuteNotification\",\n\"threadId\": 340249531\n}"
}
],
"themeColor": "26292E"
}</script>