Part of my extensions_custom.conf file (the rest is “Lenny” stuff):
; IVR Adventure Game, extension 505/506 [from-internal-custom] exten => *506,1,Goto(Adventure,505,1) [Adventure] ; Includes for IVR Adventure Game, extension 505 include => ivr-game-entry #include extensions-ivr-intro-end.conf ; IVR Game - introduction menus and ending #include extensions-ivr-game.conf ; IVR Game - main dialplan script #include extensions-ivr-room-desc.conf ; IVR Game - room description contexts #include extensions-ivr-obj-desc.conf ; IVR Game - object description contexts #include extensions-ivr-game-actions.conf ; IVR Game - actions
Misc Destinations -> Adventure is the destination for an IVR, defined as “Adventure” and “*506”. I can’t directly call extension 505 or 506 as an extension (“Your call cannot be completed as dialed”) but everything works from the IVR. I defined 505/506 as Custom Extensions.
At some point I was able to dial 506 as an extension but it wouldn’t work in an IVR: I might have had it defined as a Custom Destination at that point (As I have with the “Lenny” code).
How can I get it working both as extension 505 -and- as the destination of an IVR? I’d like to get rid of the 506 extension too which I added just to try to get this working. The original game code didn’t have the code from the top through the [Adventure] tag in the listing above. Extension 505 is used throughout the game code.