Realtime field for contact RTT/Latency in PJSIP

While using the old chan_sip driver with Asterisk Realtime, sipfriends/sipregs tables had a field named “lastms” where you can find the latency for the peer.

In using PJSIP, I expect to find the same value in the ps_contacts table, but I was unable. What am I missing? Where can I find the latency/RTT for a contact?

I am using Asterisk 13.21.0

That information is not currently stored with the contact and is not available.

as pjsip has been widely worked up the last few years is there anything new on this ?

in asterisk it is stored in the contacts and in the Endpoints fields

 Output:   Contact:  <Aor/ContactUri..............................> <Hash....> <Status> <RTT(ms)..>
 Output: 
=======================================================================
 Output:
 Output:   
Contact:  200/sip:200@99.99.192.59:5060;x-ast-o 96536c4ed9 Avail         5.497

but in the realtime the fields are not there
can it be done now ?

That information is not persisted into storage.

Hi All,

Any chance that this info is planned to be made persistent into storage at all?

I know of noone working on such a thing, and am unaware if anyone has any such plans. If you want to submit a feature/improvement request it is done on Github[1].

[1] Issues · asterisk/asterisk-feature-requests · GitHub

Thanks JColp :+1: as always, appreciate the swift responses :slight_smile: