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

sean darcy seandarcy2 at gmail.com
Thu Dec 25 12:28:19 CST 2008


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 [2136398447 at 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




More information about the asterisk-users mailing list