Hiii, I am new to freeswitch. Prior to freeswitch i was using asterisk. I have 200 extensions working in my office and want to move all to freeswitch from asterisk. In asterisk, i can give codec selection and preferance in sip.conf to all extensions. In the same way i created 200 extensions under internal profile in freeswitch. Follwing is one example.... ----------------------------------------------------------------- <include> <user id="590"> <params> <param name="password" value="590"/> <param name="vm-password" value=""/> <param name="vm-enabled" value="true"/> <param name="inbound_codec_prefs" value="PCMA,H264"/> <param name="outbound_codec_prefs" value="PCMA,H264"/> </params> <variables> <variable name="accountcode" value=""/> <variable name="user_context" value="default"/> <variable name="max-calls" value="2"/> <variable name="bypass_media_after_bridge" value="no"/> </variables> </user> </include> ---------------------------------------------------------- Now when ever i called to 590 freeswitch sends all codecs to 590 sip phone other than defined in 590.xml. It is seding codes which is mentioned in my conf/sip_profiles/internal.xml and codec negotiation done on whatever codec my sip phone having. I want to use different codecs for different extensions. Is it common behaviour of Freeswitch ? Should i override codec prerfrance in my extension list from my internal profile or not ? If no, then is it that i have to create 200 profiles in freeswitch to solve this problem ? Please guide me and provide solution for the same Thanks in advance Bharat Lalcheta
Hi, You can set codec from dialplan. See http://wiki.freeswitch.org/wiki/Codec_negotiation make sure to set inbound-codec-negotiation from generous to greedy in your sip profile <param name="inbound-codec-negotiation" value="greedy"/> Regards, Zohair Raza On Fri, Jan 6, 2012 at 5:18 PM, Bharat Lalcheta <bharatlalcheta@gmail.com>wrote:
Hiii,
I am new to freeswitch. Prior to freeswitch i was using asterisk.
I have 200 extensions working in my office and want to move all to freeswitch from asterisk.
In asterisk, i can give codec selection and preferance in sip.conf to all extensions. In the same way i created 200 extensions under internal profile in freeswitch.
Follwing is one example.... ----------------------------------------------------------------- <include> <user id="590"> <params> <param name="password" value="590"/> <param name="vm-password" value=""/> <param name="vm-enabled" value="true"/> <param name="inbound_codec_prefs" value="PCMA,H264"/> <param name="outbound_codec_prefs" value="PCMA,H264"/> </params> <variables> <variable name="accountcode" value=""/> <variable name="user_context" value="default"/> <variable name="max-calls" value="2"/> <variable name="bypass_media_after_bridge" value="no"/> </variables> </user> </include> ----------------------------------------------------------
Now when ever i called to 590 freeswitch sends all codecs to 590 sip phone other than defined in 590.xml. It is seding codes which is mentioned in my conf/sip_profiles/internal.xml and codec negotiation done on whatever codec my sip phone having.
I want to use different codecs for different extensions.
Is it common behaviour of Freeswitch ? Should i override codec prerfrance in my extension list from my internal profile or not ?
If no, then is it that i have to create 200 profiles in freeswitch to solve this problem ?
Please guide me and provide solution for the same
Thanks in advance
Bharat Lalcheta
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
I highly would recommend that you change the name of those codecs to something else because you might be making matters worse later down the road On 2012-01-06 5:21 AM, "Bharat Lalcheta" <bharatlalcheta@gmail.com> wrote:
Hiii,
I am new to freeswitch. Prior to freeswitch i was using asterisk.
I have 200 extensions working in my office and want to move all to freeswitch from asterisk.
In asterisk, i can give codec selection and preferance in sip.conf to all extensions. In the same way i created 200 extensions under internal profile in freeswitch.
Follwing is one example.... ----------------------------------------------------------------- <include> <user id="590"> <params> <param name="password" value="590"/> <param name="vm-password" value=""/> <param name="vm-enabled" value="true"/> <param name="inbound_codec_prefs" value="PCMA,H264"/> <param name="outbound_codec_prefs" value="PCMA,H264"/> </params> <variables> <variable name="accountcode" value=""/> <variable name="user_context" value="default"/> <variable name="max-calls" value="2"/> <variable name="bypass_media_after_bridge" value="no"/> </variables> </user> </include> ----------------------------------------------------------
Now when ever i called to 590 freeswitch sends all codecs to 590 sip phone other than defined in 590.xml. It is seding codes which is mentioned in my conf/sip_profiles/internal.xml and codec negotiation done on whatever codec my sip phone having.
I want to use different codecs for different extensions.
Is it common behaviour of Freeswitch ? Should i override codec prerfrance in my extension list from my internal profile or not ?
If no, then is it that i have to create 200 profiles in freeswitch to solve this problem ?
Please guide me and provide solution for the same
Thanks in advance
Bharat Lalcheta
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
inbound_codec_prefs outbound_codec_prefs These are Sofia profile configuration options. They are NOT valid options for the directory UNLESS you're setting them as variable to use in your dialplan later. If you want to control codes on a per-user basis you have to set late negotiation and use the dialplan. On Fri, Jan 6, 2012 at 8:18 AM, Bharat Lalcheta <bharatlalcheta@gmail.com> wrote:
Hiii,
I am new to freeswitch. Prior to freeswitch i was using asterisk.
I have 200 extensions working in my office and want to move all to freeswitch from asterisk.
In asterisk, i can give codec selection and preferance in sip.conf to all extensions. In the same way i created 200 extensions under internal profile in freeswitch.
Follwing is one example.... ----------------------------------------------------------------- <include> <user id="590"> <params> <param name="password" value="590"/> <param name="vm-password" value=""/> <param name="vm-enabled" value="true"/> <param name="inbound_codec_prefs" value="PCMA,H264"/> <param name="outbound_codec_prefs" value="PCMA,H264"/> </params> <variables> <variable name="accountcode" value=""/> <variable name="user_context" value="default"/> <variable name="max-calls" value="2"/> <variable name="bypass_media_after_bridge" value="no"/> </variables> </user> </include> ----------------------------------------------------------
Now when ever i called to 590 freeswitch sends all codecs to 590 sip phone other than defined in 590.xml. It is seding codes which is mentioned in my conf/sip_profiles/internal.xml and codec negotiation done on whatever codec my sip phone having.
I want to use different codecs for different extensions.
Is it common behaviour of Freeswitch ? Should i override codec prerfrance in my extension list from my internal profile or not ?
If no, then is it that i have to create 200 profiles in freeswitch to solve this problem ?
Please guide me and provide solution for the same
Thanks in advance
Bharat Lalcheta
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Kristian Kielhofner
In theory he could use those variable names but it would involve some extra work ;) On 2012-01-06 7:24 AM, "Kristian Kielhofner" <kris@kriskinc.com> wrote:
inbound_codec_prefs outbound_codec_prefs
These are Sofia profile configuration options. They are NOT valid options for the directory UNLESS you're setting them as variable to use in your dialplan later.
If you want to control codes on a per-user basis you have to set late negotiation and use the dialplan.
On Fri, Jan 6, 2012 at 8:18 AM, Bharat Lalcheta <bharatlalcheta@gmail.com> wrote:
Hiii,
I am new to freeswitch. Prior to freeswitch i was using asterisk.
I have 200 extensions working in my office and want to move all to freeswitch from asterisk.
In asterisk, i can give codec selection and preferance in sip.conf to all extensions. In the same way i created 200 extensions under internal profile in freeswitch.
Follwing is one example.... ----------------------------------------------------------------- <include> <user id="590"> <params> <param name="password" value="590"/> <param name="vm-password" value=""/> <param name="vm-enabled" value="true"/> <param name="inbound_codec_prefs" value="PCMA,H264"/> <param name="outbound_codec_prefs" value="PCMA,H264"/> </params> <variables> <variable name="accountcode" value=""/> <variable name="user_context" value="default"/> <variable name="max-calls" value="2"/> <variable name="bypass_media_after_bridge" value="no"/> </variables> </user> </include> ----------------------------------------------------------
Now when ever i called to 590 freeswitch sends all codecs to 590 sip phone other than defined in 590.xml. It is seding codes which is mentioned in my conf/sip_profiles/internal.xml and codec negotiation done on whatever codec my sip phone having.
I want to use different codecs for different extensions.
Is it common behaviour of Freeswitch ? Should i override codec prerfrance in my extension list from my internal profile or not ?
If no, then is it that i have to create 200 profiles in freeswitch to solve this problem ?
Please guide me and provide solution for the same
Thanks in advance
Bharat Lalcheta
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Kristian Kielhofner
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (4)
-
Bharat Lalcheta
-
curriegrad2004
-
Kristian Kielhofner
-
Zohair Raza