@@ -152,6 +152,7 @@ enum rtpe_operation {
152
152
OP_DELETE ,
153
153
OP_START_RECORDING ,
154
154
OP_STOP_RECORDING ,
155
+ OP_PAUSE_RECORDING ,
155
156
OP_QUERY ,
156
157
OP_START_MEDIA ,
157
158
OP_STOP_MEDIA ,
@@ -233,6 +234,7 @@ static const char *command_strings[] = {
233
234
[OP_DELETE ] = "delete" ,
234
235
[OP_START_RECORDING ] = "start recording" ,
235
236
[OP_STOP_RECORDING ] = "stop recording" ,
237
+ [OP_PAUSE_RECORDING ] = "pause recording" ,
236
238
[OP_QUERY ] = "query" ,
237
239
[OP_START_MEDIA ]= "play media" ,
238
240
[OP_STOP_MEDIA ] = "stop media" ,
@@ -275,6 +277,8 @@ static char *gencookie();
275
277
static int rtpe_test (struct rtpe_node * , int , int );
276
278
static int start_recording_f (struct sip_msg * msg , str * flags , pv_spec_t * spvar );
277
279
static int stop_recording_f (struct sip_msg * msg , str * flags , pv_spec_t * spvar );
280
+ static int pause_recording_f (struct sip_msg * msg , str * flags , pv_spec_t * spvar );
281
+ static int start_recording_f (struct sip_msg * msg , str * flags , pv_spec_t * spvar );
278
282
static int rtpengine_offer_f (struct sip_msg * msg , str * flags , pv_spec_t * spvar ,
279
283
pv_spec_t * bpvar , str * body );
280
284
static int rtpengine_answer_f (struct sip_msg * msg , str * flags , pv_spec_t * spvar ,
@@ -445,6 +449,10 @@ static const cmd_export_t cmds[] = {
445
449
{CMD_PARAM_STR | CMD_PARAM_OPT , 0 , 0 },
446
450
{CMD_PARAM_VAR | CMD_PARAM_OPT , 0 , 0 }, {0 ,0 ,0 }},
447
451
ALL_ROUTES },
452
+ {"rtpengine_pause_recording" , (cmd_function )pause_recording_f , {
453
+ {CMD_PARAM_STR | CMD_PARAM_OPT , 0 , 0 },
454
+ {CMD_PARAM_VAR | CMD_PARAM_OPT , 0 , 0 }, {0 ,0 ,0 }},
455
+ ALL_ROUTES },
448
456
{"rtpengine_offer" , (cmd_function )rtpengine_offer_f , {
449
457
{CMD_PARAM_STR | CMD_PARAM_OPT , 0 , 0 },
450
458
{CMD_PARAM_VAR | CMD_PARAM_OPT , 0 , 0 },
@@ -3521,6 +3529,12 @@ stop_recording_f(struct sip_msg* msg, str *flags, pv_spec_t *spvar)
3521
3529
return rtpe_function_call_simple (msg , OP_STOP_RECORDING , flags , NULL , NULL , spvar );
3522
3530
}
3523
3531
3532
+ static int
3533
+ pause_recording_f (struct sip_msg * msg , str * flags , pv_spec_t * spvar )
3534
+ {
3535
+ return rtpe_function_call_simple (msg , OP_PAUSE_RECORDING , flags , NULL , NULL , spvar );
3536
+ }
3537
+
3524
3538
/**
3525
3539
* Gets the rtp stats and tries to store them in a context, if that's possible
3526
3540
* Returns:
0 commit comments