<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"> <extension name="postroute_global" continue="true"></font></div><div style="background-color: transparent;"><font face="Courier New, courier, monaco, monospace, sans-serif" size="2"> <condition></font></div><div style="background-color: transparent;"><font face="Courier New, courier, monaco, monospace, sans-serif" size="2"> <action application="hash"
data="insert/${domain_name}-spymap/${caller_id_number}/${uuid}"/></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"> <action application="hash" data="insert/${domain_name}-spymap/${destination_number}/${uuid}"/><br></font></div><div style="background-color: transparent;"><font face="Courier New, courier, monaco, monospace, sans-serif" size="2"> <action application="hash" data="insert/${domain_name}-last_dial/${caller_id_number}/${destination_number}"/></font></div><div style="background-color: transparent;"><font face="Courier New, courier, monaco, monospace, sans-serif" size="2"> <action application="hash"
data="insert/${domain_name}-last_dial/global/${uuid}"/></font></div><div style="background-color: transparent;"><font face="Courier New, courier, monaco, monospace, sans-serif" size="2"> <action application="set" data="RFC2822_DATE=${strftime(%a, %d %b %Y %T %z)}"/></font></div><div style="background-color: transparent;"><font face="Courier New, courier, monaco, monospace, sans-serif" size="2"> </condition></font></div><div style="background-color: transparent;"><font face="Courier New, courier, monaco, monospace, sans-serif" size="2"> </extension></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"> <extension name="main_number_47" continue="true"></font></div><div style="background-color: transparent;"><font face="Courier New, courier, monaco, monospace, sans-serif" size="2"> <condition field="destination_number" expression="^125(.+)$"></font></div><div style="background-color: transparent;"><font
face="Courier New, courier, monaco, monospace, sans-serif" size="2"> <action application="answer"/></font></div><div style="background-color: transparent;"><font face="Courier New, courier, monaco, monospace, sans-serif" size="2"> <action application="eavesdrop" data="${hash(select/${domain_name}-spymap/$1)}"/></font></div><div style="background-color: transparent;"><font face="Courier New, courier, monaco, monospace, sans-serif" size="2"> </condition></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"> </extension></font></div></div></body></html>