Re: [Freeswitch-users] FreeSWITCH Start up Script - Ubuntu Server

2009-09-27 Thread Muhammad Shahzad
Glad to hear about init script for archlinux, my favourite distro for
development. :-)

Let me try it.

Thank you.


On Mon, Sep 28, 2009 at 6:46 AM, Mark Campbell-Smith <
mcampbellsm...@gmail.com> wrote:

> Yep.. it works for me.  You will probably have to modify these lines
> to match the user/group that FS normally run user on your system:
>
> FS_USER=freeswitch
> FS_GROUP=freeswitch
>
>
>
>
> On Mon, Sep 28, 2009 at 10:37 AM, Aloysius Thevarajah Lloyd
>  wrote:
> > I try earlier today this script ... but it is not working. Did you try ?
> >
> >
> > On Sun, Sep 27, 2009 at 8:12 PM, Mark Campbell-Smith
> >  wrote:
> >>
> >> What about this one for Debian...
> >>
> >> http://wiki.freeswitch.org/wiki/Freeswitch_init
> >>
> >>
> >> On Mon, Sep 28, 2009 at 9:15 AM, Aloysius Thevarajah Lloyd
> >>  wrote:
> >> > Yes. I have seen the scripts. But I could not find a suitable one for
> >> > Ubuntu.
> >> >
> >> > Thank you.
> >> >
> >> > LLoyd
> >> >
> >> >
> >> > 2009/9/27 João Mesquita 
> >> >>
> >> >> Only 3 init scripts available on trunk today (${SVNROOT}/build) are
> for
> >> >> archlinux, redhat or suse.
> >> >>
> >> >> We would love to have more for other distros.
> >> >>
> >> >> Regards,
> >> >>
> >> >> jmesquita
> >> >>
> >> >> On Sun, Sep 27, 2009 at 10:42 AM, Aloysius Thevarajah Lloyd
> >> >>  wrote:
> >> >>>
> >> >>> Hi All,
> >> >>>
> >> >>> I am trying to setup FreeSwitch on a Ubuntu Server.
> >> >>>
> >> >>> Where can I find the start up(boot time) script for FreeSwitch on a
> >> >>> Ubuntu Server?
> >> >>>
> >> >>> Thank you .
> >> >>>
> >> >>> Lloyd
> >> >>>
> >> >>> ___
> >> >>> 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
> >> >>>
> >> >>
> >> >>
> >> >> ___
> >> >> 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
> >> >>
> >> >
> >> >
> >> > ___
> >> > 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
> >> >
> >> >
> >>
> >> ___
> >> 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
> >
> >
> > ___
> > 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
> >
> >
>
> ___
> 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
>



-- 

|
 |
| FATAL ERROR   ---
O X |
|___|
|You have moved the mouse.
 |
| Windows must be restarted for the changes to take effect.   |
|
   |
/


Muhammad Shahzad
---
CISCO Rich Media Communication Specialist (CRMCS)
CISCO Certified Network Associate (CCNA)
Cell: +92 334 422 40 88
MSN: shari_78...@hotmail.com
Email: shaherya...@googlemail.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


Re: [Freeswitch-users] Subscribing to events in managed C# / .NET

2009-09-27 Thread Michael Giagnocavo
You make it however you want. Marshal.StructureToPtr, AllocCoTaskMem; 
GCHandle.Alloc/GetAddrOfPinnedObject; stackalloc (C#); Ref.pin (F#). You can 
get it from unmanaged code (you could just P/Invoke malloc if you want). And I 
think the SWIGTYPEs expose a GCHandle so you can get their pointer if you need 
to convert their type.

If it's a complex structure that swig hasn't created, and you really want nice 
typed access to it, you may want to create a nice struct in C# for marshalling.

-Michael

From: freeswitch-users-boun...@lists.freeswitch.org 
[mailto:freeswitch-users-boun...@lists.freeswitch.org] On Behalf Of Josh Rivers
Sent: Sunday, September 27, 2009 9:36 PM
To: freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] Subscribing to events in managed C# / .NET

Where does 'somePtr' come from?
On Sun, Sep 27, 2009 at 4:06 PM, Michael Giagnocavo 
mailto:m...@giagnocavo.net>> wrote:

It's in the "FSUtil" class (no I'm not happy with the name). I also made it an 
extension method on IntPtr (I'm not a big fan of extension methods, but the 
code is sorta messy anyways, so it's not relatively bad.)



var x = CreateSwigTypePointer(somePtr);



Moving stuff out of the SWIG DLL removes the ability to use partial classes to 
extend the generated swigtypes. This is used a bit, and will be used a lot more 
as the managed plugin is cleaned up. For example, most of the FS APIs return 
string, when they should return a better representation. Also, the constructors 
for some of the types are internal only, and I don't really enjoy using 
reflection to create them.



-Michael





From: 
freeswitch-users-boun...@lists.freeswitch.org
 
[mailto:freeswitch-users-boun...@lists.freeswitch.org]
 On Behalf Of Josh Rivers
Sent: Saturday, September 26, 2009 11:29 PM

To: 
freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] Subscribing to events in managed C# / .NET



The ability to directly create swigtypes...that's huge! I'd love to see some 
examples of how to use that.



I've update my refactoring to include the changes to the trunk up through 
r14981. I've also checked in updated binaries that should work with the latest 
trunk builds(I hope?)



A question occurred to me: would it make any sense to push the plugin loader 
into a separate DLL? That way we could keep the P/Invoke layer very cleanly 
separated from the loader/process host/abstraction layer structures.



Josh

On Fri, Sep 25, 2009 at 1:13 PM, Michael Giagnocavo 
mailto:m...@giagnocavo.net>> wrote:

There is a new function I checked in a little bit ago that lets you create any 
of the SWIGTYPE_p_xxx types - all you need is a pointer to the memory to 
represent whatever it is in native land. So with that, it's actually possible 
to call most or all of the functions. (Yes DRK, you can now go do XML binding.) 
But sure, it'd be nice to make a real .NET-ish layer.



Async events seems like it wouldn't be hard, assuming FreeSWITCH delivers them 
that way?



-Michael



From: 
freeswitch-users-boun...@lists.freeswitch.org
 
[mailto:freeswitch-users-boun...@lists.freeswitch.org]
 On Behalf Of Michael Jerris
Sent: Thursday, September 24, 2009 10:26 PM

To: 
freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] Subscribing to events in managed C# / .NET



There are a few other things I can think would be nice additions to 
mod_managed.  Maybe an event handler that does not require a thread to be 
sitting and waiting for events trying in a loop would be nice, instead 
something that is triggered each time there is a certain event class triggered. 
 Also, there has been some interest in doing full endpoint modules in 
mod_managed.  exposing all the state handlers in .net like ways and having that 
all work would be quite interesting, but probably requires someone specific 
actually ready to write a module like that to be worthwhile.



Mike



On Sep 24, 2009, at 4:01 AM, Michael Giagnocavo wrote:



Great - hopefully we'll meet on IRC or the conference sometime on Friday. Email 
me when you're on.



A few questions I have:



Clarity - I agree with you there, and thanks!



Testability - is this even remotely practical? Looking at our FS code plugins, 
there's simply no way any amount of test environment code would get us to 
anything testable. We make tons of direct P/Invoke calls, and the whole model 
for what variables are set when, the state machine progression, etc. does not 
seem like something that we can hope to possibly model right. And it's subject 
to many external influences (all the modules you have loaded in FS). Logging is 
a pretty simple case, sure, we can make it not call FS for testing. Bu

Re: [Freeswitch-users] Subscribing to events in managed C# / .NET

2009-09-27 Thread Josh Rivers
Where does 'somePtr' come from?

On Sun, Sep 27, 2009 at 4:06 PM, Michael Giagnocavo wrote:

>  It’s in the “FSUtil” class (no I’m not happy with the name). I also made
> it an extension method on IntPtr (I’m not a big fan of extension methods,
> but the code is sorta messy anyways, so it’s not relatively bad.)
>
>
>
> var x = CreateSwigTypePointer(somePtr);
>
>
>
> Moving stuff out of the SWIG DLL removes the ability to use partial classes
> to extend the generated swigtypes. This is used a bit, and will be used a
> lot more as the managed plugin is cleaned up. For example, most of the FS
> APIs return string, when they should return a better representation. Also,
> the constructors for some of the types are internal only, and I don’t really
> enjoy using reflection to create them.
>
>
>
> -Michael
>
>
>
>
>
> *From:* freeswitch-users-boun...@lists.freeswitch.org [mailto:
> freeswitch-users-boun...@lists.freeswitch.org] *On Behalf Of *Josh Rivers
> *Sent:* Saturday, September 26, 2009 11:29 PM
>
> *To:* freeswitch-users@lists.freeswitch.org
> *Subject:* Re: [Freeswitch-users] Subscribing to events in managed C# /
> .NET
>
>
>
> The ability to directly create swigtypes...that's huge! I'd love to see
> some examples of how to use that.
>
>
>
> I've update my refactoring to include the changes to the trunk up through
> r14981. I've also checked in updated binaries that should work with the
> latest trunk builds(I hope?)
>
>
>
> A question occurred to me: would it make any sense to push the plugin
> loader into a separate DLL? That way we could keep the P/Invoke layer very
> cleanly separated from the loader/process host/abstraction layer structures.
>
>
>
> Josh
>
> On Fri, Sep 25, 2009 at 1:13 PM, Michael Giagnocavo 
> wrote:
>
> There is a new function I checked in a little bit ago that lets you create
> any of the SWIGTYPE_p_xxx types – all you need is a pointer to the memory to
> represent whatever it is in native land. So with that, it’s actually
> possible to call most or all of the functions. (Yes DRK, you can now go do
> XML binding.) But sure, it’d be nice to make a real .NET-ish layer.
>
>
>
> Async events seems like it wouldn’t be hard, assuming FreeSWITCH delivers
> them that way?
>
>
>
> -Michael
>
>
>
> *From:* freeswitch-users-boun...@lists.freeswitch.org [mailto:
> freeswitch-users-boun...@lists.freeswitch.org] *On Behalf Of *Michael
> Jerris
> *Sent:* Thursday, September 24, 2009 10:26 PM
>
>
> *To:* freeswitch-users@lists.freeswitch.org
> *Subject:* Re: [Freeswitch-users] Subscribing to events in managed C# /
> .NET
>
>
>
> There are a few other things I can think would be nice additions to
> mod_managed.  Maybe an event handler that does not require a thread to be
> sitting and waiting for events trying in a loop would be nice, instead
> something that is triggered each time there is a certain event class
> triggered.  Also, there has been some interest in doing full endpoint
> modules in mod_managed.  exposing all the state handlers in .net like ways
> and having that all work would be quite interesting, but probably requires
> someone specific actually ready to write a module like that to be
> worthwhile.
>
>
>
> Mike
>
>
>
> On Sep 24, 2009, at 4:01 AM, Michael Giagnocavo wrote:
>
>
>
> Great – hopefully we’ll meet on IRC or the conference sometime on Friday.
> Email me when you’re on.
>
>
>
> A few questions I have:
>
>
>
> Clarity – I agree with you there, and thanks!
>
>
>
> Testability – is this even remotely practical? Looking at our FS code
> plugins, there’s simply no way any amount of test environment code would get
> us to anything testable. We make tons of direct P/Invoke calls, and the
> whole model for what variables are set when, the state machine progression,
> etc. does not seem like something that we can hope to possibly model right.
> And it’s subject to many external influences (all the modules you have
> loaded in FS). Logging is a pretty simple case, sure, we can make it not
> call FS for testing. But in a real app, it just seems that there are way too
> many dependencies, no? Maybe others who have apps written can chime in?
>
>
>
> Modularity – I agree there are two parts. But, I think they are pretty
> tightly coupled. The FS interface into unmanaged code is done via unmanaged
> code and is really clear: App, Api, ApiBackground. The other ways I can
> think of are FS-specific, such as XML binding interface and so on. But those
> are things we should just add to the mod_managed core and be done with. I’m
> thinking maybe we are talking about different things? Can you provide some
> user stories that we want to cover with a pluggable loader/executor/etc.?
> Thanks for putting up with me!
>
>
>
> -Michael
>
>
>
> *From:* freeswitch-users-boun...@lists.freeswitch.org [mailto:
> freeswitch-users-boun...@lists.freeswitch.org] *On Behalf Of *Josh Rivers
> *Sent:* Thursday, September 24, 2009 12:32 AM
> *To:* freeswitch-users@lists.freeswitch.org
> *Subject:* Re: [Freeswit

Re: [Freeswitch-users] FreeSWITCH Start up Script - Ubuntu Server

2009-09-27 Thread Mark Campbell-Smith
Yep.. it works for me.  You will probably have to modify these lines
to match the user/group that FS normally run user on your system:

FS_USER=freeswitch
FS_GROUP=freeswitch




On Mon, Sep 28, 2009 at 10:37 AM, Aloysius Thevarajah Lloyd
 wrote:
> I try earlier today this script ... but it is not working. Did you try ?
>
>
> On Sun, Sep 27, 2009 at 8:12 PM, Mark Campbell-Smith
>  wrote:
>>
>> What about this one for Debian...
>>
>> http://wiki.freeswitch.org/wiki/Freeswitch_init
>>
>>
>> On Mon, Sep 28, 2009 at 9:15 AM, Aloysius Thevarajah Lloyd
>>  wrote:
>> > Yes. I have seen the scripts. But I could not find a suitable one for
>> > Ubuntu.
>> >
>> > Thank you.
>> >
>> > LLoyd
>> >
>> >
>> > 2009/9/27 João Mesquita 
>> >>
>> >> Only 3 init scripts available on trunk today (${SVNROOT}/build) are for
>> >> archlinux, redhat or suse.
>> >>
>> >> We would love to have more for other distros.
>> >>
>> >> Regards,
>> >>
>> >> jmesquita
>> >>
>> >> On Sun, Sep 27, 2009 at 10:42 AM, Aloysius Thevarajah Lloyd
>> >>  wrote:
>> >>>
>> >>> Hi All,
>> >>>
>> >>> I am trying to setup FreeSwitch on a Ubuntu Server.
>> >>>
>> >>> Where can I find the start up(boot time) script for FreeSwitch on a
>> >>> Ubuntu Server?
>> >>>
>> >>> Thank you .
>> >>>
>> >>> Lloyd
>> >>>
>> >>> ___
>> >>> 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
>> >>>
>> >>
>> >>
>> >> ___
>> >> 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
>> >>
>> >
>> >
>> > ___
>> > 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
>> >
>> >
>>
>> ___
>> 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
>
>
> ___
> 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
>
>

___
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


Re: [Freeswitch-users] FreeSWITCH Start up Script - Ubuntu Server

2009-09-27 Thread Aloysius Thevarajah Lloyd
I try earlier today this script ... but it is not working. Did you try ?


On Sun, Sep 27, 2009 at 8:12 PM, Mark Campbell-Smith <
mcampbellsm...@gmail.com> wrote:

> What about this one for Debian...
>
> http://wiki.freeswitch.org/wiki/Freeswitch_init
>
>
> On Mon, Sep 28, 2009 at 9:15 AM, Aloysius Thevarajah Lloyd
>  wrote:
> > Yes. I have seen the scripts. But I could not find a suitable one for
> > Ubuntu.
> >
> > Thank you.
> >
> > LLoyd
> >
> >
> > 2009/9/27 João Mesquita 
> >>
> >> Only 3 init scripts available on trunk today (${SVNROOT}/build) are for
> >> archlinux, redhat or suse.
> >>
> >> We would love to have more for other distros.
> >>
> >> Regards,
> >>
> >> jmesquita
> >>
> >> On Sun, Sep 27, 2009 at 10:42 AM, Aloysius Thevarajah Lloyd
> >>  wrote:
> >>>
> >>> Hi All,
> >>>
> >>> I am trying to setup FreeSwitch on a Ubuntu Server.
> >>>
> >>> Where can I find the start up(boot time) script for FreeSwitch on a
> >>> Ubuntu Server?
> >>>
> >>> Thank you .
> >>>
> >>> Lloyd
> >>>
> >>> ___
> >>> 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
> >>>
> >>
> >>
> >> ___
> >> 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
> >>
> >
> >
> > ___
> > 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
> >
> >
>
> ___
> 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
>
___
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


Re: [Freeswitch-users] FreeSWITCH Start up Script - Ubuntu Server

2009-09-27 Thread Mark Campbell-Smith
What about this one for Debian...

http://wiki.freeswitch.org/wiki/Freeswitch_init


On Mon, Sep 28, 2009 at 9:15 AM, Aloysius Thevarajah Lloyd
 wrote:
> Yes. I have seen the scripts. But I could not find a suitable one for
> Ubuntu.
>
> Thank you.
>
> LLoyd
>
>
> 2009/9/27 João Mesquita 
>>
>> Only 3 init scripts available on trunk today (${SVNROOT}/build) are for
>> archlinux, redhat or suse.
>>
>> We would love to have more for other distros.
>>
>> Regards,
>>
>> jmesquita
>>
>> On Sun, Sep 27, 2009 at 10:42 AM, Aloysius Thevarajah Lloyd
>>  wrote:
>>>
>>> Hi All,
>>>
>>> I am trying to setup FreeSwitch on a Ubuntu Server.
>>>
>>> Where can I find the start up(boot time) script for FreeSwitch on a
>>> Ubuntu Server?
>>>
>>> Thank you .
>>>
>>> Lloyd
>>>
>>> ___
>>> 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
>>>
>>
>>
>> ___
>> 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
>>
>
>
> ___
> 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
>
>

___
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


Re: [Freeswitch-users] FreeSWITCH Start up Script - Ubuntu Server

2009-09-27 Thread Aloysius Thevarajah Lloyd
Yes. I have seen the scripts. But I could not find a suitable one for
Ubuntu.

Thank you.

LLoyd


2009/9/27 João Mesquita 

> Only 3 init scripts available on trunk today (${SVNROOT}/build) are for
> archlinux, redhat or suse.
>
> We would love to have more for other distros.
>
> Regards,
>
> jmesquita
>
> On Sun, Sep 27, 2009 at 10:42 AM, Aloysius Thevarajah Lloyd <
> lloyd.aloys...@gmail.com> wrote:
>
>> Hi All,
>>
>> I am trying to setup FreeSwitch on a Ubuntu Server.
>>
>> Where can I find the start up(boot time) script for FreeSwitch on a Ubuntu
>> Server?
>>
>> Thank you .
>>
>> Lloyd
>>
>> ___
>> 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
>>
>>
>
> ___
> 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
>
>
___
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


Re: [Freeswitch-users] Subscribing to events in managed C# / .NET

2009-09-27 Thread Michael Giagnocavo
It's in the "FSUtil" class (no I'm not happy with the name). I also made it an 
extension method on IntPtr (I'm not a big fan of extension methods, but the 
code is sorta messy anyways, so it's not relatively bad.)

var x = CreateSwigTypePointer(somePtr);

Moving stuff out of the SWIG DLL removes the ability to use partial classes to 
extend the generated swigtypes. This is used a bit, and will be used a lot more 
as the managed plugin is cleaned up. For example, most of the FS APIs return 
string, when they should return a better representation. Also, the constructors 
for some of the types are internal only, and I don't really enjoy using 
reflection to create them.

-Michael


From: freeswitch-users-boun...@lists.freeswitch.org 
[mailto:freeswitch-users-boun...@lists.freeswitch.org] On Behalf Of Josh Rivers
Sent: Saturday, September 26, 2009 11:29 PM
To: freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] Subscribing to events in managed C# / .NET

The ability to directly create swigtypes...that's huge! I'd love to see some 
examples of how to use that.

I've update my refactoring to include the changes to the trunk up through 
r14981. I've also checked in updated binaries that should work with the latest 
trunk builds(I hope?)

A question occurred to me: would it make any sense to push the plugin loader 
into a separate DLL? That way we could keep the P/Invoke layer very cleanly 
separated from the loader/process host/abstraction layer structures.

Josh
On Fri, Sep 25, 2009 at 1:13 PM, Michael Giagnocavo 
mailto:m...@giagnocavo.net>> wrote:

There is a new function I checked in a little bit ago that lets you create any 
of the SWIGTYPE_p_xxx types - all you need is a pointer to the memory to 
represent whatever it is in native land. So with that, it's actually possible 
to call most or all of the functions. (Yes DRK, you can now go do XML binding.) 
But sure, it'd be nice to make a real .NET-ish layer.



Async events seems like it wouldn't be hard, assuming FreeSWITCH delivers them 
that way?



-Michael



From: 
freeswitch-users-boun...@lists.freeswitch.org
 
[mailto:freeswitch-users-boun...@lists.freeswitch.org]
 On Behalf Of Michael Jerris
Sent: Thursday, September 24, 2009 10:26 PM

To: 
freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] Subscribing to events in managed C# / .NET



There are a few other things I can think would be nice additions to 
mod_managed.  Maybe an event handler that does not require a thread to be 
sitting and waiting for events trying in a loop would be nice, instead 
something that is triggered each time there is a certain event class triggered. 
 Also, there has been some interest in doing full endpoint modules in 
mod_managed.  exposing all the state handlers in .net like ways and having that 
all work would be quite interesting, but probably requires someone specific 
actually ready to write a module like that to be worthwhile.



Mike



On Sep 24, 2009, at 4:01 AM, Michael Giagnocavo wrote:



Great - hopefully we'll meet on IRC or the conference sometime on Friday. Email 
me when you're on.



A few questions I have:



Clarity - I agree with you there, and thanks!



Testability - is this even remotely practical? Looking at our FS code plugins, 
there's simply no way any amount of test environment code would get us to 
anything testable. We make tons of direct P/Invoke calls, and the whole model 
for what variables are set when, the state machine progression, etc. does not 
seem like something that we can hope to possibly model right. And it's subject 
to many external influences (all the modules you have loaded in FS). Logging is 
a pretty simple case, sure, we can make it not call FS for testing. But in a 
real app, it just seems that there are way too many dependencies, no? Maybe 
others who have apps written can chime in?



Modularity - I agree there are two parts. But, I think they are pretty tightly 
coupled. The FS interface into unmanaged code is done via unmanaged code and is 
really clear: App, Api, ApiBackground. The other ways I can think of are 
FS-specific, such as XML binding interface and so on. But those are things we 
should just add to the mod_managed core and be done with. I'm thinking maybe we 
are talking about different things? Can you provide some user stories that we 
want to cover with a pluggable loader/executor/etc.? Thanks for putting up with 
me!



-Michael



From: 
freeswitch-users-boun...@lists.freeswitch.org
 
[mailto:freeswitch-users-boun...@lists.freeswitch.org]
 On Behalf Of Josh Rivers
Sent: Thursday, September 24, 2009 12:32 AM
To: 
freeswitch-users@lists.freeswitch.org
Subject: Re: 

Re: [Freeswitch-users] FreeSWITCH Start up Script - Ubuntu Server

2009-09-27 Thread João Mesquita
Only 3 init scripts available on trunk today (${SVNROOT}/build) are for
archlinux, redhat or suse.

We would love to have more for other distros.

Regards,

jmesquita

On Sun, Sep 27, 2009 at 10:42 AM, Aloysius Thevarajah Lloyd <
lloyd.aloys...@gmail.com> wrote:

> Hi All,
>
> I am trying to setup FreeSwitch on a Ubuntu Server.
>
> Where can I find the start up(boot time) script for FreeSwitch on a Ubuntu
> Server?
>
> Thank you .
>
> Lloyd
>
> ___
> 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
>
>
___
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


Re: [Freeswitch-users] Port question

2009-09-27 Thread João Mesquita
You shouldn't have to do nothing since we have NAT detection.

Port 5080 (external SIP profile) is just for unauthenticated clients.

jmesquita

On Sun, Sep 27, 2009 at 3:00 AM, Henk Maaijen  wrote:

> Hello All,
>
>  I am a total newbie with FS. I use pbxiaf but would really like to
>  try out FS. I have installed FS And everything seems to be working.
>  My problem is that i have some family scattered round the globe who
>  are all logging in to to my piaf. I am not able to reconfigure those
>  phones ( Some SIP and some IAX2 ). Would it be enough to redirect
>  port 5060 in my router to port 5080? Or would it be possible to still
>  use port 5060. ( I don't want to be too long offline for tests )
>
> --
> Best regards,
>  Henk
>
>
> ___
> 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
>
___
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


[Freeswitch-users] Port question

2009-09-27 Thread Henk Maaijen
Hello All,

 I am a total newbie with FS. I use pbxiaf but would really like to
 try out FS. I have installed FS And everything seems to be working.
 My problem is that i have some family scattered round the globe who
 are all logging in to to my piaf. I am not able to reconfigure those
 phones ( Some SIP and some IAX2 ). Would it be enough to redirect
 port 5060 in my router to port 5080? Or would it be possible to still
 use port 5060. ( I don't want to be too long offline for tests )
 
-- 
Best regards,
 Henk


___
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


[Freeswitch-users] FreeSWITCH Start up Script - Ubuntu Server

2009-09-27 Thread Aloysius Thevarajah Lloyd
Hi All,

I am trying to setup FreeSwitch on a Ubuntu Server.

Where can I find the start up(boot time) script for FreeSwitch on a Ubuntu
Server?

Thank you .

Lloyd
___
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


Re: [Freeswitch-users] Subscribing to events in managed C# / .NET

2009-09-27 Thread Josh Rivers
One more addition added. The loader process now looks for the string
".primary" in the filename. If it exists, it loads the dll into the primary
appdomain and executes to Load() routine on implementors
of IPrimaryAppdomainExtension. I also added an example showing the use of
this to display a WinForm logger.
http://github.com/joshrivers/FreeSWITCH.Managed
On Sat, Sep 26, 2009 at 10:28 PM, Josh Rivers  wrote:

> The ability to directly create swigtypes...that's huge! I'd love to see
> some examples of how to use that.
>
> I've update my refactoring to include the changes to the trunk up through
> r14981. I've also checked in updated binaries that should work with the
> latest trunk builds(I hope?)
> A question occurred to me: would it make any sense to push the plugin
> loader into a separate DLL? That way we could keep the P/Invoke layer very
> cleanly separated from the loader/process host/abstraction layer structures.
>
> Josh
>
>
> On Fri, Sep 25, 2009 at 1:13 PM, Michael Giagnocavo 
> wrote:
>
>>  There is a new function I checked in a little bit ago that lets you
>> create any of the SWIGTYPE_p_xxx types – all you need is a pointer to the
>> memory to represent whatever it is in native land. So with that, it’s
>> actually possible to call most or all of the functions. (Yes DRK, you can
>> now go do XML binding.) But sure, it’d be nice to make a real .NET-ish
>> layer.
>>
>>
>>
>> Async events seems like it wouldn’t be hard, assuming FreeSWITCH delivers
>> them that way?
>>
>>
>>
>> -Michael
>>
>>
>>
>> *From:* freeswitch-users-boun...@lists.freeswitch.org [mailto:
>> freeswitch-users-boun...@lists.freeswitch.org] *On Behalf Of *Michael
>> Jerris
>> *Sent:* Thursday, September 24, 2009 10:26 PM
>>
>> *To:* freeswitch-users@lists.freeswitch.org
>> *Subject:* Re: [Freeswitch-users] Subscribing to events in managed C# /
>> .NET
>>
>>
>>
>> There are a few other things I can think would be nice additions to
>> mod_managed.  Maybe an event handler that does not require a thread to be
>> sitting and waiting for events trying in a loop would be nice, instead
>> something that is triggered each time there is a certain event class
>> triggered.  Also, there has been some interest in doing full endpoint
>> modules in mod_managed.  exposing all the state handlers in .net like ways
>> and having that all work would be quite interesting, but probably requires
>> someone specific actually ready to write a module like that to be
>> worthwhile.
>>
>>
>>
>> Mike
>>
>>
>>
>> On Sep 24, 2009, at 4:01 AM, Michael Giagnocavo wrote:
>>
>>
>>
>>   Great – hopefully we’ll meet on IRC or the conference sometime on
>> Friday. Email me when you’re on.
>>
>>
>>
>> A few questions I have:
>>
>>
>>
>> Clarity – I agree with you there, and thanks!
>>
>>
>>
>> Testability – is this even remotely practical? Looking at our FS code
>> plugins, there’s simply no way any amount of test environment code would get
>> us to anything testable. We make tons of direct P/Invoke calls, and the
>> whole model for what variables are set when, the state machine progression,
>> etc. does not seem like something that we can hope to possibly model right.
>> And it’s subject to many external influences (all the modules you have
>> loaded in FS). Logging is a pretty simple case, sure, we can make it not
>> call FS for testing. But in a real app, it just seems that there are way too
>> many dependencies, no? Maybe others who have apps written can chime in?
>>
>>
>>
>> Modularity – I agree there are two parts. But, I think they are pretty
>> tightly coupled. The FS interface into unmanaged code is done via unmanaged
>> code and is really clear: App, Api, ApiBackground. The other ways I can
>> think of are FS-specific, such as XML binding interface and so on. But those
>> are things we should just add to the mod_managed core and be done with. I’m
>> thinking maybe we are talking about different things? Can you provide some
>> user stories that we want to cover with a pluggable loader/executor/etc.?
>> Thanks for putting up with me!
>>
>>
>>
>> -Michael
>>
>>
>>
>> *From:* freeswitch-users-boun...@lists.freeswitch.org [mailto:
>> freeswitch-users-boun...@lists.freeswitch.org] *On Behalf Of *Josh Rivers
>> *Sent:* Thursday, September 24, 2009 12:32 AM
>> *To:* freeswitch-users@lists.freeswitch.org
>> *Subject:* Re: [Freeswitch-users] Subscribing to events in managed C# /
>> .NET
>>
>>
>>
>>
>>
>> On Wed, Sep 23, 2009 at 7:31 PM, Michael Giagnocavo 
>> wrote:
>>
>> Right off the bat: there can be tons of cleanup and refactoring, no doubt
>> about that. Much of the current code is to satisfy my needs in production,
>> which it does very well.
>>
>> The current base doesn't have anything wrong with it for sure, in fact, I
>> learned a good bit about PInvoke. AppDomains, and In-Process Remoting in the
>> last week.
>>
>>
>>
>> My refactoring had the following goals (in no particular order)
>>
>>  - Testability - I'd really like to see a decent unit test suite on 

[Freeswitch-users] sound gets stuck in FreeSWITCH pizza application

2009-09-27 Thread Francisco Scaramanga

I am running the FreeSWITCH sample application gino's pizza on Windows Vista 
SP1.

 

The application is running and I can order pizza :-) but there are 2 points:

 

1. The problem is that the voice playback, for instance "Welcome to gino's 
pizza" gets stuck very often.

Sometimes it sounds good, sometimes bad. Furthermore sometimes I can hear only 
the first part of the playback and the rest is missing.

When I make a call with 2 softphones using FreeSWITCH the quality is very good. 

 

2. Between the single pizza-order-steps the next grammar is loaded , for 
instance pizza_size.gram. The CPU load always goes up to more than 50% and it 
takes about 5 seconds until the next playback is played. My Computer is an 
Intel Core2Duo 2,0 GHz which should fast enough. 

 

Any idea?
  
_
http://redirect.gimas.net/?n=M0906xIE8_MSN3
Hol Dir den neuen Internet Explorer 8 mit MSN-Toolbar___
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


Re: [Freeswitch-users] instant messaging

2009-09-27 Thread RobertT
Does this message means I've got problems with presence?

[ERR] sofia_presence.c:611 DUMP PRESENCE SQL:
select
sip_subscriptions.proto,sip_subscriptions.sip_user,sip_subscriptions.sip_host,sip_subscriptions.sub_to_user,sip_subscriptions.sub_to_host,sip_subscriptions.event,sip_subscriptions.contact,sip_subscriptions.call_id,sip_subscriptions.full_from,sip_subscriptions.full_via,sip_subscriptions.expires,sip_subscriptions.user_agent,sip_subscriptions.accept,sip_subscriptions.profile_name,'Registered(TLS)','unknown','74.208.167.44',sip_presence.status,sip_presence.rpid
from sip_subscriptions left join sip_presence on
(sip_subscriptions.sub_to_user=sip_presence.sip_user and
sip_subscriptions.sub_to_host=sip_presence.sip_host and
sip_subscriptions.profile_name=sip_presence.profile_name) where
(event='presence' or event='dialog') and sub_to_user='1000' and
(sub_to_host='xx.xxx.x.xx' or presence_hosts like '%xx.xxx.x.xx%') and
(sip_subscriptions.profile_name = 'external' or
sip_subscriptions.presence_hosts != sip_subscriptions.sub_to_host)
EVENT DUMP:
Event-Name: [PRESENCE_IN]
Core-UUID: [04df3ad6-511b-6d4f-bd4f-517682672b76]
...
answer-state: [resubscribe]
___
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