[asterisk-users] Call hung up?

Steve Edwards asterisk.org at sedwards.com
Thu Jan 13 01:30:26 CST 2011


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 at voicemenu-custom-4:1] Set("DAHDI/7-1",
>> "CALLFILENAME=_xxxxxxx") in new stack
>>    -- Executing [106 at 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       sedwards at sedwards.com      Voice: +1-760-468-3867 PST
Newline                                              Fax: +1-760-731-3000



More information about the asterisk-users mailing list