Hello,
We are trying to set a custom messages context under Settings > Technology Settings > Device Profile > Default PJSIP Profile > Advanced: parameter=message_context
, value=my-msgs
We reload config, but it is still showing under the old context.
[root@pbx1 ~]# asterisk -x"pjsip show endpoint 101" | grep message_context
message_context : messages
Looking at pjsip__40-1-profiles.conf
I can config that the context is there.
;Default PJSIP Profile - Default PJSIP Profile
[p1](!)
media_encryption=no
...
<snip>
...
message_context=my-msgs
But looking at the actual endpoint in pjsip__50-1-extensions.conf
I see:
[101](p1)
type=endpoint
auth=auth101
...
<snip>
...
message_context=messages
...
<snip>
...
As you can see, it still has the old context.
If I manually remove message_context=messages
and run asterisk -x"core reload"
, then it is good:
[root@core1 ~]# asterisk -x"pjsip show endpoint 101" | grep message_context
message_context : my-msgs
But if I apply config in the GUI, it gets overridden.
So my questions are:
- Why does the endpoint have this context hard coded? It should’ve taken it from the template (Default PJSIP profile)
- How can we now change the message context for all endpoints?
- Where does VitalPBX take the information to construct the endpoint in pjsip__50-1-extensions.conf? Perhaps it is a DB entry that we can modify for now?
Thanks