[asterisk-users] 1.2.x -> 1.4.x upgrade: dialplan block no longer works

Louis-David Mitterrand vindex+lists-asterisk-users at apartia.org
Fri May 4 00:55:06 MST 2007


Hi,

a block of my extensions.conf no longer works after upgrading from 
1.2.17 to 1.4.4. I have:

	[macro-dialout]

	exten => s,1,Gosub(s-${ARG1},1)
	exten => s,n,Congestion
	;; default
	exten => _s-!,1,Gosub(s-NET,1)

When calling that macro whith no argument ($ARG1 empty):

	exten => _0[1-9]XXXXXXXX,1,Macro(dialcapi)

The call is not routed. Apparently "_s-!" does not match "s-":

	-- Executing [0145201798 at admin:1] Macro("SIP/0146472130-0821fe08", "dialcapi") in new stack
	-- Executing [s at macro-dialcapi:5] Gosub("SIP/0146472130-0821fe08", "s-|1") in new stack
	== Auto fallthrough, channel 'SIP/0146472130-0821fe08' status is 'UNKNOWN'

Any idea why?


More information about the asterisk-users mailing list