[pjsip] How to distinguish call as an inbound/outbound

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux