Pre-Submission Checklist

Type Of Change

Checklist:

Description

using this new RPC method we can fetch elements key/value from any queue from an external application. This could be useful in many cases, one use case is with acc_json

curl --data-binary '{"jsonrpc":"2.0","id":"1","method":"mqueue.fetch","params": ["MY_QUEUE"]}' -H 'content-type:text/plain;' http://1270.0.1:9999:jsonrpc/ 
{
	"jsonrpc":	"2.0",
	"result":	{
		"key":	"my_key",
		"val":	"{\"time\": 1544217754, \"method\": \"INVITE\","\"}"
	},
	"id":	"1"
}
kamcmd mqueue.fetch my_queue
error: 404 - Empty queue

You can view, comment on, or merge this pull request online at:

  https://github.com/kamailio/kamailio/pull/1760

Commit Summary

File Changes

Patch Links:


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.