Hi,

On Tue, 26 Sep 2006, Kaluakoi wrote:

> I have been trying for some time to get basic functionality working using
> Sofia; essentially send an INVITE to a Sip server (Asterisk) and have it
> "work". I continually get an error '900' which seems to be translated from
> an internal error '500'. As near as I can tell, that means I have no
> session. I really don't understand the meaning of this. I'm trying to create
> a session, therefore, I don't have one... yet...

btw, monitoring the raw messages sent/received is an excellent way to 
debug any SIP apps. How to do this with Sofia-SIP is common enough 
question, so I dedide to add it to our FAQ -- question number three at:

   http://wiki.opensource.nokia.com/projects/Sofia-SIP_FAQ

But I guess in your case no messages would be seen. But this is also 
useful piece of information as it means the params you are passing to NUA
are somehow incorrect.

> It would be much appreciated If someone could please point out the error in
> this simple code.

Let's take a look:

> ss->nua_handle = nua_handle (nua, ss, SIPTAG_TO (to), TAG_END ());

This is sufficient to set the destination of the call.

> nua_invite (ss->nua_handle, NUTAG_URL (url),
>             SOATAG_ADDRESS("127.0.0.1:8000"),
>             NUTAG_EARLY_MEDIA (1), TAG_END ());

So here you no longer need to pass the NUTAG_URL(). For a full list
of options you can give to nua_invite(), see

   
http://sofia-sip.sourceforge.net/refdocs/nua/nua_8c.html#1427a8f538e34b4e1ab206722f9cba2f

The above was updated today btw.

-- 
  under work: Sofia-SIP at http://sofia-sip.sf.net

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Sofia-sip-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel

Reply via email to