[asterisk-users] 1.6.1-rc4: extension i not working??

2008-12-25 Thread sean darcy
I've have a simple caller id lookup on incoming:

[teliax-in]
..
exten =s,n,GoSub(set-callerid-name,0${CALLERID(num)},1)


[set-callerid-name]
exten = 0,1,NoOp( no CALLERID num set)
exten = 02135590993,1,Set(CALLERID(name)=Matthew )
...
exten = _0!,n,NoOp(CALLERID: ${CALLERID(name)})
exten = _0!,n,Return()

exten = i,1,Return() ; somebody else

Now if there's a callerid that's listed, it all works OK. If there's no 
callerid, that works. But if there's an unknown callerid, I'd expect 
that to go to the invalid extension  - i - and Return().  But look 
what happens:


 -- Executing [2136398...@teliax-in:4] Gosub(IAX2/poseidon-15117, 
set-callerid-name,02136990505,1) in new stack
[Dec 25 13:06:32] ERROR[26483]: app_stack.c:286 gosub_exec: Attempt to 
reach a non-existent destination for gosub: (Context:set-callerid-name, 
Extension:02136990505, Priority:0)
   == Spawn extension (teliax-in, 2136398447, 5) exited non-zero on 
'IAX2/johnfbeatty-15117'
 -- Hungup 'IAX2/poseidon-15117'
 -- Hungup 'DAHDI/4-1'

Is this a bug in 1.6.1, or an improper use of the i extension?

sean


___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] 1.6.1-rc4: extension i not working??

2008-12-25 Thread Eric ManxPower Wieling


sean darcy wrote:
 I've have a simple caller id lookup on incoming:
 
 [teliax-in]
 ..
 exten =s,n,GoSub(set-callerid-name,0${CALLERID(num)},1)
 
 
 [set-callerid-name]
 exten = 0,1,NoOp( no CALLERID num set)
 exten = 02135590993,1,Set(CALLERID(name)=Matthew )
 ...
 exten = _0!,n,NoOp(CALLERID: ${CALLERID(name)})
 exten = _0!,n,Return()
 
 exten = i,1,Return() ; somebody else
 
 Now if there's a callerid that's listed, it all works OK. If there's no 
 callerid, that works. But if there's an unknown callerid, I'd expect 
 that to go to the invalid extension  - i - and Return().  But look 
 what happens:

Extension i does not work that way.  i is for invalid selections 
when using an IVR (well really when using the WaitExten application or 
when autofallthru is no or when using Background)

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users