To the people smarter than I am with Asterisk (basically almost all),
Using Asterisk 18.12.1 with PJSIP, ARI, and Stasis. All my extensions/endpoints are dynamically created via ARI. All communication setup and “initiation” is done by my stasis application. (My extensions.conf is literally empty)
The one set of endpoints (the vehicles) do not have any auth Authentication Objects assigned. The other endpoints (the dispatchers) have auth Authentication Objects assigned. All endpoints register successfully once their information have been set via Stasis (aor, auth, and endpoint) have been done via ARI.
For some kind of mysterious reason, which I cannot yet track down, calls from the vehicles are placed within the stasis application, but the calls from the dispatchers are not. When I remove the auth component from the dispatchers, then the calls gets placed in the stasis application … I have tried two different SIP clients (Linphone and Microsip) for the dispatchers, and both behave the same. When I register the dispatcher endpoints I commented out the following portion (so that the calls gets placed in stasis):
var dispatcherEndpointObject = {
configClass : "res_pjsip",
objectType : "endpoint",
id : tempDispatcherName,
fields : [
{ "attribute" : "from_user", "value": tempDispatcherName },
{ "attribute" : "disallow", "value" : "all"},
{ "attribute" : "allow", "value": ariRegistrationCodecs },
{ "attribute" : "rewrite_contact", "value": "yes" },
{ "attribute" : "context", "value": ariRegistrationExtensionContext },
{ "attribute" : "transport", "value": ariRegistrationNetworkContextUDP },
{ "attribute" : "callerid", "value": '"TALK_STANDARD" <'+tempDispatcherName+'>'},
//{ "attribute" : "auth", "value": tempDispatcherName },
//{ "attribute" : "trust_id_inbound", "value": "yes" },
{ "attribute" : "aors", "value": tempDispatcherName }
]
}
Somewhere I am missing something that don’t allow endpoints that have an auth object assigned to be placed within the stasis app.
Can someone maybe point me in the right direction and/or clarify what I have done wrong please?
Best regards,
Dawie