<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I have the latest version of FS (90913b8e26265fd381318334f40e0b1a038bb066 committed Apr 21) and am using the default config with a small change that allows me to respond to the various values originate_disposition values.<div><br></div><div>First, is there a better way than what I am doing? &nbsp;Everything seems to work fine until I try it with an attended transfer. &nbsp;I've experienced this with Polycom, Cisco, and a soft phone client, so I don't think it's the phones, but who knows? &nbsp;With 3 extensions, say 1001, 1002, 1003, each on a different phone, I can call from 1001 to 1002. &nbsp;1002 initiates a transfer to 1003. &nbsp;1003 rejects so 1002 starts hearing voicemail. &nbsp;1002 hits transfer again to "connect" 1001 to 1003's voicemail. &nbsp;With the default FS dialplan, it starts 1003's voicemail over, which is good. &nbsp;With this slight modification, it hangs up on 1001.</div><div><br></div><div>If the feedback I get is that this modification looks fine, I can open a jira and supply a SIP trace and fs logs for the calls.</div><div><br></div><div>Incidentally, to keep it simple, this example does the same thing regardless of the originate_disposition. &nbsp;In practice, there would be different actions taken.</div><div><br></div><div>Thanks for any help!</div><div><br></div><div>-Troy</div><div><br></div><div><b>Here's what I have:</b></div><div><br></div><div><div><font class="Apple-style-span" color="#53930F"><span class="Apple-style-span" style="color: rgb(0, 0, 0); "><div><font class="Apple-style-span" color="#53930F">&lt;extension name="Local_Extension"&gt;</font></div><div><font class="Apple-style-span" color="#53930F">&nbsp;&nbsp;&lt;condition field="destination_number" expression="^(10[01]?[0-9])$"&gt;</font></div><div><font class="Apple-style-span" color="#53930F">&nbsp;&nbsp; &nbsp;&lt;action application="set" data="dialed_extension=$1"/&gt;</font></div><div><font class="Apple-style-span" color="#53930F">&nbsp;&nbsp; &nbsp;&lt;action application="export" data="dialed_extension=$1"/&gt;</font></div><div><font class="Apple-style-span" color="#53930F">&nbsp;&nbsp; &nbsp;&lt;!-- bind_meta_app can have these args &lt;key&gt; [a|b|ab] [a|b|o|s] &lt;app&gt; --&gt;</font></div><div><font class="Apple-style-span" color="#53930F">&nbsp;&nbsp; &nbsp;&lt;action application="bind_meta_app" data="1 b s execute_extension::dx XML features"/&gt;</font></div><div><font class="Apple-style-span" color="#53930F">&nbsp;&nbsp; &nbsp;&lt;action application="bind_meta_app" data="2 b s record_session::$${recordings_dir}/${caller_id_number}.${strftime(%Y-%m-%d-%H-%M-%S)}.wav"/&gt;</font></div><div><font class="Apple-style-span" color="#53930F">&nbsp;&nbsp; &nbsp;&lt;action application="bind_meta_app" data="3 b s execute_extension::cf XML features"/&gt;</font></div><div><font class="Apple-style-span" color="#53930F">&nbsp;&nbsp; &nbsp;&lt;action application="set" data="ringback=${us-ring}"/&gt;</font></div><div><font class="Apple-style-span" color="#53930F">&nbsp;&nbsp; &nbsp;&lt;action application="set" data="transfer_ringback=$${hold_music}"/&gt;</font></div><div><font class="Apple-style-span" color="#53930F">&nbsp;&nbsp; &nbsp;&lt;action application="set" data="call_timeout=30"/&gt;</font></div><div><font class="Apple-style-span" color="#53930F">&nbsp;&nbsp; &nbsp;&lt;!-- &lt;action application="set" data="sip_exclude_contact=${network_addr}"/&gt; --&gt;</font></div><div><font class="Apple-style-span" color="#53930F">&nbsp;&nbsp; &nbsp;&lt;action application="set" data="hangup_after_bridge=true"/&gt;</font></div><div><font class="Apple-style-span" color="#53930F">&nbsp;&nbsp; &nbsp;&lt;!--&lt;action application="set" data="continue_on_fail=NORMAL_TEMPORARY_FAILURE,USER_BUSY,NO_ANSWER,TIMEOUT,NO_ROUTE_DESTINATION"/&gt; --&gt;</font></div><div><font class="Apple-style-span" color="#53930F">&nbsp;&nbsp; &nbsp;&lt;action application="set" data="continue_on_fail=true"/&gt;</font></div><div><font class="Apple-style-span" color="#53930F">&nbsp;&nbsp; &nbsp;&lt;action application="hash" data="insert/${domain_name}-call_return/${dialed_extension}/${caller_id_number}"/&gt;</font></div><div><font class="Apple-style-span" color="#53930F">&nbsp;&nbsp; &nbsp;&lt;action application="hash" data="insert/${domain_name}-last_dial_ext/${dialed_extension}/${uuid}"/&gt;</font></div><div><font class="Apple-style-span" color="#53930F">&nbsp;&nbsp; &nbsp;&lt;action application="set" data="called_party_callgroup=${user_data(${dialed_extension}@${domain_name} var callgroup)}"/&gt;</font></div><div><font class="Apple-style-span" color="#53930F">&nbsp;&nbsp; &nbsp;&lt;!--&lt;action application="export" data="nolocal:sip_secure_media=${user_data(${dialed_extension}@${domain_name} var sip_secure_media)}"/&gt;--&gt;</font></div><div><font class="Apple-style-span" color="#53930F">&nbsp;&nbsp; &nbsp;&lt;action application="hash" data="insert/${domain_name}-last_dial/${called_party_callgroup}/${uuid}"/&gt;</font></div><div><font class="Apple-style-span" color="#53930F">&nbsp;&nbsp; &nbsp;&lt;action application="bridge" data="user/${dialed_extension}@${domain_name}"/&gt;</font></div><div><font class="Apple-style-span" color="#53930F">&nbsp;&nbsp; &nbsp;&lt;action application="answer"/&gt;</font></div><div><font class="Apple-style-span" color="#53930F">&nbsp;&nbsp; &nbsp;&lt;action application="sleep" data="1000"/&gt;</font></div><div><font class="Apple-style-span" color="#1E5191">&lt;!--</font><font class="Apple-style-span" color="#53930F">&nbsp;&nbsp; &nbsp;&lt;action application="voicemail" data="default ${domain_name} ${dialed_extension}"/&gt;&nbsp;</font><font class="Apple-style-span" color="#1E5191">--&gt;</font></div><div><font class="Apple-style-span" color="#1E5191">&nbsp;&nbsp; &nbsp;&lt;action application="transfer" data="BRIDGE-FOLLOWUP"/&gt;</font></div><div><font class="Apple-style-span" color="#53930F">&nbsp;&nbsp;&lt;/condition&gt;</font></div><div><font class="Apple-style-span" color="#53930F">&lt;/extension&gt;</font></div><div><br></div><div><font class="Apple-style-span" color="#53930F">&lt;!-- CHANGES TO DEFAULT DIALPLAN HERE &nbsp;--&gt;</font></div><div><font class="Apple-style-span" color="#1E5191">&lt;extension name="BRIDGE-FOLLOWUP"&gt;</font></div><div><font class="Apple-style-span" color="#1E5191">&nbsp;&nbsp;&lt;condition field="destination_number" expression="BRIDGE-FOLLOWUP"/&gt;</font></div><div><font class="Apple-style-span" color="#1E5191">&nbsp;&nbsp;&lt;condition field="${originate_disposition}" expression="^SUCCESS$" break="on-true"&gt;</font></div><div><font class="Apple-style-span" color="#1E5191">&nbsp;&nbsp; &nbsp;&lt;action application="log" data="ERR (${originate_disposition})successful bridge is now done for ${dialed_extension}"/&gt;</font></div><div><font class="Apple-style-span" color="#1E5191">&nbsp;&nbsp; &nbsp;&lt;action application="hangup" data="NORMAL_CLEARING"/&gt;</font></div><div><font class="Apple-style-span" color="#1E5191">&nbsp;&nbsp;&lt;/condition&gt;</font></div><div><font class="Apple-style-span" color="#1E5191">&nbsp;&nbsp;&lt;condition field="${originate_disposition}" expression="USER_BUSY|CALL_REJECTED" break="on-true"&gt;</font></div><div><font class="Apple-style-span" color="#1E5191">&nbsp;&nbsp; &nbsp;&lt;action application="log" data="ERR (${originate_disposition})busy/rejected for ${dialed_extension}"/&gt;</font></div><div><font class="Apple-style-span" color="#1E5191">&nbsp;&nbsp; &nbsp;&lt;action application="voicemail" data="default ${domain_name} ${dialed_extension}"/&gt;</font></div><div><font class="Apple-style-span" color="#1E5191">&nbsp;&nbsp;&lt;/condition&gt;</font></div><div><font class="Apple-style-span" color="#1E5191">&nbsp;&nbsp;&lt;condition field="${originate_disposition}" expression="NO_ANSWER" break="on-true"&gt;</font></div><div><font class="Apple-style-span" color="#1E5191">&nbsp;&nbsp; &nbsp;&lt;action application="log" data="ERR (${originate_disposition})no answer for ${dialed_extension}"/&gt;</font></div><div><font class="Apple-style-span" color="#1E5191">&nbsp;&nbsp; &nbsp;&lt;action application="voicemail" data="default ${domain_name} ${dialed_extension}"/&gt;</font></div><div><font class="Apple-style-span" color="#1E5191">&nbsp;&nbsp;&lt;/condition&gt;</font></div><div><font class="Apple-style-span" color="#1E5191">&nbsp;&nbsp;&lt;condition&gt;</font></div><div><font class="Apple-style-span" color="#1E5191">&nbsp;&nbsp; &nbsp;&lt;action application="log" data="ERR (${originate_disposition})other error for ${dialed_extension}"/&gt;</font></div><div><font class="Apple-style-span" color="#1E5191">&nbsp;&nbsp; &nbsp;&lt;action application="voicemail" data="default ${domain_name} ${dialed_extension}"/&gt;</font></div><div><font class="Apple-style-span" color="#1E5191">&nbsp;&nbsp;&lt;/condition&gt;</font></div><div><font class="Apple-style-span" color="#1E5191">&lt;/extension&gt;</font></div><div><font class="Apple-style-span" color="#1E5191"><br></font></div></span></font></div><div><b>I also tried:</b></div><div><br></div><div><div><font class="Apple-style-span" color="#53930F">&lt;extension name="Local_Extension"&gt;</font></div><div><font class="Apple-style-span" color="#53930F">&nbsp;&nbsp;&lt;condition field="destination_number" expression="^(10[01]?[0-9])$"&gt;</font></div><div><font class="Apple-style-span" color="#53930F">&nbsp;&nbsp; &nbsp;&lt;action application="set" data="dialed_extension=$1"/&gt;</font></div><div><font class="Apple-style-span" color="#53930F">&nbsp;&nbsp; &nbsp;&lt;action application="export" data="dialed_extension=$1"/&gt;</font></div><div><font class="Apple-style-span" color="#53930F">&nbsp;&nbsp; &nbsp;&lt;!-- bind_meta_app can have these args &lt;key&gt; [a|b|ab] [a|b|o|s] &lt;app&gt; --&gt;</font></div><div><font class="Apple-style-span" color="#53930F">&nbsp;&nbsp; &nbsp;&lt;action application="bind_meta_app" data="1 b s execute_extension::dx XML features"/&gt;</font></div><div><font class="Apple-style-span" color="#53930F">&nbsp;&nbsp; &nbsp;&lt;action application="bind_meta_app" data="2 b s record_session::$${recordings_dir}/${caller_id_number}.${strftime(%Y-%m-%d-%H-%M-%S)}.wav"/&gt;</font></div><div><font class="Apple-style-span" color="#53930F">&nbsp;&nbsp; &nbsp;&lt;action application="bind_meta_app" data="3 b s execute_extension::cf XML features"/&gt;</font></div><div><font class="Apple-style-span" color="#53930F">&nbsp;&nbsp; &nbsp;&lt;action application="set" data="ringback=${us-ring}"/&gt;</font></div><div><font class="Apple-style-span" color="#53930F">&nbsp;&nbsp; &nbsp;&lt;action application="set" data="transfer_ringback=$${hold_music}"/&gt;</font></div><div><font class="Apple-style-span" color="#53930F">&nbsp;&nbsp; &nbsp;&lt;action application="set" data="call_timeout=30"/&gt;</font></div><div><font class="Apple-style-span" color="#53930F">&nbsp;&nbsp; &nbsp;&lt;!-- &lt;action application="set" data="sip_exclude_contact=${network_addr}"/&gt; --&gt;</font></div><div><font class="Apple-style-span" color="#53930F">&nbsp;&nbsp; &nbsp;&lt;action application="set" data="hangup_after_bridge=true"/&gt;</font></div><div><font class="Apple-style-span" color="#53930F">&nbsp;&nbsp; &nbsp;&lt;!--&lt;action application="set" data="continue_on_fail=NORMAL_TEMPORARY_FAILURE,USER_BUSY,NO_ANSWER,TIMEOUT,NO_ROUTE_DESTINATION"/&gt; --&gt;</font></div><div><font class="Apple-style-span" color="#53930F">&nbsp;&nbsp; &nbsp;&lt;action application="set" data="continue_on_fail=true"/&gt;</font></div><div><font class="Apple-style-span" color="#53930F">&nbsp;&nbsp; &nbsp;&lt;action application="hash" data="insert/${domain_name}-call_return/${dialed_extension}/${caller_id_number}"/&gt;</font></div><div><font class="Apple-style-span" color="#53930F">&nbsp;&nbsp; &nbsp;&lt;action application="hash" data="insert/${domain_name}-last_dial_ext/${dialed_extension}/${uuid}"/&gt;</font></div><div><font class="Apple-style-span" color="#53930F">&nbsp;&nbsp; &nbsp;&lt;action application="set" data="called_party_callgroup=${user_data(${dialed_extension}@${domain_name} var callgroup)}"/&gt;</font></div><div><font class="Apple-style-span" color="#53930F">&nbsp;&nbsp; &nbsp;&lt;!--&lt;action application="export" data="nolocal:sip_secure_media=${user_data(${dialed_extension}@${domain_name} var sip_secure_media)}"/&gt;--&gt;</font></div><div><font class="Apple-style-span" color="#53930F">&nbsp;&nbsp; &nbsp;&lt;action application="hash" data="insert/${domain_name}-last_dial/${called_party_callgroup}/${uuid}"/&gt;</font></div><div><font class="Apple-style-span" color="#53930F">&nbsp;&nbsp; &nbsp;&lt;action application="bridge" data="user/${dialed_extension}@${domain_name}"/&gt;</font></div><div><font class="Apple-style-span" color="#53930F">&nbsp;&nbsp; &nbsp;&lt;action application="answer"/&gt;</font></div><div><font class="Apple-style-span" color="#53930F">&nbsp;&nbsp; &nbsp;&lt;action application="sleep" data="1000"/&gt;</font></div><div><font class="Apple-style-span" color="#1E5191">&lt;!--</font><font class="Apple-style-span" color="#53930F">&nbsp;&nbsp; &nbsp;&lt;action application="voicemail" data="default ${domain_name} ${dialed_extension}"/&gt;&nbsp;</font><font class="Apple-style-span" color="#1E5191">--&gt;</font></div><div><span class="Apple-style-span" style="color: rgb(83, 147, 15); ">&nbsp;&nbsp;&lt;/condition&gt;</span></div><div><font class="Apple-style-span" color="#53930F"><br></font></div><div><font class="Apple-style-span" color="#53930F">&lt;!-- CHANGES TO DEFAULT DIALPLAN HERE &nbsp;--&gt;</font></div><div><font class="Apple-style-span" color="#3600FC">&nbsp;&nbsp;&lt;condition field="${originate_disposition}" expression="^SUCCESS$" break="on-true"&gt;</font></div><div><font class="Apple-style-span" color="#3600FC">&nbsp;&nbsp; &nbsp;&lt;action application="log" data="ERR (${originate_disposition})successful bridge is now done for ${dialed_extension}"/&gt;</font></div><div><font class="Apple-style-span" color="#3600FC">&nbsp;&nbsp; &nbsp;&lt;action application="hangup" data="NORMAL_CLEARING"/&gt;</font></div><div><font class="Apple-style-span" color="#3600FC">&nbsp;&nbsp;&lt;/condition&gt;</font></div><div><font class="Apple-style-span" color="#3600FC">&nbsp;&nbsp;&lt;condition field="${originate_disposition}" expression="^USER_BUSY|CALL_REJECTED$" break="on-true"&gt;</font></div><div><font class="Apple-style-span" color="#3600FC">&nbsp;&nbsp; &nbsp;&lt;action application="log" data="ERR busy/rejected for ${dialed_extension}"/&gt;</font></div><div><font class="Apple-style-span" color="#3600FC">&nbsp;&nbsp; &nbsp;&lt;action application="voicemail" data="default ${domain_name} ${dialed_extension}"/&gt;</font></div><div><font class="Apple-style-span" color="#3600FC">&nbsp;&nbsp;&lt;/condition&gt;</font></div><div><font class="Apple-style-span" color="#3600FC">&nbsp;&nbsp;&lt;condition field="${originate_disposition}" expression="^NO_ANSWER$" break="on-true"&gt;</font></div><div><font class="Apple-style-span" color="#3600FC">&nbsp;&nbsp; &nbsp;&lt;action application="log" data="ERR no answer for ${dialed_extension}"/&gt;</font></div><div><font class="Apple-style-span" color="#3600FC">&nbsp;&nbsp; &nbsp;&lt;action application="voicemail" data="default ${domain_name} ${dialed_extension}"/&gt;</font></div><div><font class="Apple-style-span" color="#3600FC">&nbsp;&nbsp;&lt;/condition&gt;</font></div><div><font class="Apple-style-span" color="#3600FC">&nbsp;&nbsp;&lt;condition&gt;</font></div><div><font class="Apple-style-span" color="#3600FC">&nbsp;&nbsp; &nbsp;&lt;action application="log" data="ERR other error for ${dialed_extension}"/&gt;</font></div><div><font class="Apple-style-span" color="#3600FC">&nbsp;&nbsp; &nbsp;&lt;action application="voicemail" data="default ${domain_name} ${dialed_extension}"/&gt;</font></div><div><font class="Apple-style-span" color="#3600FC">&nbsp;&nbsp;&lt;/condition&gt;</font></div><div><font class="Apple-style-span" color="#53930F">&lt;/extension&gt;</font></div><div><font class="Apple-style-span" color="#53930F"><br></font></div></div></div></body></html>