Hello,

a bit late reply, but hopefully that is ok. :)

On Tue, 15 Nov 2005, Aki Niemi wrote:

Is there a way to set the display name of the From field in
nua_set_params? I know of SIPTAG_FROM_STR(), and NUTAG_ADDRESS() but they
don't seem to do what I want, that is, just set the display name and leave
the From URI alone.

There's no direct way to set the display name, but you can get the current from address (SIPTAG_FROM) with get_params, clone it, modify the display name ('a_display' field), and set it with set_params. See nua/nua_stack.c:ua_set_from() to see how this is done in practise.

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


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Sofia-sip-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel

Reply via email to