<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? Everything seems to work fine until I try it with an attended transfer. I've experienced this with Polycom, Cisco, and a soft phone client, so I don't think it's the phones, but who knows? With 3 extensions, say 1001, 1002, 1003, each on a different phone, I can call from 1001 to 1002. 1002 initiates a transfer to 1003. 1003 rejects so 1002 starts hearing voicemail. 1002 hits transfer again to "connect" 1001 to 1003's voicemail. With the default FS dialplan, it starts 1003's voicemail over, which is good. 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. 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"><extension name="Local_Extension"></font></div><div><font class="Apple-style-span" color="#53930F"> <condition field="destination_number" expression="^(10[01]?[0-9])$"></font></div><div><font class="Apple-style-span" color="#53930F"> <action application="set" data="dialed_extension=$1"/></font></div><div><font class="Apple-style-span" color="#53930F"> <action application="export" data="dialed_extension=$1"/></font></div><div><font class="Apple-style-span" color="#53930F"> <!-- bind_meta_app can have these args <key> [a|b|ab] [a|b|o|s] <app> --></font></div><div><font class="Apple-style-span" color="#53930F"> <action application="bind_meta_app" data="1 b s execute_extension::dx XML features"/></font></div><div><font class="Apple-style-span" color="#53930F"> <action application="bind_meta_app" data="2 b s record_session::$${recordings_dir}/${caller_id_number}.${strftime(%Y-%m-%d-%H-%M-%S)}.wav"/></font></div><div><font class="Apple-style-span" color="#53930F"> <action application="bind_meta_app" data="3 b s execute_extension::cf XML features"/></font></div><div><font class="Apple-style-span" color="#53930F"> <action application="set" data="ringback=${us-ring}"/></font></div><div><font class="Apple-style-span" color="#53930F"> <action application="set" data="transfer_ringback=$${hold_music}"/></font></div><div><font class="Apple-style-span" color="#53930F"> <action application="set" data="call_timeout=30"/></font></div><div><font class="Apple-style-span" color="#53930F"> <!-- <action application="set" data="sip_exclude_contact=${network_addr}"/> --></font></div><div><font class="Apple-style-span" color="#53930F"> <action application="set" data="hangup_after_bridge=true"/></font></div><div><font class="Apple-style-span" color="#53930F"> <!--<action application="set" data="continue_on_fail=NORMAL_TEMPORARY_FAILURE,USER_BUSY,NO_ANSWER,TIMEOUT,NO_ROUTE_DESTINATION"/> --></font></div><div><font class="Apple-style-span" color="#53930F"> <action application="set" data="continue_on_fail=true"/></font></div><div><font class="Apple-style-span" color="#53930F"> <action application="hash" data="insert/${domain_name}-call_return/${dialed_extension}/${caller_id_number}"/></font></div><div><font class="Apple-style-span" color="#53930F"> <action application="hash" data="insert/${domain_name}-last_dial_ext/${dialed_extension}/${uuid}"/></font></div><div><font class="Apple-style-span" color="#53930F"> <action application="set" data="called_party_callgroup=${user_data(${dialed_extension}@${domain_name} var callgroup)}"/></font></div><div><font class="Apple-style-span" color="#53930F"> <!--<action application="export" data="nolocal:sip_secure_media=${user_data(${dialed_extension}@${domain_name} var sip_secure_media)}"/>--></font></div><div><font class="Apple-style-span" color="#53930F"> <action application="hash" data="insert/${domain_name}-last_dial/${called_party_callgroup}/${uuid}"/></font></div><div><font class="Apple-style-span" color="#53930F"> <action application="bridge" data="user/${dialed_extension}@${domain_name}"/></font></div><div><font class="Apple-style-span" color="#53930F"> <action application="answer"/></font></div><div><font class="Apple-style-span" color="#53930F"> <action application="sleep" data="1000"/></font></div><div><font class="Apple-style-span" color="#1E5191"><!--</font><font class="Apple-style-span" color="#53930F"> <action application="voicemail" data="default ${domain_name} ${dialed_extension}"/> </font><font class="Apple-style-span" color="#1E5191">--></font></div><div><font class="Apple-style-span" color="#1E5191"> <action application="transfer" data="BRIDGE-FOLLOWUP"/></font></div><div><font class="Apple-style-span" color="#53930F"> </condition></font></div><div><font class="Apple-style-span" color="#53930F"></extension></font></div><div><br></div><div><font class="Apple-style-span" color="#53930F"><!-- CHANGES TO DEFAULT DIALPLAN HERE --></font></div><div><font class="Apple-style-span" color="#1E5191"><extension name="BRIDGE-FOLLOWUP"></font></div><div><font class="Apple-style-span" color="#1E5191"> <condition field="destination_number" expression="BRIDGE-FOLLOWUP"/></font></div><div><font class="Apple-style-span" color="#1E5191"> <condition field="${originate_disposition}" expression="^SUCCESS$" break="on-true"></font></div><div><font class="Apple-style-span" color="#1E5191"> <action application="log" data="ERR (${originate_disposition})successful bridge is now done for ${dialed_extension}"/></font></div><div><font class="Apple-style-span" color="#1E5191"> <action application="hangup" data="NORMAL_CLEARING"/></font></div><div><font class="Apple-style-span" color="#1E5191"> </condition></font></div><div><font class="Apple-style-span" color="#1E5191"> <condition field="${originate_disposition}" expression="USER_BUSY|CALL_REJECTED" break="on-true"></font></div><div><font class="Apple-style-span" color="#1E5191"> <action application="log" data="ERR (${originate_disposition})busy/rejected for ${dialed_extension}"/></font></div><div><font class="Apple-style-span" color="#1E5191"> <action application="voicemail" data="default ${domain_name} ${dialed_extension}"/></font></div><div><font class="Apple-style-span" color="#1E5191"> </condition></font></div><div><font class="Apple-style-span" color="#1E5191"> <condition field="${originate_disposition}" expression="NO_ANSWER" break="on-true"></font></div><div><font class="Apple-style-span" color="#1E5191"> <action application="log" data="ERR (${originate_disposition})no answer for ${dialed_extension}"/></font></div><div><font class="Apple-style-span" color="#1E5191"> <action application="voicemail" data="default ${domain_name} ${dialed_extension}"/></font></div><div><font class="Apple-style-span" color="#1E5191"> </condition></font></div><div><font class="Apple-style-span" color="#1E5191"> <condition></font></div><div><font class="Apple-style-span" color="#1E5191"> <action application="log" data="ERR (${originate_disposition})other error for ${dialed_extension}"/></font></div><div><font class="Apple-style-span" color="#1E5191"> <action application="voicemail" data="default ${domain_name} ${dialed_extension}"/></font></div><div><font class="Apple-style-span" color="#1E5191"> </condition></font></div><div><font class="Apple-style-span" color="#1E5191"></extension></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"><extension name="Local_Extension"></font></div><div><font class="Apple-style-span" color="#53930F"> <condition field="destination_number" expression="^(10[01]?[0-9])$"></font></div><div><font class="Apple-style-span" color="#53930F"> <action application="set" data="dialed_extension=$1"/></font></div><div><font class="Apple-style-span" color="#53930F"> <action application="export" data="dialed_extension=$1"/></font></div><div><font class="Apple-style-span" color="#53930F"> <!-- bind_meta_app can have these args <key> [a|b|ab] [a|b|o|s] <app> --></font></div><div><font class="Apple-style-span" color="#53930F"> <action application="bind_meta_app" data="1 b s execute_extension::dx XML features"/></font></div><div><font class="Apple-style-span" color="#53930F"> <action application="bind_meta_app" data="2 b s record_session::$${recordings_dir}/${caller_id_number}.${strftime(%Y-%m-%d-%H-%M-%S)}.wav"/></font></div><div><font class="Apple-style-span" color="#53930F"> <action application="bind_meta_app" data="3 b s execute_extension::cf XML features"/></font></div><div><font class="Apple-style-span" color="#53930F"> <action application="set" data="ringback=${us-ring}"/></font></div><div><font class="Apple-style-span" color="#53930F"> <action application="set" data="transfer_ringback=$${hold_music}"/></font></div><div><font class="Apple-style-span" color="#53930F"> <action application="set" data="call_timeout=30"/></font></div><div><font class="Apple-style-span" color="#53930F"> <!-- <action application="set" data="sip_exclude_contact=${network_addr}"/> --></font></div><div><font class="Apple-style-span" color="#53930F"> <action application="set" data="hangup_after_bridge=true"/></font></div><div><font class="Apple-style-span" color="#53930F"> <!--<action application="set" data="continue_on_fail=NORMAL_TEMPORARY_FAILURE,USER_BUSY,NO_ANSWER,TIMEOUT,NO_ROUTE_DESTINATION"/> --></font></div><div><font class="Apple-style-span" color="#53930F"> <action application="set" data="continue_on_fail=true"/></font></div><div><font class="Apple-style-span" color="#53930F"> <action application="hash" data="insert/${domain_name}-call_return/${dialed_extension}/${caller_id_number}"/></font></div><div><font class="Apple-style-span" color="#53930F"> <action application="hash" data="insert/${domain_name}-last_dial_ext/${dialed_extension}/${uuid}"/></font></div><div><font class="Apple-style-span" color="#53930F"> <action application="set" data="called_party_callgroup=${user_data(${dialed_extension}@${domain_name} var callgroup)}"/></font></div><div><font class="Apple-style-span" color="#53930F"> <!--<action application="export" data="nolocal:sip_secure_media=${user_data(${dialed_extension}@${domain_name} var sip_secure_media)}"/>--></font></div><div><font class="Apple-style-span" color="#53930F"> <action application="hash" data="insert/${domain_name}-last_dial/${called_party_callgroup}/${uuid}"/></font></div><div><font class="Apple-style-span" color="#53930F"> <action application="bridge" data="user/${dialed_extension}@${domain_name}"/></font></div><div><font class="Apple-style-span" color="#53930F"> <action application="answer"/></font></div><div><font class="Apple-style-span" color="#53930F"> <action application="sleep" data="1000"/></font></div><div><font class="Apple-style-span" color="#1E5191"><!--</font><font class="Apple-style-span" color="#53930F"> <action application="voicemail" data="default ${domain_name} ${dialed_extension}"/> </font><font class="Apple-style-span" color="#1E5191">--></font></div><div><span class="Apple-style-span" style="color: rgb(83, 147, 15); "> </condition></span></div><div><font class="Apple-style-span" color="#53930F"><br></font></div><div><font class="Apple-style-span" color="#53930F"><!-- CHANGES TO DEFAULT DIALPLAN HERE --></font></div><div><font class="Apple-style-span" color="#3600FC"> <condition field="${originate_disposition}" expression="^SUCCESS$" break="on-true"></font></div><div><font class="Apple-style-span" color="#3600FC"> <action application="log" data="ERR (${originate_disposition})successful bridge is now done for ${dialed_extension}"/></font></div><div><font class="Apple-style-span" color="#3600FC"> <action application="hangup" data="NORMAL_CLEARING"/></font></div><div><font class="Apple-style-span" color="#3600FC"> </condition></font></div><div><font class="Apple-style-span" color="#3600FC"> <condition field="${originate_disposition}" expression="^USER_BUSY|CALL_REJECTED$" break="on-true"></font></div><div><font class="Apple-style-span" color="#3600FC"> <action application="log" data="ERR busy/rejected for ${dialed_extension}"/></font></div><div><font class="Apple-style-span" color="#3600FC"> <action application="voicemail" data="default ${domain_name} ${dialed_extension}"/></font></div><div><font class="Apple-style-span" color="#3600FC"> </condition></font></div><div><font class="Apple-style-span" color="#3600FC"> <condition field="${originate_disposition}" expression="^NO_ANSWER$" break="on-true"></font></div><div><font class="Apple-style-span" color="#3600FC"> <action application="log" data="ERR no answer for ${dialed_extension}"/></font></div><div><font class="Apple-style-span" color="#3600FC"> <action application="voicemail" data="default ${domain_name} ${dialed_extension}"/></font></div><div><font class="Apple-style-span" color="#3600FC"> </condition></font></div><div><font class="Apple-style-span" color="#3600FC"> <condition></font></div><div><font class="Apple-style-span" color="#3600FC"> <action application="log" data="ERR other error for ${dialed_extension}"/></font></div><div><font class="Apple-style-span" color="#3600FC"> <action application="voicemail" data="default ${domain_name} ${dialed_extension}"/></font></div><div><font class="Apple-style-span" color="#3600FC"> </condition></font></div><div><font class="Apple-style-span" color="#53930F"></extension></font></div><div><font class="Apple-style-span" color="#53930F"><br></font></div></div></div></body></html>