Hi,
When I use pjsip_inv_answer() to create 200 response, I create my own
sdp and set origin version to 3429443492.
pj_gettimeofday(&tv);
call->o_session_version = tv.sec + 2208988800UL;
sdp->origin.version = call->o_session_version;
but it changed to 3429443493 when remote party got 200 OK response. I try
to trace pjsip source code, But I couldn't find where changes has happen.
regards,
Gang
Hi,
It could be in more than one places, one of them is in
pjmedia_sdp_neg_negotiate(). If you insist to manage your own origin
version, try to set it in on_media_update() callback of
pjsip_inv_callback. Please note that when a media session is updated
(e.g: by call update/reinvite) the origin version need to be
incremented by 1 as specified by the standard.
Regards,
nanang
On 03/09/2008, Gang Liu gangban.lau@gmail.com wrote:
Hi,
When I use pjsip_inv_answer() to create 200 response, I create my own
sdp and set origin version to 3429443492.
pj_gettimeofday(&tv);
call->o_session_version = tv.sec + 2208988800UL;
sdp->origin.version = call->o_session_version;
but it changed to 3429443493 when remote party got 200 OK response. I try
to trace pjsip source code, But I couldn't find where changes has happen.
regards,
Gang
Visit our blog: http://blog.pjsip.org
pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
Thanks for your reply.
I just check source code of pjmedia_sdp_neg_negotiate(). It is ok to
increment the origin version because new SDP created internally.
I think what my problem is that I hack pjsip source code to handle re-Invite
response myself.
Issue fixed by following your advice.
regards,
Gang
On Wed, Sep 3, 2008 at 11:08 PM, Nanang Izzuddin nanang@pjsip.org wrote:
Hi,
It could be in more than one places, one of them is in
pjmedia_sdp_neg_negotiate(). If you insist to manage your own origin
version, try to set it in on_media_update() callback of
pjsip_inv_callback. Please note that when a media session is updated
(e.g: by call update/reinvite) the origin version need to be
incremented by 1 as specified by the standard.
Regards,
nanang
On 03/09/2008, Gang Liu gangban.lau@gmail.com wrote:
Hi,
When I use pjsip_inv_answer() to create 200 response, I create my own
sdp and set origin version to 3429443492.
pj_gettimeofday(&tv);
call->o_session_version = tv.sec + 2208988800UL;
sdp->origin.version = call->o_session_version;
but it changed to 3429443493 when remote party got 200 OK response. I
try
to trace pjsip source code, But I couldn't find where changes has happen.
regards,
Gang
Visit our blog: http://blog.pjsip.org
pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
Visit our blog: http://blog.pjsip.org
pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org