Question about conferences

@lgaetz if I have an inbound route that goes to conference bridge is there a way to trigger an action when the that original caller hangs up?

Yes. See this post, the part titled “How do I perform a custom action on hangup?”

1 Like

Thanks @lgaetz. The ticket you reference in the hooking post is now closed, saying use [sub-dialout-one-predial-hook] but your older post references [macro-dialout-one-predial-hook].

Just confirming the ticket notes, I can swap the two and that’s all that’s needed? What about the macroexit line?

Instead of using one of the dialplan hooks, in this case, it’s better to create a Custom Destination to set the hangup hander. So the call flow would go something like:

Inbound Route → Custom Destination → Conference

With custom dialplan like:

[mahbell-sethh]
exten => s,1,Noop(Entering user defined context mahbell-sethh in extensions_custom.conf)
exten => s,n,Set(CHANNEL(hangup_handler_push)=mahbell-do-this-on-hangup,s,1)
exten => s,n,Return

[mahbell-do-this-on-hangup]
exten => s,1,Noop(Entering user defined context mahbell-do-this-on-hangup in extensions_custom.conf)
; additional lines 
exten => s,n,Return

For the custom dest you would use a Gosub line of mahbell-sethh,s,1, enable the return option and set the destination for the caller after setting the HH.

Thanks! What about if I want to trigger something when the internal extension hangs up after a user picks up their sangoma desk phone or soft phone to make a call?

@lgaetz seems like I need to use the old way to get the extensions post hang up checks going?

Yes, you would use dialplan hooks to run dialplan when a local user makes a call or after a local extension hangs up with a hangup handler.

1 Like

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