Skip to content
Snippets Groups Projects
Commit e145b460 authored by George Joseph's avatar George Joseph Committed by Gerrit Code Review
Browse files

Merge "res_rtp_asterisk: Raise event when RTP port is allocated"

parents d6f570da 8bb26484
No related branches found
No related tags found
No related merge requests found
...@@ -3492,6 +3492,7 @@ static int rtp_allocate_transport(struct ast_rtp_instance *instance, struct ast_ ...@@ -3492,6 +3492,7 @@ static int rtp_allocate_transport(struct ast_rtp_instance *instance, struct ast_
if (!ast_bind(rtp->s, &rtp->bind_address)) { if (!ast_bind(rtp->s, &rtp->bind_address)) {
ast_debug(1, "Allocated port %d for RTP instance '%p'\n", x, instance); ast_debug(1, "Allocated port %d for RTP instance '%p'\n", x, instance);
ast_rtp_instance_set_local_address(instance, &rtp->bind_address); ast_rtp_instance_set_local_address(instance, &rtp->bind_address);
ast_test_suite_event_notify("RTP_PORT_ALLOCATED", "Port: %d", x);
break; break;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment