[asterisk-bugs] [JIRA] (ASTERISK-23280) Failed bridge when running ParkAndAnnounce from macro initiated from applicationmap
Anders Larsson (JIRA)
noreply at issues.asterisk.org
Tue Feb 18 12:38:03 CST 2014
[ https://issues.asterisk.org/jira/browse/ASTERISK-23280?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=215383#comment-215383 ]
Anders Larsson edited comment on ASTERISK-23280 at 2/18/14 12:36 PM:
---------------------------------------------------------------------
Ok, so when is it possible to use the ParkAndAnnounce application? When there is only an incoming call without an outgoing call leg?
This is the application map in features.conf:
{noformat}
parkswitchout => *#,peer/caller,Macro(parkswitch)
{noformat}
And this is the Macro(s) in extensions.conf:
{noformat}
[macro-parkswitch] ; this Macro is called when pressing *# during a connected call (defined in features.conf and available if __DYNAMIC_FEATURES is set for extension)
exten => s,1,ExecIf($["${SHARED(PARKEDCALL,${DYNAMIC_PEERNAME})}" = "Y"]?Macro(parkswitchback)) ; if *# is pressed and there is already a parked call, run macro "parkswitchback"
exten => s,n,Set(SHARED(PARKEDCALL,${DYNAMIC_PEERNAME})=Y) ; Will be used above and in the AGI script to know that a call has been parked
exten => s,n,ParkAndAnnounce(,900,SIP/100) ; Park call for 15 min. SIP/100 will generate a warning instead of an announcement being played
[macro-parkswitchback] ; this Macro is called by Macro "parkswitch" if *# is pressed and there is already a parked call
exten => s,1,Set(SHARED(SWITCHBACKTOPARKEDCALL,${DYNAMIC_PEERNAME})=Y) ; Will be used in the AGI script to know that it should switch back to the parked call (run ParkedCall)
exten => s,n,Hangup() ; Hangup the second call, so the parked call can be active
{noformat}
was (Author: anders.larsson):
Ok, so when is it possible to use the ParkAndAnnounce application? When there is only an incoming call without an outgoing call leg?
This is the application map in features.conf:
parkswitchout => *#,peer/caller,Macro(parkswitch)
And this is the Macro(s) in extensions.conf:
[macro-parkswitch] ; this Macro is called when pressing *# during a connected call (defined in features.conf and available if __DYNAMIC_FEATURES is set for extension)
exten => s,1,ExecIf($["${SHARED(PARKEDCALL,${DYNAMIC_PEERNAME})}" = "Y"]?Macro(parkswitchback)) ; if *# is pressed and there is already a parked call, run macro "parkswitchback"
exten => s,n,Set(SHARED(PARKEDCALL,${DYNAMIC_PEERNAME})=Y) ; Will be used above and in the AGI script to know that a call has been parked
exten => s,n,ParkAndAnnounce(,900,SIP/100) ; Park call for 15 min. SIP/100 will generate a warning instead of an announcement being played
[macro-parkswitchback] ; this Macro is called by Macro "parkswitch" if *# is pressed and there is already a parked call
exten => s,1,Set(SHARED(SWITCHBACKTOPARKEDCALL,${DYNAMIC_PEERNAME})=Y) ; Will be used in the AGI script to know that it should switch back to the parked call (run ParkedCall)
exten => s,n,Hangup() ; Hangup the second call, so the parked call can be active
> Failed bridge when running ParkAndAnnounce from macro initiated from applicationmap
> -----------------------------------------------------------------------------------
>
> Key: ASTERISK-23280
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-23280
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Components: Applications/app_parkandannounce, Core/Bridging, Features/Parking
> Affects Versions: 12.0.0
> Reporter: Anders Larsson
> Severity: Minor
>
> In Asterisk 11.6 you can park a call from a macro by calling the ParkAndAnnounce application.
> In 12.0.0 it's not longer possible.
> When trying to do so, you get this error and the ParkAndAnnounce application ends.
> {noformat}
> DEBUG[7118][C-00000000]: bridge_channel.c:1994 bridge_channel_internal_join: Bridge 9f437397-4864-4351-bf29-b37e6ccacf12: 0x16e3768(SIP/vpn-sbc-00000001) failed to join Bridge
> {noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.asterisk.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the asterisk-bugs
mailing list