Re: [Freeswitch-users] LDAP Integration

2009-01-30 Thread John Skopis (Lists)
Leon de Rooij wrote:
> Hi John,
> 
> I've been trying to get your mod_xml_ldap module running, but didn't  
> get very far yet..
> 
> What is the official way to get the module built ?
> 

The official way to build all fs modules is to uncomment the entry in
modules.conf.

If you want to build a specific module there are targets

make mod_name-clean
make mod_name-install

as for mod_xml_ldap, I really do not feel that it is as quality as I
would expect a production quality module to be.

> I tried modifying trunk/freeswitch.spec so that
> 
> XML_INT_MODULES contains xml_int/mod_xml_ldap
> 
> There's also a directories/mod_ldap in DISABLED_MODULES in the same  
> file, but I don't suppose it's necessary to enable it, or is it ?
> 

mod_ldap is a separate module, implementing the directory interface, not
to be confused with the "directory", which is queried for user + domain
configuration (e.g., conf/directory/default.xml).

perhaps it should be renamed to mod_dbi?

> The mod_xml_ldap doesn't get built by running make make or dpkg- 
> buildpackage from trunk/
> 
> Also I tried building it from the module directory itself, but then I  
> get the following error:
> 
> fsbuil...@sv:~/trunk/src/mod/xml_int/mod_xml_ldap$ make
> Compiling mod_xml_ldap.c...
> cc1: warnings being treated as errors
> mod_xml_ldap.c: In function 'xml_ldap_search':
> mod_xml_ldap.c:356: warning: cast from pointer to integer of different  
> size
> make[1]: *** [mod_xml_ldap.o] Error 1
> make: *** [all] Error 1
> 



I have been working on a new module called mod_entity that works off a
simple description of an xml entitiy (domain, user, extension,
condition, action, anti-action currently) querying a db backend via the
directory interface for fields used to build the entity. It still needs
a bit of work but I am hoping to get a patch together this weekend. I
will post it to the freeswitch-dev list asking for comments.

Off the top of my head at least the wishlist TODO is:

implement connection pooling for mod_directory

implement a cache either as a module used by an xml_int mod or in
switch_xml to cache a switch_xml_t


> (Also I had to apt-get install libsasl2 libsasl2-dev, otherwise make  
> from this dir errored with missing sasl/sasl.h)
> 
> Can you see what I'm doing wrong ?
> 
> (I'm using svn rev 11560)
> 
> thanks & regards,
> 
> Leon
> 
> On Jan 6, 2009, at 4:55 AM, John Skopis (Lists) wrote:
> 
>> Vinicius Kobashi wrote:
>>> hi ppl.
>>>
>>> i tried hard to make it work, but still i couldnt find a complete
>>> openldap scheme that provides these information, and i still could't
>>> find out where to put these configuration...
>>>
>>> can anyone help me?
>>>
>>> thankz!
>>>
>>> vinicius escreveu:
 thankz!

 ill set my openldap to provide these information..

 but these about these binding settings... where should i set them?

 best regards

 John Skopis (Lists) wrote:
> vinicius wrote:
>
>> hi ppl.. i tried to find something at google, but i couldnt  
>> manage to find
>> anything.
>> i still dont know what to do to make the mod_xml_ldap work.
>> i couldnt find information about how to build a config file for  
>> the
>> module, and where to store it...
>>
>> can anyone give me a help?
>>
>>
> Be advised mod_xml_ldap is probably not production quality and will
> undoubtedly change, eventually at least.
>
> Here is what I used once:
>
>  
>
>
>
>   
>   
>   
>   
>   ldap://172.16.75.129"; />
>   
>   
>
>   
>   
>   
>   
>   
>   
>   
>    mapfrom="FSvm-email-all- 
> messages" />
>    />
>    />
>   
>
>
>
> bindings="configuration"/>
>
>ldap://172.16.75.129"; />
>
>
>
> 
>
>
> which should/probably/might work with ldap objects like these:
>
> dn: cn=John Skopis,ou=people,dc=example
> objectClass: person
> objectClass: inetOrgPerson
> objectClass: organizationalPerson
> objectClass: FreeSWITCH-Exten-Object
> objectClass: top
> cn: John Skopis
> sn: Skopis
> givenName: John
> FSid: 1001
> FSmailbox: 1001
> FSpassword: 1234
> FSvm-password: 1001
> FSemail-addr: john...@skopis.com
> FSvm-email-all-messages: TRUE
> FSvm-delete-file: TRUE
> FSvm-attach-file: TRUE
>
> dn: SIPIdentityUserName=1001,ou=h350,dc=example
> objectClass: person
> objectClass: SIPIdentity
> objectClass: top
> cn: 1001
> sn: 1001
> SIPIdentitySIPURI: sip:1...@172.16.75.129
> SIPIdentityRegistrarAddress: 172.16.75.128

Re: [Freeswitch-users] Is Session.uuid the same as caller_profile/uuid in the cdr.xml?

2009-01-30 Thread Michael S Collins
Turn on XML CDR and try that. Compare the variables in an XML record  
to the same CSV record. You'll be able to see them names of the  
variables you want to add. Or just use XML :)

-MC

Sent from my iPhone

On Jan 30, 2009, at 4:55 PM, Brian Deacon   
wrote:

> Hiya,
>
> So my xml cdr has just one uuid in it.  (I guess the shape and  
> contents
> of this are configurable?  But I'm using however it defaults.)
>
> cdr/callflow/caller_profile/uuid
>
> I wouldn't have thought caller_profile would be where I'd find a
> session.uuid, but since that seems to be the only uuid in the cdr, I'm
> guessing that's it if it's there.  Is that it?
>
> I'm going to be logging the start of a phone call using the session  
> uuid
> as the PK for a log record and need to be able to update that record
> later with call duration information when the CDR comes through after
> hangup.
>
> Brian
>
>
> ___
> 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] Spanish prompts for mod_say

2009-01-30 Thread Michael Jerris
No one has spent the time to even update the translations on this or  
to come up with the money to have them recorded.  If you can get a  
group together to fund the recordings, we would be happy to host  
them.  We work with a company called gmvoices for our recordings and  
would like to continue working with them for other languages as well.   
If you can pick out a preferred voice from http://gmvoices.com/listen  
and get some people to pool in the cash, we would love to get this  
done.  I full set of recordings for all that we require will probably  
cost $2000-$3000.


If anyone is interested in funding this, please contact me offlist so  
we can discuss.



Mike



On Jan 30, 2009, at 8:41 PM, Marc Orenberg wrote:


Does anybody know where I can find Spanish prompts for mod_say?
I see the English ones in http://files.freeswitch.org, but no other  
languages.

Thanks,
Marc


___
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] Spanish prompts for mod_say

2009-01-30 Thread Michael S Collins
We don't have any yet but we'd love to get some. If someone is willing  
to donate the money then we could have GM Voices do them. Barring  
that, if someone has a voice talent who can record the Spanish prompts  
and donate them to the project then I'm sure they would be graciously  
accepted and added to the repo.


-MC

Sent from my iPhone

On Jan 30, 2009, at 5:41 PM, Marc Orenberg  wrote:


Does anybody know where I can find Spanish prompts for mod_say?
I see the English ones in http://files.freeswitch.org, but no other  
languages.

Thanks,
Marc
___
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] Spanish prompts for mod_say

2009-01-30 Thread Marc Orenberg
Does anybody know where I can find Spanish prompts for mod_say? 
I see the English ones in http://files.freeswitch.org, but no other languages.
Thanks,
Marc___
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] How to break a playback with loops

2009-01-30 Thread Daniel Liang
It works. Thank you.



From: freeswitch-users-boun...@lists.freeswitch.org
[mailto:freeswitch-users-boun...@lists.freeswitch.org] On Behalf Of
Anthony Minessale
Sent: January 29, 2009 1:54 PM
To: freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] How to break a playback with loops


The break function with the all app is better for this

api break  all

This lets you still break even if the playback is in event lock

I did add to trunk a patch so you can do it with the app
you can now add "all" as the app args to break completely.



On Thu, Jan 29, 2009 at 3:34 PM, Michael Collins 
wrote:


Could you please file a bug report on this? jira.freeswitch.org.
Also,
follow the bug reporting guidelines here:
http://wiki.freeswitch.org/wiki/Reporting_Bugs

Thanks,
MC


On Thu, Jan 29, 2009 at 11:05 AM, Daniel Liang
 wrote:
> Hi,
>
> I am trying to playing back a wav file a few times, and on
receiving a dtmf
> event, it stops playing the file. The command I sent is:
>
> sendmsg
> call-command: execute
> execute-app-name: playback
> execute-app-arg: 
> loops: 4
>
> On receiving a dtmf event, I send a break command:
>
> sendmsg
> call-command: execute
> execute-app-name: break
>
> However, that only breaks one loop of the playback. And I have
to press a
> dtmf for 4 times to stop the file.
>
> I tried sending 4 break commands all at once. But it didn't
work. And even
> worse, my program stops receiving dtmfs anymore. My guess is
that the first
> break stops the first loop, but before the second loop starts,
the following
> 3 breaks stop something else that I don't know what they are.
>
> Any help is appreciated.
>
> Thanks.
> Daniel Liang
>

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





-- 
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/

AIM: anthm
MSN:anthony_miness...@hotmail.com
 
GTALK/JABBER/PAYPAL:anthony.miness...@gmail.com
 
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:8...@conference.freeswitch.org
 
iax:gu...@conference.freeswitch.org/888
googletalk:conf+...@conference.freeswitch.org
 
pstn:213-799-1400

___
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] Is Session.uuid the same as caller_profile/uuid in the cdr.xml?

2009-01-30 Thread Brian Deacon
Hiya,

So my xml cdr has just one uuid in it.  (I guess the shape and contents
of this are configurable?  But I'm using however it defaults.)

cdr/callflow/caller_profile/uuid

I wouldn't have thought caller_profile would be where I'd find a
session.uuid, but since that seems to be the only uuid in the cdr, I'm
guessing that's it if it's there.  Is that it?

I'm going to be logging the start of a phone call using the session uuid
as the PK for a log record and need to be able to update that record
later with call duration information when the CDR comes through after
hangup.

Brian


___
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] compiling mod_openzap

2009-01-30 Thread Michael Jerris
This is fixed in svn trunk now, I will have to do a little bit of  
autoconf work to get the build w/o libpcap working again but expect  
that this weekend.


Mike


On Jan 30, 2009, at 4:35 PM, Dan wrote:

Hi guys I pulled FS from trunk today to build some debian packages  
and ran into this error when building mod_openzap:


mod_openzap.c:2197: warning: assignment discards qualifiers from  
pointer target type


I went ahead and changed the line at 2178 in mod_openzap.c from

char *pcapfn = NULL;
to
const char *pcapfn = NULL;

Do you see any problems with this change?

Dan-
___
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] More troubles with SQLAlchemy and mod_python

2009-01-30 Thread Anthony Minessale
just wikify what you learn and drop by irc and say hi and we can find ways
for you to help if you are interested.


On Fri, Jan 30, 2009 at 3:05 PM, Brian Deacon wrote:

> Actually, I punted and it's working with a generic python 2.4.something.
> But having just found out that installall is the old lameness, maybe
> that was the reason for my linking problems when trying to compile
> against a niftier python.
>
> I'll try that trick when next I hit a roadblock.
>
> On Fri, 2009-01-30 at 08:02 -0600, Anthony Minessale wrote:
> > The reason it works now is because I checked in the LD change into
> > tree yesterday.
> > It probably would have worked with the old copy of python too but I
> > did not realize we did not make that change yet.
> >
> > But you still have a fresh new python to boot!
> >
> > On Thu, Jan 29, 2009 at 9:27 PM, Traun Leyden 
> > wrote:
> >
> > I don't know, I must have had a momentary lapse of reason ..
> > but at least I documented it!
> >
> >
> >
> > ___
> > 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
> >
> >
> >
> >
> > --
> > Anthony Minessale II
> >
> > FreeSWITCH http://www.freeswitch.org/
> > ClueCon http://www.cluecon.com/
> >
> > AIM: anthm
> > MSN:anthony_miness...@hotmail.com 
> > GTALK/JABBER/PAYPAL:anthony.miness...@gmail.com
> > IRC: irc.freenode.net #freeswitch
> >
> > FreeSWITCH Developer Conference
> > sip:8...@conference.freeswitch.org 
> > iax:gu...@conference.freeswitch.org/888
> > googletalk:conf+...@conference.freeswitch.org
> > pstn:213-799-1400
> > ___
> > 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
>



-- 
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/

AIM: anthm
MSN:anthony_miness...@hotmail.com 
GTALK/JABBER/PAYPAL:anthony.miness...@gmail.com
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:8...@conference.freeswitch.org 
iax:gu...@conference.freeswitch.org/888
googletalk:conf+...@conference.freeswitch.org
pstn:213-799-1400
___
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] Is pyrun available from mod_commands (and thus to mod_xml_rpc?)

2009-01-30 Thread Anthony Minessale
yes you can


On Fri, Jan 30, 2009 at 2:54 PM, Brian Deacon wrote:

> Maybe this is just missing documentation for mod_commands.  I can run
> pyrun from fs_cli.  Does that mean I can run it from mod_xml_rpc?
>
> Brian
>
>
> ___
> 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
>



-- 
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/

AIM: anthm
MSN:anthony_miness...@hotmail.com 
GTALK/JABBER/PAYPAL:anthony.miness...@gmail.com
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:8...@conference.freeswitch.org 
iax:gu...@conference.freeswitch.org/888
googletalk:conf+...@conference.freeswitch.org
pstn:213-799-1400
___
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] compiling mod_openzap

2009-01-30 Thread Dan
Hi guys I pulled FS from trunk today to build some debian packages and ran into 
this error when building mod_openzap: 

mod_openzap.c:2197: warning: assignment discards qualifiers from pointer target 
type 

I went ahead and changed the line at 2178 in mod_openzap.c from 

char *pcapfn = NULL; 
to 
const char *pcapfn = NULL; 

Do you see any problems with this change? 

Dan- ___
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] More troubles with SQLAlchemy and mod_python

2009-01-30 Thread Brian Deacon
Actually, I punted and it's working with a generic python 2.4.something.
But having just found out that installall is the old lameness, maybe
that was the reason for my linking problems when trying to compile
against a niftier python.

I'll try that trick when next I hit a roadblock.

On Fri, 2009-01-30 at 08:02 -0600, Anthony Minessale wrote:
> The reason it works now is because I checked in the LD change into
> tree yesterday.
> It probably would have worked with the old copy of python too but I
> did not realize we did not make that change yet.
> 
> But you still have a fresh new python to boot!
> 
> On Thu, Jan 29, 2009 at 9:27 PM, Traun Leyden 
> wrote:
> 
> I don't know, I must have had a momentary lapse of reason ..
> but at least I documented it!
> 
> 
> 
> ___
> 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
> 
> 
> 
> 
> -- 
> Anthony Minessale II
> 
> FreeSWITCH http://www.freeswitch.org/
> ClueCon http://www.cluecon.com/
> 
> AIM: anthm
> MSN:anthony_miness...@hotmail.com
> GTALK/JABBER/PAYPAL:anthony.miness...@gmail.com
> IRC: irc.freenode.net #freeswitch
> 
> FreeSWITCH Developer Conference
> sip:8...@conference.freeswitch.org
> iax:gu...@conference.freeswitch.org/888
> googletalk:conf+...@conference.freeswitch.org
> pstn:213-799-1400
> ___
> 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] Answering my own question (Was: Is pyrun available from mod_commands (and thus to mod_xml_rpc?))

2009-01-30 Thread Brian Deacon
http://freeswitch:wo...@myfreeswitchbox:8080/webapi/help


On Fri, 2009-01-30 at 12:54 -0800, Brian Deacon wrote:
> Maybe this is just missing documentation for mod_commands.  I can run
> pyrun from fs_cli.  Does that mean I can run it from mod_xml_rpc?
> 
> Brian


___
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] Is pyrun available from mod_commands (and thus to mod_xml_rpc?)

2009-01-30 Thread Brian Deacon
Maybe this is just missing documentation for mod_commands.  I can run
pyrun from fs_cli.  Does that mean I can run it from mod_xml_rpc?

Brian


___
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] More troubles with SQLAlchemy and mod_python

2009-01-30 Thread Brian Deacon
I would love to give back in return for the help you guys have given me,
but I'm not sure what would be valuable.  In terms of what it took to
get my stuff to work correctly, it just came down to Anthony checking in
the code fix.  My other (failed) attempts to work against a differently
compiled Python weren't necessary.  Moreover, it now works with the
python 2.4 I have on that machine as opposed to an "official" 2.5 python
package I was going to replace it with.

So I've updated the part in the wiki about this bug to basically just
say "Fixed in the code now":
http://wiki.freeswitch.org/wiki/Mod_python#ImportError:_.2F...2Fdatetime.so:_undefined_symbol:_PyExc_IOError
and
http://wiki.freeswitch.org/wiki/Mod_python#ImportError:_.2Fusr.2Flib.2F...2Fdatetime.so:_undefinedsymbol:__Py_ZeroStruct

What maybe isn't on the wiki (or at least I didn't see it) is that the
only way I was able to see the error output was to run freeswitch from
gdb.  Would I have seen that log output by bumping up the loglevel from
fs_cli?

But otherwise what I'm doing so far is pretty generic to the other
examples:


And mymodule is just a standard fsapi(session, stream, env, args)

The only "tricky" thing was that the code called from fsapi was calling
out to a postgresql database via sqlalchemy.  But from python's point of
view, there's nothing clever about talking to databases, and from
freeswitch's point of view there's nothing clever about calling a python
module's fsapi function.

I'll poke around and see if there's anything in the mod_python area that
I could improve on, but if you could point out anything worthwhile that
I just accomplished (or rather, that y'all accomplished for me) I'd be
more than happy to document it.  But near as I can tell, all I've really
done is help you guys fix the bug for which I was the loudest
complainer.  :)

Brian 

On Thu, 2009-01-29 at 20:34 -0600, Brian West wrote:
> Can you do some examples and documentation on the wiki about what  
> you're doing to maybe help others?
> 
> /b
> 
> On Jan 29, 2009, at 8:27 PM, Brian Deacon wrote:
> 
> > TA-DA!
> >
> > My python can now not only import the sqlalchemy module, but the  
> > code I
> > had before that was actually doing some database interaction is  
> > working
> > now.
> >
> > Thank you very much for all the help.  It is much appreciated.
> >
> > It sounds like the contents on the wiki with the modules.conf.xml or  
> > the
> > LD workarounds are superceded now.  Should I change the comments on
> > there to reflect that it should now be fixed?
> >
> > Brian
> 
> 
> ___
> 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] Strange Performance when using as SBC

2009-01-30 Thread Anthony Minessale
I have not compared them directly to be able to answer.  I do know that the
more cores the better (even slower ones) because each core divides the
entire workload of the scheduler and increases the total threads that can
work in parallel.

also you can start FS with -hp (high performance) which activates the
round-robin scheduler, increases some ulimits and forces all consumed memory
to be permanently resident with mlockall (no swapping)


On Fri, Jan 30, 2009 at 11:05 AM, pe...@networkoblivion.com <
pe...@networkoblivion.com> wrote:

> Given the choice between dual core and dual processor, would one work
> better than the other for FS?  Assuming roughly the same speed.  Or
> would it not really have a measurable difference assuming same speed and
> both Intel?
>
> Anthony Minessale wrote:
> > Which of the 2 machines has the load issue? You said it was one box
> > calling the other.
> >
> > You have 2 major things against you, single CPU and AMD, but you should
> > at least be able to get in the vicinity of 800-1000 calls on a box like
> > that.
> >
> > Are you calling the default ?  It's not really an appropriate
> > extension for load testing.
> > On the terminating box you should set up a manual extension that is the
> > first one in the dial plan
> > to play a wav file from preferably a ram disk or /tmp
> >
> > If you do plan on using this in production accept nothing less than a
> > multi-core intel machine with at least 4 cores, the more cores the
> > better because that parallel processing is where FS gets it's atvantage.
> >
> >
> >
> > On Fri, Jan 30, 2009 at 5:56 AM, rod  > > wrote:
> >
> > Dear list,
> >
> > I've been playing with freeswitch for some time (2 months) and the
> fact
> > is that I'm very pleased with the functionnalities of this software.
> >
> > I'd like to use FS as a SBC handling media and I'm doing some tests
> with
> > sipp to load the machine but I'm unable to bridge more than 60 calls
> > without seeing the CPU being loaded at 100%. I'm sure something is
> going
> > wrong with my setup but I'm unable to see what.
> >
> > The test machine has the following specs:
> >   Athlon XP 3500+ with 2GB of memory (I know this is not a high end
> > machine :p)
> >
> > Freeswitch:/opt/freeswitch/log# cat /proc/cpuinfo
> > processor   : 0
> > vendor_id   : AuthenticAMD
> > cpu family  : 15
> > model   : 95
> > model name  : AMD Athlon(tm) 64 Processor 3500+
> > stepping: 2
> > cpu MHz : 2199.973
> > cache size  : 512 KB
> > fpu : yes
> > fpu_exception   : yes
> > cpuid level : 1
> > wp  : yes
> > flags   : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr
> pge
> > mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext
> fxsr_opt
> > rdtscp lm 3dnowext 3dnow up rep_good pni cx16 lahf_lm svm extapic
> > cr8_legacy
> > bogomips: 4402.97
> > TLB size: 1024 4K pages
> > clflush size: 64
> > cache_alignment : 64
> > address sizes   : 40 bits physical, 48 bits virtual
> > power management: ts fid vid ttp tm stc
> >
> > I installed FS on a fresh debian 64:
> >   Linux Freeswitch 2.6.26-1-amd64 #1 SMP Sat Jan 10 17:57:00 UTC 2009
> > x86_64 GNU/Linux
> >
> > I set the ulimit parameters like those on the website:
> >   freeswi...@internal> ...
> > Freeswitch:/opt/free-svn/bin# ulimit -a
> > core file size  (blocks, -c) unlimited
> > data seg size   (kbytes, -d) unlimited
> > scheduling priority (-e) 0
> > file size   (blocks, -f) unlimited
> > pending signals (-i) unlimited
> > max locked memory   (kbytes, -l) unlimited
> > max memory size (kbytes, -m) unlimited
> > open files  (-n) 99
> > pipe size(512 bytes, -p) 8
> > POSIX message queues (bytes, -q) unlimited
> > real-time priority  (-r) 0
> > stack size  (kbytes, -s) 244
> > cpu time   (seconds, -t) unlimited
> > max user processes  (-u) unlimited
> > virtual memory  (kbytes, -v) unlimited
> > file locks  (-x) unlimited
> >
> >
> > My network setup is the following:
> >
> >   SIPP machine 
> > (10.10.10.1/24)vlan
> >  55
> > --(10.10.10.254/24 ) FS
> > (10.10.20.254/24)--
> >  vlan56
> > ---(10.10.20.100/24 ) OTHER
> > STOCK FS
> >
> >
> > I launched sipp with:
> >   sipp -sn uac_pcap -s  -r 10 -l 80 

Re: [Freeswitch-users] Strange Performance when using as SBC

2009-01-30 Thread pe...@networkoblivion.com
Given the choice between dual core and dual processor, would one work 
better than the other for FS?  Assuming roughly the same speed.  Or 
would it not really have a measurable difference assuming same speed and 
both Intel?

Anthony Minessale wrote:
> Which of the 2 machines has the load issue? You said it was one box 
> calling the other.
> 
> You have 2 major things against you, single CPU and AMD, but you should 
> at least be able to get in the vicinity of 800-1000 calls on a box like 
> that.
> 
> Are you calling the default ?  It's not really an appropriate 
> extension for load testing.
> On the terminating box you should set up a manual extension that is the 
> first one in the dial plan
> to play a wav file from preferably a ram disk or /tmp
> 
> If you do plan on using this in production accept nothing less than a 
> multi-core intel machine with at least 4 cores, the more cores the 
> better because that parallel processing is where FS gets it's atvantage.
> 
> 
> 
> On Fri, Jan 30, 2009 at 5:56 AM, rod  > wrote:
> 
> Dear list,
> 
> I've been playing with freeswitch for some time (2 months) and the fact
> is that I'm very pleased with the functionnalities of this software.
> 
> I'd like to use FS as a SBC handling media and I'm doing some tests with
> sipp to load the machine but I'm unable to bridge more than 60 calls
> without seeing the CPU being loaded at 100%. I'm sure something is going
> wrong with my setup but I'm unable to see what.
> 
> The test machine has the following specs:
>   Athlon XP 3500+ with 2GB of memory (I know this is not a high end
> machine :p)
> 
> Freeswitch:/opt/freeswitch/log# cat /proc/cpuinfo
> processor   : 0
> vendor_id   : AuthenticAMD
> cpu family  : 15
> model   : 95
> model name  : AMD Athlon(tm) 64 Processor 3500+
> stepping: 2
> cpu MHz : 2199.973
> cache size  : 512 KB
> fpu : yes
> fpu_exception   : yes
> cpuid level : 1
> wp  : yes
> flags   : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
> mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext fxsr_opt
> rdtscp lm 3dnowext 3dnow up rep_good pni cx16 lahf_lm svm extapic
> cr8_legacy
> bogomips: 4402.97
> TLB size: 1024 4K pages
> clflush size: 64
> cache_alignment : 64
> address sizes   : 40 bits physical, 48 bits virtual
> power management: ts fid vid ttp tm stc
> 
> I installed FS on a fresh debian 64:
>   Linux Freeswitch 2.6.26-1-amd64 #1 SMP Sat Jan 10 17:57:00 UTC 2009
> x86_64 GNU/Linux
> 
> I set the ulimit parameters like those on the website:
>   freeswi...@internal> ...
> Freeswitch:/opt/free-svn/bin# ulimit -a
> core file size  (blocks, -c) unlimited
> data seg size   (kbytes, -d) unlimited
> scheduling priority (-e) 0
> file size   (blocks, -f) unlimited
> pending signals (-i) unlimited
> max locked memory   (kbytes, -l) unlimited
> max memory size (kbytes, -m) unlimited
> open files  (-n) 99
> pipe size(512 bytes, -p) 8
> POSIX message queues (bytes, -q) unlimited
> real-time priority  (-r) 0
> stack size  (kbytes, -s) 244
> cpu time   (seconds, -t) unlimited
> max user processes  (-u) unlimited
> virtual memory  (kbytes, -v) unlimited
> file locks  (-x) unlimited
> 
> 
> My network setup is the following:
> 
>   SIPP machine (10.10.10.1/24)vlan
>  55
> --(10.10.10.254/24 ) FS
> (10.10.20.254/24)--
>  vlan56
> ---(10.10.20.100/24 ) OTHER
> STOCK FS
> 
> 
> I launched sipp with:
>   sipp -sn uac_pcap -s  -r 10 -l 80 -d 6 -mi 10.10.10.1 -i
> 10.10.10.1 -mp 25000 10.10.10.254:5060 
> 
> The dialplan on FS is very simple:
> 
> 
> 
>  
> 
>
> 
>   
>data="sofia/external/9...@10.10.20.100 "/>
>   
>   
>   
> 
> 
> 
> FreeSWITCH Version 1.0.trunk (11560M) Started.
> Crash Protection [Disabled]
> Max Sessions[1000]
> Session Rate[100]
> SQL [Enabled]
> 
> 
> The test is very simple: sipp dial  that matches in my FS dialplan
> and this is bridged to an other FS machine playing music on hold.
> When I launch "top"  I see after 30 to 40 s that FS consumes all the CPU
> ressources (with a mean of 50-60 % before), with 80 calls.
> When I set 70 calls, 

Re: [Freeswitch-users] Freeswitch freezes on increasing call traffic

2009-01-30 Thread Anthony Minessale
if you are using unix you can use the supplied script

scripts/freeswitch-gcore

to capture a copy of the resident memory and I can have a look perhaps.

Trunk is safe for production as we are in beta stage for a release of 1.0.3
at this time.



On Fri, Jan 30, 2009 at 9:29 AM, shehzad p  wrote:

>
> When freeswitch freezes, we can't connect to it to check sps status,
> but once we were able to connect and at that time it was showing 0/0 sps.
>
> thanks...
>
> shehzad p wrote:
> >
> > Thanks, Anthony
> >
> > In my previous test sps did not changed,
> > but in recent test sps was dropped to 0 itself (as below).
> > ===
> > UP 0 years, 0 days, 5 hours, 1 minute, 53 seconds, 878 milliseconds, 190
> > microseconds
> > 5474 session(s) since startup
> > 75 session(s) 0/0
> > =
> >
> > My system is 32 bit.
> > CPU is Intel(R) Xeon(R) CPU X3220  @ 2.40GHz
> > And RAM is 4GB
> >
> > Output of ulimit -a is:
> > ulimit -a: (set after first test)
> > core file size  (blocks, -c) unlimited
> > data seg size   (kbytes, -d) unlimited
> > max nice(-e) 20
> > file size   (blocks, -f) unlimited
> > pending signals (-i) unlimited
> > max locked memory   (kbytes, -l) unlimited
> > max memory size (kbytes, -m) unlimited
> > open files  (-n) 99
> > pipe size(512 bytes, -p) 8
> > POSIX message queues (bytes, -q) unlimited
> > max rt priority (-r) unlimited
> > stack size  (kbytes, -s) 244
> > cpu time   (seconds, -t) unlimited
> > max user processes  (-u) unlimited
> > virtual memory  (kbytes, -v) unlimited
> > file locks  (-x) unlimited
> > ===
> >
> >
> > BTW using trunk on production system is safe?
> >
> > Warm thanks for kind responses...
> >
> >
> >
> > Anthony Minessale-2 wrote:
> >>
> >> When you get it in that state what do you see when you execute
> >>
> >> fsctl sps
> >>
> >> is the sps a very low number?
> >>
> >> Did the sps drop by itself from the value you originally set it to?
> >>
> >> Are you using 32 bit?
> >>
> >> if so try all of these commands in your shell before starting FS
> >>
> >> ulimit -c unlimited
> >> ulimit -d unlimited
> >> ulimit -f unlimited
> >> ulimit -i unlimited
> >> ulimit -n 99
> >> ulimit -q unlimited
> >> ulimit -u unlimited
> >> ulimit -v unlimited
> >> ulimit -x unlimited
> >> ulimit -s 244
> >> ulimit -l unlimited
> >>
> >>
> >> DO NOT put them in a script unless you source the script with .
> >> . myscript or they will be undone instantly when the script exits
> >>
> >> BTW, I said to try latest trunk not 1.0.2 We can only debug the
> >> development
> >> code at this point.
> >>
> >>
> >>
> >>
> >>
> >> On Thu, Jan 29, 2009 at 10:06 AM, shehzad p  wrote:
> >>
> >>>
> >>> Hi Anthony,
> >>>
> >>> I found interesting result while testing Freeswitch, and it might be
> >>> cause
> >>> of freezing out of freeswitch,
> >>>
> >>> I updated my system (as you told) with latest stable version Freeswitch
> >>> 1.0.2
> >>> First of all I set sps to 100,
> >>> Then I sends call approximately 100 per seconds, Freeswitch works fine
> >>> and
> >>> handles all the calls very well.
> >>>
> >>> After that I send 130 calls per seconds, and magic happen now,
> >>> Freeswitch
> >>> handles first 100 calls only.
> >>> all the preceding calls were failed (even not appeared in freeswitch
> >>> console
> >>> why?)
> >>>
> >>> When I put ngrep trace, System responds with 503 Maximum Calls In
> >>> Progress.
> >>> (as below)
> >>> ###
> >>> #
> >>> U FSFSFSFSFS -> GWGWGWGWGW
> >>> SIP/2.0 503 Maximum Calls In Progress.
> >>> Via: SIP/2.0/UDP GWGWGWGWGW;branch=z9hG4bK53eafabb;rport=5060.
> >>> From: "9" ;tag=as2e10c170.
> >>> To: ;tag=K3jSUFrDHpmmB.
> >>> Call-ID: 0feb229e58afe7be17110deb361dc...@gwgwgwgwgw.
> >>> CSeq: 102 INVITE.
> >>> Retry-After: 300.
> >>> User-Agent: FreeSWITCH-mod_sofia/1.0.2-exported.
> >>> Accept: application/sdp.
> >>> Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE,
> >>> NOTIFY,
> >>> REFER, UPDATE, REGISTER, INFO, PUBLISH.
> >>> Supported: timer, precondition, path, replaces.
> >>> Allow-Events: talk, presence, dialog, call-info, sla,
> >>> include-session-description, presence.winfo, message-summary, refer.
> >>> Content-Length: 0.
> >>> .
> >>> #
> >>>
> >>>
> >>> Now another issue to note down is that,
> >>> After all above happened and active calls comes to zero,
> >>> I just make a single call which also fails with response 503 - Maximum
> >>> Calls
> >>> In Progress.
> >>>
> >>>
> >>> Is this intended behaviour, should I increase SPS to overcome this. or
> >>> some

Re: [Freeswitch-users] Freeswitch freezes on increasing call traffic

2009-01-30 Thread shehzad p

When freeswitch freezes, we can't connect to it to check sps status,
but once we were able to connect and at that time it was showing 0/0 sps.

thanks...

shehzad p wrote:
> 
> Thanks, Anthony
> 
> In my previous test sps did not changed, 
> but in recent test sps was dropped to 0 itself (as below).
> ===
> UP 0 years, 0 days, 5 hours, 1 minute, 53 seconds, 878 milliseconds, 190
> microseconds
> 5474 session(s) since startup
> 75 session(s) 0/0
> =
> 
> My system is 32 bit.
> CPU is Intel(R) Xeon(R) CPU X3220  @ 2.40GHz
> And RAM is 4GB
> 
> Output of ulimit -a is:
> ulimit -a: (set after first test)
> core file size  (blocks, -c) unlimited
> data seg size   (kbytes, -d) unlimited
> max nice(-e) 20
> file size   (blocks, -f) unlimited
> pending signals (-i) unlimited
> max locked memory   (kbytes, -l) unlimited
> max memory size (kbytes, -m) unlimited
> open files  (-n) 99
> pipe size(512 bytes, -p) 8
> POSIX message queues (bytes, -q) unlimited
> max rt priority (-r) unlimited
> stack size  (kbytes, -s) 244
> cpu time   (seconds, -t) unlimited
> max user processes  (-u) unlimited
> virtual memory  (kbytes, -v) unlimited
> file locks  (-x) unlimited
> ===
> 
> 
> BTW using trunk on production system is safe?
> 
> Warm thanks for kind responses...
> 
> 
> 
> Anthony Minessale-2 wrote:
>> 
>> When you get it in that state what do you see when you execute
>> 
>> fsctl sps
>> 
>> is the sps a very low number?
>> 
>> Did the sps drop by itself from the value you originally set it to?
>> 
>> Are you using 32 bit?
>> 
>> if so try all of these commands in your shell before starting FS
>> 
>> ulimit -c unlimited
>> ulimit -d unlimited
>> ulimit -f unlimited
>> ulimit -i unlimited
>> ulimit -n 99
>> ulimit -q unlimited
>> ulimit -u unlimited
>> ulimit -v unlimited
>> ulimit -x unlimited
>> ulimit -s 244
>> ulimit -l unlimited
>> 
>> 
>> DO NOT put them in a script unless you source the script with .
>> . myscript or they will be undone instantly when the script exits
>> 
>> BTW, I said to try latest trunk not 1.0.2 We can only debug the
>> development
>> code at this point.
>> 
>> 
>> 
>> 
>> 
>> On Thu, Jan 29, 2009 at 10:06 AM, shehzad p  wrote:
>> 
>>>
>>> Hi Anthony,
>>>
>>> I found interesting result while testing Freeswitch, and it might be
>>> cause
>>> of freezing out of freeswitch,
>>>
>>> I updated my system (as you told) with latest stable version Freeswitch
>>> 1.0.2
>>> First of all I set sps to 100,
>>> Then I sends call approximately 100 per seconds, Freeswitch works fine
>>> and
>>> handles all the calls very well.
>>>
>>> After that I send 130 calls per seconds, and magic happen now,
>>> Freeswitch
>>> handles first 100 calls only.
>>> all the preceding calls were failed (even not appeared in freeswitch
>>> console
>>> why?)
>>>
>>> When I put ngrep trace, System responds with 503 Maximum Calls In
>>> Progress.
>>> (as below)
>>> ###
>>> #
>>> U FSFSFSFSFS -> GWGWGWGWGW
>>> SIP/2.0 503 Maximum Calls In Progress.
>>> Via: SIP/2.0/UDP GWGWGWGWGW;branch=z9hG4bK53eafabb;rport=5060.
>>> From: "9" ;tag=as2e10c170.
>>> To: ;tag=K3jSUFrDHpmmB.
>>> Call-ID: 0feb229e58afe7be17110deb361dc...@gwgwgwgwgw.
>>> CSeq: 102 INVITE.
>>> Retry-After: 300.
>>> User-Agent: FreeSWITCH-mod_sofia/1.0.2-exported.
>>> Accept: application/sdp.
>>> Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE,
>>> NOTIFY,
>>> REFER, UPDATE, REGISTER, INFO, PUBLISH.
>>> Supported: timer, precondition, path, replaces.
>>> Allow-Events: talk, presence, dialog, call-info, sla,
>>> include-session-description, presence.winfo, message-summary, refer.
>>> Content-Length: 0.
>>> .
>>> #
>>>
>>>
>>> Now another issue to note down is that,
>>> After all above happened and active calls comes to zero,
>>> I just make a single call which also fails with response 503 - Maximum
>>> Calls
>>> In Progress.
>>>
>>>
>>> Is this intended behaviour, should I increase SPS to overcome this. or
>>> something like bug.
>>>
>>> Please let me know what should be the resolution for this.
>>>
>>> Thanks,
>>> msp
>>>
>>>
>>>
>>> Anthony Minessale-2 wrote:
>>> >
>>> > Also remember,
>>> > Actually completely uninstall and erase /usr/local/freeswitch and the
>>> > 1.0.1
>>> > source tree and freshly install the new one.
>>> > If you try to upgrade on top of a release with trunk it will cause
>>> more
>>> > problems for you.
>>> >
>>> >
>>> > On Wed, Jan 28, 2009 at 3:11 AM, Ken Rice 
>>> wrote:
>>> >
>>> >> Upgrade to trunk... Many many issues have been resolve

Re: [Freeswitch-users] Conference dialing and uuid

2009-01-30 Thread Anthony Minessale
you should be able to use {} in the dial command
you also should be able to do

originate 
{...}sofia/profile/u...@domain.comconference:@
inline

to the api interface


On Fri, Jan 30, 2009 at 7:33 AM, Sias Mey  wrote:

> Hi Brian,
>
> Hmmm Ill do some more testing on it later. But I got a destination out
> of order when I tried. Right now Im busy implementing the string
> checking. Which seems like it will work out ok, but is clearly not
> ideal.
>
> Thanks for the replay
>
> On Fri, Jan 30, 2009 at 04:45:54AM -0600, Brian West wrote:
> > What wasn't working about this?  The {} can be used everywhere without
> > a problem...  Maybe you can provide more details on this.
> >
> > /b
> >
> >
> >
> >
> > On Jan 30, 2009, at 4:39 AM, Sias Mey wrote:
> >
> > >
> > > I couldent find a way of setting channel variables or executing
> > > javascript directly on the conference dial since it expects and
> > > endpoint
> > > and the {} syntax produced an error. So now I am using the Loopback
> > > inteface to register some values.
> >
> >
> > ___
> > 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
>



-- 
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/

AIM: anthm
MSN:anthony_miness...@hotmail.com 
GTALK/JABBER/PAYPAL:anthony.miness...@gmail.com
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:8...@conference.freeswitch.org 
iax:gu...@conference.freeswitch.org/888
googletalk:conf+...@conference.freeswitch.org
pstn:213-799-1400
___
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] More troubles with SQLAlchemy and mod_python

2009-01-30 Thread Anthony Minessale
The reason it works now is because I checked in the LD change into tree
yesterday.
It probably would have worked with the old copy of python too but I did not
realize we did not make that change yet.

But you still have a fresh new python to boot!

On Thu, Jan 29, 2009 at 9:27 PM, Traun Leyden  wrote:

>
> I don't know, I must have had a momentary lapse of reason .. but at least I
> documented it!
>
>
>
> ___
> 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
>
>


-- 
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/

AIM: anthm
MSN:anthony_miness...@hotmail.com 
GTALK/JABBER/PAYPAL:anthony.miness...@gmail.com
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:8...@conference.freeswitch.org 
iax:gu...@conference.freeswitch.org/888
googletalk:conf+...@conference.freeswitch.org
pstn:213-799-1400
___
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] Strange Performance when using as SBC

2009-01-30 Thread Anthony Minessale
Which of the 2 machines has the load issue? You said it was one box calling
the other.

You have 2 major things against you, single CPU and AMD, but you should at
least be able to get in the vicinity of 800-1000 calls on a box like that.

Are you calling the default ?  It's not really an appropriate extension
for load testing.
On the terminating box you should set up a manual extension that is the
first one in the dial plan
to play a wav file from preferably a ram disk or /tmp

If you do plan on using this in production accept nothing less than a
multi-core intel machine with at least 4 cores, the more cores the better
because that parallel processing is where FS gets it's atvantage.



On Fri, Jan 30, 2009 at 5:56 AM, rod  wrote:

> Dear list,
>
> I've been playing with freeswitch for some time (2 months) and the fact
> is that I'm very pleased with the functionnalities of this software.
>
> I'd like to use FS as a SBC handling media and I'm doing some tests with
> sipp to load the machine but I'm unable to bridge more than 60 calls
> without seeing the CPU being loaded at 100%. I'm sure something is going
> wrong with my setup but I'm unable to see what.
>
> The test machine has the following specs:
>   Athlon XP 3500+ with 2GB of memory (I know this is not a high end
> machine :p)
>
> Freeswitch:/opt/freeswitch/log# cat /proc/cpuinfo
> processor   : 0
> vendor_id   : AuthenticAMD
> cpu family  : 15
> model   : 95
> model name  : AMD Athlon(tm) 64 Processor 3500+
> stepping: 2
> cpu MHz : 2199.973
> cache size  : 512 KB
> fpu : yes
> fpu_exception   : yes
> cpuid level : 1
> wp  : yes
> flags   : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
> mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext fxsr_opt
> rdtscp lm 3dnowext 3dnow up rep_good pni cx16 lahf_lm svm extapic
> cr8_legacy
> bogomips: 4402.97
> TLB size: 1024 4K pages
> clflush size: 64
> cache_alignment : 64
> address sizes   : 40 bits physical, 48 bits virtual
> power management: ts fid vid ttp tm stc
>
> I installed FS on a fresh debian 64:
>   Linux Freeswitch 2.6.26-1-amd64 #1 SMP Sat Jan 10 17:57:00 UTC 2009
> x86_64 GNU/Linux
>
> I set the ulimit parameters like those on the website:
>   freeswi...@internal> ...
> Freeswitch:/opt/free-svn/bin# ulimit -a
> core file size  (blocks, -c) unlimited
> data seg size   (kbytes, -d) unlimited
> scheduling priority (-e) 0
> file size   (blocks, -f) unlimited
> pending signals (-i) unlimited
> max locked memory   (kbytes, -l) unlimited
> max memory size (kbytes, -m) unlimited
> open files  (-n) 99
> pipe size(512 bytes, -p) 8
> POSIX message queues (bytes, -q) unlimited
> real-time priority  (-r) 0
> stack size  (kbytes, -s) 244
> cpu time   (seconds, -t) unlimited
> max user processes  (-u) unlimited
> virtual memory  (kbytes, -v) unlimited
> file locks  (-x) unlimited
>
>
> My network setup is the following:
>
>   SIPP machine 
> (10.10.10.1/24)vlan55
> --(10.10.10.254/24) FS 
> (10.10.20.254/24)--vlan56
> ---(10.10.20.100/24) OTHER STOCK FS
>
>
> I launched sipp with:
>   sipp -sn uac_pcap -s  -r 10 -l 80 -d 6 -mi 10.10.10.1 -i
> 10.10.10.1 -mp 25000 10.10.10.254:5060
>
> The dialplan on FS is very simple:
> 
> 
> 
>  
>
>
> 
>   
>data="sofia/external/9...@10.10.20.100"/>
>   
>   
>   
>
> 
>
> FreeSWITCH Version 1.0.trunk (11560M) Started.
> Crash Protection [Disabled]
> Max Sessions[1000]
> Session Rate[100]
> SQL [Enabled]
>
>
> The test is very simple: sipp dial  that matches in my FS dialplan
> and this is bridged to an other FS machine playing music on hold.
> When I launch "top"  I see after 30 to 40 s that FS consumes all the CPU
> ressources (with a mean of 50-60 % before), with 80 calls.
> When I set 70 calls, I have to wait 70-80 s before seeing the same issue.
>
> Presence is set to false on the 2 profile.
>
> I have the same issue with FS 1.0.2 that' s why I tried FS 11560.
>
> When I use the FS machine as a router to test the packet per second
> performance, I'm reaching 100Mbps with 8000pps in each direction (from
> vlan 55 to vlan56) with less than 12% CPU. So that I don't think there's
> an issue with the network.
>
> Here is an "mpstat -P ALL 1" to show you what's happening suddenly with
> 70 bridge calls:
> 12:31:26 CPU   %user   %nice%sys %iowait%irq   %soft
> %steal   %idleintr/s
> 12:31:27 all3,000,003,000,001,004,00
> 0,00   89,00   6241,00
> 12:31:27   03,000,003,000,001,004,00
> 0,00   89,00   6241,00
>
> 12:31:27 CPU   %us

Re: [Freeswitch-users] Q931 decoding Update

2009-01-30 Thread Helmut Kuper
Hello,

today I uploaded the Q931-To-Pcap patch into openzap's trunk (r628). So
you can test it.

How to start Q931 to pcap ?

In FS just enter "oz q931_pcap  on [pcapfilename without
suffix]" to start logging q931 packets to pcap. It opens a file called
"q931.pcap" or ".pcap". It is saved in FS's log directory.

 has currently not really an affect to the command. It is only
used to make sure that you have at least one valid span configured.
Further it is put into 802.1q vlan tag id which is displayed in
wireshrak and tshark. Unfortunately I couldn't test it yet (On my side
it's always zero).



How to stop Q931 pcap?

Simply enter "oz q931_pcap  off" into FS console. 
must be valid, but has no affect. Second way is to unload openzap module
or shutdown FS.



How are the packets saved?

All Q931 packets send or received by any span are saved into one file.
 
To see from where to where the packets was send, the FreeSWITCH's side
is always marked with ethernet address "02:00:01:AA:AA:AA" and IP
address "1.1.1.1"

Remote side is always marked with ethernet address "02:00:01:BB:BB:BB"
and IP adresss "2.2.2.2"

Span ID is intended to be put into VLAN ID, but this is currently not
sure. Maybe it's spanid-1 or always zero - I don't know.

The pcap timestamp starts with 0 and is increased by each q931 packet.
(Maybe a real timestamp is better here)

After each saved q931 packet data is flushed into pcap file. This is
needed for the small perl script below.



How to decode it with wireshark?

Get the pcap file from FS log dir and send it via email, ftp or scp to
where you have wireshark running. Open it in wireshark. Current
wireshark decode the stuff by default as "TPKT - Unknown TPDU type
(0x0)". Of course we have a TPKT packet, but wireshark is not able to
detect the Q931 packet by default. So just do a right click on such a
packet list entry, choose "decode as ..." and click on "do not decode".
You can also click on "Decode" and then choose AIM or CFLOW protocol.
Yes, AIM is not really Q931 or TPKT, but it works... After applying the
packets are decoded as wanted. The black color in the packet list marks
some little bugs in the TCP packet generated by this patch. E.g. tcp
checksum is zero, but should be vaild. I have code to calculate it, but
in my eyes it is an unescessary load for FS.



How to decode it with tshark?

tshark allows us to decode pcap files right on cli. To do so just enter
this:

tshark -d tcp.port==102,aim  -Rq931 -Ttext -V -r 

aim is the protocol as what tshark should decode the tcp payload. Some
other protocols are working to to get tcp's payload decoded as TPKT with
q931 (she so called "Q931 over IP").

Unfortunately it decodes not just q931 but the whole overhead
(ethernet,ip,tcp,tpkt) so I build a perl script, which extracts only
Q931 packets. For this script I have to flush each Q931 packet into the
pcap file, cause this allows to have some kind of real time decoding.

You have to start Q931ToPcap logging in FS first, then start the script.
You need to have tshark installed for this. The script has the pcap
filename incl. path as an optional argument. If not given, it uses the
default filename defined within the script. To stop the script press
"ctrl+c".


Here is the script:

#!/usr/bin/perl
$default_filename="/opt/app/voip/ippbx/log/q931.pcap";
$display=0;

if($#ARGV<0){
$filename=$default_filename;
}
else{
$filename=$ARGV[0];
}

$cmd="tail -n +0 -f ".$filename." | tshark -d tcp.port==102,aim  -Rq931
-Ttext -V -i - 2>1|";

print "\n";

open(PCAP, $cmd);

while ($line=)
{
chomp($line);

if($line=~/^Frame ([0-9]+) \(/)
{
$number=$1;
}

if($line=~/Destination: 02:00:01:aa:aa:aa/i)
{
$direction=1;
}
elsif($line=~/Destination: 02:00:01:bb:bb:bb/i)
{
$direction=0
}
elsif($line=~/802.1Q Virtual LAN, PRI: 7, CFI: 0, ID: ([0-9]+)/i)
{
$spanid=$1;
}
elsif($line eq "Q.931")
{
$display=1;
$intro=1;
next;
}
elsif(length($line)==0)
{
$display=0;
$intro=0;
print "\n\n";
next;
}

if($display == 1)
{
if($intro==1)
{
$mode=$direction?"RECEIVING -":
 "SENDING ---";

printf("-- $mode Packet number: %05i --- SpanID:
%i \n", $number, $spanid);
$intro=0;
}
print "$line\n";
}
}
close(PCAP);




regards
Helmut

___
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitc

Re: [Freeswitch-users] Conference dialing and uuid

2009-01-30 Thread Sias Mey
Hi Brian,

Hmmm Ill do some more testing on it later. But I got a destination out
of order when I tried. Right now Im busy implementing the string
checking. Which seems like it will work out ok, but is clearly not
ideal.

Thanks for the replay

On Fri, Jan 30, 2009 at 04:45:54AM -0600, Brian West wrote:
> What wasn't working about this?  The {} can be used everywhere without  
> a problem...  Maybe you can provide more details on this.
> 
> /b
> 
> 
> 
> 
> On Jan 30, 2009, at 4:39 AM, Sias Mey wrote:
> 
> >
> > I couldent find a way of setting channel variables or executing
> > javascript directly on the conference dial since it expects and  
> > endpoint
> > and the {} syntax produced an error. So now I am using the Loopback
> > inteface to register some values.
> 
> 
> ___
> 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] LDAP Integration

2009-01-30 Thread Leon de Rooij
Hi John,

I've been trying to get your mod_xml_ldap module running, but didn't  
get very far yet..

What is the official way to get the module built ?

I tried modifying trunk/freeswitch.spec so that

XML_INT_MODULES contains xml_int/mod_xml_ldap

There's also a directories/mod_ldap in DISABLED_MODULES in the same  
file, but I don't suppose it's necessary to enable it, or is it ?

The mod_xml_ldap doesn't get built by running make make or dpkg- 
buildpackage from trunk/

Also I tried building it from the module directory itself, but then I  
get the following error:

fsbuil...@sv:~/trunk/src/mod/xml_int/mod_xml_ldap$ make
Compiling mod_xml_ldap.c...
cc1: warnings being treated as errors
mod_xml_ldap.c: In function 'xml_ldap_search':
mod_xml_ldap.c:356: warning: cast from pointer to integer of different  
size
make[1]: *** [mod_xml_ldap.o] Error 1
make: *** [all] Error 1

(Also I had to apt-get install libsasl2 libsasl2-dev, otherwise make  
from this dir errored with missing sasl/sasl.h)

Can you see what I'm doing wrong ?

(I'm using svn rev 11560)

thanks & regards,

Leon

On Jan 6, 2009, at 4:55 AM, John Skopis (Lists) wrote:

> Vinicius Kobashi wrote:
>> hi ppl.
>>
>> i tried hard to make it work, but still i couldnt find a complete
>> openldap scheme that provides these information, and i still could't
>> find out where to put these configuration...
>>
>> can anyone help me?
>>
>> thankz!
>>
>> vinicius escreveu:
>>> thankz!
>>>
>>> ill set my openldap to provide these information..
>>>
>>> but these about these binding settings... where should i set them?
>>>
>>> best regards
>>>
>>> John Skopis (Lists) wrote:
 vinicius wrote:

> hi ppl.. i tried to find something at google, but i couldnt  
> manage to find
> anything.
> i still dont know what to do to make the mod_xml_ldap work.
> i couldnt find information about how to build a config file for  
> the
> module, and where to store it...
>
> can anyone give me a help?
>
>

 Be advised mod_xml_ldap is probably not production quality and will
 undoubtedly change, eventually at least.

 Here is what I used once:

  







ldap://172.16.75.129"; />










>>> mapfrom="FSvm-email-all- 
 messages" />
>>> />
>>> />




>>> bindings="configuration"/>

ldap://172.16.75.129"; />



 


 which should/probably/might work with ldap objects like these:

 dn: cn=John Skopis,ou=people,dc=example
 objectClass: person
 objectClass: inetOrgPerson
 objectClass: organizationalPerson
 objectClass: FreeSWITCH-Exten-Object
 objectClass: top
 cn: John Skopis
 sn: Skopis
 givenName: John
 FSid: 1001
 FSmailbox: 1001
 FSpassword: 1234
 FSvm-password: 1001
 FSemail-addr: john...@skopis.com
 FSvm-email-all-messages: TRUE
 FSvm-delete-file: TRUE
 FSvm-attach-file: TRUE

 dn: SIPIdentityUserName=1001,ou=h350,dc=example
 objectClass: person
 objectClass: SIPIdentity
 objectClass: top
 cn: 1001
 sn: 1001
 SIPIdentitySIPURI: sip:1...@172.16.75.129
 SIPIdentityRegistrarAddress: 172.16.75.128
 SIPIdentityProxyAddress: 172.16.75.128
 SIPIdentityPassword: 1234
 SIPIdentityUserName: 1001
 SIPIdentityServiceLevel: premium


>
> Again, the module is not production quality. Hopefully I will conjurer
> the time and know-how to put something decent together eventually.
>
> To load configuration for any fs module you need to define the XML
> configuration element under the section "configuration".
>
> A good starting point is the file
> $PREFIX/conf/freeswitch.xml
>
> http://wiki.freeswitch.org/wiki/Freeswitch.xml
>
> Also take a look at $PREFIX/logs/freeswitch.xml.fsxml
>
> to load mod_xml_ldap you would need to add something like this to
> modules.conf.xml
>
> 
>
> and create an xml_ldap.conf.xml in
> $PREFIX/autoload_configs/xml_ldap.conf.xml
>
> 
> ...
> 
>
> The ITU is doing some work called h.350:
> http://www.itu.int/ITU-T/studygroups/com16/h350/index.html
>
> Here is what I was working with:
> attributetype ( 1.3.6.1.4.1.65535.2.1.1 NAME 'FSid'
>DESC 'FreeSWITCH Extension ID'
>EQUALITY caseIgnoreIA5Match
>SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
>
> attributetype ( 1.3.6.1.4.1.65535.2.1.2 NAME 'FSmailbox'
>DESC 'FreeSWITCH Extension Mailbox'
>EQUALITY caseIgnoreIA5Match
>SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
>
> attributetype ( 1.3.6.1.4.1.65535.2.1.3 NAME 'FSpassword'
>  

[Freeswitch-users] Strange Performance when using as SBC

2009-01-30 Thread rod
Dear list,

I've been playing with freeswitch for some time (2 months) and the fact 
is that I'm very pleased with the functionnalities of this software.

I'd like to use FS as a SBC handling media and I'm doing some tests with 
sipp to load the machine but I'm unable to bridge more than 60 calls 
without seeing the CPU being loaded at 100%. I'm sure something is going 
wrong with my setup but I'm unable to see what.

The test machine has the following specs:
   Athlon XP 3500+ with 2GB of memory (I know this is not a high end 
machine :p)

Freeswitch:/opt/freeswitch/log# cat /proc/cpuinfo
processor   : 0
vendor_id   : AuthenticAMD
cpu family  : 15
model   : 95
model name  : AMD Athlon(tm) 64 Processor 3500+
stepping: 2
cpu MHz : 2199.973
cache size  : 512 KB
fpu : yes
fpu_exception   : yes
cpuid level : 1
wp  : yes
flags   : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge 
mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext fxsr_opt 
rdtscp lm 3dnowext 3dnow up rep_good pni cx16 lahf_lm svm extapic 
cr8_legacy
bogomips: 4402.97
TLB size: 1024 4K pages
clflush size: 64
cache_alignment : 64
address sizes   : 40 bits physical, 48 bits virtual
power management: ts fid vid ttp tm stc

I installed FS on a fresh debian 64:
   Linux Freeswitch 2.6.26-1-amd64 #1 SMP Sat Jan 10 17:57:00 UTC 2009 
x86_64 GNU/Linux

I set the ulimit parameters like those on the website:
   freeswi...@internal> ...
Freeswitch:/opt/free-svn/bin# ulimit -a
core file size  (blocks, -c) unlimited
data seg size   (kbytes, -d) unlimited
scheduling priority (-e) 0
file size   (blocks, -f) unlimited
pending signals (-i) unlimited
max locked memory   (kbytes, -l) unlimited
max memory size (kbytes, -m) unlimited
open files  (-n) 99
pipe size(512 bytes, -p) 8
POSIX message queues (bytes, -q) unlimited
real-time priority  (-r) 0
stack size  (kbytes, -s) 244
cpu time   (seconds, -t) unlimited
max user processes  (-u) unlimited
virtual memory  (kbytes, -v) unlimited
file locks  (-x) unlimited


My network setup is the following:

   SIPP machine (10.10.10.1/24)vlan 55 
--(10.10.10.254/24) FS (10.10.20.254/24)-- vlan56 
---(10.10.20.100/24) OTHER STOCK FS


I launched sipp with:
   sipp -sn uac_pcap -s  -r 10 -l 80 -d 6 -mi 10.10.10.1 -i 
10.10.10.1 -mp 25000 10.10.10.254:5060

The dialplan on FS is very simple:



 


 
   
   
   
   
   



FreeSWITCH Version 1.0.trunk (11560M) Started.
Crash Protection [Disabled]
Max Sessions[1000]
Session Rate[100]
SQL [Enabled]


The test is very simple: sipp dial  that matches in my FS dialplan 
and this is bridged to an other FS machine playing music on hold.
When I launch "top"  I see after 30 to 40 s that FS consumes all the CPU 
ressources (with a mean of 50-60 % before), with 80 calls.
When I set 70 calls, I have to wait 70-80 s before seeing the same issue.

Presence is set to false on the 2 profile.

I have the same issue with FS 1.0.2 that' s why I tried FS 11560.

When I use the FS machine as a router to test the packet per second 
performance, I'm reaching 100Mbps with 8000pps in each direction (from 
vlan 55 to vlan56) with less than 12% CPU. So that I don't think there's 
an issue with the network.

Here is an "mpstat -P ALL 1" to show you what's happening suddenly with 
70 bridge calls:
12:31:26 CPU   %user   %nice%sys %iowait%irq   %soft  
%steal   %idleintr/s
12:31:27 all3,000,003,000,001,004,00
0,00   89,00   6241,00
12:31:27   03,000,003,000,001,004,00
0,00   89,00   6241,00

12:31:27 CPU   %user   %nice%sys %iowait%irq   %soft  
%steal   %idleintr/s
12:31:28 all   14,140,00   56,570,002,025,05
0,00   22,22   6035,35
12:31:28   0   14,140,00   56,570,002,025,05
0,00   22,22   6035,35

12:31:28 CPU   %user   %nice%sys %iowait%irq   %soft  
%steal   %idleintr/s
12:31:29 all   24,750,00   67,330,000,996,93
0,000,00   5483,17
12:31:29   0   24,750,00   67,330,000,996,93
0,000,00   5483,17


The CPU is going from 89% idle to 0% in less than 2 seconds.

I know that I don't have to expect too much from this kind of hardware, 
but it seems strange that the CPU power vanished so suddenly.

Thanks a lot for the guys that have read this long mail :p

kind regards,
rod


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

[Freeswitch-users] Strange Performance when using as SBC

2009-01-30 Thread rod
Dear list,

I've been playing with freeswitch for some time (2 months) and the fact 
is that I'm very pleased with the functionnalities of this software.

I'd like to use FS as a SBC handling media and I'm doing some tests with 
sipp to load the machine but I'm unable to bridge more than 60 calls 
without seeing the CPU being loaded at 100%. I'm sure something is going 
wrong with my setup but I'm unable to see what.

The test machine has the following specs:
Athlon XP 3500+ with 2GB of memory (I know this is not a high end 
machine :p)

Freeswitch:/opt/freeswitch/log# cat /proc/cpuinfo
processor   : 0
vendor_id   : AuthenticAMD
cpu family  : 15
model   : 95
model name  : AMD Athlon(tm) 64 Processor 3500+
stepping: 2
cpu MHz : 2199.973
cache size  : 512 KB
fpu : yes
fpu_exception   : yes
cpuid level : 1
wp  : yes
flags   : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge 
mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext fxsr_opt 
rdtscp lm 3dnowext 3dnow up rep_good pni cx16 lahf_lm svm extapic cr8_legacy
bogomips: 4402.97
TLB size: 1024 4K pages
clflush size: 64
cache_alignment : 64
address sizes   : 40 bits physical, 48 bits virtual
power management: ts fid vid ttp tm stc

I installed FS on a fresh debian 64:
Linux Freeswitch 2.6.26-1-amd64 #1 SMP Sat Jan 10 17:57:00 UTC 2009 
x86_64 GNU/Linux

I set the ulimit parameters like those on the website:
freeswi...@internal> ...
Freeswitch:/opt/free-svn/bin# ulimit -a
core file size  (blocks, -c) unlimited
data seg size   (kbytes, -d) unlimited
scheduling priority (-e) 0
file size   (blocks, -f) unlimited
pending signals (-i) unlimited
max locked memory   (kbytes, -l) unlimited
max memory size (kbytes, -m) unlimited
open files  (-n) 99
pipe size(512 bytes, -p) 8
POSIX message queues (bytes, -q) unlimited
real-time priority  (-r) 0
stack size  (kbytes, -s) 244
cpu time   (seconds, -t) unlimited
max user processes  (-u) unlimited
virtual memory  (kbytes, -v) unlimited
file locks  (-x) unlimited


My network setup is the following:

SIPP machine (10.10.10.1/24)vlan 55 
--(10.10.10.254/24) FS (10.10.20.254/24)-- vlan56 
---(10.10.20.100/24) OTHER STOCK FS


I launched sipp with:
sipp -sn uac_pcap -s  -r 10 -l 80 -d 6 -mi 10.10.10.1 -i 
10.10.10.1 -mp 25000 10.10.10.254:5060

The dialplan on FS is very simple:



  

 
  




   
  



FreeSWITCH Version 1.0.trunk (11560M) Started.
Crash Protection [Disabled]
Max Sessions[1000]
Session Rate[100]
SQL [Enabled]


The test is very simple: sipp dial  that matches in my FS dialplan 
and this is bridged to an other FS machine playing music on hold.
When I launch "top"  I see after 30 to 40 s that FS consumes all the CPU 
ressources (with a mean of 50-60 % before), with 80 calls.
When I set 70 calls, I have to wait 70-80 s before seeing the same issue.

Presence is set to false on the 2 profile.

I have the same issue with FS 1.0.2 that' s why I tried FS 11560.

When I use the FS machine as a router to test the packet per second 
performance, I'm reaching 100Mbps with 8000pps in each direction (from 
vlan 55 to vlan56) with less than 12% CPU. So that I don't think there's 
an issue with the network.

Here is an "mpstat -P ALL 1" to show you what's happening suddenly with 
70 bridge calls:
12:31:26 CPU   %user   %nice%sys %iowait%irq   %soft  
%steal   %idleintr/s
12:31:27 all3,000,003,000,001,004,00
0,00   89,00   6241,00
12:31:27   03,000,003,000,001,004,00
0,00   89,00   6241,00

12:31:27 CPU   %user   %nice%sys %iowait%irq   %soft  
%steal   %idleintr/s
12:31:28 all   14,140,00   56,570,002,025,05
0,00   22,22   6035,35
12:31:28   0   14,140,00   56,570,002,025,05
0,00   22,22   6035,35

12:31:28 CPU   %user   %nice%sys %iowait%irq   %soft  
%steal   %idleintr/s
12:31:29 all   24,750,00   67,330,000,996,93
0,000,00   5483,17
12:31:29   0   24,750,00   67,330,000,996,93
0,000,00   5483,17


The CPU is going from 89% idle to 0% in less than 2 seconds.

I know that I don't have to expect too much from this kind of hardware, 
but it seems strange that the CPU power vanished so suddenly.

Thanks a lot for the guys that have read this long mail :p

kind regards,
rod





___
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/option

Re: [Freeswitch-users] Freeswitch freezes on increasing call traffic

2009-01-30 Thread shehzad p

Thanks, Anthony

In my previous test sps did not changed, 
but in recent test sps was dropped to 0 itself (as below).
===
UP 0 years, 0 days, 5 hours, 1 minute, 53 seconds, 878 milliseconds, 190
microseconds
5474 session(s) since startup
75 session(s) 0/0
=

My system is 32 bit.
CPU is Intel(R) Xeon(R) CPU X3220  @ 2.40GHz
And RAM is 4GB

Output of ulimit -a is:
ulimit -a: (set after first test)
core file size  (blocks, -c) unlimited
data seg size   (kbytes, -d) unlimited
max nice(-e) 20
file size   (blocks, -f) unlimited
pending signals (-i) unlimited
max locked memory   (kbytes, -l) unlimited
max memory size (kbytes, -m) unlimited
open files  (-n) 99
pipe size(512 bytes, -p) 8
POSIX message queues (bytes, -q) unlimited
max rt priority (-r) unlimited
stack size  (kbytes, -s) 244
cpu time   (seconds, -t) unlimited
max user processes  (-u) unlimited
virtual memory  (kbytes, -v) unlimited
file locks  (-x) unlimited
===


BTW using trunk on production system is safe?

Warm thanks for kind responses...



Anthony Minessale-2 wrote:
> 
> When you get it in that state what do you see when you execute
> 
> fsctl sps
> 
> is the sps a very low number?
> 
> Did the sps drop by itself from the value you originally set it to?
> 
> Are you using 32 bit?
> 
> if so try all of these commands in your shell before starting FS
> 
> ulimit -c unlimited
> ulimit -d unlimited
> ulimit -f unlimited
> ulimit -i unlimited
> ulimit -n 99
> ulimit -q unlimited
> ulimit -u unlimited
> ulimit -v unlimited
> ulimit -x unlimited
> ulimit -s 244
> ulimit -l unlimited
> 
> 
> DO NOT put them in a script unless you source the script with .
> . myscript or they will be undone instantly when the script exits
> 
> BTW, I said to try latest trunk not 1.0.2 We can only debug the
> development
> code at this point.
> 
> 
> 
> 
> 
> On Thu, Jan 29, 2009 at 10:06 AM, shehzad p  wrote:
> 
>>
>> Hi Anthony,
>>
>> I found interesting result while testing Freeswitch, and it might be
>> cause
>> of freezing out of freeswitch,
>>
>> I updated my system (as you told) with latest stable version Freeswitch
>> 1.0.2
>> First of all I set sps to 100,
>> Then I sends call approximately 100 per seconds, Freeswitch works fine
>> and
>> handles all the calls very well.
>>
>> After that I send 130 calls per seconds, and magic happen now, Freeswitch
>> handles first 100 calls only.
>> all the preceding calls were failed (even not appeared in freeswitch
>> console
>> why?)
>>
>> When I put ngrep trace, System responds with 503 Maximum Calls In
>> Progress.
>> (as below)
>> ###
>> #
>> U FSFSFSFSFS -> GWGWGWGWGW
>> SIP/2.0 503 Maximum Calls In Progress.
>> Via: SIP/2.0/UDP GWGWGWGWGW;branch=z9hG4bK53eafabb;rport=5060.
>> From: "9" ;tag=as2e10c170.
>> To: ;tag=K3jSUFrDHpmmB.
>> Call-ID: 0feb229e58afe7be17110deb361dc...@gwgwgwgwgw.
>> CSeq: 102 INVITE.
>> Retry-After: 300.
>> User-Agent: FreeSWITCH-mod_sofia/1.0.2-exported.
>> Accept: application/sdp.
>> Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE,
>> NOTIFY,
>> REFER, UPDATE, REGISTER, INFO, PUBLISH.
>> Supported: timer, precondition, path, replaces.
>> Allow-Events: talk, presence, dialog, call-info, sla,
>> include-session-description, presence.winfo, message-summary, refer.
>> Content-Length: 0.
>> .
>> #
>>
>>
>> Now another issue to note down is that,
>> After all above happened and active calls comes to zero,
>> I just make a single call which also fails with response 503 - Maximum
>> Calls
>> In Progress.
>>
>>
>> Is this intended behaviour, should I increase SPS to overcome this. or
>> something like bug.
>>
>> Please let me know what should be the resolution for this.
>>
>> Thanks,
>> msp
>>
>>
>>
>> Anthony Minessale-2 wrote:
>> >
>> > Also remember,
>> > Actually completely uninstall and erase /usr/local/freeswitch and the
>> > 1.0.1
>> > source tree and freshly install the new one.
>> > If you try to upgrade on top of a release with trunk it will cause more
>> > problems for you.
>> >
>> >
>> > On Wed, Jan 28, 2009 at 3:11 AM, Ken Rice  wrote:
>> >
>> >> Upgrade to trunk... Many many issues have been resolved since 1.0.1
>> was
>> >> the
>> >> current release
>> >>
>> >>
>> >> > From: shehzad p 
>> >> > Reply-To: 
>> >> > Date: Wed, 28 Jan 2009 00:54:13 -0800 (PST)
>> >> > To: 
>> >> > Subject: [Freeswitch-users]  Freeswitch freezes on increasing call
>> >> traffic
>> >> >
>> >> >
>> >> > Hi all,
>> >> >
>> >> > Yesterday my Freeswitch server faced a problem when call traffic
>> >> increa

Re: [Freeswitch-users] Conference dialing and uuid

2009-01-30 Thread Brian West
What wasn't working about this?  The {} can be used everywhere without  
a problem...  Maybe you can provide more details on this.

/b




On Jan 30, 2009, at 4:39 AM, Sias Mey wrote:

>
> I couldent find a way of setting channel variables or executing
> javascript directly on the conference dial since it expects and  
> endpoint
> and the {} syntax produced an error. So now I am using the Loopback
> inteface to register some values.


___
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] Conference dialing and uuid

2009-01-30 Thread Sias Mey
Hi,

Im trying to build a web based conference control system.

Got most of it sorted with some help from the list but I seem to have
run into some strangeness.

I use a conference dial call to pull extra users into the conference.

I couldent find a way of setting channel variables or executing
javascript directly on the conference dial since it expects and endpoint
and the {} syntax produced an error. So now I am using the Loopback
inteface to register some values.

One of the functions these script fullfill is to register the uuid of
the new channel in the database, however after thinking for a while all
of this is working fine upon further testing I found that going through
loopback generated 3 channels. I was saving the uuid of the a leg of the
call to loopback into the database. However to manipulate the call in
the conference I need the uuid of the leg bridgeing to the conference.

I have tried some queries against the core database in via javascript
however there seems to be some delay as to when the needed leg gets
inserted into the channels table. I have tried with execute_on_ring and
execute_on_answer. But I suspect that the call only gets added after it
is actually answered.

Is there some way for me to find the uuid of this call? I can use api
calls via conference list to find all the calls in the conference,
however if two people get added to the same conference in rapid
succesion it will be quite circumstantial as to which one is which since
I dont have a way of directly relating the call back to the channels
that originally spawned it without a lot of costly text comparisons.

Any help from someone who understands this beter than I do will be
greatly appreciated.

Thanks in advance,
Sias

___
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