Is there any way to limit calls in PJSIP like “call-limit” in SIP?
Negative. Also, from the sip.conf.sample file:
; ** Old configuration options **
; The “call-limit” configuation option is considered old is replaced
; by new functionality. To enable callcounters, you use the new
; “callcounter” setting (for extension states in queue and subscriptions)
; You are encouraged to use the dialplan groupcount functionality
; to enforce call limits instead of using this channel-specific method.
; You can still set limits per device in sip.conf or in a database by using
; “setvar” to set variables that can be used in the dialplan for various limits.
Ok. I can use GROUP and GROUPCOUNT functions to limit calls per users.