On Fri, Aug 1, 2008 at 10:55 AM, Stefano Sabatini <[EMAIL PROTECTED]> wrote:
> On date Monday 2008-07-28 08:15:48 +0000, Fan Xing wrote:
>> I wrote a simple test code using sofia_sip to make a voip
>> call. However, when I execute the code, it is hang there ' entering
>> main loop for processing of messages'.
>
> First suggestion: use
> su_log_set_level(NULL, 9);
>
> to increase verbosity of sofia-sip, that's bloody helpful.
>
>> I suspect I made some some mistakes when using the nua_invite function. In 
>> my makecall() function,  I called nua_invite like this:
>> int makecall(char const *name, char const *url)
>>
>> {
>>    //create operation context, operation handle, etc..
>>     nua_invite(op, NUTAG_URL (url),  SOATAG_ADDRESS('0.0.0.0:8000'), 
>> NUTAG_EARLY_MEDIA (1), TAG_END ());
>> }
>
> I think the problem here is that you didn't specify any SDP
> capabilities, try for example with:
>
>   nua_invite(op,
>              SOATAG_USER_SDP_STR("m=audio 5004 RTP/AVP 0 8"),
>              NUTAG_URL(to_url),Thanks a lot, ssabatini:-) You are right, when 
> I add SOATAG_USER_SDP_STR in the input parameter, it works.

I'm replying here to a mail sent privately by Fan to me:
>Thanks a lot, ssabatini:-) You are right, when I add SOATAG_USER_SDP_STR in 
>the input parameter, it works.
>
>But, there is one problem. The caller can not receive the sound from the 
>callee (the configuration on the machine is correct, for example, if I run 
>sofsip_cli, it works). Is it because I did >not put the correct value for the 
>SOATAG_USER_SDP_STR? I use Ubuntu.

sofia-sip doesn't manage the media *at all*, you have to provide a
media subsystem to your own application as sofsip_cli does using
libgstreamer to provide the media framework.

I suggest you to study the code of sofsip_cli and look at how the
problem is addressed there, then eventually post here questions if you
need some help.

Regards.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel

Reply via email to