hi i am new to asterisk
i need a answer confirmation # key for sip channel dial
any one can answer me
thanks
veera
hi i am new to asterisk
i need a answer confirmation # key for sip channel dial
any one can answer me
thanks
veera
Hi
have a look at the m option in the dial command. It will allow you to run a macro before answer.
Ian
actually am using that one but i was not working
[macro-confirm]
exten =>s,1,Backround(flowme)
exten =>s,2,waitexten()
exten => #,1,Noop()
exten =>i,1,set(MACRO_RESULT=CONTINUE)
exten =>t,1,set(MACRO_RESULT=CONTINUE)
but for any key its entering into #
Hi This is what I have used before
;[macro-accept]
;exten => s,1,Wait(0.2)
;exten => s,n,Playback(beep)
;exten => s,n,Read(ACCEPT|prompt189|1||1|5)
;exten => s,n,GotoIf($["${ACCEPT}" = "2" ] ?yes:no)
;exten => s,n(no),SET(__MACRO_RESULT=CONTINUE)
;exten => s,n(no),Wait(1)
;exten => s,n(no),Hangup()
;exten => s,n,Noop(NO PRESSED ${MACRO_RESULT})
;exten => s,n,Goto(done)
;exten => s,n(yes),Wait(0.2)
;exten => s,n(yes),Noop(YES PRESSED)
;exten => s,n(yes),Playback(beep)
;exten => s,n(done),Noop(ALL Finsihed here)
;exten => h,1,Noop(NO PRESSED ${MACRO_RESULT})
;exten => h,n,SET(__MACRO_RESULT=CONTINUE)
;exten => i,1,Noop(ALL Finsihed here)
;exten => t,1,Noop(ALL Finsihed here)
and that works OK, I also use speech recognition so I just have to say yes when asked if I want the call
hi thanks man it working
No probs
The speach rec way is more fun
hi my exten.conf
exten => s,n,WaitExten(0.2)
exten => s,n,Read(ACCEPT|followme/option|1|1|1)
exten => s,n,GotoIf($["${ACCEPT}"=""]?yes:no)
exten => s,n(no),Set(MACRO_RESULT=CONTINUE) ;if user press other that # key call will hangup
exten => s,n(yes),NoOP() ;if user press # call will be connected
my question is
1.if user press other than # key call then call is hanging up
ok
but dial status is ANSWERED .
why it is happening ?
in this case i want NOANSWER
how can i do that ?? any idea …