[asterisk-users] From 1.4 to 1.8: stdexten issue

Mathieu Chouquet-Stringer mathieu at csetco.com
Sun Apr 3 13:33:43 CDT 2011


	Hello all,

I'm in the middle of upgrading my asterisk setup to 1.8 (1.8.2.3) and
I'm completely confused by the gosub/stdexten thing.

I used to call the stdexten macro but I haven't been able to figure out
how to use Gosub.

I'm using the sample extensions.conf and added something like this:
=========================
[home]
include => stdexten

exten => 1,1,Gosub(${EXTEN},stdexten(SIP/phone1))
=========================

But if I call "1", all I get is:

[Apr  3 18:20:51] NOTICE[9031]: pbx.c:4119 pbx_extension_helper: No such label 'stdexten' in extension '1' in context 'home'
[Apr  3 18:20:51] WARNING[9031]: pbx.c:10174 pbx_parseable_goto: Priority 'stdexten' must be a number > 0, or valid label
[Apr  3 18:20:51] ERROR[9031]: app_stack.c:411 gosub_exec: Gosub address is invalid: '1,stdexten(SIP/phone1)'

I've googled and pretty much tried all forms of the syntax but I've yet
to make it work.  For instance I tried not including stdexten and
calling Gosub with (stdexten,${EXTEN},1(SIP/phone1)) but it didn't work
either...

Can anyone sched some light here?  I think I got lost trying to figure
this out...

What am I missing here?

Best,
-- 
Mathieu Chouquet-Stringer                         mathieu at csetco.com
            The sun itself sees not till heaven clears.
	             -- William Shakespeare --



More information about the asterisk-users mailing list