Hey Saul, I tried as below, it works but it only rings for 4 times and then takes me to the person's message box. I already have a callback for media and on_call_state. if(argc < 1) { pjsua_call_hangup(call_id, PJSIP_SC_TEMPORARILY_UNAVAILABLE, NULL, NULL); } Is there a way to increase the number of rings, 4 is too short I guess? If this works, I need to try the transfer thing. Rachel On Mon, Sep 28, 2009 at 6:14 PM, Sa?l Ibarra <saghul at gmail.com> wrote: > Read the documentation on the callbacks. There is a callback which is > called when the media state is changed. You should implement that in > the callback. A timer is definitely NOT a clean solution. > > > > -- > /Sa?l > http://www.saghul.net | http://www.sipdoc.net > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip at lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20090929/15ae57fa/attachment.html>