You can use pj_strcat*, ex: pj_strcat(&id, &sip_user); pj_strcat2(&id, "@"); pj_strcat(&id, &sip_domain); Please make sure the buffer of 'id' is set & enough to hold the concatenation result. nanang On 18/03/2008, "Stefan G?chter" <stefan.gaechter at gmx.net> wrote: > Hi, > > I changed a sample app so it takes paramters instead of using #define. What I'm confused about now is how I should concatenate strings; the following doesn't work: > > cfg.id = pj_str(sip_user.ptr "@" sip_domain.ptr); > > How could that string be concatenated? > > btw thanks for your reply on my last post, benny :-) It really works. > > -- > Psssst! Schon vom neuen GMX MultiMessenger geh?rt? > Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip at lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >