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),
              /* SOATAG_ADDRESS("0.0.0.0:8000"), */
              NUTAG_EARLY_MEDIA(1),
              TAG_END ());

Note also that SOATAG_ADDRESS seems to conflict with SOATAG_USER_SDP,
when they both are present the call seems to fail, the sofia-sip stack
logging also doesn't help, and I currently don't understand what's
the meaning of that tag.

[...]

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