Hi,
I would like to know how I could change the current ring tone of siphon. it has kind of busy tone playing. that I really don't like.. could someone help me in changing it in..
I think I might have to change the "ring.m" file.. I would really appreciate if somebody help me in solving this..
Also I found this post.. but couldn't really solve it yet..
http://groups.google.com/group/siphon/browse_thread/thread/6befff9b16029bb9
If I define a variable RING_FILE 1, then I get a lot of errors in project.. :(
/* Ring (to alert incoming call) */
#if !RING_FILE name = pj_str("ring");
status = pjmedia_tonegen_create2(app_config->pool, &name, app_config->media_cfg.clock_rate,
app_config->media_cfg.channel_count, samples_per_frame,
16, PJMEDIA_TONEGEN_LOOP, &app_config->ring_port);
if (status != PJ_SUCCESS) //goto on_error;
return; // FIXME
for (i=0; i<RING_CNT; ++i) {
tone[i].freq1 = RING_FREQ1; tone[i].freq2 = RING_FREQ2;
tone[i].on_msec = RING_ON; tone[i].off_msec = RING_OFF;
} tone[RING_CNT-1].off_msec = RING_INTERVAL;
pjmedia_tonegen_play(app_config->ring_port, RING_CNT, tone,
PJMEDIA_TONEGEN_LOOP);
status = pjsua_conf_add_port(app_config->pool, app_config->ring_port, &app_config->ring_slot);
if (status != PJ_SUCCESS) //goto on_error;
return; // FIXMEThanks you and Kind Regards,
Tharindu
tharindufit.wordpress.com