<html><body><div style="color:#000; background-color:#fff; font-family:Courier New, courier, monaco, monospace, sans-serif;font-size:10pt"><div style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; font-size: 10pt;">I'd like to devise a way to insert a hash for a scenario like this...</div><div style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; font-size: 10pt;"><br></div><div style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; font-size: 13px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;">1. Receive inbound call from PSTN to IVR, caller enters an extension number or option leading to an extension or callgroup</div><div style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; font-size: 13px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;"><br></div><div style="font-family: 'Courier New', courier, monaco, monospace,
 sans-serif; font-size: 13px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;">2. Insert hash for the receiving extension or group with the domain_name of the receiving extension or group. (alternatively, is there a way to modify the eavesdrop config to accomplish the same thing?)</div><div style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; font-size: 13px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;"><br></div><div style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; font-size: 13px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;"><br></div><div style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; font-size: 13px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;"><br></div><div style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; font-size: 13px; color: rgb(0, 0, 0);
 background-color: transparent; font-style: normal;">I tried this but I have a different domain_name for calls from my carrier than for calls within a context/location (multitenant config).</div><div style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; font-size: 13px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;"><br></div><div style="background-color: transparent;"><font face="Courier New, courier, monaco, monospace, sans-serif" size="2">&nbsp; &nbsp; &lt;extension name="postroute_global" continue="true"&gt;</font></div><div style="background-color: transparent;"><font face="Courier New, courier, monaco, monospace, sans-serif" size="2">&nbsp; &nbsp; &nbsp; &lt;condition&gt;</font></div><div style="background-color: transparent;"><font face="Courier New, courier, monaco, monospace, sans-serif" size="2">&nbsp; &nbsp; &nbsp; &nbsp; &lt;action application="hash"
 data="insert/${domain_name}-spymap/${caller_id_number}/${uuid}"/&gt;</font></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 13px; font-family: 'Courier New', courier, monaco, monospace, sans-serif; font-style: normal;"><font face="Courier New, courier, monaco, monospace, sans-serif" size="2">&nbsp; &nbsp; &nbsp; &nbsp; &lt;action application="hash" data="insert/${domain_name}-spymap/${destination_number}/${uuid}"/&gt;<br></font></div><div style="background-color: transparent;"><font face="Courier New, courier, monaco, monospace, sans-serif" size="2">&nbsp; &nbsp; &nbsp; &nbsp; &lt;action application="hash" data="insert/${domain_name}-last_dial/${caller_id_number}/${destination_number}"/&gt;</font></div><div style="background-color: transparent;"><font face="Courier New, courier, monaco, monospace, sans-serif" size="2">&nbsp; &nbsp; &nbsp; &nbsp; &lt;action application="hash"
 data="insert/${domain_name}-last_dial/global/${uuid}"/&gt;</font></div><div style="background-color: transparent;"><font face="Courier New, courier, monaco, monospace, sans-serif" size="2">&nbsp; &nbsp; &nbsp; &nbsp; &lt;action application="set" data="RFC2822_DATE=${strftime(%a, %d %b %Y %T %z)}"/&gt;</font></div><div style="background-color: transparent;"><font face="Courier New, courier, monaco, monospace, sans-serif" size="2">&nbsp; &nbsp; &nbsp; &lt;/condition&gt;</font></div><div style="background-color: transparent;"><font face="Courier New, courier, monaco, monospace, sans-serif" size="2">&nbsp; &nbsp; &lt;/extension&gt;</font></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 13px; font-family: 'Courier New', courier, monaco, monospace, sans-serif; font-style: normal;"><font face="Courier New, courier, monaco, monospace, sans-serif" size="2"><br></font></div><div style="background-color: transparent; color: rgb(0,
 0, 0); font-size: 13px; font-family: 'Courier New', courier, monaco, monospace, sans-serif; font-style: normal;"><font face="Courier New, courier, monaco, monospace, sans-serif" size="2">Eavesdrop extension config:</font></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 13px; font-family: 'Courier New', courier, monaco, monospace, sans-serif; font-style: normal;"><font face="Courier New, courier, monaco, monospace, sans-serif" size="2"><br></font></div><div style="background-color: transparent;"><font face="Courier New, courier, monaco, monospace, sans-serif" size="2">&nbsp; &nbsp; &lt;extension name="main_number_47" continue="true"&gt;</font></div><div style="background-color: transparent;"><font face="Courier New, courier, monaco, monospace, sans-serif" size="2">&nbsp; &nbsp; &nbsp; &lt;condition field="destination_number" expression="^125(.+)$"&gt;</font></div><div style="background-color: transparent;"><font
 face="Courier New, courier, monaco, monospace, sans-serif" size="2">&nbsp; &nbsp; &nbsp; &nbsp; &lt;action application="answer"/&gt;</font></div><div style="background-color: transparent;"><font face="Courier New, courier, monaco, monospace, sans-serif" size="2">&nbsp; &nbsp; &nbsp; &nbsp; &lt;action application="eavesdrop" data="${hash(select/${domain_name}-spymap/$1)}"/&gt;</font></div><div style="background-color: transparent;"><font face="Courier New, courier, monaco, monospace, sans-serif" size="2">&nbsp; &nbsp; &nbsp; &lt;/condition&gt;</font></div><div style="background-color: transparent;"><font face="Courier New, courier, monaco, monospace, sans-serif" size="2"></font></div><div style="background-color: transparent;"><font face="Courier New, courier, monaco, monospace, sans-serif" size="2">&nbsp; &nbsp; &lt;/extension&gt;</font></div></div></body></html>