Registration Server With PJSIP
Hello, I am moving from realtime chan_sip to pjsip and one of the problem I am facing is the lack of “sipregs”. With chan_sip, when an extension registers, the server where it has registered to is stored in sipregs.
Is there something similar in pjsip? How can I find on which server the pjsip extension has registered to?
Leandro
3 thoughts on - Registration Server With PJSIP
SGkgTGVhbmRybywNCkkgYmVsaWV2ZSBpZiB5b3UgY2hlY2sgL3Vzci9sb2NhbC9zcmMvYXN0ZXJz aXNrLTEzLjkuMS9jb250cmliL215c3FsIHlvdSB3aWxsIGZpbmQgYSAuU1FMIGZpbGUgdGhhdCB3
b3VsZCBidWlsZCB0aGUgZGVmYXVsdCB0YWJsZXMgZm9yIHlvdS4NCg0KTG9va2luZyBpbiB0aGUg ZmlsZSwgaXQgYXBwZWFycyB0aGVyZSBpcyBhIHRhYmxlIGNyZWF0ZWQgY2FsbGVkIGBzaXBwZWVy c2Agd2hpY2ggaGFzIGEgY29sdW1uIGByZWdzZXJ2ZXIgVkFSQ0hBUigyMCksYA0KDQpJdCB3aWxs IGFsc28gY3JlYXRlIHRoZSBvdGhlciBQSlNJUC1yZWxhdGVkIHRhYmxlcyBzdWNoIGFzIHBzX2Vu ZHBvaW50cywgcHNfYW9ycywgZXRjLg0KDQpJIGNvdWxkIGJlIG1pc3Rha2VuIGJ1dCBwZXJoYXBz IGBzaXBwZWVyc2AgaXMgdGhlIHRhYmxlIHlvdeKAmXJlIGxvb2tpbmcgZm9yLg0KDQpUaGFua3MN
CkRlcmVrIEIuDQoNCkZyb206IGFzdGVyaXNrLXVzZXJzLWJvdW5jZXNAbGlzdHMuZGlnaXVtLmNv bSBbbWFpbHRvOmFzdGVyaXNrLXVzZXJzLWJvdW5jZXNAbGlzdHMuZGlnaXVtLmNvbV0gT24gQmVo YWxmIE9mIExlYW5kcm8gRGFyZGluaQ0KU2VudDogSnVseSAyLCAyMDE2IDI6NTkgUE0NClRvOiBB
c3RlcmlzayBVc2VycyBNYWlsaW5nIExpc3QgLSBOb24tQ29tbWVyY2lhbCBEaXNjdXNzaW9uIDxh c3Rlcmlzay11c2Vyc0BsaXN0cy5kaWdpdW0uY29tPg0KU3ViamVjdDogW2FzdGVyaXNrLXVzZXJz XSBSZWdpc3RyYXRpb24gc2VydmVyIHdpdGggUEpTSVANCg0KSGVsbG8sDQpJIGFtIG1vdmluZyBm cm9tIHJlYWx0aW1lIGNoYW5fc2lwIHRvIHBqc2lwIGFuZCBvbmUgb2YgdGhlIHByb2JsZW0gSSBh bSBmYWNpbmcgaXMgdGhlIGxhY2sgb2YgInNpcHJlZ3MiLiBXaXRoIGNoYW5fc2lwLCB3aGVuIGFu IGV4dGVuc2lvbiByZWdpc3RlcnMsIHRoZSBzZXJ2ZXIgd2hlcmUgaXQgaGFzIHJlZ2lzdGVyZWQg dG8gaXMgc3RvcmVkIGluIHNpcHJlZ3MuDQoNCklzIHRoZXJlIHNvbWV0aGluZyBzaW1pbGFyIGlu IHBqc2lwPyBIb3cgY2FuIEkgZmluZCBvbiB3aGljaCBzZXJ2ZXIgdGhlIHBqc2lwIGV4dGVuc2lv biBoYXMgcmVnaXN0ZXJlZCB0bz8NCg0KTGVhbmRybw0KDQoNCg0K
Actually sippeers is the table for realtime sip and not related to pjsip at all. I do not know if there is an equivalent field for the pjsip tables.
Incoming registrations for pjsip are stored in the ps_contacts table. In Asterisk 13.10, a new column (reg_server) was added to store the registration server. Since 13.10 hasn’t been released yet, you’ll need to download the latest release candidate which is RC1. [1] RC2 should be released later in the week.
[1]
http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-13.10.0-rc1.tar.gz