Hi there,

you're not supposed to destroy the handle after sending the message. The
handle is your "call" representation, it should only be destroyed after
you're done processing all the requests and responses associated with it. In
your case, I believe it would be after you receive a response to the
message.



On Thu, Sep 4, 2008 at 8:08 AM, Diego Costantini
<[EMAIL PROTECTED]> wrote:

>  Hi, I am getting this error while trying to send a message, does anyone
> have any idea hot to get more info to dig into the problem?
>
> I couldn't find anything around.
>
>
>
> nua: nua_r_message with invalid handle (nil)
>
>
>
> The piece of code around it is:
>
>
>
>   nua_handle_t *handle;
>
>
>
>   handle = nua_handle(nua, NULL, SIPTAG_TO_STR("sip:[EMAIL PROTECTED]:5068"),
> TAG_END());
>
>
>
>   nua_message(handle,
>
>                                                 SIPTAG_TO_STR(to),
>
>                                                 SIPTAG_FROM_STR(from),
>
>                                                 SIPTAG_ALLOW_STR("INVITE,
> CANCEL, BYE, ACK, PUBLISH"),
>
>
> SIPTAG_EVENT_STR("vq-rtcpxr"),
>
>
> SIPTAG_ACCEPT_STR("application/sdp, message/sipfrag"),
>
>
> SIPTAG_CONTENT_TYPE_STR("application/vq-rtcpxr"),
>
>
> SIPTAG_CONTENT_LENGTH_STR(buf),
>
>
> SIPTAG_PAYLOAD_STR(message),
>
>                                                 TAG_END());
>
>
>
>   nua_handle_destroy (handle);
>
>
>
> It is pretty straightforward, and it tells the problem is the handle, but I
> suspect it could be elsewhere.
>
> I don't know how to get more info.
>
>
>
> Thanks
>
>
>
> =============================
>
> Diego Costantini
>
> NEC Europe Ltd.
>
> NEC Laboratories Europe
>
> Network Research Division
>
>
>
> Kurfuersten-Anlage 36
>
> 69115 Heidelberg
>
> Germany
>
>
>
> [EMAIL PROTECTED]
>
> http://www.nw.neclab.eu
>
>
>
> =============================
>
>
>
> -------------------------------------------------------------------------
> 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
>
>
-------------------------------------------------------------------------
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