[Freeswitch-users] park_after_bridge don't working for busy destination!

Michael Jerris mike at jerris.com
Fri Mar 31 20:18:58 MSD 2017


Would this do what you want?

<context name="H3KSip_SP_outbound">
  <extension name="outbound_softphone">
    <condition field="${channel_name}" expression="^sofia/H3KSip_B2Bua/.*$" break="on-false">
      <action application="set" data="ringback=%(1500,3000,425)" />
      <action application="set" data="instant_ringback=true" />
      <action application="set" data="hangup_after_bridge=false" />
      <action application="bridge" data="{ignore_early_media=true,absolute_codec_string=G722,PCMU,PCMA}sofia/gateway/GW_H3KSip/${destination_number}" />
      <action application=“park"/>
    </condition>
  </extension>
</context> 



> On Mar 31, 2017, at 6:02 AM, Alexander Haugg <Alexander.Haugg at c4b.de> wrote:
> 
> Hi,
>  
> Ich try to catch the leg A after the destination is hangup with the cause busy to signalling a busy tone stream to the caller (leg A)
>  
> But leg A will dropped too.
>  
> Here is the test dialplan:
>  
> <context name="H3KSip_SP_outbound">
>   <extension name="outbound_softphone">
>     <condition field="${channel_name}" expression="^sofia/H3KSip_B2Bua/.*$" break="on-false">
>       <action application="set" data="ringback=%(1500,3000,425)" />
>       <action application="set" data="instant_ringback=true" />
>       <action application="multiset" data="ignore_early_media=true hangup_after_bridge=false park_after_bridge=true" />
>       <action application="export" data="nolocal:absolute_codec_string=G722,PCMU,PCMA" />
>       <action application="bridge" data="{ignore_early_media=true}sofia/gateway/GW_H3KSip/${destination_number}" />
>       <action application="log" data="ERR last_bridge_hangup_cause=${last_bridge_hangup_cause}" />
>       <action application="log" data="ERR bridge_hangup_cause=${bridge_hangup_cause}" />
>       <action application="sleep" data="1000" />
>       <action application="playback" data="tone_stream://%(480,480,425);loops=3" />
>       <action application="hangup" data="USER_BUSY"/>
>     </condition>
>   </extension>
> </context> 
>  
> Whats wrong?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20170331/a40ade02/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list