Create contexts in dialplan through realtime


Is there any way to create context through dial plan ?. I’ve been working with the worst switch, it only allows me to create labels in a specific context. what should I do?

thanks you in advance.

Yes. But you will have to use something like System() to run the CLI or AMI.

Modifying dialplan from the dialplan is not a normal thing to want to do, so it might be helpful to explain your real goals, as there may be better ways of achieving them.