On Thu, Aug 14, 2008 at 10:41 AM, Gang Liu <gangban.lau at gmail.com> wrote: > When I use pjsip_dlg_create_uac() and pjsip_inv_invite() to make an > outgoing call, how can I specify my own Call-ID and Max-Forward values of > INVITE request? > > Max-Forwards value is currently sem-hardcoded as PJSIP_MAX_FORWARDS_VALUE macro in sip_config.h, and it only applies for all requests sent by pjsip. For function to set Call-ID in the dialog, that has been identified by this ticket: http://trac.pjsip.org/repos/ticket/442, but haven't had time to implement it. Lacking this, you can just override dlg->call_id.id value after creating the UAC dialog. cheers Benny > regards, > Gang > > _______________________________________________ > 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 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20080814/08c3e5d5/attachment.html