Well its been a long time since i work with mobile fones but there should be some blockking scripts which just directly reject the call. cant remember how but if i do i can answer<br><br><div class="gmail_quote">2009/8/4 Marko Saukko <span dir="ltr">&lt;<a href="mailto:marko.saukko@gmail.com">marko.saukko@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br>
<br>
How can I dismiss incoming call without answering to it?<br>
<br>
I tried the Busy method, as shown below:<br>
<br>
$ sudo dbus-send --system --print-reply --dest=org.ofono<br>
/modem1/voicecall01 org.ofono.VoiceCall.Busy<br>
method return sender=:1.277 -&gt; dest=:1.284 reply_serial=2<br>
<br>
Here is what the ofonod prints out:<br>
...<br>
ofonod[2049]: clcc_poll_cb got result: 1<br>
ofonod[2049]: Final response: OK<br>
ofonod[2049]: Response line: +CLCC: 1,1,4,0,0,&quot;+358000000000&quot;,145<br>
ofonod[2049]: cring_notify got result: 1<br>
ofonod[2049]: Final response: (null)<br>
ofonod[2049]: Response line: +CRING: VOICE<br>
ofonod[2049]: clip_notify got result: 1<br>
ofonod[2049]: Final response: (null)<br>
ofonod[2049]: Response line: +CLIP: &quot;+358000000000&quot;,145<br>
ofonod[2049]: clip_notify: +358000000000 145 0<br>
ofonod[2049]: Got a voicecall event, status: 4, id: 1, number: +358000000000<br>
ofonod[2049]: Found call with id: 1<br>
ofonod[2049]: clcc_poll_cb got result: 1<br>
ofonod[2049]: Final response: OK<br>
ofonod[2049]: Response line: +CLCC: 1,1,4,0,0,&quot;+358000000000&quot;,145<br>
...<br>
<br>
...<br>
ofonod[2049]: generic_cb got result: 1<br>
ofonod[2049]: Final response: OK<br>
...<br>
<br>
These messages do not have any effect to the call itself. With E51 the<br>
only way to dismiss the call in receiving end is to first answer and<br>
then hangup.<br>
<br>
In above tests the Nokia E51 was used (connected with USB cable).<br>
<br>
<br>
<br>
<br>
With Nokia 6100 connected with USB cable the the busy method worked<br>
(call was ended), however the dbus send an error message as a response:<br>
<br>
$ sudo dbus-send --system --print-reply --dest=org.ofono<br>
/modem1/voicecall01 org.ofono.VoiceCall.Busy<br>
Error org.freedesktop.DBus.Error.NoReply: Did not receive a reply.<br>
Possible causes include: the remote application did not send a reply,<br>
the message bus security policy blocked the reply, the reply timeout<br>
expired, or the network connection was broken.<br>
<br>
And here is the output by ofonod:<br>
<br>
...<br>
ofonod[1514]: Response line: +CRING: VOICE<br>
ofonod[1514]: cring_notify<br>
ofonod[1514]: clip_notify got result: 1<br>
ofonod[1514]: Final response: (null)<br>
ofonod[1514]: Response line: +CLIP: &quot;+358000000000&quot;,145<br>
ofonod[1514]: clip_notify: +358000000000 145 0<br>
ofonod[1514]: Got a voicecall event, status: 4, id: 1, number: +358000000000<br>
ofonod[1514]: Did not find a call with id: 1<br>
ofonod[1514]: Resetting updating flag<br>
ofonod[1514]: clcc_poll_cb got result: 0<br>
ofonod[1514]: Final response: ERROR<br>
ofonod[1514]: We are polling CLCC and CLCC resulted in an error<br>
ofonod[1514]: All bets are off for call management<br>
<br>
<br>
after this nothing else was printed even when the busy was sent.<br>
<br>
<br>
oFono version 0.2 was used.<br>
<br>
<br>
<br>
Regards,<br>
Marko<br>
_______________________________________________<br>
ofono mailing list<br>
<a href="mailto:ofono@ofono.org">ofono@ofono.org</a><br>
<a href="http://lists.ofono.org/listinfo/ofono" target="_blank">http://lists.ofono.org/listinfo/ofono</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Ceyhun ALYEŞİL<br>