[Asterisk-java-users] How to use A-J to inject input to Dialplan?
Brought to you by:
srt
From: Greg H. <gre...@gm...> - 2013-06-03 13:01:38
|
Hi all, I am having a problem where the ext-meetme module in the dialplan gets to a point where it is waiting for PIN entry, after playing a recording to request that. This is the part of the Dialplan I refer to: [ Context 'ext-meetme' created by 'pbx_config' ] '1024' => 1. Macro(user-callerid,) [pbx_config] 2. Set(MEETME_ROOMNUM=1024) [pbx_config] 3. Set(MAX_PARTICIPANTS=2) [pbx_config] 4. Set(MEETME_MUSIC=${MOHCLASS}) [pbx_config] 5. Gosub(sub-record-check,s,1(conf,1024,always)) [pbx_config] 6. GotoIf($["${DIALSTATUS}" = "ANSWER"]?READPIN) [pbx_config] 7. Answer() [pbx_config] 8. Wait(1) [pbx_config] 9. Set(PINCOUNT=0) [pbx_config] [READPIN] 10. Read(PIN,enter-conf-pin-number,,,,) [pbx_config] <THIS IS WHERE I WANT TO INJECT A DTMF STRING> 11. GotoIf($[x${PIN} = x123]?USER) [pbx_config] 12. GotoIf($[x${PIN} = x321]?ADMIN) [pbx_config] 13. Set(PINCOUNT=$[${PINCOUNT}+1]) [pbx_config] 14. GotoIf($[${PINCOUNT}>3]?h) [pbx_config] 15. Playback(conf-invalidpin) [pbx_config] 16. Goto(READPIN) [pbx_config] [ADMIN] 17. Set(MEETME_OPTS=aAoTqcIMsr) [pbx_config] 18. Goto(STARTMEETME,1) [pbx_config] [USER] 19. Set(MEETME_OPTS=oTqcIMsr) [pbx_config] 20. Goto(STARTMEETME,1) [pbx_config] Is there an A-J command to specifically address 1024@ext-meetme, entry 11? I am trying to use PlayDtmfAction, where normally I can pass DTMF to a destination channel like SIP/101-000045c3a. Now, I have tried so many combinations and cannot get MeetMe to collect the digits of the PIN. When I make my call and collect Asterisk channel info, the destination channel at this time is seen as 1024@from-internal:1. Does the ":1" refer to entry 1 in the from-internal module of the dial plan? I have tried things like 1024@from-internal:1, Local/1024@from-internal:1, 1024@from-internal:11, and replacing from-internal with ext-meetme in all of these. If I cannot get directly to this point, is there some other roundabout way to achieve this goal? Please help as I am really stuck at this point. Thanks! Greg |