Realtime context/extensions support

Hi,

short question: was this hack/feature finally implemented in any of Asterisk branches?

Is there a workaround to create possibilities to dynamically create not only extensions using Realtime switches but also contexts?

I spent half of the day googling for answer but all I found was that issue with solution, but it looks that it stayed in patch status.

What I’m trying to do is following:

In extensions.conf:
[menues]
swith => Realtime

MySQL table extensions:

                  id	context	exten	priority	app	appdata
		9	menu1	0	               1	Dial	Local/3001@inbound
		6	menues	8999	               1	Goto	menu1,0,1

And if I call 8999 I have following error:
Channel ‘SIP/max_test-00006dd1’ sent into invalid extension ‘0’ in context ‘menu1’, but no invalid handler.

Thanks.

Looks like that issue patch made it in, but it wasn’t properly documented. Patch says it’s looking for overrideswitch=yes in the general section of extensions.conf.

Thank you for prompt reply.

Frankly I still don’t know how to make this thing work.

I put overrideswitch=yes in general section of extensions.conf, I created

[bypass_switch]
switch =>Realtime/menues@extensions

I have folloving data in table
id context exten priority app appdata
1 menues 333 1 Goto menu1,s,1
3 menu1 s 1 Background /var/lib/asterisk/sounds/odeko/phrases/a19028bc4e3…
4 menu1 0 1 Dial Local/3001@inbound

And the only change in CLI output is that some new WARNINGs about ‘no such switch’ appeared:

[Jul 21 22:05:22] WARNING[22980]: pbx.c:2634 pbx_find_extension: No such switch ‘yes’
[Jul 21 22:05:22] WARNING[22980]: pbx.c:2634 pbx_find_extension: No such switch ‘yes’
[Jul 21 22:05:22] WARNING[23964]: pbx.c:2634 pbx_find_extension: No such switch ‘yes’
[Jul 21 22:05:22] WARNING[23964]: pbx.c:2634 pbx_find_extension: No such switch ‘yes’
– Executing [333@bypass_switch:1] Goto(“SIP/max_test-00000006”, “menu1,s,1”)
– Goto (menu1,s,1)
[Jul 21 22:05:22] WARNING[23964]: pbx.c:4812 __ast_pbx_run: Channel ‘SIP/max_test-00000006’ sent into invalid extension ‘s’ in context ‘menu1’, but no invalid handler

I feel that solution should be somewhere close but I can’t find it.

:confused:

Found also this issue. Tryed to add:
context exten priority app appdata
menues include 1 include menu1

But this didn’t help also.