<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<div class="moz-text-html" lang="x-western">
<div class="moz-text-html" lang="x-western">
<div class="moz-text-flowed"
 style="font-family: -moz-fixed; font-size: 13px;" lang="x-western">Kero
van Gelder wrote:
<br>
<br>
[...]
<br>
<br>
<blockquote type="cite">I'll think about the extension concept a bit
more. The fact that you chose <br>
a scenario to modify a phone number is interesting. How about calling a
person from a Contact? and then choosing VoIP or GSM by those
extensions? <br>
(specifically, I do not think gsmd is the place where the call should <br>
originate, in the image you have on the Wiki). <br>
&nbsp; </blockquote>
<br>
The reason why I chose the gsmd in the example is because it is the
final action prior to actually making the call and as such it is a good
place to make changes that you don't want seen by the higher levels.&nbsp;
For example, say you wanted to call +1-555-123-4567 but the calling
card extension decided that the number that you actually need to dial
is +1-800-800-8001,555-123-4567 you do not want the latter number
showing up in the journal, last call lists, etc.
<br>
<br>
That said, I agree that you would probably want to put another
(similar) extension method in to the dialer.&nbsp; If you had such a method
in the dialer then it could tell the dialer to initiate VoIP rather
than GSM, in which case the GSM extension method would never be called
as you wouldn't go down that codepath.&nbsp; The more extension calls we
have the more flexibility we have, although there is a balance between
having them everywhere with no-one knowing to which one they should
attach their extension and having them in very few places thus limiting
the ability to extend the base product.<br>
&nbsp;<br>
In terms of bindings, what I really need to do is put together the
D-Bus methods to register/unregister an extension and for the extension
handler to call the extensions dynamically.&nbsp; At that stage you'll be
able to integrate your Ruby code very easily.&nbsp; I'll give it a crack
over the next couple of days and see what I can put together.&nbsp; Watch
this space, as they say...
<br>
<br>
Cheers,<br>
Jim.<br>
</div>
</div>
</div>
</body>
</html>