<div dir="ltr"><div class="gmail_quote">
<div dir="ltr">
<div dir="ltr" align="left"><font face="Verdana" color="#0000ff" size="2">Dear All Guru :</font></div>
<div dir="ltr" align="left"><font face="Verdana" color="#0000ff" size="2"></font> </div>
<div dir="ltr" align="left"><font face="Verdana" color="#0000ff" size="2">1.</font></div>
<div dir="ltr" align="left"><font face="Verdana" color="#0000ff" size="2">I am curious what's the relation between alias "name", "type" ?</font></div>
<div dir="ltr" align="left"><font face="Verdana" color="#0000ff" size="2">Does it affect the dialplan routing call ?</font></div>
<div dir="ltr" align="left"><font face="Verdana" color="#0000ff" size="2"></font> </div>
<div dir="ltr" align="left"><font face="Verdana" color="#0000ff" size="2">
<div>
<div><font face="Verdana" color="#0000ff" size="2"></font> </div>
<div><font face="Verdana" color="#0000ff" size="2">How to know more inside of this ?</font></div></div></font>
<div><font face="Verdana" color="#0000ff" size="2">[INFO] mod_dialplan_xml.c:222 dialplan_hunt() Processing 1526->1528@default</font></div></div>
<div><font face="Verdana" color="#0000ff" size="2"> ^^^^^^^^^</font><br></div></div>
<div dir="ltr" align="left"><font face="Verdana" color="#0000ff" size="2">From the FAQ:</font></div>
<div dir="ltr" align="left"><span><font face="Verdana" color="#0000ff">
<h3><font size="2">Q: How do I assign endpoints to contexts with different sets of extensions</font></h3>
<p><font size="2">Here are the different possible approaches: </font></p>
<ul>
<li><font size="2">Use 1 profile per context you want to route to (each one needs a distinct ip:port) </font></li></ul></font></span></div>
<div><font face="Verdana" color="#0000ff" size="2">[root@localhost dialplan]# netstat -aup<br>Active Internet connections (servers and established)<br>Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name<br>
udp 0 0 210.24y.y.y:sip *:* 3748/freeswitch<br>udp 0 0 210.24x.x.x:sip *:* 3748/freeswitch<br>udp 0 0 210.24y.y.y:5070 *:* 3748/freeswitch<br>
udp 0 0 210.24x.x.x:5070 *:* 3748/freeswitch<br>udp 0 0 210.24x.x.x:5080 *:* 3748/freeswitch<br></font></div>
<div><font face="Verdana" color="#0000ff" size="2"></font> </div>
<div><font face="Verdana" color="#0000ff" size="2"></font> </div>
<div><font face="Verdana" color="#0000ff" size="2">Sofia status still the same</font></div>
<div><font face="Verdana" color="#0000ff" size="2"></font><font face="Verdana" size="2"> Name Type Data State<br>=================================================================================================<br>
internal profile sip:mod_sofia@210.24x.x.x:5060 RUNNING (0)<br> external profile sip:mod_sofia@210.24x.x.x:5080 RUNNING (0)<br> nat profile sip:mod_sofia@210.24x.x.x:5070 RUNNING (0)<br>
default alias internal ALIASED<br> 210.24x.x.x alias internal ALIASED<br> inter2 profile sip:mod_sofia@210.24y.y.y:5060 RUNNING (0)<br>
210.24y.y.y alias inter2 ALIASED<br> outbound alias external ALIASED<br>=================================================================================================</font></div>
<div><font face="Verdana" color="#0000ff" size="2"></font> </div>
<div><font face="Verdana" color="#0000ff" size="2">2. </font></div>
<div><font face="Verdana" color="#0000ff" size="2"> <anti-action application="bridge" data="<a href="mailto:user/$%7Bdialed_ext%7D@$$%7Bdomain%7D%22/" target="_blank">user/${dialed_ext}@$${domain}"/</a>> --- this syntax working<br>
<anti-action application="bridge" data="<a href="mailto:sofia/profilename/$%7Bdialed_ext%7D@$$%7Bdomain%7D%22/" target="_blank">sofia/profilename/${dialed_ext}@$${domain}"/</a>> ---- while this not !</font></div>
<div><font face="Verdana" color="#0000ff" size="2"></font> </div>
<div><font face="Verdana" color="#0000ff" size="2">What is the syntax difference ?</font></div>
<div><font face="Verdana" color="#0000ff" size="2"></font> </div>
<div><font face="Verdana" color="#0000ff" size="2"></font> </div>
<div><font face="Verdana" color="#0000ff" size="2">FYI: setting files</font></div>
<div><font face="Verdana" color="#0000ff" size="2"></font> </div>
<div><font face="Verdana" color="#0000ff" size="2">sip profiles use the default config , and modify the correspoding parameter</font></div>
<div><font face="Verdana" color="#0000ff" size="2">profile name , context , domain </font></div>
<div> </div>
<div><font face="Verdana" color="#0000ff" size="2">[root@localhost sip_profiles]# ls -F<br>./ ../ external/ external.xml inter2.xml internal/ internal.xml nat/ nat2.xml nat.xml</font></div>
<div><font face="Verdana" color="#0000ff" size="2"></font> </div>
<div><font face="Verdana" color="#0000ff" size="2"><!-- <a href="http://wiki.freeswitch.org/wiki/Sofia_Configuration_Files" target="_blank">http://wiki.freeswitch.org/wiki/Sofia_Configuration_Files</a> --><br><profile name="inter2" domain="<a href="http://210.243.126.72/" target="_blank">210.243.126.72</a>"><br>
<!--aliases are other names that will work as a valid profile name for this profile--><br> <aliases><br> <alias name="<a href="http://210.243.126.72/" target="_blank">210.243.126.72</a>"/><br>
<alias name="inter2"/><br> </aliases><br></font></div>
<div><font face="Verdana" color="#0000ff" size="2"></font> </div>
<div><font face="Verdana" color="#0000ff" size="2">[root@localhost dialplan]# ls -F<br>./ default.xml default.xml.old extensions/ inter2.xml<br>../ default.xml.simpl-test features.xml public.xml</font></div>
<div><font face="Verdana" color="#0000ff" size="2"></font> </div>
<div><font face="Verdana" color="#0000ff" size="2">the most simple dialplan setting</font></div>
<div><font face="Verdana" color="#0000ff" size="2"><br>[root@localhost dialplan]# more default.xml<br><?xml version="1.0" encoding="utf-8"?><br><!-- <a href="http://wiki.freeswitch.org/wiki/Dialplan_XML" target="_blank">http://wiki.freeswitch.org/wiki/Dialplan_XML</a> --><br>
<include><br> <context name="default"></font></div>
<div> </div>
<div><font face="Verdana" color="#0000ff" size="2"> <!--<br> if the calling party is the called party, go to their VM<br> if the calling party is NOT the called party dial the extension<br> (1000-1019) for 30 seconds and go to voicemail if the<br>
call fails (continue_on_fail=true), otherwise hang up after a<br> successful bridge (hangup_after-bridge=true)<br> --></font></div>
<div> </div>
<div><font face="Verdana" color="#0000ff" size="2"> <extension name="Local_Extension"><br> <condition field="destination_number" expression="^(1[0-9][0-9][0-9])$"><br> <action application="set" data="dialed_ext=$1"/><br>
<action application="export" data="dialed_ext=$1"/><br> </condition></font></div>
<div> </div>
<div><font face="Verdana" color="#0000ff" size="2"> <condition field="destination_number" expression="^${caller_id_number}$"></font></div>
<div> </div>
<div><font face="Verdana" color="#0000ff" size="2"> <anti-action application="set" data="call_timeout=30"/></font></div>
<div> </div>
<div><font face="Verdana" color="#0000ff" size="2"> <anti-action application="set" data="hangup_after_bridge=true"/></font></div>
<div> </div>
<div><font face="Verdana" color="#0000ff" size="2"> <anti-action application="bridge" data="<a href="mailto:user/$%7Bdialed_ext%7D@$$%7Bdomain%7D%22/" target="_blank">user/${dialed_ext}@$${domain}"/</a>><br>
<!-- anti-action application="bridge" data="<a href="mailto:sofia/profilename/$%7Bdialed_ext%7D@$$%7Bdomain%7D%22/" target="_blank">sofia/profilename/${dialed_ext}@$${domain}"/</a> --><br>
<anti-action application="answer"/><br> </condition><br> </extension></font></div>
<div> </div>
<div><font face="Verdana" color="#0000ff" size="2"><br> </context><br></include><br></font></div>
<div>
<hr>
<font face="Tahoma" size="2"><b>From:</b> Jengjr Lee ( §õ¥¿¤§ ) <br><b>Sent:</b> Thursday, August 07, 2008 6:23 PM<br><b>To:</b> <a href="mailto:'freeswitch-users@lists.freeswitch.org'" target="_blank">'freeswitch-users@lists.freeswitch.org'</a><br>
<b>Subject:</b> dialplan of two profile users<br></font><br></div>
<div></div>
<div><font face="Verdana" size="2">Dear all :</font></div>
<div><font face="Verdana" size="2"></font> </div>
<div><span><font face="Verdana" size="2"> I would like to create 2 profiles which represent 2 company.</font></span></div>
<div><span><font face="Verdana" size="2">There will be the same extension no in these 2 profiles.</font></span></div>
<div><span><font face="Verdana" size="2"></font></span> </div>
<div><span><font face="Verdana" size="2">For example , one is "default" , another is "inter2".</font></span></div>
<div><span><font face="Verdana" size="2"></font></span> </div>
<div><span><font face="Verdana" size="2">I am not familiar with the dialplan file , command, logic , control ; </font></span></div>
<div><span><font face="Verdana" size="2">don't know how to control the </font></span></div>
<div><span><font face="Verdana" size="2">call from these 2 profile extensions.</font></span></div>
<div><span><font face="Verdana" size="2"></font></span> </div>
<div><span><font face="Verdana" size="2">Or is there any more info explain it deeply ?</font></span></div>
<div><span><font face="Verdana" size="2"></font></span> </div>
<div><span><font face="Verdana" size="2">thanks</font></span></div>
<div><span></span> </div>
<div><span><font face="Verdana" size="2"></font></span> </div>
<div><span><font face="Verdana" size="2"> Name Type Data State<br>=================================================================================================<br>
internal profile sip:mod_sofia@210.x.x.x:5060 RUNNING (0)<br> external profile sip:mod_sofia@210.x.x.x:5080 RUNNING (0)<br> nat profile sip:mod_sofia@210.x.x.x:5070 RUNNING (0)<br>
default alias internal ALIASED<br> 210.x.x.x alias internal ALIASED<br> inter2 profile sip:mod_sofia@210.y.y.y:5060 RUNNING (0)<br>
210.y.y.y alias inter2 ALIASED<br> outbound alias external ALIASED<br>=================================================================================================<br>
4 profiles 4 aliases</font></span></div>
<div> </div>
<div><span><font face="Verdana" size="2"><a href="mailto:freeswitch@localhost" target="_blank">freeswitch@localhost</a>> sofia_contact <a href="mailto:1526@210.x.x.x" target="_blank">1526@210.x.x.x</a><br>API CALL [sofia_contact(<a href="mailto:1526@210.x.x.x" target="_blank">1526@210.x.x.x</a>)] output:<br>
<a href="mailto:sofia/internal/1526@219.8.z.z:15421" target="_blank">sofia/internal/1526@219.8.z.z:15421</a><br></font></span></div><br></div><br></div>