Hi, Thanks. Best Regards, Hitesh ----- Original Message ----- From: "Benny Prijono" <bennylp@xxxxxxxxx> To: "pjsip embedded/DSP SIP discussion" <pjsip at lists.pjsip.org> Sent: Monday, October 01, 2007 5:34 PM Subject: Re: [pjsip] How to distinguish call as an inbound/outbound > Alain Totouom wrote: >> This assertion is only true during the call setup (*first* >> 18x|200-INVITE). >> Afterwards you can't rely on that information for the duration of the >> call! >> When a re-invite (hold e.g.) occurs the role might be different etc.. > > I can understand why you think call->role behaves like that, but > actually that's not correct. In pjsip, call->role (or dlg->role and > inv->role to be precise) should stay the same for the duration of > the call. > > regards, > -benny > > >> Cheers >> Alain >> >> Juozas Dovydaitis wrote: >>> try looking at >>> >>> pjsua_call_info parameter role. if it is PJSIP_ROLE_UAS - then the call >>> is inbound >>> >>> logan wrote: >>>> Hi All, >>>> >>>> Is there any way or API through which I can tell from the pjsua_call_id >>>> if >>>> the call was inbound or outbound? >>>> >>>> Thanks. >>>> >>>> Best Regards, >>>> Hitesh >>>> >>>> >>>> _______________________________________________ >>>> 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 >>>> >>>> >>> _______________________________________________ >>> 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 >>> >> > > > -- > Benny Prijono > http://www.pjsip.org > > > _______________________________________________ > 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