- Added new (NULL) params to play function calls.
This commit is contained in:
@@ -147,13 +147,13 @@ static void ua_event_handler(struct ua *ua, enum ua_event ev,
|
|||||||
case UA_EVENT_CALL_INCOMING:
|
case UA_EVENT_CALL_INCOMING:
|
||||||
if (list_count(ua_calls(ua)) > 1) {
|
if (list_count(ua_calls(ua)) > 1) {
|
||||||
play = mem_deref(play);
|
play = mem_deref(play);
|
||||||
(void)play_file(&play, player, "callwaiting.wav", 3);
|
(void)play_file(&play, player, "callwaiting.wav", 3, NULL, NULL);
|
||||||
}
|
}
|
||||||
len = re_snprintf(event_buf, sizeof event_buf, "%s", "call incoming");
|
len = re_snprintf(event_buf, sizeof event_buf, "%s", "call incoming");
|
||||||
break;
|
break;
|
||||||
case UA_EVENT_CALL_RINGING:
|
case UA_EVENT_CALL_RINGING:
|
||||||
play = mem_deref(play);
|
play = mem_deref(play);
|
||||||
(void)play_file(&play, player, "ringback.wav", -1);
|
(void)play_file(&play, player, "ringback.wav", -1, NULL, NULL);
|
||||||
len = re_snprintf(event_buf, sizeof event_buf, "%s", "call ringing");
|
len = re_snprintf(event_buf, sizeof event_buf, "%s", "call ringing");
|
||||||
break;
|
break;
|
||||||
case UA_EVENT_CALL_PROGRESS:
|
case UA_EVENT_CALL_PROGRESS:
|
||||||
@@ -185,7 +185,7 @@ static void ua_event_handler(struct ua *ua, enum ua_event ev,
|
|||||||
const char *tone;
|
const char *tone;
|
||||||
tone = translate_errorcode(call_scode(call));
|
tone = translate_errorcode(call_scode(call));
|
||||||
if (tone) {
|
if (tone) {
|
||||||
(void)play_file(&play, player, tone, 1);
|
(void)play_file(&play, player, tone, 1, NULL, NULL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
len = re_snprintf(event_buf, sizeof event_buf, "call closed,%s", prm);
|
len = re_snprintf(event_buf, sizeof event_buf, "call closed,%s", prm);
|
||||||
|
|||||||
Reference in New Issue
Block a user