<div dir="ltr"><div>Hello :</div>
<div> </div>
<div>So far I test 2 sip profiles, thinking the dialplan logic</div>
<div> </div>
<div>if sip_from_host == sip_to_host {</div>
<div>// this part is searching 2 groups user registered directly </div>
<div> do dialplan XML processing</div>
<div> do bridge sofia/...</div>
<div>// otherwise looking outside </div>
<div>}else {</div>
<div> do dialplan ENUM processing</div>
<div>}</div>
<div> </div>
<div>Can the dialplan condition do string comparison ?</div>
<div>e.g. "${sip_from_host} == ${sip_to_host}"</div>
<div>otherwise something like this</div>
<div> </div>
<div><condition field="${sip_from_host}" expression="210.2xx.xx.xx"/><br><condition field="${sip_to_host}" expression="210.2xx.xx.xx"></div>
<div><action ....</div>
<div> </div>
<div> </div>
<div>I finally got some experience of multiple sip profiles.</div>
<div>Some key points</div>
<div># under sip_profiles directory #</div>
<div><param name="context" value="inter2"/></div>
<div><param name="dialplan" value="ENUM"/></div>
<div> </div>
<div># user config file</div>
<div><variable name="user_context" value="inter2"/></div>
<div> </div>
<div> </div>
<div># enum.conf.xml</div>
<div><routes><br><route service="E2U+SIP" regex="sip:(.*)" replace="sofia/${sofia_profile_name}/$1"/></div>
<div> </div>
<div>Wondering can this ENUM work out ?</div>
<div><route service="E2U+SIP" regex="sip:^(.*)$\@${sophia_profile_name}" replace="sofia/${sophia_profile_name}/$1"/></div>
<div> </div>
<div>However I still think the FreeSwitch should do DNS , or SRV lookup first !</div>
<div> </div>
<div>It should not query ENUM first .</div>
<div>21 11.653138 210.2x.x.x -> 202.y.y.y DNS Standard query NAPTR <a href="http://2.9.9.9.e164.org">2.9.9.9.e164.org</a></div>
<div> </div>
<div># dialplan </div>
<div><action application="transfer" data="$1 enum"/ > this syntax also working !</div>
<div> </div>
<div>thanks !</div></div>