Sending Q reason on dial timeout

Hi everyone,

I want to send a Q reason = 19 when my outgoing calls are timed out.

exten=>1,2,Dial(SIP/{myext}@{EXTEN:5},300,T${dial_option}M({otbmacro},{CHANNEL},m,{myext},{statuscallopposite},${rpddetect}))

I just would to now if there’s an argument that i can set to send my Q reason after my 300seconds of dialing.

Thanks for your reponses !

Does Hangup(19) not do that?

So i just have to place an Hangup(19) after my Dial function ?

It was a suggestion of something to try. Putting it after the Dial function will also cause that cause to be used for busy, congestion, number unobtainable, etc. If you don’t want that, you need to make the call conditional.

Ok i’ll try this with condition on dial status.

Thank you !