Changeset 6112 for pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app.c
- Timestamp:
- Nov 29, 2019 4:21:17 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app.c
r6044 r6112 1002 1002 1003 1003 /* Playfile done notification, set timer to hangup calls */ 1004 pj_status_ton_playfile_done(pjmedia_port *port, void *usr_data)1004 void on_playfile_done(pjmedia_port *port, void *usr_data) 1005 1005 { 1006 1006 pj_time_val delay; … … 1012 1012 if (pjsua_call_get_count() == 0) { 1013 1013 pjsua_player_set_pos(app_config.wav_id, 0); 1014 return PJ_SUCCESS;1015 1014 } 1016 1015 1017 1016 /* Timer is already active */ 1018 1017 if (app_config.auto_hangup_timer.id == 1) 1019 return PJ_SUCCESS;1018 return; 1020 1019 1021 1020 app_config.auto_hangup_timer.id = 1; … … 1025 1024 &app_config.auto_hangup_timer, 1026 1025 &delay); 1027 1028 return PJ_SUCCESS;1029 1026 } 1030 1027 … … 1361 1358 1362 1359 pjsua_player_get_port(app_config.wav_id, &port); 1363 status = pjmedia_wav_player_set_eof_cb (port, NULL,1364 &on_playfile_done);1360 status = pjmedia_wav_player_set_eof_cb2(port, NULL, 1361 &on_playfile_done); 1365 1362 if (status != PJ_SUCCESS) 1366 1363 goto on_error;
Note: See TracChangeset
for help on using the changeset viewer.