<div dir="ltr"><p>Hello : </p>
<p>Is there anyone tested multiple sip profiles ? </p>
<p>>From the FAQ: <br>>Q: How do I assign endpoints to contexts with different sets of extensions <br>>Here are the different possible approaches: <br>>Use 1 profile per context you want to route to (each one needs a distinct >ip:port) </p>
<p>So I duplicate the sip profiles, internal , nat , external just give them another name and different ip to use . </p>
<p><a href="mailto:freeswitch@localhost">freeswitch@localhost</a>> sofia status<br>API CALL [sofia(status)] output:<br> Name Type Data State<br>=================================================================================================<br>
nat2 profile sip:mod_sofia@210.24y.y.y:5070 RUNNING (0)<br> nat profile sip:mod_sofia@210.24x.x.x:5070 RUNNING (0)<br> internal profile sip:mod_sofia@210.24x.x.x:5060 RUNNING (0)<br>
outbnd2 alias extern2 ALIASED<br> outbound alias external ALIASED<br> 210.24x.x.x alias inter2 ALIASED<br>
extern2 profile sip:mod_sofia@210.24y.y.y:5080 RUNNING (0)<br> 210.24y.y.y alias inter2 ALIASED<br> inter2 profile sip:mod_sofia@210.24y.y.y:5060 RUNNING (0)<br>
<font color="#ff0000">default</font> alias internal ALIASED<br> <font color="#ff0000">^^^^^^^^ does this affect dialplan routing ?</font></p>
<p> external profile <a href="http://sip:mod_sofia@210.243.126.69:5080">sip:mod_sofia@210.243.126.69:5080</a> RUNNING (0)<br>=================================================================================================<br>
6 profiles 5 aliases</p>
<p><br>FYI: setting files </p>
<p>sip profiles use the default config , and modify the correspoding parameter <br>profile name , context , domain </p>
<p><a href="mailto:root@localhost">root@localhost</a> sip_profiles# ls -F <br>./ ../ external/ external.xml inter2.xml internal/ internal.xml nat/ nat2.xml nat.xml </p>
<p><!-- <a href="http://wiki.freeswitch.org/wiki/Sofia_Configuration_Files">http://wiki.freeswitch.org/wiki/Sofia_Configuration_Files</a> --> <br><profile name="inter2" domain="210.24x.x.x"> <br>
<!--aliases are other names that will work as a valid profile name for this profile--> <br> <aliases> <br> <alias name="210.24x.x.x"/> <br> <alias name="inter2"/> <br> </aliases> </p>
<p><br><a href="mailto:root@localhost">root@localhost</a> dialplan# ls -F <br>./ default.xml default.xml.old extensions/ inter2.xml <br>../ default.xml.simpl-test features.xml public.xml </p>
<p>I also duplicate another pub2.xml for dialplan routing. </p>
<p><a href="mailto:freeswitch@localhost">freeswitch@localhost</a>> sofia_contact <a href="mailto:1526@210.24x.x.x">1526@210.24x.x.x</a> <br>API CALL sofia_contact(<a href="mailto:1526@210.24x.x.x">1526@210.24x.x.x</a>) output: <br>
<a href="mailto:sofia/inter2/1526@59.124.94.250:2342">sofia/inter2/1526@59.124.94.250:2342</a> </p>
<p><a href="mailto:freeswitch@localhost">freeswitch@localhost</a>> <br><a href="mailto:freeswitch@localhost">freeswitch@localhost</a>> 2008-08-12 13:31:58 NOTICE switch_channel.c:533 switch_channel_set_name() New Channel <a href="mailto:sofia/inter2/1526@210.243.126.72">sofia/inter2/1526@210.243.126.72</a> 9b9ae75d-142d-4931-956f-c6624c2d61d6 <br>
2008-08-12 13:31:58 INFO mod_dialplan_xml.c:222 dialplan_hunt() Processing 1526->1527@default <br> <font color="#ff0000">^^^^^^ why always go to "default" context , not the "inter2" ?</font> </p>
<p>2008-08-12 13:31:58 WARNING switch_ivr_originate.c:539 switch_ivr_originate() No origination URL specified! </p>
<p>Please someone kindly advise !! </p>
<p>Thanks </p></div>