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
Eric "ManxPower" Wieling
2008-Dec-25 19:39 UTC
[asterisk-users] 1.6.1-rc4: extension "i" not working??
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)
Seemingly Similar Threads
- Is samba or a kernel bug causing my FC4 server to crash?
- Asterisk 1.6.2.0-rc6 + Teliax = First Part Of Audio File Playback Cut Off
- Polycomm IP500 dropping incoming calls
- [PATCH] Allow matching HostName against Host entries
- Unable to call certain 800 numbers through Teliax