[SFLphone] placeCall's callID
Emmanuel Milou
emmanuel.milou at savoirfairelinux.com
Tue May 5 10:01:17 EDT 2009
Hello Juan,
The callID is a random number. The GNOME client generates it like that:
call_id = g_new0(gchar, 30);
g_sprintf(call_id, "%d", rand());
in the create_new_call method (/sflphone-client-gnome/src/call.c/).
If you want to make a call directly through D-Bus, the command is:
dbus-send --type="method_call" \
--dest="org.sflphone.SFLphone" \
"/org/sflphone/SFLphone/CallManager" \
"org.sflphone.SFLphone.CallManager.placeCall" \
string:"$ACCOUNTID" \
string:"$CALLID" \
string:"$TO",
with $ACCOUNTID, a valid account ID from your $HOME/.sflphone/sflphonedrc
$CALLID, the call ID, generated for instance like that :
${RANDOM}$$
$TO, the callee.
Please have a look at the shell script at /tools/sflphone-callto/ in the
git repository for further details.
Juan M. Sanchez a écrit :
> Hello,
>
> I'm playing around with sflphoned via dbus.
> I'm having problems generating the callID when tring to placeCall().
> If this value is anything else than a digit between 0 and 9, sflphoned
> crashes.
>
> ¿What value does placeCall() expect for the callID variable?
> For now, I'm passing len(getCurrentCallID()) as value for callID,
> but this limits the number of simultaneous calls to 10 :-(.
>
> I'm using the current git version.
>
> Thanks.
>
>
>
More information about the SFLphone
mailing list