Re: [Sofia-sip-devel] How to add SIPTAG_CONTACT to nua_handle object for incoming INVITE?

2006-05-23 Thread Pekka Pessi

On 5/19/06, Legostayev Denis [EMAIL PROTECTED] wrote:

I want to use Sofia-sip library for developing application that will be work
with mulitiple users (gateway). Therefore i need custom Contact header in
calls associated with particular user. In case of outgoing INVITE it can be
specified with creation of operation handle by passing SIPTAG_CONTACT or
SIPTAG_CONTACT_STR to nua_handle(...). Is there simple way for adding
SIPTAG_CONTACT_STR to nua_handle object associated with incoming INVITE?
Using nua_set_hparams(...) does not seems to work with this tags...


Sorry, there is no easy way to do that a the moment.  You can use
nua_respond() with SIPTAG_CONTACT_STR(), but the contact is not
stored.

So, you have to use NUTAG_AUTOANSWER(0) and NUTAG_AUTOANSWER(0), too,
so that your application has a chance to use the custom Contact header
whenever it is going to repond to INVITE or re-INVITE.

--
Pekka.Pessi mail at nokia.com


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid0709bid3057dat1642
___
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel


RE: [Sofia-sip-devel] How to add SIPTAG_CONTACT to nua_handle object for incoming INVITE?

2006-05-23 Thread martti.mela
Hey,

inlined.

-Original Message-
From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf 
Of ext Pekka Pessi
Sent: 23. toukokuuta 2006 16:47
To: Legostayev Denis
Cc: sofia-sip-devel@lists.sourceforge.net
Subject: Re: [Sofia-sip-devel] How to add SIPTAG_CONTACT to 
nua_handle object for incoming INVITE?

On 5/19/06, Legostayev Denis [EMAIL PROTECTED] wrote:
 I want to use Sofia-sip library for developing application 
that will be work
 with mulitiple users (gateway). Therefore i need custom 
Contact header in
 calls associated with particular user. In case of outgoing 
INVITE it can be
 specified with creation of operation handle by passing 
SIPTAG_CONTACT or
 SIPTAG_CONTACT_STR to nua_handle(...). Is there simple way for adding
 SIPTAG_CONTACT_STR to nua_handle object associated with 
incoming INVITE?
 Using nua_set_hparams(...) does not seems to work with this tags...

Sorry, there is no easy way to do that a the moment.  You can use
nua_respond() with SIPTAG_CONTACT_STR(), but the contact is not
stored.

So, you have to use NUTAG_AUTOANSWER(0) and NUTAG_AUTOANSWER(0), too,
so that your application has a chance to use the custom Contact header
whenever it is going to repond to INVITE or re-INVITE.

NUTAG_AUTOANSWER(0) and NUTAG_AUTOALARM(0), that is :)

Martti


-- 
Pekka.Pessi mail at nokia.com


---
Using Tomcat but need to do more? Need to support web 
services, security?
Get stuff done quickly with pre-integrated technology to make 
your job easier
Download IBM WebSphere Application Server v.1.0.1 based on 
Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=kkid0709bid3057dat1642
___
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel



---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid0709bid3057dat1642
___
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel


[Sofia-sip-devel] How to add SIPTAG_CONTACT to nua_handle object for incoming INVITE?

2006-05-19 Thread Legostayev Denis

Hello!

I want to use Sofia-sip library for developing application that will be work 
with mulitiple users (gateway). Therefore i need custom Contact header in 
calls associated with particular user. In case of outgoing INVITE it can be 
specified with creation of operation handle by passing SIPTAG_CONTACT or 
SIPTAG_CONTACT_STR to nua_handle(...). Is there simple way for adding 
SIPTAG_CONTACT_STR to nua_handle object associated with incoming INVITE? 
Using nua_set_hparams(...) does not seems to work with this tags...


Thanks.



---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel