[Siphon] How to change the siphon current ring tone

36 views
Skip to first unread message

Tharindu Madushanka

unread,
Jun 25, 2011, 3:44:23 PM6/25/11
to sip...@googlegroups.com, samue...@gmail.com
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; // FIXME


Thanks you and Kind Regards,

Tharindu
tharindufit.wordpress.com

Tharindu Madushanka

unread,
Jun 25, 2011, 3:58:41 PM6/25/11
to sip...@googlegroups.com, samue...@gmail.com
Hi,

Defining "RING_FILE" constant in "call.h" file solved it.. I think then it will play the file defined in "ring.m"..

#define RING_FILE 1

Is it playing some sound created.. if we not define that constant ?


Thank you and Kind Regards,

Tharindu
tharindufit.wordpress.com

Reply all
Reply to author
Forward
0 new messages