Hi Bernhard,
Am 22.07.2010 08:44, schrieb Bernhard Suttner:
Is the notify for a existing subscribe/notify session or is it for a "blind 
notify"?
It's actually for both, though blind notifies have priority.
The scenario is, that there is a security server between my application an the receiver of the notify (client). This server adds the rinstance to the contact-header of a register. I save this rinstance-tag and have to add it to the request line of all requests to the client (that are initiated by my application). If a packet is not in a dialog and does not have the rinstance tag, the packet will be droped by the server.

I'm nor really able to try it, so I don't really know if subscribe/notify sessions are concerned, but blind notifies are definitely concerned.
Also try to set the NUATAG_URL to an existing nua with "nua_set_params".
I'll try this tomorrow (because I am still not at the office right now).

Thanks for the help!

Best regards,
Markus
-----Ursprüngliche Nachricht-----
Von: Markus Bucher [mailto:buch...@in.tum.de]
Gesendet: Mittwoch, 21. Juli 2010 18:31
An: Bernhard Suttner
Cc: sofia-sip-devel@lists.sourceforge.net
Betreff: Re: [Sofia-sip-devel] adding rinstance to NOTIFY request line in nua

Hi Bernhard,

how are you?
Thanks for answering that quick :-)

Do you mean creating a new nua_handle? Because although there is a
nua_set_hparams(), as far as the library-doc tells me it does not accept
NUTAG_URL(). I'm not sure if I actually tried it but I think at least I
had the idea already.

If I create a new nua_handle I have to extract the nua agent (nua_t)
from the old handle first for the nua_handle() needs it, or am I missing
something.
But as far as I see it (in the library-doc) there is no function for
this and the nua_handle_s struct's definition (which is the original
type of nua_handle_t) is only accessible within sofia's source but not
when using the library.


Regards,
Markus

Am 21.07.2010 17:55, schrieb Bernhard Suttner:
Hi,

try to set the NUATAG_URL to the nua_handle (nh) which you use for the 
nua_notify.

Best regards,
Bernhard Suttner

-----Ursprüngliche Nachricht-----
Von: Markus Bucher [mailto:buch...@in.tum.de]
Gesendet: Mittwoch, 21. Juli 2010 17:27
An: sofia-sip-devel@lists.sourceforge.net
Betreff: [Sofia-sip-devel] adding rinstance to NOTIFY request line in nua

Hi,

I have the problem that I need to add an rinstance tag to the request line of a 
sip Notify.

The Notify is sent with nua_notify(). The problem is, I can not set the request 
uri in this function.
Neither through NUTAG_URL() nor through SIPTAG_REQUEST().

I understood that the NUTAG_URL() is not supported with nua_notify(), but why?

Or the better question is how do I succeed in adding the rinstance tag so that 
I get something like

NOTIFY sip:u...@host:5060;rinstance=abc SIP/2.0

in the request line?
Is there a workaround of some kind.
I would prefer not making changes to sofia-sip-library itself, but if this is 
the only possibility it would be nice of you to provide me the concerning 
blocks within the code or even a patch.

I think we have version 1.12 of sofia (but I'm not sure because i'm not at the 
office right now).


I hope you can help me with this.

Regards,
Markus







Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel

Reply via email to