I don't really care about the answer, but anyway, the destroy happens AFTER
that I send the message, so at most I expect an error when I destroy it before
an answer (but still I don't think it should be the case), but for sure the
message should be already sent...
...and in fact now I fixed and it works as I wrote before. The problem was the
"to". Apparently when I send to a domain name instead of an IP, it cannot
resolve it, even if the DNS is local.
E.g.
SIPTAG_TO_STR("sip:[EMAIL PROTECTED]:5068") works
SIPTAG_TO_STR("sip:[EMAIL PROTECTED]:5068") doesn't work
Is there a way to resolve it?
=============================
Diego Costantini
NEC Europe Ltd.
NEC Laboratories Europe
Network Research Division
Kurfuersten-Anlage 36
69115 Heidelberg
Germany
[EMAIL PROTECTED]
http://www.nw.neclab.eu
=============================
From: Fabio Margarido [mailto:[EMAIL PROTECTED]
Sent: Donnerstag, 4. September 2008 14:34
To: Diego Costantini
Cc: sofia-sip-devel@lists.sourceforge.net
Subject: Re: [Sofia-sip-devel] NUA: Handle error
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