How to set peer's h extensions

Like the dial application’s ‘e’ option, I want peer to process the ‘h extension’ even when using the queue application.

I’ve tried defining the h extension in a macro that runs with the dial application’s M option, but that didn’t work.

Isn’t there a way to set peer’s h extension?
Any tips would be greatly appreciated.
Thank you very much.

[macro]
exten => s,1,Noop(didwork)
exten => h,1,Noop(didntwork)

https://wiki.asterisk.org/wiki/display/AST/Asterisk+16+Application_Dial
https://wiki.asterisk.org/wiki/display/AST/Asterisk+16+Application_Queue

There is no such functionality for app_queue. Instead you would use the ‘b’ option to execute a GoSub which would add a hangup handler[1].

[1] https://wiki.asterisk.org/wiki/display/AST/Hangup+Handlers

1 Like

thank you very much.
I was able to solve it thanks to you.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.