From patb at apphostcanada.ca Fri Oct 2 15:48:14 2015
From: patb at apphostcanada.ca (Pat Beirne)
Date: Fri, 2 Oct 2015 07:48:14 -0400
Subject: [Freeswitch-dev] Question about switch_channel_get_variable()
Message-ID: <560E6EFE.1000808@apphostcanada.ca>
I'd like to ask a question about switch_channel_get_variable()
In the include/switch_channel, it's a #define with the 3rd field set to TRUE
#define switch_channel_get_variable(_c, _v)
switch_channel_get_variable_dup(_c, _v, SWITCH_TRUE, -1)
When I tunnel into the src/switch_channel.c code, it seems that this
"TRUE" should invoke the _strdup version, and create a return value
taken from the pool
And indeed, my testing shows that every time I call
switch_channel_get_variable(), I get a new distinct pointer..........
but..........the return value is "const char*" so I can't free it
And NONE of the sample code shows the return value being free'd;
sometimes the return value isn't even assigned.....it's just tested and
discarded
for example: newest FS1.6, src/switch_core_state_machine.c, line 264:
if (switch_channel_get_variable(session->channel, "recovered")
&& !switch_channel_test_flag(session->channel, CF_RECOVERED)) {
switch_channel_set_flag(session->channel, CF_RECOVERED);
Is this a problem in the code or a problem in my understanding?
Pat
From ssinyagin at gmail.com Wed Oct 7 02:03:14 2015
From: ssinyagin at gmail.com (Stanislav Sinyagin)
Date: Wed, 7 Oct 2015 00:03:14 +0200
Subject: [Freeswitch-dev] choosing the right place for smartos specifics
Message-ID:
I'm going to add a few scripts which automate the build under SmartOS,
and also the SMF manifest which launches the service.
Where is it the best to place within the source tree?
Probably build/smartos ?
or simply /smartos from the top hierarchy?
Or maybe a new "os" folder, and "os/smartos" under it, so that we have
room for other OS'es? Debian is an exception, but it's a default OS
anyway.
From tomas.boros92 at gmail.com Sun Oct 11 13:47:43 2015
From: tomas.boros92 at gmail.com (Tomas Boros)
Date: Sun, 11 Oct 2015 11:47:43 +0200
Subject: [Freeswitch-dev] [mod_callcenter] dynamic queues
Message-ID:
Hello fs developers
I am working on a feature for mod_callcenter, which will enable creation of
queues via fs_cli.
Queues right now can be created via xml or DB backend, but for a clustered
environment I think it would be usable to create and destroy queues live.
I am new to the code, so I need some help:
1. I found, that number of arguments for fs_cli is limited to 6. Is it
possible to override this limit?
2. Do the freeswitch code has builtin variable validators? I found
something like queue_set_config in the code, which looks like a it, but it
is used in context with function switch_xml_config_parse_event, which loads
and validates the data from XML files. I need to validate the values coming
from arguments of the function.
3. Do you think this is simply a correct approach of creating queues, do
this make sense :) ?
Thank you,
Thomas Boros
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20151011/a08c5d6f/attachment-0001.html
From krice at freeswitch.org Mon Oct 12 21:08:53 2015
From: krice at freeswitch.org (Ken Rice)
Date: Mon, 12 Oct 2015 12:08:53 -0500
Subject: [Freeswitch-dev] Freeswitch IAX2 Support
In-Reply-To:
References:
Message-ID: <010a01d10510$acfaaca0$06f005e0$@freeswitch.org>
FreeSWITCH does not support IAX2. There are not plans to add support for this protocol.
From: freeswitch-dev-bounces at lists.freeswitch.org [mailto:freeswitch-dev-bounces at lists.freeswitch.org] On Behalf Of Bharat Lalcheta
Sent: Wednesday, August 26, 2015 5:08 AM
To: freeswitch-dev at lists.freeswitch.org
Subject: [Freeswitch-dev] Freeswitch IAX2 Support
Hello All,
I have one DIDWW DID configured with IAX2 protocol and routed to this server. When i am dialling this DID, i am getting calls on server
? on 4569 port?
which i checked in ngrep. However, there is no event on freeswitch. Just for your information, I configured mod_opal on both latest 1.2 and 1.4 version and found same result for both.
Can anyone please
?guide
me what i need to do additionally to get IAX2 calls on freeswitch?
?Or can anyone guide me how to troubleshoot this issue ??
Do i need to configure anything for IAX2 ?
Is there any thi
?ng?
i can test to check it is configured and working properly ?
? ?
Thanks & Regards,
Bharat Lalcheta
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20151012/7bbac7b4/attachment.html
From mike at jerris.com Mon Oct 12 21:33:11 2015
From: mike at jerris.com (Michael Jerris)
Date: Mon, 12 Oct 2015 13:33:11 -0400
Subject: [Freeswitch-dev] [Freeswitch-users] FreeSWITCH Unstable Repo
In-Reply-To:
References:
<39F9F70C-6B5C-4F5D-9B49-7F08BDCB08E4@jerris.com>
<5588A6A6.5000900@quentustech.com>
Message-ID:
Both would be fine, the tarballs are re-generated from the git source, so git is probably the easiest if the packaging system supports using git as the source. This is the general rule, in some cases you may have to do a bit more work. Some of these libraries we are the defacto upstream for, others we are just needing to rebuild against different versions of other libraries upstream, for example, we want to use libpng1.6 so we have transparent png support, which is required for some video features, and we require newer libvpx, these newer libs require us to relink libav with these newer libraries. If your distro already has suitable versions of these, this may not be necessary.
> On Jun 25, 2015, at 1:28 PM, Bernd Kuhls wrote:
>
> William King wrote in
> news:5588A6A6.5000900 at quentustech.com:
>
>> Can you create a pull request for these please?
>
>> On 6/18/15 1:16 PM, Bernd Kuhls wrote:
>
>>> Second question:
>>> Currently I am using https://freeswitch.org/stash/projects/SD as source
>>> for the following libs: silk, g7221, codec2, soundtouch, broadvoice and
>>> ilbc. Should I continue to use the git repo as upstream source or is it
>>> a better idea to use the tarballs from
>>> http://files.freeswitch.org/downloads/libs/? When providing a package
>>> to the buildroot project I need to make sure that the upstream source
>>> is a valid source for the foreseeable future.
>
> Hi,
>
> no problem after I received an answer to my second question ;)
>
> Regards, Bernd
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-dev mailing list
> FreeSWITCH-dev at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
> http://www.freeswitch.org
From mike at jerris.com Mon Oct 12 21:33:52 2015
From: mike at jerris.com (Michael Jerris)
Date: Mon, 12 Oct 2015 13:33:52 -0400
Subject: [Freeswitch-dev] libesl.a is no longer being built ???
In-Reply-To: <55AFD236.9090108@gmail.com>
References: <55AFD236.9090108@gmail.com>
Message-ID: <6067B990-80A3-4A3E-A03F-D65B5E067F1E@jerris.com>
I think it should be, if its not building the library, please file a jira for this.
> On Jul 22, 2015, at 1:26 PM, Thomas Chen wrote:
>
> in previous version (at least 1.5.6b, when building event socket, a copy
> of libesl.a is built
> in libs/esl/ directory....
> i just loaded the 1.5.14, it does not seem to build libesl any more...
> is there a reason for not
> building it ??? is there a replacement somewhere else ?
>
> thanks
>
From mike at jerris.com Mon Oct 12 21:38:22 2015
From: mike at jerris.com (Michael Jerris)
Date: Mon, 12 Oct 2015 13:38:22 -0400
Subject: [Freeswitch-dev] Question about switch_channel_get_variable()
In-Reply-To: <560E6EFE.1000808@apphostcanada.ca>
References: <560E6EFE.1000808@apphostcanada.ca>
Message-ID: <2E24205C-557D-4118-98A6-D85186BE7413@jerris.com>
its dupd on the session pool so will be freed when the session gets destroyed. We did recently change a number of places that were safe to use a non dup version of that. I'm sure there are other places, but as long as your code isn't polling full speed on variable values, it should not cause any problems. If you want to get a non duped version you can, but you would need to do some extra work to make sure the value isn't freed before you use it (could be instantly) so some mutexing is required, duping on the pool frees us from this requirement with typically very little memory cost. Its a tradeoff thats usually a win (although not in all cases)
> On Oct 2, 2015, at 7:48 AM, Pat Beirne wrote:
>
> I'd like to ask a question about switch_channel_get_variable()
>
> In the include/switch_channel, it's a #define with the 3rd field set to TRUE
>
>
> #define switch_channel_get_variable(_c, _v)
> switch_channel_get_variable_dup(_c, _v, SWITCH_TRUE, -1)
>
>
> When I tunnel into the src/switch_channel.c code, it seems that this
> "TRUE" should invoke the _strdup version, and create a return value
> taken from the pool
>
> And indeed, my testing shows that every time I call
> switch_channel_get_variable(), I get a new distinct pointer..........
> but..........the return value is "const char*" so I can't free it
>
> And NONE of the sample code shows the return value being free'd;
> sometimes the return value isn't even assigned.....it's just tested and
> discarded
>
> for example: newest FS1.6, src/switch_core_state_machine.c, line 264:
>
> if (switch_channel_get_variable(session->channel, "recovered")
> && !switch_channel_test_flag(session->channel, CF_RECOVERED)) {
> switch_channel_set_flag(session->channel, CF_RECOVERED);
>
>
> Is this a problem in the code or a problem in my understanding?
>
> Pat
>
From mike at jerris.com Mon Oct 12 21:38:53 2015
From: mike at jerris.com (Michael Jerris)
Date: Mon, 12 Oct 2015 13:38:53 -0400
Subject: [Freeswitch-dev] choosing the right place for smartos specifics
In-Reply-To:
References:
Message-ID:
I'd put them in a subdir in the "build" dir
> On Oct 6, 2015, at 6:03 PM, Stanislav Sinyagin wrote:
>
> I'm going to add a few scripts which automate the build under SmartOS,
> and also the SMF manifest which launches the service.
>
> Where is it the best to place within the source tree?
> Probably build/smartos ?
> or simply /smartos from the top hierarchy?
>
> Or maybe a new "os" folder, and "os/smartos" under it, so that we have
> room for other OS'es? Debian is an exception, but it's a default OS
> anyway.
From mike at jerris.com Mon Oct 12 21:41:33 2015
From: mike at jerris.com (Michael Jerris)
Date: Mon, 12 Oct 2015 13:41:33 -0400
Subject: [Freeswitch-dev] Safely Traversing call lists
In-Reply-To: <55F80460.6080201@themenz.biz>
References: <55F80460.6080201@themenz.biz>
Message-ID: <4419CAD8-F1BF-4B1D-B527-C6D4AB57927D@jerris.com>
check out similar function that could show you how to do the locking and iterating safely
switch_core_session_hupall_matching_var_ans
> On Sep 15, 2015, at 7:43 AM, Ronnie Beck wrote:
>
> Hi All,
>
> I have just a small question about the thread safety of the following code:
>
> switch_console_callback_match_t *callList = switch_core_session_findall();
> for( node = callList->head; node; node = node->next )
> {
> switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "(%s)
> Checking session '%s'\n", __FUNCTION__, node->val);
> }
>
> I just want to check some specific channel variables on all the active
> calls on a Freeswitch server. However it seems to me that while
> traversing the list, it is possible that "node" could be deleted by
> freeswitch while my code is still using it. Is there some sort of
> protection I should be doing in order to safely traverse the list and
> investigate each session?
>
> I thought I could lock each session as I interrogate the session however
> this doesn't protect against the situation where the "next" node is
> deleted as my code switches to that node. In C++, if you traverse a
> list with an iterator, changes to the list invalidate the iterator. So
> one must obtain a new iterator each time the list is changed. But I
> don't see how to do this with the list provided by
> switch_core_session_findall().
>
> Any tips?
>
> Cheers,
>
> Ronnie Beck
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-dev mailing list
> FreeSWITCH-dev at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
> http://www.freeswitch.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20151012/e548e131/attachment.html
From mike at jerris.com Mon Oct 12 21:43:03 2015
From: mike at jerris.com (Michael Jerris)
Date: Mon, 12 Oct 2015 13:43:03 -0400
Subject: [Freeswitch-dev] About mod_java Console output (stdout/stderr)
In-Reply-To:
References:
Message-ID: <7798E9DF-C9AA-4CE7-9CF3-6CD807152E41@jerris.com>
in example taken from ApplicationLauncher.java:
freeswitch.console_log("err", "Error registering originate state handler");
> On Aug 20, 2015, at 9:01 PM, Pong Lam wrote:
>
> Hi all,
>
>
> By default , System.out.println will output to stdout and throwing Exception will output to stderr.
>
> But I cannot find any output in the freeswitch.log, please advice?
>
>
> Regards
>
> Pong
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-dev mailing list
> FreeSWITCH-dev at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
> http://www.freeswitch.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20151012/bd7bff37/attachment.html
From mike at jerris.com Mon Oct 12 21:45:29 2015
From: mike at jerris.com (Michael Jerris)
Date: Mon, 12 Oct 2015 13:45:29 -0400
Subject: [Freeswitch-dev] [mod_callcenter] dynamic queues
In-Reply-To:
References:
Message-ID: <3E784689-8241-46A0-AB41-4902EEB2BB8E@jerris.com>
It might require some refactoring of those functions to split the validation from the xml parsing. Italo might have some more comments on a best approach.
> On Oct 11, 2015, at 5:47 AM, Tomas Boros wrote:
>
> Hello fs developers
>
> I am working on a feature for mod_callcenter, which will enable creation of queues via fs_cli.
> Queues right now can be created via xml or DB backend, but for a clustered environment I think it would be usable to create and destroy queues live.
>
> I am new to the code, so I need some help:
>
> 1. I found, that number of arguments for fs_cli is limited to 6. Is it possible to override this limit?
>
> 2. Do the freeswitch code has builtin variable validators? I found something like queue_set_config in the code, which looks like a it, but it is used in context with function switch_xml_config_parse_event, which loads and validates the data from XML files. I need to validate the values coming from arguments of the function.
>
> 3. Do you think this is simply a correct approach of creating queues, do this make sense :) ?
>
> Thank you,
> Thomas Boros
From jalsot at gmail.com Mon Oct 12 22:18:59 2015
From: jalsot at gmail.com (Tamas Jalsovszky)
Date: Mon, 12 Oct 2015 20:18:59 +0200
Subject: [Freeswitch-dev] Freeswitch IAX2 Support
In-Reply-To: <010a01d10510$acfaaca0$06f005e0$@freeswitch.org>
References:
<010a01d10510$acfaaca0$06f005e0$@freeswitch.org>
Message-ID:
You can use SIP with DIDWW. It would be easier than trying IAX2.
T.
On Mon, Oct 12, 2015 at 7:08 PM, Ken Rice wrote:
> FreeSWITCH does not support IAX2. There are not plans to add support for
> this protocol.
>
>
>
>
>
>
>
> *From:* freeswitch-dev-bounces at lists.freeswitch.org [mailto:
> freeswitch-dev-bounces at lists.freeswitch.org] *On Behalf Of *Bharat
> Lalcheta
> *Sent:* Wednesday, August 26, 2015 5:08 AM
> *To:* freeswitch-dev at lists.freeswitch.org
> *Subject:* [Freeswitch-dev] Freeswitch IAX2 Support
>
>
>
> Hello All,
>
>
>
> I have one DIDWW DID configured with IAX2 protocol and routed to this
> server. When i am dialling this DID, i am getting calls on server
>
> ? on 4569 port?
>
> which i checked in ngrep. However, there is no event on freeswitch. Just
> for your information, I configured mod_opal on both latest 1.2 and 1.4
> version and found same result for both.
>
>
>
> Can anyone please
>
> ?guide
>
> me what i need to do additionally to get IAX2 calls on freeswitch?
>
> ?Or can anyone guide me how to troubleshoot this issue ??
>
>
>
> Do i need to configure anything for IAX2 ?
>
>
>
> Is there any thi
>
> ?ng?
>
> i can test to check it is configured and working properly ?
>
> ? ?
>
>
>
> Thanks & Regards,
>
>
>
> Bharat Lalcheta
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-dev mailing list
> FreeSWITCH-dev at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
> http://www.freeswitch.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20151012/446efe32/attachment-0001.html
From tomas.boros92 at gmail.com Mon Oct 12 22:39:34 2015
From: tomas.boros92 at gmail.com (Tomas Boros)
Date: Mon, 12 Oct 2015 20:39:34 +0200
Subject: [Freeswitch-dev] [mod_callcenter] dynamic queues
In-Reply-To: <3E784689-8241-46A0-AB41-4902EEB2BB8E@jerris.com>
References:
<3E784689-8241-46A0-AB41-4902EEB2BB8E@jerris.com>
Message-ID:
Hello,
I have already created a pull request for this.
https://freeswitch.org/stash/projects/FS/repos/freeswitch/pull-requests/553/overview
On 12 October 2015 at 19:45, Michael Jerris wrote:
> It might require some refactoring of those functions to split the
> validation from the xml parsing. Italo might have some more comments on a
> best approach.
>
> > On Oct 11, 2015, at 5:47 AM, Tomas Boros
> wrote:
> >
> > Hello fs developers
> >
> > I am working on a feature for mod_callcenter, which will enable creation
> of queues via fs_cli.
> > Queues right now can be created via xml or DB backend, but for a
> clustered environment I think it would be usable to create and destroy
> queues live.
> >
> > I am new to the code, so I need some help:
> >
> > 1. I found, that number of arguments for fs_cli is limited to 6. Is it
> possible to override this limit?
> >
> > 2. Do the freeswitch code has builtin variable validators? I found
> something like queue_set_config in the code, which looks like a it, but it
> is used in context with function switch_xml_config_parse_event, which loads
> and validates the data from XML files. I need to validate the values coming
> from arguments of the function.
> >
> > 3. Do you think this is simply a correct approach of creating queues, do
> this make sense :) ?
> >
> > Thank you,
> > Thomas Boros
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-dev mailing list
> FreeSWITCH-dev at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
> http://www.freeswitch.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20151012/02a82a1d/attachment.html
From ben at langfeld.co.uk Mon Oct 12 23:08:45 2015
From: ben at langfeld.co.uk (Ben Langfeld)
Date: Mon, 12 Oct 2015 16:08:45 -0300
Subject: [Freeswitch-dev] Upper or Pass thru Registration
In-Reply-To: <90690DEF-354B-453E-B3A3-98DB343BFB8F@cloudoip.com>
References: <90690DEF-354B-453E-B3A3-98DB343BFB8F@cloudoip.com>
Message-ID:
For a WebRTC gateway which had to provide compatibility with a SIP
registrar which did not support Websockets, Path or Outbound, I fudged a
similar scenario using Kamailio with some success. FreeSWITCH was used as a
media gateway terminating DTLS-SRTP and ICE. Doubtless it would have been
more elegant to do this in a FreeSWITCH module, but that would have taken a
lot longer to figure out than throwing up a somewhat funky Kamailio
configuration.
I'm curious what your use-case is.
On 18 September 2015 at 00:26, Abraham Celik wrote:
> Hi All,
>
> Ive googled and searched rough the forum, and i can?t see that anyone has
> successfully implemented Upper registration on Freeswitch.
>
> I see that Sangoma has implemented the feature and mentioned that they
> will upload it back in a change window, but that was a few years ago.
>
> Has anyone been successful?
>
> Regards,
> Abraham
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-dev mailing list
> FreeSWITCH-dev at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
> http://www.freeswitch.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20151012/e1ce324c/attachment.html
From tomas.boros92 at gmail.com Tue Oct 13 12:10:39 2015
From: tomas.boros92 at gmail.com (Tomas Boros)
Date: Tue, 13 Oct 2015 10:10:39 +0200
Subject: [Freeswitch-dev] FreeSWITCH and Twilio
In-Reply-To:
References:
Message-ID:
Im not experienced with Twilio, but as I see from the docu, they're
expecting E.164 format which is +45... in your case.
Check out https://en.wikipedia.org/wiki/E.164
Rewrite the destination and source via regex f ex
and
Or just try to write to their support, problably will give you an answer,
whats wrong.
Thomas
On 23 July 2015 at 09:21, Michael Nielsen wrote:
> Hello everyone,
>
> I'm trying to setup FreeSWITCH with Twilio - to place outbound calls.
>
> I've created a SIP trunk in Twilio and are now trying to terminate calls
> via Twilio - all 10 digit calls should go this way (2 digit country code
> and 8 digit number - Danish numbers).
>
> This is my twilio.xml in sip_profiles/external:
>
>
>
>
>
>
>
>
>
>
> This is my 02_twilio.xml in dialplan/default/:
>
>
>
>
>
> data="effective_caller_id_number=${outbound_caller_id_number}"/>
> data="effective_caller_id_name=${outbound_caller_id_name}"/>
> data="sofia/gateway/Twilio-outbound/$1"/>
>
>
>
>
> When I try and make a call for a Danish number (for example 4512345678) I
> get a "Bad Request 400".
>
> This is my FS log:
>
> freeswitch at MY-SIP> 2015-07-23 07:19:45.745254 [NOTICE]
> switch_channel.c:1075 New Channel sofia/internal/
> 4561912233 at MY-SIP.MY-DOMAIN.com [4af1a50e-5145-4ad8-8b9a-499a27e9e3ec]
> 2015-07-23 07:19:45.905238 [INFO] mod_dialplan_xml.c:635 Processing
> 4561912233 <4561912233>->4512345678 in context default
> 2015-07-23 07:19:45.905238 [NOTICE] switch_channel.c:1075 New Channel
> sofia/external/4512345678 [54267cad-615c-478a-9ecc-61950a995068]
> 2015-07-23 07:19:45.905238 [NOTICE] sofia.c:7543 Hangup
> sofia/external/4512345678 [CS_CONSUME_MEDIA] [NORMAL_TEMPORARY_FAILURE]
> 2015-07-23 07:19:45.925245 [INFO] mod_dptools.c:3276 Originate Failed.
> Cause: NORMAL_TEMPORARY_FAILURE
> 2015-07-23 07:19:45.925245 [NOTICE] switch_channel.c:4747 Hangup
> sofia/internal/4561912233 at MY-SIP.MY-DOMAIN.com [CS_EXECUTE]
> [NORMAL_TEMPORARY_FAILURE]
> 2015-07-23 07:19:45.925245 [NOTICE] switch_core_session.c:1641 Session 47
> (sofia/internal/4561912233 at MY-SIP.MY-DOMAIN.com) Ended
> 2015-07-23 07:19:45.925245 [NOTICE] switch_core_session.c:1645 Close
> Channel sofia/internal/4561912233 at MY-SIP.MY-DOMAIN.com [CS_DESTROY]
> 2015-07-23 07:19:45.925245 [NOTICE] switch_core_session.c:1641 Session 48
> (sofia/external/4512345678) Ended
> 2015-07-23 07:19:45.925245 [NOTICE] switch_core_session.c:1645 Close
> Channel sofia/external/4512345678 [CS_DESTROY]
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-dev mailing list
> FreeSWITCH-dev at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
> http://www.freeswitch.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20151013/4fd308fc/attachment.html
From eschmidbauer at gmail.com Tue Oct 13 16:01:51 2015
From: eschmidbauer at gmail.com (E. Schmidbauer)
Date: Tue, 13 Oct 2015 08:01:51 -0400
Subject: [Freeswitch-dev] [mod_callcenter] dynamic queues
In-Reply-To:
References:
<3E784689-8241-46A0-AB41-4902EEB2BB8E@jerris.com>
Message-ID:
Tomas,
You can already dynamically add/remove queues by using mod_xml_curl +
callcenter API
To add a queue on the fly:
1. update xml (mod_xml_curl)
2. fs_cli> callcenter_config queue load test-queue
FS will make a request to your xml-curl server with something like this:
[section] => 'configuration'
[tag_name] => 'configuration'
[key_name] => 'name'
[key_value] => 'callcenter.conf'
[Event-Calling-Function] => 'load_queue'
[CC-Queue] => 'test-queue'
You can also use the same steps to add/remove agents and tiers.
Thanks,
Emmanuel
On Mon, Oct 12, 2015 at 2:39 PM, Tomas Boros
wrote:
> Hello,
>
> I have already created a pull request for this.
>
>
> https://freeswitch.org/stash/projects/FS/repos/freeswitch/pull-requests/553/overview
>
>
> On 12 October 2015 at 19:45, Michael Jerris wrote:
>
>> It might require some refactoring of those functions to split the
>> validation from the xml parsing. Italo might have some more comments on a
>> best approach.
>>
>> > On Oct 11, 2015, at 5:47 AM, Tomas Boros
>> wrote:
>> >
>> > Hello fs developers
>> >
>> > I am working on a feature for mod_callcenter, which will enable
>> creation of queues via fs_cli.
>> > Queues right now can be created via xml or DB backend, but for a
>> clustered environment I think it would be usable to create and destroy
>> queues live.
>> >
>> > I am new to the code, so I need some help:
>> >
>> > 1. I found, that number of arguments for fs_cli is limited to 6. Is it
>> possible to override this limit?
>> >
>> > 2. Do the freeswitch code has builtin variable validators? I found
>> something like queue_set_config in the code, which looks like a it, but it
>> is used in context with function switch_xml_config_parse_event, which loads
>> and validates the data from XML files. I need to validate the values coming
>> from arguments of the function.
>> >
>> > 3. Do you think this is simply a correct approach of creating queues,
>> do this make sense :) ?
>> >
>> > Thank you,
>> > Thomas Boros
>>
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://wiki.freeswitch.org
>> http://www.cluecon.com
>>
>> FreeSWITCH-dev mailing list
>> FreeSWITCH-dev at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
>> http://www.freeswitch.org
>>
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-dev mailing list
> FreeSWITCH-dev at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
> http://www.freeswitch.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20151013/0ca7912d/attachment-0001.html
From aronp at guaranteedplus.com Tue Oct 13 08:00:15 2015
From: aronp at guaranteedplus.com (Podrigal, Aron)
Date: Tue, 13 Oct 2015 00:00:15 -0400
Subject: [Freeswitch-dev] Strange mod_portaudio permissions issue
In-Reply-To: <20150827223016.GB15381@hau.nz>
References: <20150827223016.GB15381@hau.nz>
Message-ID:
Hey Mark.
mod_portaudio is based on portaudio I would suggest
you try a small program to get the device count using portaudio directly
while running as user freeswitch:daemon and strace to get a better view
where that fails.
I attached a small program, give it a shot.
Install libs
sudo apt-get install portaudio19-dev
gcc devices.c -o devices -lportaudio
Regards
On Thu, Aug 27, 2015 at 6:30 PM, Mark Haun wrote:
> Hi,
>
> I posted this to freeswitch-users but did not receive any replies.
> Probably
> no one but the developers have a chance to know what is happening, so I'm
> posting it here in the hope that it jogs someone's memory. It would be
> nice
> to understand it properly.
>
> ---
>
> I built freeswitch version 1.7.0+git~20150730T192909Z~ab7f83c654~32bit for
> my ARM-based home server (an NVIDIA Jetson board), with the intention of
> using mod_portaudio with a wireless USB headset for my main home phone. It
> works well when running freeswitch directly as root, but when I configured
> freeswitch to run at system startup, mod_portaudio could no longer find any
> audio devices.
>
> No problem, I thought, it's a simple permissions issue. I am using the
> example debian init script from the wiki (this is a Jessie install with
> SysV
> init rather than systemd). It runs freeswitch as user freeswitch, group
> daemon using the -u and -g command-line options. So I added "freeswitch"
> to
> the audio group, then used sudo to verify that I could play sound files
> with
> "aplay" as the freeswitch user. That worked, but it did not solve the
> mod_portaudio failure.
>
> Thinking there must be an issue with portaudio separate from ALSA, I
> fetched
> and built the "pa_devs" utility which enumerates and prints the available
> audio devices. (This is basically what mod_portaudio is doing on startup.)
> Running as the freeswitch user, that worked too. Hmmmm.
>
> I tried running freeswitch from the command line using sudo rather than the
> -u and -g options, i.e.
>
> $ sudo -u freeswitch /usr/local/freeswitch/bin/freeswitch -nc
>
> and that worked as well! Then I started experimenting with -u and -g and
> discovered that
>
> $ /usr/local/freeswitch/bin/freeswitch -nc -u freeswitch
>
> allows mod_portaudio to load correctly, whereas
>
> $ /usr/local/freeswitch/bin/freeswitch -nc -u freeswitch -g daemon
>
> causes mod_portaudio to fail.
>
> Can anyone explain what's happening here? In both cases the process UID,
> GID, EUID, EGID, FUID, and FGID are the same (freeswitch:daemon) as
> displayed with "ps xao pid,uid,gid,euid,egid,fuid,fgid". Could this be a
> bug in freeswitch? There are a couple of threads from 2-3 years ago in the
> archives, where mod_portaudio permissions issues were never resolved and
> the
> solution remained a mystery.
>
> For the time being I guess this (not using -g) is a workaround, but I'd
> sure
> like to understand what is going on.
>
> Mark
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-dev mailing list
> FreeSWITCH-dev at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
> http://www.freeswitch.org
>
--
Aron Podrigal
-
'1000001', '1110010', '1101111', '1101110' '1010000', '1101111',
'1100100', '1110010', '1101001', '1100111', '1100001', '1101100'
P: '2b', '31', '33', '34', '37', '34', '35', '38', '36', '30', '39', '39'
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20151013/c3da3057/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: devices.c
Type: text/x-csrc
Size: 650 bytes
Desc: not available
Url : http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20151013/c3da3057/attachment.bin
From sushil.tripathi at knowlarity.com Tue Oct 13 16:32:38 2015
From: sushil.tripathi at knowlarity.com (Sushil Tripathi)
Date: Tue, 13 Oct 2015 18:02:38 +0530
Subject: [Freeswitch-dev] Freeswitch ignoring BYE sent by LegA when
ignore_early_media=True
Message-ID:
I need to play a hold music file on LegA while Freeswitch tries to
bridge call to one of the listed numbers. Here in dial plan I have used
only one number.
If I use following dialplan without ignore_early_media=true in bridge, Leg
A is able to disconnect the call when Freeswitch is trying to bridge the
call to one of the number in legB, but if ignore_early_media is true in
that case BYE sent by Leg A is ignored by freeswitch causing call to keep
ringing at LegB.
While debugging for the root cause of this issue we found that this bug is
because of side-effect of commit-id
"3e00d270d7477a63b3c2e845b5473e6e7e3f1cfc" which was added to fix bug
https://freeswitch.org/jira/browse/FS-6006 . Now we are not sure whether to
remove this patch or not. Can you please suggest how to proceed further.
Thanks & Regards,
Sushil Tripathi
+91-9910700668
--
SuperReceptionist is now available on Android mobiles. Track your business
on the go with call analytics, recordings, insights and more: Download the
app here
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20151013/589aac0d/attachment.html
From ronybeck at themenz.biz Tue Oct 13 21:13:48 2015
From: ronybeck at themenz.biz (Ronnie Beck)
Date: Tue, 13 Oct 2015 19:13:48 +0200
Subject: [Freeswitch-dev] TALK NOTALK Events not Fired
Message-ID: <561D3BCC.1030309@themenz.biz>
Hi All,
I have been looking into the events TALK and NOTALK. I don't see them
firing and I am not sure why. I have added the following variables to
the dialplan:
In my module, I am trying to catch the events by binding an event
handler here like so:
switch_event_bind("CALLER TALKING", SWITCH_EVENT_TALK,
SWITCH_EVENT_SUBCLASS_ANY, vad_start_talking , NULL);
switch_event_bind("CALLER NOT TALKING", SWITCH_EVENT_NOTALK,
SWITCH_EVENT_SUBCLASS_ANY, vad_stop_talking , NULL);
I read a suggestion in the mailing list archives that one should use the
event type "SWITCH_EVENT_CUSTOM" with a subtype of
"conference::maintenance". I tried this also but I don't think my
problem is that I am not catching the event but rather the event is
simply never fired. Has anyone a working example of TALK and NOTALK
event handling?
Many thanks,
Ronnie
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20151013/0df9b3a6/attachment.html
From Alexander.Haugg at c4b.de Fri Oct 16 13:11:41 2015
From: Alexander.Haugg at c4b.de (Alexander Haugg)
Date: Fri, 16 Oct 2015 09:11:41 +0000
Subject: [Freeswitch-dev] Full Video/Video Conference support on Windows?
Message-ID:
Hi All
I'm working signs some weeks with the actual FreeSwitch (1.7...) and the new video features on Ubuntu Linux (well done, thanks!).
But (unfortunately) I need this on windows too.
Yesterday I was building the newest git version on windows with VS 2015 as x64 release version without problems, but without the video relevant projects (mod_vpx and other).
I'd found this jira ticket. video conference block in windows
I there a plan or a roadmap for a presumptive do date?
Thanks a lot!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20151016/8be09b50/attachment-0001.html
From brian at freeswitch.org Fri Oct 16 13:16:05 2015
From: brian at freeswitch.org (Brian West)
Date: Fri, 16 Oct 2015 05:16:05 -0400
Subject: [Freeswitch-dev] Full Video/Video Conference support on Windows?
In-Reply-To:
References:
Message-ID:
this will require a lot of work and the community to step up and assist in
getting all the deps compiled on windows properly.
On Friday, October 16, 2015, Alexander Haugg wrote:
> Hi All
>
>
>
> I?m working signs some weeks with the actual FreeSwitch (1.7?) and the new
> video features on Ubuntu Linux (well done, thanks!).
>
> But (unfortunately) I need this on windows too.
>
>
>
> Yesterday I was building the newest git version on windows with VS 2015 as
> x64 release version without problems, but without the video relevant
> projects (mod_vpx and other).
>
>
>
> I?d found this jira ticket. video conference block in windows
>
>
>
>
> I there a plan or a roadmap for a presumptive do date?
>
>
>
> Thanks a lot!
>
>
>
--
*Brian West*
brian at freeswitch.org
*Twitter: @FreeSWITCH , @briankwest*
http://www.freeswitchbook.com
http://www.freeswitchcookbook.com
Got Bugs? Report them here ! | Reddit:
/r/freeswitch
*T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378)
*iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20151016/ad7cca94/attachment.html
From dave.taht at gmail.com Sun Oct 18 15:24:18 2015
From: dave.taht at gmail.com (Dave Taht)
Date: Sun, 18 Oct 2015 13:24:18 +0200
Subject: [Freeswitch-dev] testers wanted for low latency voip/video
conferencing qdisc
Message-ID:
Dear Freeswitch folk:
It is generally my hope that many of you have been using things like
fq_codel (now the default in fedora, and many other linux derived
OSes) and qos systems like the "sqm"[1] system now in openwrt, and
streamboost, etc in order to improve voip and videoconferencing
behavior along the edge, and beat bufferbloat.
For the past 3 years we have been working on a successor to fq_codel,
called "cake" - which among many other improvements like 8way set
associative hashing, and less cpu use, also obeys what we know of the
defined diffserv markings for voip and video conferencing - not that
we think they are widely used as yet.
We are finally at the point where cake can be tested more widely with
an out of tree kernel module, and patches to tc. A complete technical
description of cake, links the github repos, and how to install are
at:
http://www.bufferbloat.net/projects/codel/wiki/CakeTechnical
And we hope to submit to kernel mainline after more testing gets done.
We have many tests (see flent.org for the flent tool) for voip but we
have yet to develop good ones for videoconferencing, and in addition
to any testing of cake you can do, I would love to know how we too can
add tests for that to our test suites.
I had a chance last friday to come on the vuc show and talk about
fq_codel, cake, bloat, etc on the latter half, and the first half was
dominated by our controversial proposal to fix the edge of the
internet. - but my heart is in seeing the technical fixes for better
voip and videoconferencing get more widely used so we can finally
deploy them!
https://www.youtube.com/watch?v=yGYZ83nq4Js
http://www.businesswire.com/news/home/20151014005564/en (for the
letter we were talking about)
And my group of bufferbloat folk plan to be on the cluecon show nov 18th.
More freeswitch data to toss around - logs - packet captures -
empirical evidence - anything would be great to have before then. TIA.
[1] http://wiki.openwrt.org/doc/howto/sqm
--
Dave T?ht
Do you want faster, better, wifi? https://www.patreon.com/dtaht
From sanjoy at yahoo.com Wed Oct 21 06:02:56 2015
From: sanjoy at yahoo.com (Sanjoy Ghosh)
Date: Tue, 20 Oct 2015 19:02:56 -0700
Subject: [Freeswitch-dev] Cannot install or make libvpx2-dev on MacBook Pro
running OS X 10.10
Message-ID: <56085A26-2F61-47F4-97AE-4DDBCAC5AADB@yahoo.com>
Hello,
Need help. I have been trying to build FREESwitch on a MacBook Pro running 10.10.5. I can?t find an install for libvpx2-dev, nor can I download sources to build. How do I get around this?
Thanks,
Sanjoy
From krice at freeswitch.org Thu Oct 22 23:29:54 2015
From: krice at freeswitch.org (Ken Rice)
Date: Thu, 22 Oct 2015 14:29:54 -0500
Subject: [Freeswitch-dev] Soo you might have noticed that we got hit a burst
of spam on the mailing list
Message-ID: <401301d10d00$080d8580$18289080$@freeswitch.org>
Hey Guys,
As you might have noticed, we just got hit with a burst of spam on the
mailing list. This is something the FreeSWITCH Team takes very seriously.
We have plugged the hole that let this happen.
Please keep in mind that we do moderate the list to try and avoid things
like this.
1) If you are a new user on the mailing lists your messages will be
automatically moderated for a period of time until the list mods can
reasonably determine that you are not a spam bot
2) If you spam the list you will be remoderated and all posts to the
list reviewed before being allowed to go to the list.
3) Repeated offenders will be banned from the list.
Thanks
Ken
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20151022/0e1b1cbe/attachment.html
From mike at jerris.com Fri Oct 23 01:27:45 2015
From: mike at jerris.com (Michael Jerris)
Date: Thu, 22 Oct 2015 17:27:45 -0400
Subject: [Freeswitch-dev] Cannot install or make libvpx2-dev on MacBook
Pro running OS X 10.10
In-Reply-To: <56085A26-2F61-47F4-97AE-4DDBCAC5AADB@yahoo.com>
References: <56085A26-2F61-47F4-97AE-4DDBCAC5AADB@yahoo.com>
Message-ID: <9F6589C8-38E4-45D5-AFAB-ED449367211E@jerris.com>
https://freeswitch.org/confluence/display/FREESWITCH/Installation+and+Testing+on+OS+X
> On Oct 20, 2015, at 10:02 PM, Sanjoy Ghosh wrote:
>
> Hello,
>
> Need help. I have been trying to build FREESwitch on a MacBook Pro running 10.10.5. I can?t find an install for libvpx2-dev, nor can I download sources to build. How do I get around this?
>
> Thanks,
> Sanjoy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20151022/8b2288e5/attachment.html