[asterisk-users] Call hung up?

2011-01-12 Thread Gary Kuznitz
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=_xxx) in new stack
-- Executing [106@voicemenu-custom-4:2] Monitor(DAHDI/7-1, wav|_xxx-xxx-
|m) in new stack
  == Auto fallthrough, channel 'DAHDI/7-1' status is 'UNKNOWN'
-- Hungup 'DAHDI/7-1'

When I don't have the first two lines this is in the log:
 -- Executing [106@voicemenu-custom-4:1] Macro(DAHDI/7-1, 
stdexten|106|SIP/106) in new stack
-- Executing [s@macro-stdexten:1] Set(DAHDI/7-1, __DYNAMIC_FEATURES=) 
in new stack
-- Executing [s@macro-stdexten:2] GotoIf(DAHDI/7-1, 0?5:3) in new stack
-- Goto (macro-stdexten,s,3)
-- Executing [s@macro-stdexten:3] Dial(DAHDI/7-1, SIP/106|20|) in new 
stack

What did I do wrong in adding the first two lines?

Thank you,

Gary

--
_
-- 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


Re: [asterisk-users] Call hung up?

2011-01-12 Thread Steve Edwards

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=_xxx) in new stack
   -- Executing [106@voicemenu-custom-4:2] Monitor(DAHDI/7-1, wav|_xxx-xxx-
|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.

--
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


Re: [asterisk-users] Call hung up?

2011-01-12 Thread Steve Edwards

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=_xxx) in new stack
   -- Executing [106@voicemenu-custom-4:2] Monitor(DAHDI/7-1, 
wav|_xxx-xxx-

|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