[SFLphone] placeCall's callID
Juan M. Sanchez
juanmasg at arrakis.es
Tue May 5 11:03:37 EDT 2009
Hi Emmanuel,
I'm doing these tests as part of a python CLI client to
integrate sflphoned and AwesomeWM.
This is the sequence of callID values that I tried:
- An MD5 hash of the epoch + random value
- the epoch
- "123"
- "10"
- "1"
Only the "1" didn't cause sflphoned to crash.
I saw that the callID parameter accepts a string (correct me if I'm
wrong), and I supposed that the MD5 value would be fine.
Anyways, I'll revise the python code to see if I'm doing something wrong
when sending this parameter.
Thanks for your help.
On Tue, May 05, 2009 at 10:01:17AM -0400, Emmanuel Milou wrote:
> 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.
>>
>>
>>
--
Juanma Sanchez
-
More information about the SFLphone
mailing list