I'm trying to make a dialplan: <extension name="Long Dial"> <condition field="destination_number" expression="^(^([0-9]{10})$|^([0-9]{11})$|^([0-9]{12})$|^\+([0-9]{11})$)$"> <action application="set" data="hangup_after_bridge=true"/> <action application="set"data="continue_on_fail=NO_ROUTE_DESTINATION"/> <action application="set" data="real_dialed_number=7777777"/> </condition>
<condition field="destination_number" expression="^(79|89)(\d{9})$" break="on-true"> <action application="set" data="dtmf=wwwwwwwwwwwwwwwwwwwww111222#wwwwww89...@100"/> <action application="bridge" data="sofia/gateway/gw1/89$2|sofia/gateway/gw2/89$2|sofia/gateway/gw3/89$2"/> <action application="transfer" data="to_card"/> </condition> </extension> <extension name="to_card"> <condition field="destination_number" expression="^to_card$"> <action application="bridge" data="{execute_on_answer=send_dtmf\s${dtmf}}sofia/internal/${real_dialed_numb...@192.168.50.53:5061"/> </condition> </extension> The logic of his work: if unavailable gateway to the next. if not available all the gateway to go to the extension transfer. A problem in If we get a code busy here, it is not satisfied hangup_after_bridge. The call goes to the transfer. Why is this so? trace: http://pastebin.freeswitch.org/13244 -- Best regards, Vladimir Elizarov _______________________________________________ FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org