| 3087 | } |
| 3088 | |
| 3089 | static bencode_item_t *rtpe_function_call_ok(bencode_buffer_t *bencbuf, struct sip_msg *msg, |
| 3090 | enum rtpe_operation op, str *flags_str, str *body, pv_spec_t *spvar, |
| 3091 | struct rtpe_set *set, str *node, bencode_item_t *dict) |
| 3092 | { |
| 3093 | bencode_item_t *ret; |
| 3094 | |
| 3095 | ret = rtpe_function_call(bencbuf, msg, op, flags_str, body, spvar, set, node, dict); |
| 3096 | if (!ret) |
| 3097 | return NULL; |
| 3098 | |
| 3099 | if (bencode_dictionary_get_strcmp(ret, "result", "ok")) { |
| 3100 | LM_ERR("proxy didn't return \"ok\" result\n"); |
| 3101 | bencode_buffer_free(bencbuf); |
| 3102 | return NULL; |
| 3103 | } |
| 3104 | |
| 3105 | return ret; |
| 3106 | } |
| 3107 | |
| 3108 | |
| 3109 |
no test coverage detected