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