i would like when a calee reject the call asterisk dont re call
my context “principe is call with channel”
exten => _0[23456789].,1,dial(SIP/gsm1/1${EXTEN})
exten => _0[23456789].,n,dial(SIP/gsm2/2${EXTEN})
exten => _0[23456789].,n,dial(SIP/gsm3/3${EXTEN})
exten => _0[23456789].,n,Hangup()
how can i do this plz hlp
DIALSTATUS is wrote only to Asterisk itself and basically just a summary of HANGUPCAUSE. It doesn’t do anything other then provide information for your dialplan code (HANGUPCAUSE. As such, I don’t understand your latest respohse.
If you are asking how to write code conditional on either of these, please see the sample configuration file. This is is not the place for free tutoring on basics like that. and nor is it a service for providing free custom code.
The OP wants “busy here” to stop the call. I think he is assuming other failures are network related. Your code only tries calling through the other SIMs if it does get “busy here”.
(You can also do it in significantly fewer lines.)
I just noticed the reference to Asterisk 13. Although what I’ve said is true of Asterisk 1.6, or even earlier, Asterisk 13, is no longer supported, not even for security fixes.