On Aug 28, 2006, at 2:59 PM, ext Henrik Nordstrom wrote:
> On Sun, 2006-08-27 at 21:14 -0700, Matt Klein wrote: > >> instead of From <sip:12.34.56.789> >> >> it should be From <sip:[EMAIL PROTECTED]> >> >> I am playing with nua_set_params to do this >> >> Is that the correct function? > > Probably. If a single user identity then yes. Yup, SIPTAG_FROM_STR() is the right one. It takes a null terminated string as its argument. For example, char *from = "sip:[EMAIL PROTECTED]"; nua_create(...); nua_set_params(nua, SIPTAG_FROM_STR(from), TAG_NULL()); ssip.c of gaim-sip-plugin has a working implementation. Check ssip_login(), for example[1]. BR, Martti [1] http://sofia-sip.net/cgi-bin/darcs.cgi/gaim-sip-plugin/src/ssip.c? c=annotate -- Martti Mela, Nokia Research Center ------------------------------------------------------------------------- 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=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Sofia-sip-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel
