On Wed, 12 Jan 2011, Steve Edwards wrote:
On Wed, 12 Jan 2011, Gary Kuznitz wrote:
I currently have in extensions.conf:
exten => 106,1,Set(CALLFILENAME=${TIMESTAMP}_${CALLERID(num)})
exten => 106,n,Monitor(wav,${CALLFILENAME},m)
exten => 106,hint,SIP/106
exten => 106,Macro(stdexten,106,${HINT})
When I called x106 this was logged:
-- Executing [106@voicemenu-custom-4:1] Set("DAHDI/7-1",
"CALLFILENAME=_xxxxxxx") in new stack
-- Executing [106@voicemenu-custom-4:2] Monitor("DAHDI/7-1",
"wav|_xxx-xxx-
xxxx|m") in new stack
== Auto fallthrough, channel 'DAHDI/7-1' status is 'UNKNOWN'
-- Hungup 'DAHDI/7-1'
You are missing the priority on the 'macro' line.
Also (at least in 1.2), the 'hint' line interferes with the interpretation
of 'n' on the 'macro' line. Try placing the 'hint' line first like:
[gary]
exten = 106,hint, SIP/106
exten = 106,1,
Set(CALLFILENAME=${TIMESTAMP}106_${CALLERID(num)})
exten = 106,n, Monitor(wav,${CALLFILENAME},m)
exten = 106,n, Macro(stdexten,106,${HINT})
The 'show dialplan' or 'dialplan show' (depending on version) command will
show you how Asterisk sees your dialplan which is not always like you
enter it in extensions.conf.
--
Thanks in advance,
-------------------------------------------------------------------------
Steve Edwards sedwa...@sedwards.com Voice: +1-760-468-3867 PST
Newline Fax: +1-760-731-3000
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users