Re: [Freeswitch-users] Yet another question about A500 + FS

2009-08-25 Thread Vassil Panayotov
Thank you for you reply Mike!

'ignore_early_media=true' variable setting is the solution, but I figured it
out shortly after posting to the ML.

Best regards,
V. Panayotov

On Mon, Aug 24, 2009 at 10:46 PM, Michael Jerris m...@jerris.com wrote:

 Do you have an answer in the dialplan for that extension?  Also, check
 out the ignore_early_media variable.

 Mike

 On Aug 23, 2009, at 2:21 AM, Vassil Panayotov wrote:

  Hi,
 
  I managed to get our A500 running with FreeSWITCH 1.0.4 stable using
  wanpipe 3.4.4 drivers. But now I have another problem...
  I want to originate calls through event socket, and I only want to
  receive ANSWERED(+OK) reply when the user actually answers.
 
  Now the situation is:
 
  
  originate openzap/1/a/123456 023
  2009-08-23 08:44:06.458166 [WARNING] ozmod_ss7_boost.c:319 TX EVENT:
  CALL_START:(80) [w1g1] CSid=2 Seq=2 Cn=[FreeSWITCH] Cd=[123456] Ci=
  [00]
  2009-08-23 08:44:06.729889 [WARNING] ozmod_ss7_boost.c:1141 RX EVENT
  (N): CALL_START_ACK:(81) [w1g1] Rc=0 CSid=2 Seq=4
  2009-08-23 08:44:06.731279 [NOTICE] switch_channel.c:602 New Channel
  OpenZAP/1:1/123456 [f8fca2be-8fa7-11de-9076-511e29dfc082]
  2009-08-23 08:44:06.740256 [NOTICE] mod_openzap.c:1522 Pre-Answer
  OpenZAP/1:1/123456!
  API CALL [originate(openzap/1/a/123456 023)] output:
  +OK f8fca2be-8fa7-11de-9076-511e29dfc082
 
  2009-08-23 08:44:06.741332 [NOTICE] switch_ivr.c:1349 Transfer
  OpenZAP/1:1/123456 to xml[...@default]
  freeswi...@emo-voip 2009-08-23 08:44:06.743475 [INFO]
  mod_dialplan_xml.c:315 Processing FreeSWITCH-023 in context default
  2009-08-23 08:44:06.748816 [NOTICE] mod_dptools.c:649 Channel
  [OpenZAP/1:1/123456] has been answered
  2009-08-23 08:44:20.206010 [WARNING] ozmod_ss7_boost.c:1141 RX EVENT
  (N): CALL_ANSWERED:(84) [w1g1] Rc=0 CSid=2 Seq=5
  2009-08-23 08:44:28.903602 [WARNING] ozmod_ss7_boost.c:1141 RX EVENT
  (N): CALL_STOPPED:(85) [w1g1] Rc=16 CSid=2 Seq=6
  2009-08-23 08:44:28.903602 [NOTICE] mod_openzap.c:1500 Hangup
  OpenZAP/1:1/123456 [CS_EXECUTE] [NORMAL_CLEARING]
  2009-08-23 08:44:28.903602 [WARNING] ss7_boost_client.c:218 TX EVENT
  (N): CALL_STOPPED_ACK:(86) [w1g1] Rc=0 CSid=0 Seq=3
  2009-08-23 08:44:30.24814 [NOTICE] switch_core_session.c:1086
  Session 2 (OpenZAP/1:1/123456) Ended
  2009-08-23 08:44:30.24814 [NOTICE] switch_core_session.c:1088 Close
  Channel OpenZAP/1:1/123456 [CS_DESTROY]
  
 
  Extension 023 is an IVR. As you can see FreeSWITCH answers the call
  (2009-08-23 08:44:06.748816 [NOTICE] mod_dptools.c:649 Channel
  [OpenZAP/1:1/123456] has been answered) 20 seconds before user
  actually pick up the phone (2009-08-23 08:44:20.206010 [WARNING]
  ozmod_ss7_boost.c:1141 RX EVENT (N): CALL_ANSWERED:(84) [w1g1] Rc=0
  CSid=2 Seq=5).
 
  So Sangoma drivers/daemons report the events correctly.
  How can I set FreeSWITCH to answer after receiving RX EVENT (N):
  CALL_ANSWERED from the driver?
 
  Thank you,
  V. Panayotov
  ___
  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] SIPp issues - seems FS doesn't understand ACK message

2009-08-25 Thread Tihomir Culjaga
Hello Takeshi,

Thanks for your hint... it worked out... so to be precise:

VIA header of both INVITE and ACK messages MUST be identical (IP:PORT +
branch)... and you are right... it might not be according to SIP
specification. Anyhow, i get FS understand my ACK message.


Finally, here is what i used and I'm getting some poor results .. but this
is another topic :)


Thanks for your help.
Tihomir.


sipp 10.4.4.251 -sf uac_redirect.xml -s 30003016094191500 -trace_err -r 1
-rp 100 -trace_msg -inf test.txt -m 2 -l 4000


?xml version=1.0 encoding=ISO-8859-1 ?
!DOCTYPE scenario SYSTEM sipp.dtd


scenario name=Basic Sipstone UAC
  send retrans=500 start_rtd=1 start_rtd=2

![CDATA[

  INVITE sip:[servi...@[remote_ip]:[remote_port] SIP/2.0
  Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
  Max-Forwards: 70
  Contact: sip:[fiel...@[local_ip]
  From: [field1]
sip:[fiel...@[local_ip]:[local_port];tag=[call_number]
  To: [service] sip:[servi...@[remote_ip]:[remote_port]
  Call-ID: [call_id]
  CSeq: 1 INVITE
  Content-Type: application/sdp
  Content-Length: [len]

  v=0
  o=user1 53655765 2353687637 IN IP[local_ip_type] [local_ip]
  s=-
  c=IN IP[media_ip_type] [media_ip]
  t=0 0
  m=audio [media_port] RTP/AVP 0
  a=rtpmap:0 PCMU/8000

]]
  /send

  recv response=100
optional=true rtd=1
  /recv


  recv response=302 rtd=2
  /recv

  send
![CDATA[

  ACK sip:[servi...@[remote_ip]:[remote_port] SIP/2.0
  Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch-3]
  From: [field1]
sip:[fiel...@1[local_ip]:[local_port];tag=[call_number]
  To: [service]
sip:[servi...@[remote_ip]:[remote_port][peer_tag_param]
  Call-ID: [call_id]
  CSeq: 1 ACK
  Max-Forwards: 70
  Content-Length: 0

]]
  /send

  !-- definition of the response time repartition table (unit is ms)   --
  ResponseTimeRepartition value=10, 20, 30, 40, 50, 100, 150, 200/

  !-- definition of the call length repartition table (unit is ms) --
  CallLengthRepartition value=10, 50, 100, 500, 1000, 5000, 1/

/scenario



On Tue, Aug 25, 2009 at 3:57 AM, mayamatakeshi mayamatake...@gmail.comwrote:

 On Tue, Aug 25, 2009 at 10:52 AM, mayamatakeshimayamatake...@gmail.com
 wrote:
  On Tue, Aug 25, 2009 at 7:31 AM, Tihomir Culjagatculj...@gmail.com
 wrote:
 
  sipp_cmd: sipp -sn uac 10.4.4.251 -sf uac_redirect.xml -s
  30003016094191500 -trace_err -r 1 -rp 1000 -trace_msg -inf test.txt -m 1
 -l
  4000
  scenario file:  uac_redirect.xml
  FS dialplan:   public.xml
  SIP trace:  trace.log
 
  The Via definition in your SIPp scenario differs between the INVITE and
 the ACK:
 
  INVITE:
  Via: SIP/2.0/[transport] [local_ip];branch=[branch]
 
  ACK:
  Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch-3]
 
 
  In the INVITE, you are not adding the [local_port] as you do in the ACK.
  Just adding the [local_port] in the INVITE makes FreeSWITCH accept the
 ACK.
  So it seems FS is not checking just the ACK's branch against the
  INVITE's; it seems it is checking the whole Via header.
  I don't know if this is in accordance to SIP specs.
  Another thing, about the way you are calling SIPp: do no use -sn uac
  and -sf uac_redirect.xml at the same time. The parameter -sn xxx
  means use the internal (embedded) scenario named xxx. So this
  conflicts with the other parameter -sf which specifies an external
  profile.

 I mean, an external scenario (file).

  It seems this doesn't cause any problem (probably because in
  the sipp startup, -sf overrides -sn), but it is misleading.
 
  regards,
  takeshi
 

 ___
 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] reload user data

2009-08-25 Thread Juan Backson
Hello,

I would like to dynamically add user to freeswitch.  If I add a new file to
the directory dir, is there anyway to have freeswitch to read the new user
xml file without having to restart freeswitch?

Other than using flat file, is there anyway to add user to freeswitch user
api command?

Thanks,
JB
___
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] reload user data

2009-08-25 Thread Ken Rice
You just need to reloadxml you don¹t have to restart the whole thing. You
can also use xml_curl to feed the users from a database see my contrib
directory (contrib/swk) for some example scripts and db code



From: Juan Backson juanback...@gmail.com
Reply-To: freeswitch-users@lists.freeswitch.org
Date: Tue, 25 Aug 2009 16:21:58 +0800
To: freeswitch-users@lists.freeswitch.org
Subject: [Freeswitch-users] reload user data

Hello,
 
I would like to dynamically add user to freeswitch.  If I add a new file to
the directory dir, is there anyway to have freeswitch to read the new user
xml file without having to restart freeswitch?
 
Other than using flat file, is there anyway to add user to freeswitch user
api command?
 
Thanks,
JB


___
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] Freeswitch performance as a redirecting server

2009-08-25 Thread Tihomir Culjaga
Hello,

i'm trying to use freeswitch as a redirecting server meaning FS has to
receive an INVITE and according to some rules it will redirect calls to
other destinations.


CALLING_USERFREESWITCHSOMEWHERE

INVITE ---
   -- 100 Trying
   -- 302 Moved Temporary
ACK---
INVITE-



Well, wverything works well except i have perfromance issues  on my HW
FS cannot do more than 40 CPS (INVITE answered by 302 Moved Temporary). When
i increase the rate, FS starts delaying 302 response. Right at 50 CPS i see
calls being build up in FS and the delay begining to grow.

When i observe the machine, load average is almost nothing (load average:
1.41, 0.61, 0.60) CPU never goes to 100%, and i see only one thread taking
most load... all others are just sitting there with 1-5 % CPU time.
This looks to me as FS handles 302 messages in a single thread?!?!


tculj...@fs:/usr/local/freeswitch/conf/dialplan$ top -H

top - 10:41:37 up 167 days, 20:42,  3 users,  load average: 1.41, 0.61, 0.60
Tasks:  83 total,   2 running,  81 sleeping,   0 stopped,   0 zombie
Cpu(s): 25.3%us,  1.5%sy,  0.0%ni, 30.3%id, 42.7%wa,  0.0%hi,  0.2%si,
0.0%st
Mem:   2074520k total,   571244k used,  1503276k free,   259604k buffers
Swap:  2650684k total, 3020k used,  2647664k free,   153868k cached

  PID USER  PR  NI  VIRT  RES  SHR S %CPU %MEMTIME+
COMMAND
 4814 root  20   0 34188  20m 3780 S   38  1.0   3:10.29
freeswitch
 4800 root  20   0 34188  20m 3780 S6  1.0   0:08.26
freeswitch
 4798 root  20   0 34188  20m 3780 R5  1.0   0:24.46
freeswitch
 4787 root  20   0 34188  20m 3780 S2  1.0   0:11.24
freeswitch
 4794 root  20   0 34188  20m 3780 S1  1.0   0:11.42
freeswitch
 4803 root  20   0 34188  20m 3780 S1  1.0   0:11.74
freeswitch
 4788 root  20   0 34188  20m 3780 S1  1.0   0:02.96
freeswitch
 4804 root  20   0 34188  20m 3780 S1  1.0   0:01.64
freeswitch
 4807 root  20   0 34188  20m 3780 S1  1.0   0:01.68
freeswitch
 4811 root  20   0 34188  20m 3780 S1  1.0   0:02.50 freeswitch



cat /proc/cpuinfo
processor   : 0
vendor_id   : GenuineIntel
cpu family  : 6
model   : 15
model name  : Intel(R) Xeon(R) CPU5140  @ 2.33GHz
stepping: 6
cpu MHz : 2333.560
cache size  : 4096 KB
physical id : 0
siblings: 2
core id : 0
cpu cores   : 2
apicid  : 0
initial apicid  : 0
fdiv_bug: no
hlt_bug : no
f00f_bug: no
coma_bug: no
fpu : yes
fpu_exception   : yes
cpuid level : 10
wp  : yes
flags   : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca
cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe lm
constant_tsc arch_perfmon pebs bts pni monitor ds_cpl vmx est tm2 ssse3 cx16
xtpr dca lahf_lm
bogomips: 4670.78
clflush size: 64
power management:

processor   : 1
vendor_id   : GenuineIntel
cpu family  : 6
model   : 15
model name  : Intel(R) Xeon(R) CPU5140  @ 2.33GHz
stepping: 6
cpu MHz : 2333.560
cache size  : 4096 KB
physical id : 0
siblings: 2
core id : 1
cpu cores   : 2
apicid  : 1
initial apicid  : 1
fdiv_bug: no
hlt_bug : no
f00f_bug: no
coma_bug: no
fpu : yes
fpu_exception   : yes
cpuid level : 10
wp  : yes
flags   : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca
cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe lm
constant_tsc arch_perfmon pebs bts pni monitor ds_cpl vmx est tm2 ssse3 cx16
xtpr dca lahf_lm
bogomips: 4666.82
clflush size: 64
power management:



uname -a
Linux l01sipindir1 2.6.26-1-686 #1 SMP Sat Jan 10 18:29:31 UTC 2009 i686
GNU/Linux



Of course, i've tuned the machine up

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 240
ulimit -l unlimited
ulimit -a


Started FS with minimum modules but still 40 CPS seems to be the limit.


So, is there any way to improve performance?


Tihomir.
!-- http://wiki.freeswitch.org/wiki/Sofia_Configuration_Files -- 
profile name=external
  !-- This profile is only for outbound registrations to providers --
  gateways
X-PRE-PROCESS cmd=include data=external/*.xml/
  /gateways

  aliases
alias name=outbound/
  /aliases

  domains
domain name=$${domain} parse=true/
  /domains

  settings
param name=debug value=0/
param name=sip-trace value=no/
param name=rfc2833-pt value=101/
param name=sip-port value=5080/
param name=dialplan value=XML/

[Freeswitch-users] how to avoid many | in bridge application?

2009-08-25 Thread Max Ivanov
Nowdays I 'm forced to put multiple | to find first free gateway, ie
sofia/gateway/panas111/1000|sofia/gateway/panas112/1000|sofia/gateway/panas113/1000
,
the whole sting is tooo long, is there any shorter way to write same thing? Like
sofia/gateway/panas*/1000 will try all gateways matching the pattern.

___
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 performance as a redirecting server

2009-08-25 Thread Giovanni Maruzzelli
Maybe your load comes from disk access?

Try putting the sql and log directories on a ramdisk.

OTH,

-giovanni

On Tue, Aug 25, 2009 at 10:54 AM, Tihomir Culjagatculj...@gmail.com wrote:
 Hello,

 i'm trying to use freeswitch as a redirecting server meaning FS has to
 receive an INVITE and according to some rules it will redirect calls to
 other destinations.


 CALLING_USER    FREESWITCH    SOMEWHERE

 INVITE ---
    -- 100 Trying
    -- 302 Moved Temporary
 ACK    ---
 INVITE-



 Well, wverything works well except i have perfromance issues  on my HW
 FS cannot do more than 40 CPS (INVITE answered by 302 Moved Temporary). When
 i increase the rate, FS starts delaying 302 response. Right at 50 CPS i see
 calls being build up in FS and the delay begining to grow.

 When i observe the machine, load average is almost nothing (load average:
 1.41, 0.61, 0.60) CPU never goes to 100%, and i see only one thread taking
 most load... all others are just sitting there with 1-5 % CPU time.
 This looks to me as FS handles 302 messages in a single thread?!?!


 tculj...@fs:/usr/local/freeswitch/conf/dialplan$ top -H

 top - 10:41:37 up 167 days, 20:42,  3 users,  load average: 1.41, 0.61, 0.60
 Tasks:  83 total,   2 running,  81 sleeping,   0 stopped,   0 zombie
 Cpu(s): 25.3%us,  1.5%sy,  0.0%ni, 30.3%id, 42.7%wa,  0.0%hi,  0.2%si,
 0.0%st
 Mem:   2074520k total,   571244k used,  1503276k free,   259604k buffers
 Swap:  2650684k total, 3020k used,  2647664k free,   153868k cached

   PID USER  PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+
 COMMAND
  4814 root  20   0 34188  20m 3780 S   38  1.0   3:10.29
 freeswitch
  4800 root  20   0 34188  20m 3780 S    6  1.0   0:08.26
 freeswitch
  4798 root  20   0 34188  20m 3780 R    5  1.0   0:24.46
 freeswitch
  4787 root  20   0 34188  20m 3780 S    2  1.0   0:11.24
 freeswitch
  4794 root  20   0 34188  20m 3780 S    1  1.0   0:11.42
 freeswitch
  4803 root  20   0 34188  20m 3780 S    1  1.0   0:11.74
 freeswitch
  4788 root  20   0 34188  20m 3780 S    1  1.0   0:02.96
 freeswitch
  4804 root  20   0 34188  20m 3780 S    1  1.0   0:01.64
 freeswitch
  4807 root  20   0 34188  20m 3780 S    1  1.0   0:01.68
 freeswitch
  4811 root  20   0 34188  20m 3780 S    1  1.0   0:02.50 freeswitch



 cat /proc/cpuinfo
 processor   : 0
 vendor_id   : GenuineIntel
 cpu family  : 6
 model   : 15
 model name  : Intel(R) Xeon(R) CPU    5140  @ 2.33GHz
 stepping    : 6
 cpu MHz : 2333.560
 cache size  : 4096 KB
 physical id : 0
 siblings    : 2
 core id : 0
 cpu cores   : 2
 apicid  : 0
 initial apicid  : 0
 fdiv_bug    : no
 hlt_bug : no
 f00f_bug    : no
 coma_bug    : no
 fpu : yes
 fpu_exception   : yes
 cpuid level : 10
 wp  : yes
 flags   : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca
 cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe lm
 constant_tsc arch_perfmon pebs bts pni monitor ds_cpl vmx est tm2 ssse3 cx16
 xtpr dca lahf_lm
 bogomips    : 4670.78
 clflush size    : 64
 power management:

 processor   : 1
 vendor_id   : GenuineIntel
 cpu family  : 6
 model   : 15
 model name  : Intel(R) Xeon(R) CPU    5140  @ 2.33GHz
 stepping    : 6
 cpu MHz : 2333.560
 cache size  : 4096 KB
 physical id : 0
 siblings    : 2
 core id : 1
 cpu cores   : 2
 apicid  : 1
 initial apicid  : 1
 fdiv_bug    : no
 hlt_bug : no
 f00f_bug    : no
 coma_bug    : no
 fpu : yes
 fpu_exception   : yes
 cpuid level : 10
 wp  : yes
 flags   : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca
 cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe lm
 constant_tsc arch_perfmon pebs bts pni monitor ds_cpl vmx est tm2 ssse3 cx16
 xtpr dca lahf_lm
 bogomips    : 4666.82
 clflush size    : 64
 power management:



 uname -a
 Linux l01sipindir1 2.6.26-1-686 #1 SMP Sat Jan 10 18:29:31 UTC 2009 i686
 GNU/Linux



 Of course, i've tuned the machine up

 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 240
 ulimit -l unlimited
 ulimit -a


 Started FS with minimum modules but still 40 CPS seems to be the limit.


 So, is there any way to improve performance?


 Tihomir.







 ___
 FreeSWITCH-users mailing list
 FreeSWITCH-users@lists.freeswitch.org
 http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
 

Re: [Freeswitch-users] reload user data

2009-08-25 Thread Jim Burke
Is this what you are after?

http://wiki.freeswitch.org/wiki/Mod_xml_odbc

Cheers,
Jim

On Tue, Aug 25, 2009 at 7:22 PM, Juan Backsonjuanback...@gmail.com wrote:
 Hi Ken,

 xml_curl is a great idea.  Is there anyway to not having to setup another
 HTTP server?  For instance, can I have freeswitch to call an api or call a
 lua or php or c script that will return the xml response?  That way, I don't
 need to maintain yet another service.

 Thanks,
 JB

 On Tue, Aug 25, 2009 at 4:30 PM, Ken Rice kr...@freeswitch.org wrote:

 You just need to reloadxml you don’t have to restart the whole thing. You
 can also use xml_curl to feed the users from a database see my contrib
 directory (contrib/swk) for some example scripts and db code


 
 From: Juan Backson juanback...@gmail.com
 Reply-To: freeswitch-users@lists.freeswitch.org
 Date: Tue, 25 Aug 2009 16:21:58 +0800
 To: freeswitch-users@lists.freeswitch.org
 Subject: [Freeswitch-users] reload user data

 Hello,

 I would like to dynamically add user to freeswitch.  If I add a new file
 to the directory dir, is there anyway to have freeswitch to read the new
 user xml file without having to restart freeswitch?

 Other than using flat file, is there anyway to add user to freeswitch user
 api command?

 Thanks,
 JB

 
 ___
 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





-- 
Jim Burke
Director Evolutiontel.
http://www.evolutiontel.net

___
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] reload user data

2009-08-25 Thread Juan Backson
Hi Ken,

xml_curl is a great idea.  Is there anyway to not having to setup another
HTTP server?  For instance, can I have freeswitch to call an api or call a
lua or php or c script that will return the xml response?  That way, I don't
need to maintain yet another service.

Thanks,
JB

On Tue, Aug 25, 2009 at 4:30 PM, Ken Rice kr...@freeswitch.org wrote:

  You just need to reloadxml you don’t have to restart the whole thing. You
 can also use xml_curl to feed the users from a database see my contrib
 directory (contrib/swk) for some example scripts and db code


 --
 *From: *Juan Backson juanback...@gmail.com
 *Reply-To: *freeswitch-users@lists.freeswitch.org
 *Date: *Tue, 25 Aug 2009 16:21:58 +0800
 *To: *freeswitch-users@lists.freeswitch.org
 *Subject: *[Freeswitch-users] reload user data


 Hello,

 I would like to dynamically add user to freeswitch.  If I add a new file to
 the directory dir, is there anyway to have freeswitch to read the new user
 xml file without having to restart freeswitch?

 Other than using flat file, is there anyway to add user to freeswitch user
 api command?

 Thanks,
 JB

 --
 ___
 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] reload user data

2009-08-25 Thread Leon de Rooij
Hi,

I wrote that module, but been on vacation for a while :-) It's not  
really finished yet, but it worked well for generating user directory  
xml..

Some things that still need to be done:
- Fix it so that reloadxml works
- Don't write the generated xml always to disk before returning it to fs
- Surely there are bugs that need to be fixed

Did anyone try it yet ? If so, what is your experience ?

Regards,

Leon




On Aug 25, 2009, at 11:30 AM, Jim Burke wrote:

 Is this what you are after?

 http://wiki.freeswitch.org/wiki/Mod_xml_odbc

 Cheers,
 Jim

 On Tue, Aug 25, 2009 at 7:22 PM, Juan Backsonjuanback...@gmail.com  
 wrote:
 Hi Ken,

 xml_curl is a great idea.  Is there anyway to not having to setup  
 another
 HTTP server?  For instance, can I have freeswitch to call an api or  
 call a
 lua or php or c script that will return the xml response?  That  
 way, I don't
 need to maintain yet another service.

 Thanks,
 JB

 On Tue, Aug 25, 2009 at 4:30 PM, Ken Rice kr...@freeswitch.org  
 wrote:

 You just need to reloadxml you don’t have to restart the whole  
 thing. You
 can also use xml_curl to feed the users from a database see my  
 contrib
 directory (contrib/swk) for some example scripts and db code


 
 From: Juan Backson juanback...@gmail.com
 Reply-To: freeswitch-users@lists.freeswitch.org
 Date: Tue, 25 Aug 2009 16:21:58 +0800
 To: freeswitch-users@lists.freeswitch.org
 Subject: [Freeswitch-users] reload user data

 Hello,

 I would like to dynamically add user to freeswitch.  If I add a  
 new file
 to the directory dir, is there anyway to have freeswitch to read  
 the new
 user xml file without having to restart freeswitch?

 Other than using flat file, is there anyway to add user to  
 freeswitch user
 api command?

 Thanks,
 JB

 
 ___
 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





 -- 
 Jim Burke
 Director Evolutiontel.
 http://www.evolutiontel.net

 ___
 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 performance as a redirecting server

2009-08-25 Thread Tihomir Culjaga
Hey Giovanni,

thanks for the tip... indeed the db files were heavily used regardless if i
started freeswitch with nosql option (freeswitch -nosql)... FS was not
writing anything into that files ... instead it was just accessing it
This behaviour leads to a waste of 40% CPU time... waiting for other
processes (mainly disk access) to finish!!!

I moved freeswitch/db/ to a ramdisk and the performance got a boost to 140
CPS with a CPU load of 80%. I was keeping the machine for a while (20 - 30
minutes) on that rate when i sow CPU suddenly went to 100% and FS becoming
irresponsive :).


What can be wrong?
What are the limits in CPU usage (50%, 60%, 70%, 80%...) we should not
cross?
What fine tuning do we need in order to asure a long high load run?



Also, I'm running 32-bit OS (debian 5) on a 64 bit CPU... does it have sense
to move my OS to 64 bit? ... will FS gain more preformance ?... I mean will
FS perofomr drastically better 20%+ ?


Tihomir.


On Tue, Aug 25, 2009 at 11:00 AM, Giovanni Maruzzelli
gmar...@celliax.orgwrote:

 Maybe your load comes from disk access?

 Try putting the sql and log directories on a ramdisk.

 OTH,

 -giovanni

 On Tue, Aug 25, 2009 at 10:54 AM, Tihomir Culjagatculj...@gmail.com
 wrote:
  Hello,
 
  i'm trying to use freeswitch as a redirecting server meaning FS has to
  receive an INVITE and according to some rules it will redirect calls to
  other destinations.
 
 
  CALLING_USERFREESWITCHSOMEWHERE
 
  INVITE ---
 -- 100 Trying
 -- 302 Moved Temporary
  ACK---
 
 INVITE-
 
 
 
  Well, wverything works well except i have perfromance issues  on my
 HW
  FS cannot do more than 40 CPS (INVITE answered by 302 Moved Temporary).
 When
  i increase the rate, FS starts delaying 302 response. Right at 50 CPS i
 see
  calls being build up in FS and the delay begining to grow.
 
  When i observe the machine, load average is almost nothing (load average:
  1.41, 0.61, 0.60) CPU never goes to 100%, and i see only one thread
 taking
  most load... all others are just sitting there with 1-5 % CPU time.
  This looks to me as FS handles 302 messages in a single thread?!?!
 
 
  tculj...@fs:/usr/local/freeswitch/conf/dialplan$ top -H
 
  top - 10:41:37 up 167 days, 20:42,  3 users,  load average: 1.41, 0.61,
 0.60
  Tasks:  83 total,   2 running,  81 sleeping,   0 stopped,   0 zombie
  Cpu(s): 25.3%us,  1.5%sy,  0.0%ni, 30.3%id, 42.7%wa,  0.0%hi,  0.2%si,
  0.0%st
  Mem:   2074520k total,   571244k used,  1503276k free,   259604k buffers
  Swap:  2650684k total, 3020k used,  2647664k free,   153868k cached
 
PID USER  PR  NI  VIRT  RES  SHR S %CPU %MEMTIME+
  COMMAND
   4814 root  20   0 34188  20m 3780 S   38  1.0   3:10.29
  freeswitch
   4800 root  20   0 34188  20m 3780 S6  1.0   0:08.26
  freeswitch
   4798 root  20   0 34188  20m 3780 R5  1.0   0:24.46
  freeswitch
   4787 root  20   0 34188  20m 3780 S2  1.0   0:11.24
  freeswitch
   4794 root  20   0 34188  20m 3780 S1  1.0   0:11.42
  freeswitch
   4803 root  20   0 34188  20m 3780 S1  1.0   0:11.74
  freeswitch
   4788 root  20   0 34188  20m 3780 S1  1.0   0:02.96
  freeswitch
   4804 root  20   0 34188  20m 3780 S1  1.0   0:01.64
  freeswitch
   4807 root  20   0 34188  20m 3780 S1  1.0   0:01.68
  freeswitch
   4811 root  20   0 34188  20m 3780 S1  1.0   0:02.50 freeswitch
 
 
 
  cat /proc/cpuinfo
  processor   : 0
  vendor_id   : GenuineIntel
  cpu family  : 6
  model   : 15
  model name  : Intel(R) Xeon(R) CPU5140  @ 2.33GHz
  stepping: 6
  cpu MHz : 2333.560
  cache size  : 4096 KB
  physical id : 0
  siblings: 2
  core id : 0
  cpu cores   : 2
  apicid  : 0
  initial apicid  : 0
  fdiv_bug: no
  hlt_bug : no
  f00f_bug: no
  coma_bug: no
  fpu : yes
  fpu_exception   : yes
  cpuid level : 10
  wp  : yes
  flags   : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
 mca
  cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe lm
  constant_tsc arch_perfmon pebs bts pni monitor ds_cpl vmx est tm2 ssse3
 cx16
  xtpr dca lahf_lm
  bogomips: 4670.78
  clflush size: 64
  power management:
 
  processor   : 1
  vendor_id   : GenuineIntel
  cpu family  : 6
  model   : 15
  model name  : Intel(R) Xeon(R) CPU5140  @ 2.33GHz
  stepping: 6
  cpu MHz : 2333.560
  cache size  : 4096 KB
  physical id : 0
  siblings: 2
  core id : 1
  cpu cores   : 2
  apicid  : 1
  initial apicid  : 1
  fdiv_bug: no
  hlt_bug

Re: [Freeswitch-users] Freeswitch performance as a redirecting server

2009-08-25 Thread Jay Binks

Everytime someone asks this ,  the resounding answer is use a 64bit os..

No question

Jay



On 25/08/2009, at 23:19, Tihomir Culjaga tculj...@gmail.com wrote:


Hey Giovanni,

thanks for the tip... indeed the db files were heavily used  
regardless if i started freeswitch with nosql option (freeswitch - 
nosql)... FS was not writing anything into that files ... instead it  
was just accessing it
This behaviour leads to a waste of 40% CPU time... waiting for other  
processes (mainly disk access) to finish!!!


I moved freeswitch/db/ to a ramdisk and the performance got a boost  
to 140 CPS with a CPU load of 80%. I was keeping the machine for a  
while (20 - 30 minutes) on that rate when i sow CPU suddenly went to  
100% and FS becoming irresponsive :).



What can be wrong?
What are the limits in CPU usage (50%, 60%, 70%, 80%...) we should  
not cross?

What fine tuning do we need in order to asure a long high load run?



Also, I'm running 32-bit OS (debian 5) on a 64 bit CPU... does it  
have sense to move my OS to 64 bit? ... will FS gain more  
preformance ?... I mean will FS perofomr drastically better 20%+ ?



Tihomir.


On Tue, Aug 25, 2009 at 11:00 AM, Giovanni Maruzzelli gmar...@celliax.org 
 wrote:

Maybe your load comes from disk access?

Try putting the sql and log directories on a ramdisk.

OTH,

-giovanni

On Tue, Aug 25, 2009 at 10:54 AM, Tihomir  
Culjagatculj...@gmail.com wrote:

 Hello,

 i'm trying to use freeswitch as a redirecting server meaning FS  
has to
 receive an INVITE and according to some rules it will redirect  
calls to

 other destinations.


 CALLING_USERFREESWITCH 
SOMEWHERE


 INVITE ---
-- 100 Trying
-- 302 Moved Temporary
 ACK---
  
INVITE- 
--- 
--- 
--- 
--- 





 Well, wverything works well except i have perfromance issues   
on my HW
 FS cannot do more than 40 CPS (INVITE answered by 302 Moved  
Temporary). When
 i increase the rate, FS starts delaying 302 response. Right at 50  
CPS i see

 calls being build up in FS and the delay begining to grow.

 When i observe the machine, load average is almost nothing (load  
average:
 1.41, 0.61, 0.60) CPU never goes to 100%, and i see only one  
thread taking

 most load... all others are just sitting there with 1-5 % CPU time.
 This looks to me as FS handles 302 messages in a single thread?!?!


 tculj...@fs:/usr/local/freeswitch/conf/dialplan$ top -H

 top - 10:41:37 up 167 days, 20:42,  3 users,  load average: 1.41,  
0.61, 0.60

 Tasks:  83 total,   2 running,  81 sleeping,   0 stopped,   0 zombie
 Cpu(s): 25.3%us,  1.5%sy,  0.0%ni, 30.3%id, 42.7%wa,  0.0%hi,   
0.2%si,

 0.0%st
 Mem:   2074520k total,   571244k used,  1503276k free,   259604k  
buffers
 Swap:  2650684k total, 3020k used,  2647664k free,   153868k  
cached


   PID USER  PR  NI  VIRT  RES  SHR S %CPU %MEMTIME+
 COMMAND
  4814 root  20   0 34188  20m 3780 S   38  1.0   3:10.29
 freeswitch
  4800 root  20   0 34188  20m 3780 S6  1.0   0:08.26
 freeswitch
  4798 root  20   0 34188  20m 3780 R5  1.0   0:24.46
 freeswitch
  4787 root  20   0 34188  20m 3780 S2  1.0   0:11.24
 freeswitch
  4794 root  20   0 34188  20m 3780 S1  1.0   0:11.42
 freeswitch
  4803 root  20   0 34188  20m 3780 S1  1.0   0:11.74
 freeswitch
  4788 root  20   0 34188  20m 3780 S1  1.0   0:02.96
 freeswitch
  4804 root  20   0 34188  20m 3780 S1  1.0   0:01.64
 freeswitch
  4807 root  20   0 34188  20m 3780 S1  1.0   0:01.68
 freeswitch
  4811 root  20   0 34188  20m 3780 S1  1.0   0:02.50  
freeswitch




 cat /proc/cpuinfo
 processor   : 0
 vendor_id   : GenuineIntel
 cpu family  : 6
 model   : 15
 model name  : Intel(R) Xeon(R) CPU5140  @ 2.33GHz
 stepping: 6
 cpu MHz : 2333.560
 cache size  : 4096 KB
 physical id : 0
 siblings: 2
 core id : 0
 cpu cores   : 2
 apicid  : 0
 initial apicid  : 0
 fdiv_bug: no
 hlt_bug : no
 f00f_bug: no
 coma_bug: no
 fpu : yes
 fpu_exception   : yes
 cpuid level : 10
 wp  : yes
 flags   : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr  
pge mca

 cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe lm
 constant_tsc arch_perfmon pebs bts pni monitor ds_cpl vmx est tm2  
ssse3 cx16

 xtpr dca lahf_lm
 bogomips: 4670.78
 clflush size: 64
 power management:

 processor   : 1
 vendor_id   : GenuineIntel
 cpu family  : 6
 model   : 15
 model name  : Intel(R) Xeon(R) CPU5140  @ 2.33GHz
 stepping: 6
 cpu MHz : 2333.560
 cache size  : 4096 KB
 physical id : 0
 siblings

Re: [Freeswitch-users] Freeswitch performance as a redirecting server

2009-08-25 Thread Tihomir Culjaga
thanks for the feedback... this is something im going to do tomorrow...

what about other things?


On Tue, Aug 25, 2009 at 3:39 PM, Jay Binks jaybi...@gmail.com wrote:

 Everytime someone asks this ,  the resounding answer is use a 64bit os..

 No question

 Jay



 On 25/08/2009, at 23:19, Tihomir Culjaga tculj...@gmail.com wrote:

 Hey Giovanni,

 thanks for the tip... indeed the db files were heavily used regardless if i
 started freeswitch with nosql option (freeswitch -nosql)... FS was not
 writing anything into that files ... instead it was just accessing it
 This behaviour leads to a waste of 40% CPU time... waiting for other
 processes (mainly disk access) to finish!!!

 I moved freeswitch/db/ to a ramdisk and the performance got a boost to 140
 CPS with a CPU load of 80%. I was keeping the machine for a while (20 - 30
 minutes) on that rate when i sow CPU suddenly went to 100% and FS becoming
 irresponsive :).


 What can be wrong?
 What are the limits in CPU usage (50%, 60%, 70%, 80%...) we should not
 cross?
 What fine tuning do we need in order to asure a long high load run?



 Also, I'm running 32-bit OS (debian 5) on a 64 bit CPU... does it have
 sense to move my OS to 64 bit? ... will FS gain more preformance ?... I mean
 will FS perofomr drastically better 20%+ ?


 Tihomir.


 On Tue, Aug 25, 2009 at 11:00 AM, Giovanni Maruzzelli gmar...@celliax.org
 gmar...@celliax.org wrote:

 Maybe your load comes from disk access?

 Try putting the sql and log directories on a ramdisk.

 OTH,

 -giovanni

 On Tue, Aug 25, 2009 at 10:54 AM, Tihomir Culjaga tculj...@gmail.com
 tculj...@gmail.com wrote:
  Hello,
 
  i'm trying to use freeswitch as a redirecting server meaning FS has to
  receive an INVITE and according to some rules it will redirect calls to
  other destinations.
 
 
  CALLING_USERFREESWITCHSOMEWHERE
 
  INVITE ---
 -- 100 Trying
 -- 302 Moved Temporary
  ACK---
 
 INVITE-
 
 
 
  Well, wverything works well except i have perfromance issues  on my
 HW
  FS cannot do more than 40 CPS (INVITE answered by 302 Moved Temporary).
 When
  i increase the rate, FS starts delaying 302 response. Right at 50 CPS i
 see
  calls being build up in FS and the delay begining to grow.
 
  When i observe the machine, load average is almost nothing (load
 average:
  1.41, 0.61, 0.60) CPU never goes to 100%, and i see only one thread
 taking
  most load... all others are just sitting there with 1-5 % CPU time.
  This looks to me as FS handles 302 messages in a single thread?!?!
 
 
  tculj...@fs:/usr/local/freeswitch/conf/dialplan$ top -H
 
  top - 10:41:37 up 167 days, 20:42,  3 users,  load average: 1.41, 0.61,
 0.60
  Tasks:  83 total,   2 running,  81 sleeping,   0 stopped,   0 zombie
  Cpu(s): 25.3%us,  1.5%sy,  0.0%ni, 30.3%id, 42.7%wa,  0.0%hi,  0.2%si,
  0.0%st
  Mem:   2074520k total,   571244k used,  1503276k free,   259604k buffers
  Swap:  2650684k total, 3020k used,  2647664k free,   153868k cached
 
PID USER  PR  NI  VIRT  RES  SHR S %CPU %MEMTIME+
  COMMAND
   4814 root  20   0 34188  20m 3780 S   38  1.0   3:10.29
  freeswitch
   4800 root  20   0 34188  20m 3780 S6  1.0   0:08.26
  freeswitch
   4798 root  20   0 34188  20m 3780 R5  1.0   0:24.46
  freeswitch
   4787 root  20   0 34188  20m 3780 S2  1.0   0:11.24
  freeswitch
   4794 root  20   0 34188  20m 3780 S1  1.0   0:11.42
  freeswitch
   4803 root  20   0 34188  20m 3780 S1  1.0   0:11.74
  freeswitch
   4788 root  20   0 34188  20m 3780 S1  1.0   0:02.96
  freeswitch
   4804 root  20   0 34188  20m 3780 S1  1.0   0:01.64
  freeswitch
   4807 root  20   0 34188  20m 3780 S1  1.0   0:01.68
  freeswitch
   4811 root  20   0 34188  20m 3780 S1  1.0   0:02.50 freeswitch
 
 
 
  cat /proc/cpuinfo
  processor   : 0
  vendor_id   : GenuineIntel
  cpu family  : 6
  model   : 15
  model name  : Intel(R) Xeon(R) CPU5140  @ 2.33GHz
  stepping: 6
  cpu MHz : 2333.560
  cache size  : 4096 KB
  physical id : 0
  siblings: 2
  core id : 0
  cpu cores   : 2
  apicid  : 0
  initial apicid  : 0
  fdiv_bug: no
  hlt_bug : no
  f00f_bug: no
  coma_bug: no
  fpu : yes
  fpu_exception   : yes
  cpuid level : 10
  wp  : yes
  flags   : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
 mca
  cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe lm
  constant_tsc arch_perfmon pebs bts pni monitor ds_cpl vmx est tm2 ssse3
 cx16
  xtpr dca lahf_lm
  bogomips: 4670.78
  clflush size: 64
  power management:
 
  processor   : 

Re: [Freeswitch-users] Freeswitch performance as a redirecting server

2009-08-25 Thread Giovanni Maruzzelli
Definitely go for 64 bit OS.

If you want to be safe and sure,  go for CentOS 5.2 64bit. Is the one
used both for development and for heavy duty production.

Also Ubuntu 8.04 is good.

Other versions/distros are less used by the community.

Adding RAM and CPUs helps to scale up.

-gm



Sincerely,

Giovanni Maruzzelli
Cell : +39-347-2665618




On Tue, Aug 25, 2009 at 3:19 PM, Tihomir Culjagatculj...@gmail.com wrote:
 Hey Giovanni,

 thanks for the tip... indeed the db files were heavily used regardless if i
 started freeswitch with nosql option (freeswitch -nosql)... FS was not
 writing anything into that files ... instead it was just accessing it
 This behaviour leads to a waste of 40% CPU time... waiting for other
 processes (mainly disk access) to finish!!!

 I moved freeswitch/db/ to a ramdisk and the performance got a boost to 140
 CPS with a CPU load of 80%. I was keeping the machine for a while (20 - 30
 minutes) on that rate when i sow CPU suddenly went to 100% and FS becoming
 irresponsive :).


 What can be wrong?
 What are the limits in CPU usage (50%, 60%, 70%, 80%...) we should not
 cross?
 What fine tuning do we need in order to asure a long high load run?



 Also, I'm running 32-bit OS (debian 5) on a 64 bit CPU... does it have sense
 to move my OS to 64 bit? ... will FS gain more preformance ?... I mean will
 FS perofomr drastically better 20%+ ?


 Tihomir.


 On Tue, Aug 25, 2009 at 11:00 AM, Giovanni Maruzzelli gmar...@celliax.org
 wrote:

 Maybe your load comes from disk access?

 Try putting the sql and log directories on a ramdisk.

 OTH,

 -giovanni

 On Tue, Aug 25, 2009 at 10:54 AM, Tihomir Culjagatculj...@gmail.com
 wrote:
  Hello,
 
  i'm trying to use freeswitch as a redirecting server meaning FS has to
  receive an INVITE and according to some rules it will redirect calls to
  other destinations.
 
 
  CALLING_USER    FREESWITCH    SOMEWHERE
 
  INVITE ---
     -- 100 Trying
     -- 302 Moved Temporary
  ACK    ---
 
  INVITE-
 
 
 
  Well, wverything works well except i have perfromance issues  on my
  HW
  FS cannot do more than 40 CPS (INVITE answered by 302 Moved Temporary).
  When
  i increase the rate, FS starts delaying 302 response. Right at 50 CPS i
  see
  calls being build up in FS and the delay begining to grow.
 
  When i observe the machine, load average is almost nothing (load
  average:
  1.41, 0.61, 0.60) CPU never goes to 100%, and i see only one thread
  taking
  most load... all others are just sitting there with 1-5 % CPU time.
  This looks to me as FS handles 302 messages in a single thread?!?!
 
 
  tculj...@fs:/usr/local/freeswitch/conf/dialplan$ top -H
 
  top - 10:41:37 up 167 days, 20:42,  3 users,  load average: 1.41, 0.61,
  0.60
  Tasks:  83 total,   2 running,  81 sleeping,   0 stopped,   0 zombie
  Cpu(s): 25.3%us,  1.5%sy,  0.0%ni, 30.3%id, 42.7%wa,  0.0%hi,  0.2%si,
  0.0%st
  Mem:   2074520k total,   571244k used,  1503276k free,   259604k buffers
  Swap:  2650684k total, 3020k used,  2647664k free,   153868k cached
 
    PID USER  PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+
  COMMAND
   4814 root  20   0 34188  20m 3780 S   38  1.0   3:10.29
  freeswitch
   4800 root  20   0 34188  20m 3780 S    6  1.0   0:08.26
  freeswitch
   4798 root  20   0 34188  20m 3780 R    5  1.0   0:24.46
  freeswitch
   4787 root  20   0 34188  20m 3780 S    2  1.0   0:11.24
  freeswitch
   4794 root  20   0 34188  20m 3780 S    1  1.0   0:11.42
  freeswitch
   4803 root  20   0 34188  20m 3780 S    1  1.0   0:11.74
  freeswitch
   4788 root  20   0 34188  20m 3780 S    1  1.0   0:02.96
  freeswitch
   4804 root  20   0 34188  20m 3780 S    1  1.0   0:01.64
  freeswitch
   4807 root  20   0 34188  20m 3780 S    1  1.0   0:01.68
  freeswitch
   4811 root  20   0 34188  20m 3780 S    1  1.0   0:02.50 freeswitch
 
 
 
  cat /proc/cpuinfo
  processor   : 0
  vendor_id   : GenuineIntel
  cpu family  : 6
  model   : 15
  model name  : Intel(R) Xeon(R) CPU    5140  @ 2.33GHz
  stepping    : 6
  cpu MHz : 2333.560
  cache size  : 4096 KB
  physical id : 0
  siblings    : 2
  core id : 0
  cpu cores   : 2
  apicid  : 0
  initial apicid  : 0
  fdiv_bug    : no
  hlt_bug : no
  f00f_bug    : no
  coma_bug    : no
  fpu : yes
  fpu_exception   : yes
  cpuid level : 10
  wp  : yes
  flags   : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
  mca
  cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe lm
  constant_tsc arch_perfmon pebs bts pni monitor ds_cpl vmx est tm2 ssse3
  cx16
  xtpr dca lahf_lm
  bogomips    : 4670.78
  clflush 

Re: [Freeswitch-users] Freeswitch performance as a redirecting server

2009-08-25 Thread Giovanni Maruzzelli
is a heavely multithreaded software, it benefits from number of CPUs
(or cores), RAM, and heavy duty kernel features (found in 64bit
kernels)

put all accesses on ramdisk, leave out the modules you don't use...

experiment, test, and find the best for your specific application/workload

test not only with sipp, but with real load too (often they're very different)

-gm


On Tue, Aug 25, 2009 at 3:42 PM, Tihomir Culjagatculj...@gmail.com wrote:
 thanks for the feedback... this is something im going to do tomorrow...

 what about other things?


 On Tue, Aug 25, 2009 at 3:39 PM, Jay Binks jaybi...@gmail.com wrote:

 Everytime someone asks this ,  the resounding answer is use a 64bit os..
 No question
 Jay



 On 25/08/2009, at 23:19, Tihomir Culjaga tculj...@gmail.com wrote:

 Hey Giovanni,

 thanks for the tip... indeed the db files were heavily used regardless if
 i started freeswitch with nosql option (freeswitch -nosql)... FS was not
 writing anything into that files ... instead it was just accessing it
 This behaviour leads to a waste of 40% CPU time... waiting for other
 processes (mainly disk access) to finish!!!

 I moved freeswitch/db/ to a ramdisk and the performance got a boost to 140
 CPS with a CPU load of 80%. I was keeping the machine for a while (20 - 30
 minutes) on that rate when i sow CPU suddenly went to 100% and FS becoming
 irresponsive :).


 What can be wrong?
 What are the limits in CPU usage (50%, 60%, 70%, 80%...) we should not
 cross?
 What fine tuning do we need in order to asure a long high load run?



 Also, I'm running 32-bit OS (debian 5) on a 64 bit CPU... does it have
 sense to move my OS to 64 bit? ... will FS gain more preformance ?... I mean
 will FS perofomr drastically better 20%+ ?


 Tihomir.


 On Tue, Aug 25, 2009 at 11:00 AM, Giovanni Maruzzelli
 gmar...@celliax.org wrote:

 Maybe your load comes from disk access?

 Try putting the sql and log directories on a ramdisk.

 OTH,

 -giovanni

 On Tue, Aug 25, 2009 at 10:54 AM, Tihomir Culjagatculj...@gmail.com
 wrote:
  Hello,
 
  i'm trying to use freeswitch as a redirecting server meaning FS has to
  receive an INVITE and according to some rules it will redirect calls to
  other destinations.
 
 
  CALLING_USER    FREESWITCH    SOMEWHERE
 
  INVITE ---
     -- 100 Trying
     -- 302 Moved Temporary
  ACK    ---
 
  INVITE-
 
 
 
  Well, wverything works well except i have perfromance issues  on my
  HW
  FS cannot do more than 40 CPS (INVITE answered by 302 Moved Temporary).
  When
  i increase the rate, FS starts delaying 302 response. Right at 50 CPS i
  see
  calls being build up in FS and the delay begining to grow.
 
  When i observe the machine, load average is almost nothing (load
  average:
  1.41, 0.61, 0.60) CPU never goes to 100%, and i see only one thread
  taking
  most load... all others are just sitting there with 1-5 % CPU time.
  This looks to me as FS handles 302 messages in a single thread?!?!
 
 
  tculj...@fs:/usr/local/freeswitch/conf/dialplan$ top -H
 
  top - 10:41:37 up 167 days, 20:42,  3 users,  load average: 1.41, 0.61,
  0.60
  Tasks:  83 total,   2 running,  81 sleeping,   0 stopped,   0 zombie
  Cpu(s): 25.3%us,  1.5%sy,  0.0%ni, 30.3%id, 42.7%wa,  0.0%hi,  0.2%si,
  0.0%st
  Mem:   2074520k total,   571244k used,  1503276k free,   259604k
  buffers
  Swap:  2650684k total, 3020k used,  2647664k free,   153868k cached
 
    PID USER  PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+
  COMMAND
   4814 root  20   0 34188  20m 3780 S   38  1.0   3:10.29
  freeswitch
   4800 root  20   0 34188  20m 3780 S    6  1.0   0:08.26
  freeswitch
   4798 root  20   0 34188  20m 3780 R    5  1.0   0:24.46
  freeswitch
   4787 root  20   0 34188  20m 3780 S    2  1.0   0:11.24
  freeswitch
   4794 root  20   0 34188  20m 3780 S    1  1.0   0:11.42
  freeswitch
   4803 root  20   0 34188  20m 3780 S    1  1.0   0:11.74
  freeswitch
   4788 root  20   0 34188  20m 3780 S    1  1.0   0:02.96
  freeswitch
   4804 root  20   0 34188  20m 3780 S    1  1.0   0:01.64
  freeswitch
   4807 root  20   0 34188  20m 3780 S    1  1.0   0:01.68
  freeswitch
   4811 root  20   0 34188  20m 3780 S    1  1.0   0:02.50 freeswitch
 
 
 
  cat /proc/cpuinfo
  processor   : 0
  vendor_id   : GenuineIntel
  cpu family  : 6
  model   : 15
  model name  : Intel(R) Xeon(R) CPU    5140  @ 2.33GHz
  stepping    : 6
  cpu MHz : 2333.560
  cache size  : 4096 KB
  physical id : 0
  siblings    : 2
  core id : 0
  cpu cores   : 2
  apicid  : 0
  initial apicid  : 0
  fdiv_bug    : no
  hlt_bug : no
  f00f_bug    : no
  coma_bug    : no
  fpu   

Re: [Freeswitch-users] how to avoid many | in bridge application?

2009-08-25 Thread Carlos S. Antunes
Max,

I would like to see something similar too. For example, it would be 
wonderful if one could specify multiple gateways to try like this or 
something similar:

action application=bridge
!-- set some kind of *bridge-specific* parameter/variable --
gateway order=1 data=sofia/gateway/gw-1/1$1/
gateway order=1 data=sofia/gateway/gw-2/1$1/
gateway order=2 data=sofia/gateway/gw-3/1$1
!-- set some kind of *gw-specific* parameter/variable --
/gateway
gateway order=3 data=sofia/gateway/gw-4/1$1/
/action

One would be able to avoid the [] and {} hacks and combine 
sequential and simultaneous trying of gateways.

What do the developers think of this?

Carlos

Max Ivanov wrote:
 Nowdays I 'm forced to put multiple | to find first free gateway, ie
 sofia/gateway/panas111/1000|sofia/gateway/panas112/1000|sofia/gateway/panas113/1000
 ,
 the whole sting is tooo long, is there any shorter way to write same thing? 
 Like
 sofia/gateway/panas*/1000 will try all gateways matching the pattern.

 ___
 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] using sipp to test call transfers

2009-08-25 Thread Raimund Sacherer
Hi List,

i have some scripts to test our lab:

I have scripts to create sipp instances which act as individual  
agents, which log on, take a random amount of calls, log off, wait a  
bit, log on again, etc.
I have scripts to generate call traffic for our queues to saturate them

But what I have difficulties is how to create a good scenario xml file  
for call transfers? Has anybody here a sample for me to sink my teeth  
in?

thanks and best regards

-- 
Raimund Sacherer
-
RunSolutions
 Open Source It Consulting
-

Parc Bit - Centro Empresarial Son Espanyol
Edificio Estel - Local 3D
07121 -  Palma de Mallorca
Baleares


___
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] MFC-R2 support for FreeSWITCH

2009-08-25 Thread Eder Souza
Very Nice my friends i'm from Brazil i'm crazy for the tests ...


Eng Eder de Souza

On Mon, Aug 24, 2009 at 7:00 PM, Rodrigo P. Telles 
telles-lis...@devel-it.com.br wrote:

 It is very nice to hear that, great work!
 Thanks to support FS.

 Telles


 Moises Silva wrote:

 So, I finally took some days to put up OpenR2 working with OpenZAP, which
 means FreeSWITCH now supports MFC-R2 for all variants that OpenR2 has
 support for. Including Mexico, Brazil, Argentina and others. The stack has
 been used by Asterisk starting with Asterisk 1.6.2 so I feel it covers most
 countries that users may be interested in, support for new variants will be
 added on-demand only (in any case users can always tweak the advanced
 configuration file to create their own variants as a last resort).
 I created a wiki page to illustrate the basic setup:
 http://wiki.freeswitch.org/wiki/OpenZAP_OpenR2

 Now is time for testing. I just did minimal testing on my development
 environment, no serious testing, and I know that some stuff is not working
 at this point (I had some issues with variable length DNIS and ANI) which
 should be fixed soon.

 If anyone around happens to have an R2 link and wants to test R2 support in
 OpenZAP, I can give them a hand with the configuration and any issues you
 may find. You can find me on IRC at #freeswitch, #freeswitch-dev and
 #openzap as moy.

 --
 Moises Silva
 Software Developer
 Sangoma Technologies Inc. | 50 McIntosh Drive, Suite 120, Markham ON L3R
 9T3 Canada
 t. 1 905 474 1990 x 128 | e. m...@sangoma.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


___
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 DAHDI Kernel drivers / Hardware questions

2009-08-25 Thread Raimund Sacherer

Hello,

i was reading through the openzap wiki page and searched the wiki, the  
only thing I found about dahdi is a note from January that freeswitch  
does not work with dahdi right now.


Is this current information? Can't I use dahdi kernel drivers for  
freeswitch? As the last update to the zaptel drivers is now nearly a  
year old (1.4.12) and development has, AFAIK, ceased and new stuff  
only gehts to dahdi, correct me please if I am wrong.


Second question,

is it possible to use this hardware:

00:0d.0 Network controller: Cologne Chip Designs GmbH ISDN network  
controller [HFC-PCI] (rev 02)

Subsystem: Cologne Chip Designs GmbH ISDN Board
Flags: bus master, medium devsel, latency 16, IRQ 10
I/O ports at e000 [disabled] [size=8]
Memory at ee001000 (32-bit, non-prefetchable) [size=256]
Capabilities: [40] Power Management version 1
Kernel modules: hisax

with openZap? I read in the wiki (openZap.conf_Examples) something  
about HFC 4 BRI, but i do not know if this is the same as the above  
mentioned card.



I have access to some pcmcia fxo, and pcmcia isdn cards, could they be  
used? I have as well an soekris board with two pcmcia slots, could i  
use this with an fxo pcmcia card to actually drive a small home - pbx  
with freeswitch?


I did not find answers for this questions in the wiki :-)

best regards


--
Raimund Sacherer
-
RunSolutions
Open Source It Consulting
-
Email: r...@runsolutions.com
tel: 625 40 32 08

Parc Bit - Centro Empresarial Son Espanyol
Edificio Estel - Local 3D
07121 -  Palma de Mallorca
Baleares

___
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] wav2mp3 conversion inside of spidermonkey

2009-08-25 Thread Alberto Escudero-Pascual (lists)
Dear all,

In one of the applications I am writing I need to convert a recorded wav
to mp3.

After using

session.recordFile() and obtaining a foo.wav file, I am calling

session.execute(system,lmLameCmd);

to invoke lame for the conversion.

The system command looks like this:
lmLameCmd = /usr/local/freeswitch/bin/lame -V2 foo.wav foo.mp3 -S;


Here it comes the mystery. I am use lame 3.98.2 the mp3 file never
appears, if I use version 3.97 (older version), it does!.

If I execute the conversion from the command line, i get the mp3 with both
3.97 and 3.98.2

In fact, i am considering doing the conversions as background job, but I
am very curious to hear if this behavior has a pseudo-scientific
explanation

/aep

-- 
Stopping junk mailers is good for the environment



___
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] wav2mp3 conversion inside of spidermonkey

2009-08-25 Thread Brian West
Try running it at the CLI and see if you see any errors.  Also please  
do not hijack threads.  The original thread [Freeswitch-users] XML- 
RPC on different ip than 0.0.0.0 which was hijacked by clicking  
reply, changing the subject and clicking send.  Please in the future  
do not do that as it clutters up the threading and could get your  
query lost in the noise.

Thanks,
Brian

On Aug 25, 2009, at 1:54 AM, Alberto Escudero-Pascual (lists) wrote:

 Here it comes the mystery. I am use lame 3.98.2 the mp3 file never
 appears, if I use version 3.97 (older version), it does!.


___
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] Moved Freeswitch to new subnet.

2009-08-25 Thread Mike Peace
I fired up Wireshark on each side and I can see the SIP register request coming 
from the laptop, the Freeswitch server replies with a Destination Unreachable 
(Port unreachable) message.

I rebooted the Server and now I get a Registration error; 405 Method not 
allowed on the softphone and the Wiresharp capture shows: Status 405 Method 
Not Allowerd (0 bindings).

It does this even after I stop and restart the Freeswitch service.

Shouldn't all the ports be open if the firewall and SELunix are disabled?

Mike Peace
Network Analyst
EDCO, The Document People
Direct 417-447-3367

From: freeswitch-users-boun...@lists.freeswitch.org 
[mailto:freeswitch-users-boun...@lists.freeswitch.org] On Behalf Of Michael 
Collins
Sent: Monday, August 24, 2009 5:32 PM
To: freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] Moved Freeswitch to new subnet.


On Mon, Aug 24, 2009 at 2:49 PM, Mike Peace 
mpe...@edcogroupinc.commailto:mpe...@edcogroupinc.com wrote:

It does the same thing, does anything get set during the install that would 
remember or cache the old network settings? I can access anything from the FS 
server on any of several networks and vice-versa but the SIP will not register, 
again no firewalls are upon any of the test hosts.

Doesn't make sense to me.


Time to bust out tcpdump and/or wireshark to make 100% certain you know what's 
happening with all those SIP packets.

Mike Peace

Network Analyst

EDCO, The Document People

Direct 417-447-3367



From: 
freeswitch-users-boun...@lists.freeswitch.orgmailto:freeswitch-users-boun...@lists.freeswitch.org
 
[mailto:freeswitch-users-boun...@lists.freeswitch.orgmailto:freeswitch-users-boun...@lists.freeswitch.org]
 On Behalf Of Michael Collins
Sent: Monday, August 24, 2009 4:34 PM

To: 
freeswitch-users@lists.freeswitch.orgmailto:freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] Moved Freeswitch to new subnet.





On Mon, Aug 24, 2009 at 2:26 PM, Mike Peace 
mpe...@edcogroupinc.commailto:mpe...@edcogroupinc.com wrote:

Registration error: 408-Request Timeout

Sorry for the the typo - 408 = timeout. (480 = temp unavail)

Try stopping iptables in Linux and try again. Sounds like something is 
interfering with your packets getting from here to there...
Try:

/etc/init.d/iptables stop

And then see if your packets can move again.

-MC



Mike Peace

Network Analyst

EDCO, The Document People

Direct 417-447-3367



From: 
freeswitch-users-boun...@lists.freeswitch.orgmailto:freeswitch-users-boun...@lists.freeswitch.org
 
[mailto:freeswitch-users-boun...@lists.freeswitch.orgmailto:freeswitch-users-boun...@lists.freeswitch.org]
 On Behalf Of Michael Collins
Sent: Monday, August 24, 2009 4:18 PM
To: 
freeswitch-users@lists.freeswitch.orgmailto:freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] Moved Freeswitch to new subnet.





On Mon, Aug 24, 2009 at 2:01 PM, Mike Peace 
mpe...@edcogroupinc.commailto:mpe...@edcogroupinc.com wrote:

I haven't changed any of the conf files.



What happens when you try to register? Do you get 480? (timeout) Or something 
else?
-MC







EDCO Group, Inc.
Phone: (800) 999-3456
Fax: (800) 999-3551
Web: http://www.edcogroupinc.com/



Confidentiality Notice: The information contained in this e-mail message 
(including any attachments) may contain confidential and privileged 
information, and is for the sole use of the intended recipient(s). If you are 
not the intended recipient, any unauthorized review, use, or disclosure or 
distribution is strictly prohibited. If you have received this message in 
error, please notify the sender by replying to this e-mail message or by 
telephone at (800) 999-3456 and permanently destroy all copies of the original 
message (including any attachments), along with any reply, and delete them from 
your system.



___
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.orgmailto: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





EDCO Group, Inc.
Phone: (800) 999-3456
Fax: (800) 999-3551
Web: http://www.edcogroupinc.com/

Confidentiality Notice: The information contained in this e-mail message 
(including any attachments) may contain confidential and privileged 
information, and is for the sole use of the intended recipient(s). If you are 
not the intended recipient, any unauthorized review, use, or disclosure or 
distribution is strictly prohibited. If you have received this message in 
error, please notify the sender by replying to this e-mail message or by 
telephone at (800) 999-3456 and permanently destroy all copies of the original 
message (including any attachments), along with any reply, and delete them from 
your system.


___

Re: [Freeswitch-users] Freeswitch DAHDI Kernel drivers / Hardware questions

2009-08-25 Thread Moises Silva
On Tue, Aug 25, 2009 at 9:35 AM, Raimund Sacherer r...@runsolutions.comwrote:

 Hello,
 i was reading through the openzap wiki page and searched the wiki, the only
 thing I found about dahdi is a note from January that freeswitch does not
 work with dahdi right now.


You did not search well enough.
http://wiki.freeswitch.org/wiki/OpenZAP_OpenR2 , read note 5 there.


 Is this current information? Can't I use dahdi kernel drivers for
 freeswitch? As the last update to the zaptel drivers is now nearly a year
 old (1.4.12) and development has, AFAIK, ceased and new stuff only gehts to
 dahdi, correct me please if I am wrong.

both dahdi and zaptel work for FreeSWITCH and no headers are needed, we have
our own.



 00:0d.0 Network controller: Cologne Chip Designs GmbH ISDN network
 controller [HFC-PCI] (rev 02)
 Subsystem: Cologne Chip Designs GmbH ISDN Board
 Flags: bus master, medium devsel, latency 16, IRQ 10
 I/O ports at e000 [disabled] [size=8]
 Memory at ee001000 (32-bit, non-prefetchable) [size=256]
 Capabilities: [40] Power Management version 1
 Kernel modules: hisax

 with openZap? I read in the wiki (openZap.conf_Examples) something about
 HFC 4 BRI, but i do not know if this is the same as the above mentioned
 card.


 I have access to some pcmcia fxo, and pcmcia isdn cards, could they be
 used? I have as well an soekris board with two pcmcia slots, could i use
 this with an fxo pcmcia card to actually drive a small home - pbx with
 freeswitch?


I don't have experience with such hardware, cannot tell, may be someone else
around here may know.

-- 
Moises Silva
Software Developer
Sangoma Technologies Inc. | 50 McIntosh Drive, Suite 120, Markham ON L3R 9T3
Canada
t. 1 905 474 1990 x 128 | e. m...@sangoma.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] how to avoid many | in bridge application?

2009-08-25 Thread Phillip Jones
Take a look at http://jira.freeswitch.org/browse/FSCORE-422. This a
feature request I submitted. This problem it solves is different - but
the solution is the same. Perhaps you add your take to the comments
there.

On Tue, Aug 25, 2009 at 10:06 AM, Carlos S. Antunesc...@nowthor.com wrote:
 Max,

 I would like to see something similar too. For example, it would be
 wonderful if one could specify multiple gateways to try like this or
 something similar:

 action application=bridge
    !-- set some kind of *bridge-specific* parameter/variable --
    gateway order=1 data=sofia/gateway/gw-1/1$1/
    gateway order=1 data=sofia/gateway/gw-2/1$1/
    gateway order=2 data=sofia/gateway/gw-3/1$1
        !-- set some kind of *gw-specific* parameter/variable --
    /gateway
    gateway order=3 data=sofia/gateway/gw-4/1$1/
 /action

 One would be able to avoid the [] and {} hacks and combine
 sequential and simultaneous trying of gateways.

 What do the developers think of this?

 Carlos

 Max Ivanov wrote:
 Nowdays I 'm forced to put multiple | to find first free gateway, ie
 sofia/gateway/panas111/1000|sofia/gateway/panas112/1000|sofia/gateway/panas113/1000
 ,
 the whole sting is tooo long, is there any shorter way to write same thing? 
 Like
 sofia/gateway/panas*/1000 will try all gateways matching the pattern.

 ___
 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 DAHDI Kernel drivers / Hardware questions

2009-08-25 Thread Raimund Sacherer


On Aug 25, 2009, at 4:24 PM, Moises Silva wrote:

On Tue, Aug 25, 2009 at 9:35 AM, Raimund Sacherer  
r...@runsolutions.com wrote:

Hello,

i was reading through the openzap wiki page and searched the wiki,  
the only thing I found about dahdi is a note from January that  
freeswitch does not work with dahdi right now.



You did not search well enough. http://wiki.freeswitch.org/wiki/OpenZAP_OpenR2 
 , read note 5 there.
Thank you, i did not see any link to OpenZAP_OpenR2, but this page  
explains a lot for me!___
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 avoid many | in bridge application?

2009-08-25 Thread Anthony Minessale
This suggestion violates the scope boundaries.

gateways are specific concept to mod_sofia so a gateway tag in action
(part of agnostic xml dialplan)
does not flow properly.

you can also use combinations of continue_on_fail and hangup_after bridge so
you can
just put each bridge statement in it's own action.


On Tue, Aug 25, 2009 at 9:06 AM, Carlos S. Antunes c...@nowthor.com wrote:

 Max,

 I would like to see something similar too. For example, it would be
 wonderful if one could specify multiple gateways to try like this or
 something similar:

 action application=bridge
!-- set some kind of *bridge-specific* parameter/variable --
gateway order=1 data=sofia/gateway/gw-1/1$1/
gateway order=1 data=sofia/gateway/gw-2/1$1/
gateway order=2 data=sofia/gateway/gw-3/1$1
!-- set some kind of *gw-specific* parameter/variable --
/gateway
gateway order=3 data=sofia/gateway/gw-4/1$1/
 /action

 One would be able to avoid the [] and {} hacks and combine
 sequential and simultaneous trying of gateways.

 What do the developers think of this?

 Carlos

 Max Ivanov wrote:
  Nowdays I 'm forced to put multiple | to find first free gateway, ie
 
 sofia/gateway/panas111/1000|sofia/gateway/panas112/1000|sofia/gateway/panas113/1000
  ,
  the whole sting is tooo long, is there any shorter way to write same
 thing? Like
  sofia/gateway/panas*/1000 will try all gateways matching the pattern.
 
  ___
  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/
Twitter: http://twitter.com/FreeSWITCH_wire

AIM: anthm
MSN:anthony_miness...@hotmail.com msn%3aanthony_miness...@hotmail.com
GTALK/JABBER/PAYPAL:anthony.miness...@gmail.compaypal%3aanthony.miness...@gmail.com
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:8...@conference.freeswitch.org sip%3a...@conference.freeswitch.org
iax:gu...@conference.freeswitch.org/888
googletalk:conf+...@conference.freeswitch.orggoogletalk%3aconf%2b...@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] SIPp issues - seems FS doesn't understand ACK message

2009-08-25 Thread Michael Jerris
I beleive this is following the right rfc rules for dialog matching.   
If it is not, please open up a bug on jira.freeswitch.org with  
references of what exactly is not right.


Mike

On Aug 25, 2009, at 2:51 AM, Tihomir Culjaga tculj...@gmail.com wrote:


Hello Takeshi,

Thanks for your hint... it worked out... so to be precise:

VIA header of both INVITE and ACK messages MUST be identical  
(IP:PORT + branch)... and you are right... it might not be according  
to SIP specification. Anyhow, i get FS understand my ACK message.



Finally, here is what i used and I'm getting some poor results ..  
but this is another topic :)



Thanks for your help.
Tihomir.


sipp 10.4.4.251 -sf uac_redirect.xml -s 30003016094191500 -trace_err  
-r 1 -rp 100 -trace_msg -inf test.txt -m 2 -l 4000



?xml version=1.0 encoding=ISO-8859-1 ?
!DOCTYPE scenario SYSTEM sipp.dtd


scenario name=Basic Sipstone UAC
  send retrans=500 start_rtd=1 start_rtd=2

![CDATA[

  INVITE sip:[servi...@[remote_ip]:[remote_port] SIP/2.0
  Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
  Max-Forwards: 70
  Contact: sip:[fiel...@[local_ip]
  From: [field1] sip:[fiel...@[local_ip]:[local_port];tag= 
[call_number]

  To: [service] sip:[servi...@[remote_ip]:[remote_port]
  Call-ID: [call_id]
  CSeq: 1 INVITE
  Content-Type: application/sdp
  Content-Length: [len]

  v=0
  o=user1 53655765 2353687637 IN IP[local_ip_type] [local_ip]
  s=-
  c=IN IP[media_ip_type] [media_ip]
  t=0 0
  m=audio [media_port] RTP/AVP 0
  a=rtpmap:0 PCMU/8000

]]
  /send

  recv response=100
optional=true rtd=1
  /recv


  recv response=302 rtd=2
  /recv

  send
![CDATA[

  ACK sip:[servi...@[remote_ip]:[remote_port] SIP/2.0
  Via: SIP/2.0/[transport] [local_ip]:[local_port];branch= 
[branch-3]
  From: [field1] sip:[fiel...@1[local_ip]:[local_port];tag= 
[call_number]
  To: [service] sip:[servi...@[remote_ip]:[remote_port] 
[peer_tag_param]

  Call-ID: [call_id]
  CSeq: 1 ACK
  Max-Forwards: 70
  Content-Length: 0

]]
  /send

  !-- definition of the response time repartition table (unit is  
ms)   --

  ResponseTimeRepartition value=10, 20, 30, 40, 50, 100, 150, 200/

  !-- definition of the call length repartition table (unit is  
ms) --

  CallLengthRepartition value=10, 50, 100, 500, 1000, 5000, 1/

/scenario



On Tue, Aug 25, 2009 at 3:57 AM, mayamatakeshi mayamatake...@gmail.com 
 wrote:
On Tue, Aug 25, 2009 at 10:52 AM, mayamatakeshimayamatake...@gmail.com 
 wrote:
 On Tue, Aug 25, 2009 at 7:31 AM, Tihomir  
Culjagatculj...@gmail.com wrote:


 sipp_cmd: sipp -sn uac 10.4.4.251 -sf uac_redirect.xml -s
 30003016094191500 -trace_err -r 1 -rp 1000 -trace_msg -inf  
test.txt -m 1 -l

 4000
 scenario file:  uac_redirect.xml
 FS dialplan:   public.xml
 SIP trace:  trace.log

 The Via definition in your SIPp scenario differs between the  
INVITE and the ACK:


 INVITE:
 Via: SIP/2.0/[transport] [local_ip];branch=[branch]

 ACK:
 Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch-3]


 In the INVITE, you are not adding the [local_port] as you do in  
the ACK.
 Just adding the [local_port] in the INVITE makes FreeSWITCH accept  
the ACK.

 So it seems FS is not checking just the ACK's branch against the
 INVITE's; it seems it is checking the whole Via header.
 I don't know if this is in accordance to SIP specs.
 Another thing, about the way you are calling SIPp: do no use -sn  
uac

 and -sf uac_redirect.xml at the same time. The parameter -sn xxx
 means use the internal (embedded) scenario named xxx. So this
 conflicts with the other parameter -sf which specifies an external
 profile.

I mean, an external scenario (file).

 It seems this doesn't cause any problem (probably because in
 the sipp startup, -sf overrides -sn), but it is misleading.

 regards,
 takeshi


___
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] reload user data

2009-08-25 Thread Michael Jerris
You can also do xml config hooks in perl and some of the other  
embedded languages.


Mike

On Aug 25, 2009, at 5:22 AM, Juan Backson wrote:


Hi Ken,

xml_curl is a great idea.  Is there anyway to not having to setup  
another HTTP server?  For instance, can I have freeswitch to call an  
api or call a lua or php or c script that will return the xml  
response?  That way, I don't need to maintain yet another service.


Thanks,
JB

On Tue, Aug 25, 2009 at 4:30 PM, Ken Rice kr...@freeswitch.org  
wrote:
You just need to reloadxml you don’t have to restart the whole  
thing. You can also use xml_curl to feed the users from a database  
see my contrib directory (contrib/swk) for some example scripts and  
db code



From: Juan Backson juanback...@gmail.com
Reply-To: freeswitch-users@lists.freeswitch.org
Date: Tue, 25 Aug 2009 16:21:58 +0800
To: freeswitch-users@lists.freeswitch.org
Subject: [Freeswitch-users] reload user data


Hello,

I would like to dynamically add user to freeswitch.  If I add a new  
file to the directory dir, is there anyway to have freeswitch to  
read the new user xml file without having to restart freeswitch?


Other than using flat file, is there anyway to add user to  
freeswitch user api command?


Thanks,
JB


___
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] Moved Freeswitch to new subnet.

2009-08-25 Thread Michael Collins
On Tue, Aug 25, 2009 at 7:20 AM, Mike Peace mpe...@edcogroupinc.com wrote:

  I fired up Wireshark on each side and I can see the SIP register request
 coming from the laptop, the Freeswitch server replies with a Destination
 Unreachable (Port unreachable) message.



 I rebooted the Server and now I get a “Registration error; 405 Method not
 allowed” on the softphone and the Wiresharp capture shows: “Status 405
 Method Not Allowerd (0 bindings).



Hmm... can you fire up FS and then do sofia status and tell us if the
internal profile looks okay? Also, do sofia status profile internal and
capture the output. Something fishy is going on...
-MC

 It does this even after I stop and restart the Freeswitch service.



 Shouldn’t all the ports be open if the firewall and SELunix are disabled?



 *Mike Peace*

 Network Analyst

 EDCO, The Document People

 Direct 417-447-3367



 *From:* freeswitch-users-boun...@lists.freeswitch.org [mailto:
 freeswitch-users-boun...@lists.freeswitch.org] *On Behalf Of *Michael
 Collins
 *Sent:* Monday, August 24, 2009 5:32 PM

 *To:* freeswitch-users@lists.freeswitch.org
 *Subject:* Re: [Freeswitch-users] Moved Freeswitch to new subnet.





 On Mon, Aug 24, 2009 at 2:49 PM, Mike Peace mpe...@edcogroupinc.com
 wrote:

 It does the same thing, does anything get set during the install that would
 remember or cache the old network settings? I can access anything from the
 FS server on any of several networks and vice-versa but the SIP will not
 register, again no firewalls are upon any of the test hosts.

 Doesn’t make sense to me.



 Time to bust out tcpdump and/or wireshark to make 100% certain you know
 what's happening with all those SIP packets.

   *Mike Peace*

 Network Analyst

 EDCO, The Document People

 Direct 417-447-3367



 *From:* freeswitch-users-boun...@lists.freeswitch.org [mailto:
 freeswitch-users-boun...@lists.freeswitch.org] *On Behalf Of *Michael
 Collins
 *Sent:* Monday, August 24, 2009 4:34 PM


 *To:* freeswitch-users@lists.freeswitch.org
 *Subject:* Re: [Freeswitch-users] Moved Freeswitch to new subnet.





 On Mon, Aug 24, 2009 at 2:26 PM, Mike Peace mpe...@edcogroupinc.com
 wrote:

 “Registration error: 408-Request Timeout”

 Sorry for the the typo - 408 = timeout. (480 = temp unavail)

 Try stopping iptables in Linux and try again. Sounds like something is
 interfering with your packets getting from here to there...
 Try:

 /etc/init.d/iptables stop

 And then see if your packets can move again.

 -MC



 *Mike Peace*

 Network Analyst

 EDCO, The Document People

 Direct 417-447-3367



 *From:* freeswitch-users-boun...@lists.freeswitch.org [mailto:
 freeswitch-users-boun...@lists.freeswitch.org] *On Behalf Of *Michael
 Collins
 *Sent:* Monday, August 24, 2009 4:18 PM
 *To:* freeswitch-users@lists.freeswitch.org
 *Subject:* Re: [Freeswitch-users] Moved Freeswitch to new subnet.





 On Mon, Aug 24, 2009 at 2:01 PM, Mike Peace mpe...@edcogroupinc.com
 wrote:

 I haven’t changed any of the conf files.



 What happens when you try to register? Do you get 480? (timeout) Or
 something else?
 -MC


  --



 *EDCO Group, Inc.*
 Phone: (800) 999-3456
 Fax: (800) 999-3551
 Web: http://www.edcogroupinc.com/



 Confidentiality Notice: The information contained in this e-mail message
 (including any attachments) may contain confidential and privileged
 information, and is for the sole use of the intended recipient(s). If you
 are not the intended recipient, any unauthorized review, use, or disclosure
 or distribution is strictly prohibited. If you have received this message in
 error, please notify the sender by replying to this e-mail message or by
 telephone at (800) 999-3456 and permanently destroy all copies of the
 original message (including any attachments), along with any reply, and
 delete them from your system.




 ___
 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




  --



 *EDCO Group, Inc.*
 Phone: (800) 999-3456
 Fax: (800) 999-3551
 Web: http://www.edcogroupinc.com/



 Confidentiality Notice: The information contained in this e-mail message
 (including any attachments) may contain confidential and privileged
 information, and is for the sole use of the intended recipient(s). If you
 are not the intended recipient, any unauthorized review, use, or disclosure
 or distribution is strictly prohibited. If you have received this message in
 error, please notify the sender by replying to this e-mail message or by
 telephone at (800) 999-3456 and permanently destroy all copies of the
 original message (including any attachments), along with any reply, and
 delete them from your system.




 ___
 FreeSWITCH-users mailing 

Re: [Freeswitch-users] using sipp to test call transfers

2009-08-25 Thread Michael Collins
On Tue, Aug 25, 2009 at 2:06 AM, Raimund Sacherer r...@runsolutions.comwrote:

 Hi List,

 i have some scripts to test our lab:

 I have scripts to create sipp instances which act as individual
 agents, which log on, take a random amount of calls, log off, wait a
 bit, log on again, etc.
 I have scripts to generate call traffic for our queues to saturate them

 But what I have difficulties is how to create a good scenario xml file
 for call transfers? Has anybody here a sample for me to sink my teeth
 in?


Start with this...
http://wiki.freeswitch.org/wiki/Performance_testing_and_configurations

-MC




 thanks and best regards

 --
 Raimund Sacherer
 -
 RunSolutions
 Open Source It Consulting
 -

 Parc Bit - Centro Empresarial Son Espanyol
 Edificio Estel - Local 3D
 07121 -  Palma de Mallorca
 Baleares


 ___
 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 DAHDI Kernel drivers / Hardware questions

2009-08-25 Thread Michael Collins
On Tue, Aug 25, 2009 at 7:35 AM, Raimund Sacherer r...@runsolutions.comwrote:


 On Aug 25, 2009, at 4:24 PM, Moises Silva wrote:

 On Tue, Aug 25, 2009 at 9:35 AM, Raimund Sacherer 
 r...@runsolutions.comwrote:

 Hello,
 i was reading through the openzap wiki page and searched the wiki, the
 only thing I found about dahdi is a note from January that freeswitch does
 not work with dahdi right now.


 You did not search well enough.
 http://wiki.freeswitch.org/wiki/OpenZAP_OpenR2 , read note 5 there.

 Thank you, i did not see any link to OpenZAP_OpenR2, but this page explains
 a lot for me!


FYI,
I added a link to the R2 page on the main OpenZAP page.
-MC
___
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 performance as a redirecting server

2009-08-25 Thread Michael Collins
 Also, I'm running 32-bit OS (debian 5) on a 64 bit CPU... does it have
 sense to move my OS to 64 bit? ... will FS gain more preformance ?... I mean
 will FS perofomr drastically better 20%+ ?


If you really want to get on the same page as the developers then get the
64bit CentOS 5.3 loaded on your machine. Also, we've seen reports of really
weird things happening when people run 32bit OS on 64bit hardware. That's a
big no-no. :)

Let us know how it goes.
-MC
___
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] reload user data

2009-08-25 Thread Michael Collins
On Tue, Aug 25, 2009 at 8:29 AM, Michael Jerris m...@jerris.com wrote:

 You can also do xml config hooks in perl and some of the other embedded
 languages.


FYI, here's a page to go you started:
http://wiki.freeswitch.org/wiki/Mod_perl_and_Generating_XML

-MC
___
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 performance as a redirecting server

2009-08-25 Thread Tihomir Culjaga
Exactly... the scenario i use seems operating on a single thread... why is
that ? can it be changed?

T.

On Tue, Aug 25, 2009 at 5:31 PM, Michael Jerris m...@jerris.com wrote:

 Actually in this case, we are bound to one thread in sofia.

 Mike

 On Aug 25, 2009, at 9:47 AM, Giovanni Maruzzelli wrote:

  is a heavely multithreaded software, it benefits from number of CPUs
  (or cores), RAM, and heavy duty kernel features (found in 64bit
  kernels)
 
  put all accesses on ramdisk, leave out the modules you don't use...
 
  experiment, test, and find the best for your specific application/
  workload
 
  test not only with sipp, but with real load too (often they're very
  different)
 
  -gm
 


 ___
 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 performance as a redirecting server

2009-08-25 Thread Tihomir Culjaga
well :) ... this is something we are going to change tomorrow of course
will let you posted.

T.

On Tue, Aug 25, 2009 at 6:11 PM, Michael Collins m...@freeswitch.org wrote:


 Also, I'm running 32-bit OS (debian 5) on a 64 bit CPU... does it have
 sense to move my OS to 64 bit? ... will FS gain more preformance ?... I mean
 will FS perofomr drastically better 20%+ ?


 If you really want to get on the same page as the developers then get the
 64bit CentOS 5.3 loaded on your machine. Also, we've seen reports of really
 weird things happening when people run 32bit OS on 64bit hardware. That's a
 big no-no. :)

 Let us know how it goes.
 -MC


 ___
 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] Moved Freeswitch to new subnet.

2009-08-25 Thread Mike Peace
I get a bash: sofia: command not found. Is there something I need to add to my 
config to use these commands?

From: freeswitch-users-boun...@lists.freeswitch.org 
[mailto:freeswitch-users-boun...@lists.freeswitch.org] On Behalf Of Michael 
Collins
Sent: Tuesday, August 25, 2009 10:55 AM
To: freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] Moved Freeswitch to new subnet.


On Tue, Aug 25, 2009 at 7:20 AM, Mike Peace 
mpe...@edcogroupinc.commailto:mpe...@edcogroupinc.com wrote:

I fired up Wireshark on each side and I can see the SIP register request coming 
from the laptop, the Freeswitch server replies with a Destination Unreachable 
(Port unreachable) message.



I rebooted the Server and now I get a Registration error; 405 Method not 
allowed on the softphone and the Wiresharp capture shows: Status 405 Method 
Not Allowerd (0 bindings).


Hmm... can you fire up FS and then do sofia status and tell us if the 
internal profile looks okay? Also, do sofia status profile internal and 
capture the output. Something fishy is going on...
-MC

It does this even after I stop and restart the Freeswitch service.



Shouldn't all the ports be open if the firewall and SELunix are disabled?



Mike Peace

Network Analyst

EDCO, The Document People

Direct 417-447-3367



From: 
freeswitch-users-boun...@lists.freeswitch.orgmailto:freeswitch-users-boun...@lists.freeswitch.org
 
[mailto:freeswitch-users-boun...@lists.freeswitch.orgmailto:freeswitch-users-boun...@lists.freeswitch.org]
 On Behalf Of Michael Collins
Sent: Monday, August 24, 2009 5:32 PM

To: 
freeswitch-users@lists.freeswitch.orgmailto:freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] Moved Freeswitch to new subnet.





On Mon, Aug 24, 2009 at 2:49 PM, Mike Peace 
mpe...@edcogroupinc.commailto:mpe...@edcogroupinc.com wrote:

It does the same thing, does anything get set during the install that would 
remember or cache the old network settings? I can access anything from the FS 
server on any of several networks and vice-versa but the SIP will not register, 
again no firewalls are upon any of the test hosts.

Doesn't make sense to me.



Time to bust out tcpdump and/or wireshark to make 100% certain you know what's 
happening with all those SIP packets.

Mike Peace

Network Analyst

EDCO, The Document People

Direct 417-447-3367



From: 
freeswitch-users-boun...@lists.freeswitch.orgmailto:freeswitch-users-boun...@lists.freeswitch.org
 
[mailto:freeswitch-users-boun...@lists.freeswitch.orgmailto:freeswitch-users-boun...@lists.freeswitch.org]
 On Behalf Of Michael Collins
Sent: Monday, August 24, 2009 4:34 PM

To: 
freeswitch-users@lists.freeswitch.orgmailto:freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] Moved Freeswitch to new subnet.





On Mon, Aug 24, 2009 at 2:26 PM, Mike Peace 
mpe...@edcogroupinc.commailto:mpe...@edcogroupinc.com wrote:

Registration error: 408-Request Timeout

Sorry for the the typo - 408 = timeout. (480 = temp unavail)

Try stopping iptables in Linux and try again. Sounds like something is 
interfering with your packets getting from here to there...
Try:

/etc/init.d/iptables stop

And then see if your packets can move again.

-MC



Mike Peace

Network Analyst

EDCO, The Document People

Direct 417-447-3367



From: 
freeswitch-users-boun...@lists.freeswitch.orgmailto:freeswitch-users-boun...@lists.freeswitch.org
 
[mailto:freeswitch-users-boun...@lists.freeswitch.orgmailto:freeswitch-users-boun...@lists.freeswitch.org]
 On Behalf Of Michael Collins
Sent: Monday, August 24, 2009 4:18 PM
To: 
freeswitch-users@lists.freeswitch.orgmailto:freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] Moved Freeswitch to new subnet.





On Mon, Aug 24, 2009 at 2:01 PM, Mike Peace 
mpe...@edcogroupinc.commailto:mpe...@edcogroupinc.com wrote:

I haven't changed any of the conf files.



What happens when you try to register? Do you get 480? (timeout) Or something 
else?
-MC







EDCO Group, Inc.
Phone: (800) 999-3456
Fax: (800) 999-3551
Web: http://www.edcogroupinc.com/



Confidentiality Notice: The information contained in this e-mail message 
(including any attachments) may contain confidential and privileged 
information, and is for the sole use of the intended recipient(s). If you are 
not the intended recipient, any unauthorized review, use, or disclosure or 
distribution is strictly prohibited. If you have received this message in 
error, please notify the sender by replying to this e-mail message or by 
telephone at (800) 999-3456 and permanently destroy all copies of the original 
message (including any attachments), along with any reply, and delete them from 
your system.



___
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.orgmailto:FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users

Re: [Freeswitch-users] SIPp issues - seems FS doesn't understand ACK message

2009-08-25 Thread Anthony Minessale
I wish I had a nickel for every guy struggling with sipp load testing vs
real world traffic.


On Tue, Aug 25, 2009 at 1:51 AM, Tihomir Culjaga tculj...@gmail.com wrote:

 Hello Takeshi,

 Thanks for your hint... it worked out... so to be precise:

 VIA header of both INVITE and ACK messages MUST be identical (IP:PORT +
 branch)... and you are right... it might not be according to SIP
 specification. Anyhow, i get FS understand my ACK message.


 Finally, here is what i used and I'm getting some poor results .. but this
 is another topic :)


 Thanks for your help.
 Tihomir.


 sipp 10.4.4.251 -sf uac_redirect.xml -s 30003016094191500 -trace_err -r 1
 -rp 100 -trace_msg -inf test.txt -m 2 -l 4000


 ?xml version=1.0 encoding=ISO-8859-1 ?
 !DOCTYPE scenario SYSTEM sipp.dtd


 scenario name=Basic Sipstone UAC
   send retrans=500 start_rtd=1 start_rtd=2

 ![CDATA[

   INVITE sip:[servi...@[remote_ip]:[remote_port] SIP/2.0
   Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
   Max-Forwards: 70
   Contact: sip:[fiel...@[local_ip]
   From: [field1]
 sip:[fiel...@[local_ip]:[local_port];tag=[call_number]
   To: [service] sip:[servi...@[remote_ip]:[remote_port]
   Call-ID: [call_id]
   CSeq: 1 INVITE
   Content-Type: application/sdp
   Content-Length: [len]

   v=0
   o=user1 53655765 2353687637 IN IP[local_ip_type] [local_ip]
   s=-
   c=IN IP[media_ip_type] [media_ip]
   t=0 0
   m=audio [media_port] RTP/AVP 0
   a=rtpmap:0 PCMU/8000

 ]]
   /send

   recv response=100
 optional=true rtd=1
   /recv


   recv response=302 rtd=2
   /recv

   send
 ![CDATA[

   ACK sip:[servi...@[remote_ip]:[remote_port] SIP/2.0
   Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch-3]
   From: [field1]
 sip:[fiel...@1[local_ip]:[local_port];tag=[call_number]
   To: [service]
 sip:[servi...@[remote_ip]:[remote_port][peer_tag_param]
   Call-ID: [call_id]
   CSeq: 1 ACK
   Max-Forwards: 70
   Content-Length: 0

 ]]
   /send

   !-- definition of the response time repartition table (unit is ms)   --
   ResponseTimeRepartition value=10, 20, 30, 40, 50, 100, 150, 200/

   !-- definition of the call length repartition table (unit is ms) --
   CallLengthRepartition value=10, 50, 100, 500, 1000, 5000, 1/

 /scenario



 On Tue, Aug 25, 2009 at 3:57 AM, mayamatakeshi mayamatake...@gmail.comwrote:

 On Tue, Aug 25, 2009 at 10:52 AM, mayamatakeshimayamatake...@gmail.com
 wrote:
  On Tue, Aug 25, 2009 at 7:31 AM, Tihomir Culjagatculj...@gmail.com
 wrote:
 
  sipp_cmd: sipp -sn uac 10.4.4.251 -sf uac_redirect.xml -s
  30003016094191500 -trace_err -r 1 -rp 1000 -trace_msg -inf test.txt -m
 1 -l
  4000
  scenario file:  uac_redirect.xml
  FS dialplan:   public.xml
  SIP trace:  trace.log
 
  The Via definition in your SIPp scenario differs between the INVITE and
 the ACK:
 
  INVITE:
  Via: SIP/2.0/[transport] [local_ip];branch=[branch]
 
  ACK:
  Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch-3]
 
 
  In the INVITE, you are not adding the [local_port] as you do in the ACK.
  Just adding the [local_port] in the INVITE makes FreeSWITCH accept the
 ACK.
  So it seems FS is not checking just the ACK's branch against the
  INVITE's; it seems it is checking the whole Via header.
  I don't know if this is in accordance to SIP specs.
  Another thing, about the way you are calling SIPp: do no use -sn uac
  and -sf uac_redirect.xml at the same time. The parameter -sn xxx
  means use the internal (embedded) scenario named xxx. So this
  conflicts with the other parameter -sf which specifies an external
  profile.

 I mean, an external scenario (file).

  It seems this doesn't cause any problem (probably because in
  the sipp startup, -sf overrides -sn), but it is misleading.
 
  regards,
  takeshi
 

 ___
 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/
Twitter: http://twitter.com/FreeSWITCH_wire

AIM: anthm
MSN:anthony_miness...@hotmail.com msn%3aanthony_miness...@hotmail.com
GTALK/JABBER/PAYPAL:anthony.miness...@gmail.compaypal%3aanthony.miness...@gmail.com
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:8...@conference.freeswitch.org sip%3a...@conference.freeswitch.org
iax:gu...@conference.freeswitch.org/888

Re: [Freeswitch-users] Freeswitch performance as a redirecting server

2009-08-25 Thread Anthony Minessale
You also should put your extension first in your dialplan ahead of the
default extensions which match every call and do a lot of db access for
record keeping etc.

The single thread in sofia is part of their concurrency model.
The single thread acts as a scheduler and indicates to us that an invite is
requested
we react to that and spawn a new thread for that call as soon as  the data
is received.

like I said above you are probably hitting all the default stuff to save
that last dialed number etc
that exists in the default config.

sigh, we go through this every new guy doing load testing.


On Tue, Aug 25, 2009 at 11:34 AM, Tihomir Culjaga tculj...@gmail.comwrote:

 Exactly... the scenario i use seems operating on a single thread... why is
 that ? can it be changed?

 T.


 On Tue, Aug 25, 2009 at 5:31 PM, Michael Jerris m...@jerris.com wrote:

 Actually in this case, we are bound to one thread in sofia.

 Mike

 On Aug 25, 2009, at 9:47 AM, Giovanni Maruzzelli wrote:

  is a heavely multithreaded software, it benefits from number of CPUs
  (or cores), RAM, and heavy duty kernel features (found in 64bit
  kernels)
 
  put all accesses on ramdisk, leave out the modules you don't use...
 
  experiment, test, and find the best for your specific application/
  workload
 
  test not only with sipp, but with real load too (often they're very
  different)
 
  -gm
 


 ___
 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/
Twitter: http://twitter.com/FreeSWITCH_wire

AIM: anthm
MSN:anthony_miness...@hotmail.com msn%3aanthony_miness...@hotmail.com
GTALK/JABBER/PAYPAL:anthony.miness...@gmail.compaypal%3aanthony.miness...@gmail.com
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:8...@conference.freeswitch.org sip%3a...@conference.freeswitch.org
iax:gu...@conference.freeswitch.org/888
googletalk:conf+...@conference.freeswitch.orggoogletalk%3aconf%2b...@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] Freeswitch performance as a redirecting server

2009-08-25 Thread Michael Jerris
This requires invasive changes in the sofia-sip stack to get thread- 
pooling working again.  I am sure they would accept patches if you can  
provide some that fully address any issues that may come up from  
adding this such as race conditions.


Mike

On Aug 25, 2009, at 12:34 PM, Tihomir Culjaga wrote:

Exactly... the scenario i use seems operating on a single thread...  
why is that ? can it be changed?


T.

On Tue, Aug 25, 2009 at 5:31 PM, Michael Jerris m...@jerris.com  
wrote:

Actually in this case, we are bound to one thread in sofia.

Mike

On Aug 25, 2009, at 9:47 AM, Giovanni Maruzzelli wrote:

 is a heavely multithreaded software, it benefits from number of CPUs
 (or cores), RAM, and heavy duty kernel features (found in 64bit
 kernels)

 put all accesses on ramdisk, leave out the modules you don't use...

 experiment, test, and find the best for your specific application/
 workload

 test not only with sipp, but with real load too (often they're very
 different)

 -gm




___
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 performance as a redirecting server

2009-08-25 Thread Tihomir Culjaga
Of course i removed everytihng from teh dialplan except my extension :)

when exactly do you react and bring up a new thread ? ... is it on INVITE or
on 1st 1xx response ?

i beleive i can have several lets call it SIP interfaces ... on different
ports 5060, 5070, 5080 ... every interface will have it's own sip profile.

does it mean i will have one thread per profile?

T.


On Tue, Aug 25, 2009 at 7:10 PM, Anthony Minessale 
anthony.miness...@gmail.com wrote:

 You also should put your extension first in your dialplan ahead of the
 default extensions which match every call and do a lot of db access for
 record keeping etc.

 The single thread in sofia is part of their concurrency model.
 The single thread acts as a scheduler and indicates to us that an invite is
 requested
 we react to that and spawn a new thread for that call as soon as  the data
 is received.

 like I said above you are probably hitting all the default stuff to save
 that last dialed number etc
 that exists in the default config.

 sigh, we go through this every new guy doing load testing.



 On Tue, Aug 25, 2009 at 11:34 AM, Tihomir Culjaga tculj...@gmail.comwrote:

 Exactly... the scenario i use seems operating on a single thread... why is
 that ? can it be changed?

 T.


 On Tue, Aug 25, 2009 at 5:31 PM, Michael Jerris m...@jerris.com wrote:

 Actually in this case, we are bound to one thread in sofia.

 Mike

 On Aug 25, 2009, at 9:47 AM, Giovanni Maruzzelli wrote:

  is a heavely multithreaded software, it benefits from number of CPUs
  (or cores), RAM, and heavy duty kernel features (found in 64bit
  kernels)
 
  put all accesses on ramdisk, leave out the modules you don't use...
 
  experiment, test, and find the best for your specific application/
  workload
 
  test not only with sipp, but with real load too (often they're very
  different)
 
  -gm
 


 ___
 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/
 Twitter: http://twitter.com/FreeSWITCH_wire

 AIM: anthm
 MSN:anthony_miness...@hotmail.com msn%3aanthony_miness...@hotmail.com
 GTALK/JABBER/PAYPAL:anthony.miness...@gmail.compaypal%3aanthony.miness...@gmail.com
 IRC: irc.freenode.net #freeswitch

 FreeSWITCH Developer Conference
 sip:8...@conference.freeswitch.org sip%3a...@conference.freeswitch.org
 iax:gu...@conference.freeswitch.org/888
 googletalk:conf+...@conference.freeswitch.orggoogletalk%3aconf%2b...@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


Re: [Freeswitch-users] Moved Freeswitch to new subnet.

2009-08-25 Thread Michael Jerris
if you want to run that at your prompt instead of at the fs_cli you  
can do this:


function sofia() { fs_cli -x $(echo sofia $@); }

(thanks ray for the bash foo)

Mike

On Aug 25, 2009, at 1:04 PM, Mike Peace wrote:

I get a bash: sofia: command not found. Is there something I need to  
add to my config to use these commands?


From: freeswitch-users-boun...@lists.freeswitch.org  
[mailto:freeswitch-users-boun...@lists.freeswitch.org] On Behalf Of  
Michael Collins

Sent: Tuesday, August 25, 2009 10:55 AM
To: freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] Moved Freeswitch to new subnet.

Hmm... can you fire up FS and then do sofia status and tell us if  
the internal profile looks okay? Also, do sofia status profile  
internal and capture the output. Something fishy is going on...

-MC
Mike Peace


Network Analyst

EDCO, The Document People

Direct 417-447-3367



___
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] Moved Freeswitch to new subnet.

2009-08-25 Thread Michael Collins
On Tue, Aug 25, 2009 at 10:04 AM, Mike Peace mpe...@edcogroupinc.comwrote:

  I get a bash: sofia: command not found. Is there something I need to add
 to my config to use these commands?

Hehe, sorry. The sofia command is for use at the FreeSWITCH command line.
If you have FS running as a daemon (that is, you launched it with the -nc
option) then you'll need to use the fs_cli program to connect to your
running FS daemon. On a typical install it would be something like this:

/usr/local/freeswitch/bin/fs_cli

Once you're there, then issue the two commands:
sofia status
sofia status profile internal

Have fun!
-MC

BTW, you should really get a copy of the September issue of Linux-Pro
magazine because it has a nice article that is a gentle introduction to
using FreeSWITCH. If you're in Western Europe it's already on the shelves.
In the US it should be out any day. In Australia/NZ at the end of the month.
Hope you don't mind the shameless plug.



 *From:* freeswitch-users-boun...@lists.freeswitch.org [mailto:
 freeswitch-users-boun...@lists.freeswitch.org] *On Behalf Of *Michael
 Collins
 *Sent:* Tuesday, August 25, 2009 10:55 AM

 *To:* freeswitch-users@lists.freeswitch.org
 *Subject:* Re: [Freeswitch-users] Moved Freeswitch to new subnet.





 On Tue, Aug 25, 2009 at 7:20 AM, Mike Peace mpe...@edcogroupinc.com
 wrote:

 I fired up Wireshark on each side and I can see the SIP register request
 coming from the laptop, the Freeswitch server replies with a Destination
 Unreachable (Port unreachable) message.



 I rebooted the Server and now I get a “Registration error; 405 Method not
 allowed” on the softphone and the Wiresharp capture shows: “Status 405
 Method Not Allowerd (0 bindings).



 Hmm... can you fire up FS and then do sofia status and tell us if the
 internal profile looks okay? Also, do sofia status profile internal and
 capture the output. Something fishy is going on...
 -MC

  It does this even after I stop and restart the Freeswitch service.



 Shouldn’t all the ports be open if the firewall and SELunix are disabled?



 *Mike Peace*

 Network Analyst

 EDCO, The Document People

 Direct 417-447-3367



 *From:* freeswitch-users-boun...@lists.freeswitch.org [mailto:
 freeswitch-users-boun...@lists.freeswitch.org] *On Behalf Of *Michael
 Collins
 *Sent:* Monday, August 24, 2009 5:32 PM


 *To:* freeswitch-users@lists.freeswitch.org
 *Subject:* Re: [Freeswitch-users] Moved Freeswitch to new subnet.





 On Mon, Aug 24, 2009 at 2:49 PM, Mike Peace mpe...@edcogroupinc.com
 wrote:

 It does the same thing, does anything get set during the install that would
 remember or cache the old network settings? I can access anything from the
 FS server on any of several networks and vice-versa but the SIP will not
 register, again no firewalls are upon any of the test hosts.

 Doesn’t make sense to me.



 Time to bust out tcpdump and/or wireshark to make 100% certain you know
 what's happening with all those SIP packets.

   *Mike Peace*

 Network Analyst

 EDCO, The Document People

 Direct 417-447-3367



 *From:* freeswitch-users-boun...@lists.freeswitch.org [mailto:
 freeswitch-users-boun...@lists.freeswitch.org] *On Behalf Of *Michael
 Collins
 *Sent:* Monday, August 24, 2009 4:34 PM


 *To:* freeswitch-users@lists.freeswitch.org
 *Subject:* Re: [Freeswitch-users] Moved Freeswitch to new subnet.





 On Mon, Aug 24, 2009 at 2:26 PM, Mike Peace mpe...@edcogroupinc.com
 wrote:

 “Registration error: 408-Request Timeout”

 Sorry for the the typo - 408 = timeout. (480 = temp unavail)

 Try stopping iptables in Linux and try again. Sounds like something is
 interfering with your packets getting from here to there...
 Try:

 /etc/init.d/iptables stop

 And then see if your packets can move again.

 -MC



 *Mike Peace*

 Network Analyst

 EDCO, The Document People

 Direct 417-447-3367



 *From:* freeswitch-users-boun...@lists.freeswitch.org [mailto:
 freeswitch-users-boun...@lists.freeswitch.org] *On Behalf Of *Michael
 Collins
 *Sent:* Monday, August 24, 2009 4:18 PM
 *To:* freeswitch-users@lists.freeswitch.org
 *Subject:* Re: [Freeswitch-users] Moved Freeswitch to new subnet.





 On Mon, Aug 24, 2009 at 2:01 PM, Mike Peace mpe...@edcogroupinc.com
 wrote:

 I haven’t changed any of the conf files.



 What happens when you try to register? Do you get 480? (timeout) Or
 something else?
 -MC


  --



 *EDCO Group, Inc.*
 Phone: (800) 999-3456
 Fax: (800) 999-3551
 Web: http://www.edcogroupinc.com/



 Confidentiality Notice: The information contained in this e-mail message
 (including any attachments) may contain confidential and privileged
 information, and is for the sole use of the intended recipient(s). If you
 are not the intended recipient, any unauthorized review, use, or disclosure
 or distribution is strictly prohibited. If you have received this message in
 error, please notify the sender by replying to this e-mail message or by
 telephone at (800) 999-3456 and 

Re: [Freeswitch-users] Freeswitch performance as a redirecting server

2009-08-25 Thread Tihomir Culjaga
Hi Giovanny,

thanks for your help,
everything that heavyly accesses the disk is on ramdisk now...
hopefully will get some real traffic pretty soon...


On Tue, Aug 25, 2009 at 3:47 PM, Giovanni Maruzzelli gmar...@celliax.orgwrote:

 is a heavely multithreaded software, it benefits from number of CPUs
 (or cores), RAM, and heavy duty kernel features (found in 64bit
 kernels)

 put all accesses on ramdisk, leave out the modules you don't use...

 experiment, test, and find the best for your specific application/workload

 test not only with sipp, but with real load too (often they're very
 different)

 -gm


 On Tue, Aug 25, 2009 at 3:42 PM, Tihomir Culjagatculj...@gmail.com
 wrote:
  thanks for the feedback... this is something im going to do tomorrow...
 
  what about other things?
 
 
  On Tue, Aug 25, 2009 at 3:39 PM, Jay Binks jaybi...@gmail.com wrote:
 
  Everytime someone asks this ,  the resounding answer is use a 64bit os..
  No question
  Jay
 
 
 
  On 25/08/2009, at 23:19, Tihomir Culjaga tculj...@gmail.com wrote:
 
  Hey Giovanni,
 
  thanks for the tip... indeed the db files were heavily used regardless
 if
  i started freeswitch with nosql option (freeswitch -nosql)... FS was not
  writing anything into that files ... instead it was just accessing
 it
  This behaviour leads to a waste of 40% CPU time... waiting for other
  processes (mainly disk access) to finish!!!
 
  I moved freeswitch/db/ to a ramdisk and the performance got a boost to
 140
  CPS with a CPU load of 80%. I was keeping the machine for a while (20 -
 30
  minutes) on that rate when i sow CPU suddenly went to 100% and FS
 becoming
  irresponsive :).
 
 
  What can be wrong?
  What are the limits in CPU usage (50%, 60%, 70%, 80%...) we should not
  cross?
  What fine tuning do we need in order to asure a long high load run?
 
 
 
  Also, I'm running 32-bit OS (debian 5) on a 64 bit CPU... does it have
  sense to move my OS to 64 bit? ... will FS gain more preformance ?... I
 mean
  will FS perofomr drastically better 20%+ ?
 
 
  Tihomir.
 
 
  On Tue, Aug 25, 2009 at 11:00 AM, Giovanni Maruzzelli
  gmar...@celliax.org wrote:
 
  Maybe your load comes from disk access?
 
  Try putting the sql and log directories on a ramdisk.
 
  OTH,
 
  -giovanni
 
  On Tue, Aug 25, 2009 at 10:54 AM, Tihomir Culjagatculj...@gmail.com
  wrote:
   Hello,
  
   i'm trying to use freeswitch as a redirecting server meaning FS has
 to
   receive an INVITE and according to some rules it will redirect calls
 to
   other destinations.
  
  
   CALLING_USERFREESWITCH
 SOMEWHERE
  
   INVITE ---
  -- 100 Trying
  -- 302 Moved Temporary
   ACK---
  
  
 INVITE-
  
  
  
   Well, wverything works well except i have perfromance issues  on
 my
   HW
   FS cannot do more than 40 CPS (INVITE answered by 302 Moved
 Temporary).
   When
   i increase the rate, FS starts delaying 302 response. Right at 50 CPS
 i
   see
   calls being build up in FS and the delay begining to grow.
  
   When i observe the machine, load average is almost nothing (load
   average:
   1.41, 0.61, 0.60) CPU never goes to 100%, and i see only one thread
   taking
   most load... all others are just sitting there with 1-5 % CPU time.
   This looks to me as FS handles 302 messages in a single thread?!?!
  
  
   tculj...@fs:/usr/local/freeswitch/conf/dialplan$ top -H
  
   top - 10:41:37 up 167 days, 20:42,  3 users,  load average: 1.41,
 0.61,
   0.60
   Tasks:  83 total,   2 running,  81 sleeping,   0 stopped,   0 zombie
   Cpu(s): 25.3%us,  1.5%sy,  0.0%ni, 30.3%id, 42.7%wa,  0.0%hi,
 0.2%si,
   0.0%st
   Mem:   2074520k total,   571244k used,  1503276k free,   259604k
   buffers
   Swap:  2650684k total, 3020k used,  2647664k free,   153868k
 cached
  
 PID USER  PR  NI  VIRT  RES  SHR S %CPU %MEMTIME+
   COMMAND
4814 root  20   0 34188  20m 3780 S   38  1.0   3:10.29
   freeswitch
4800 root  20   0 34188  20m 3780 S6  1.0   0:08.26
   freeswitch
4798 root  20   0 34188  20m 3780 R5  1.0   0:24.46
   freeswitch
4787 root  20   0 34188  20m 3780 S2  1.0   0:11.24
   freeswitch
4794 root  20   0 34188  20m 3780 S1  1.0   0:11.42
   freeswitch
4803 root  20   0 34188  20m 3780 S1  1.0   0:11.74
   freeswitch
4788 root  20   0 34188  20m 3780 S1  1.0   0:02.96
   freeswitch
4804 root  20   0 34188  20m 3780 S1  1.0   0:01.64
   freeswitch
4807 root  20   0 34188  20m 3780 S1  1.0   0:01.68
   freeswitch
4811 root  20   0 34188  20m 3780 S1  1.0   0:02.50
 freeswitch
  
  
  
   cat /proc/cpuinfo
   processor   : 0
   vendor_id   : GenuineIntel
   cpu family  : 6
   model   : 15
   model name  

Re: [Freeswitch-users] Moved Freeswitch to new subnet.

2009-08-25 Thread Mike Peace
Ok, figured out from your post to load the FS-CLI in order to run the Sophia 
status Michael mentioned.

Now I get: [ERROR] libs/esl/fs_cli.c.639 main() Error Connecting [Socket 
Connection Error] when running ./fs_cli from a terminal window in 
/usr/local/freeswitch/bin where fs_cli is located.

Mike
From: freeswitch-users-boun...@lists.freeswitch.org 
[mailto:freeswitch-users-boun...@lists.freeswitch.org] On Behalf Of Michael 
Jerris
Sent: Tuesday, August 25, 2009 12:39 PM
To: freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] Moved Freeswitch to new subnet.

if you want to run that at your prompt instead of at the fs_cli you can do this:

function sofia() { fs_cli -x $(echo sofia $@); }

(thanks ray for the bash foo)

Mike

On Aug 25, 2009, at 1:04 PM, Mike Peace wrote:


I get a bash: sofia: command not found. Is there something I need to add to my 
config to use these commands?

From: 
freeswitch-users-boun...@lists.freeswitch.orgmailto:freeswitch-users-boun...@lists.freeswitch.org
 [mailto:freeswitch-users-boun...@lists.freeswitch.org] On Behalf Of Michael 
Collins
Sent: Tuesday, August 25, 2009 10:55 AM
To: 
freeswitch-users@lists.freeswitch.orgmailto:freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] Moved Freeswitch to new subnet.

Hmm... can you fire up FS and then do sofia status and tell us if the 
internal profile looks okay? Also, do sofia status profile internal and 
capture the output. Something fishy is going on...
-MC

Mike Peace

Network Analyst

EDCO, The Document People

Direct 417-447-3367


=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
EDCO Group, Inc.
Phone: (800) 999-3456
Fax:   (800) 999-3551
Web:   http://www.edcogroupinc.com/

Confidentiality Notice:  The information contained in this e-mail message 
(including any attachments) may contain confidential and privileged 
information, and is for the sole use of the intended recipient(s).  If you are 
not the intended recipient, any unauthorized review, use, or disclosure or 
distribution is strictly prohibited.  If you have received this message in 
error, please notify the sender by replying to this e-mail message or by 
telephone at (800) 999-3456 and permanently destroy all copies of the original 
message (including any attachments), along with any reply, and delete them from 
your system.
___
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 performance as a redirecting server

2009-08-25 Thread Michael Jerris


On Aug 25, 2009, at 1:40 PM, Michael Collins wrote:




On Tue, Aug 25, 2009 at 10:31 AM, Tihomir Culjaga  
tculj...@gmail.com wrote:
Of course i removed everytihng from teh dialplan except my  
extension :)


when exactly do you react and bring up a new thread ? ... is it on  
INVITE or on 1st 1xx response ?


Before it hits the dialplan.



i beleive i can have several lets call it SIP interfaces ... on  
different ports 5060, 5070, 5080 ... every interface will have it's  
own sip profile.


does it mean i will have one thread per profile?
Yes.


And no. There are still parts of the stack that are in one thread.

Mike___
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] Moved Freeswitch to new subnet.

2009-08-25 Thread Mathieu Rene
It means freeswitch is not running. You need to start it with /usr/ 
local/freeswitch/bin/freeswitch -nc


@MikeJ: Nice bash scripting :D

Mathieu Rene
Avant-Garde Solutions Inc
Office: + 1 (514) 664-1044 x100
Cell: +1 (514) 664-1044 x200
mr...@avgs.ca




On 25-Aug-09, at 1:53 PM, Mike Peace wrote:

Ok, figured out from your post to load the FS-CLI in order to run  
the Sophia status Michael mentioned.


Now I get: [ERROR] libs/esl/fs_cli.c.639 main() Error Connecting  
[Socket Connection Error] when running ./fs_cli from a terminal  
window in /usr/local/freeswitch/bin where fs_cli is located.


Mike
From: freeswitch-users-boun...@lists.freeswitch.org [mailto:freeswitch-users-boun...@lists.freeswitch.org 
] On Behalf Of Michael Jerris

Sent: Tuesday, August 25, 2009 12:39 PM
To: freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] Moved Freeswitch to new subnet.

if you want to run that at your prompt instead of at the fs_cli you  
can do this:


function sofia() { fs_cli -x $(echo sofia $@); }

(thanks ray for the bash foo)

Mike

On Aug 25, 2009, at 1:04 PM, Mike Peace wrote:


I get a bash: sofia: command not found. Is there something I need to  
add to my config to use these commands?


From: freeswitch-users-boun...@lists.freeswitch.org [mailto:freeswitch-users-boun...@lists.freeswitch.org 
] On Behalf Of Michael Collins

Sent: Tuesday, August 25, 2009 10:55 AM
To: freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] Moved Freeswitch to new subnet.

Hmm... can you fire up FS and then do sofia status and tell us if  
the internal profile looks okay? Also, do sofia status profile  
internal and capture the output. Something fishy is going on...

-MC
Mike Peace

Network Analyst

EDCO, The Document People

Direct 417-447-3367




EDCO Group, Inc.
Phone: (800) 999-3456
Fax: (800) 999-3551
Web: http://www.edcogroupinc.com/

Confidentiality Notice: The information contained in this e-mail  
message (including any attachments) may contain confidential and  
privileged information, and is for the sole use of the intended  
recipient(s). If you are not the intended recipient, any  
unauthorized review, use, or disclosure or distribution is strictly  
prohibited. If you have received this message in error, please  
notify the sender by replying to this e-mail message or by telephone  
at (800) 999-3456 and permanently destroy all copies of the original  
message (including any attachments), along with any reply, and  
delete them from your system.


___
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 performance as a redirecting server

2009-08-25 Thread Mathieu Rene
mod_sofia will take care of spawning the session thread once it  
authenticated the call and loaded all the variables related to the  
call such as the caller profile (callerid, destination number, etc).


If you want to check the source, this is done in  
sofia_handle_sip_i_invite() (sofia.c:5261) with  
switch_core_session_thread_launch().


Mathieu Rene
Avant-Garde Solutions Inc
Office: + 1 (514) 664-1044 x100
Cell: +1 (514) 664-1044 x200
mr...@avgs.ca




On 25-Aug-09, at 1:53 PM, Tihomir Culjaga wrote:


nice, this is one way to go...

btw: when do you exactly bring up a new thread ?

T.

On Tue, Aug 25, 2009 at 7:40 PM, Michael Collins  
m...@freeswitch.org wrote:



On Tue, Aug 25, 2009 at 10:31 AM, Tihomir Culjaga  
tculj...@gmail.com wrote:
Of course i removed everytihng from teh dialplan except my  
extension :)


when exactly do you react and bring up a new thread ? ... is it on  
INVITE or on 1st 1xx response ?


i beleive i can have several lets call it SIP interfaces ... on  
different ports 5060, 5070, 5080 ... every interface will have it's  
own sip profile.


does it mean i will have one thread per profile?
Yes.


___
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 performance as a redirecting server

2009-08-25 Thread Michael Collins
On Tue, Aug 25, 2009 at 10:31 AM, Tihomir Culjaga tculj...@gmail.comwrote:

 Of course i removed everytihng from teh dialplan except my extension :)

 when exactly do you react and bring up a new thread ? ... is it on INVITE
 or on 1st 1xx response ?

 i beleive i can have several lets call it SIP interfaces ... on different
 ports 5060, 5070, 5080 ... every interface will have it's own sip profile.

 does it mean i will have one thread per profile?

Yes.
___
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 1.0.4 windows installer - great but I have a little problem

2009-08-25 Thread Carlos Talbot
Giovanni,
you mean like this message?

Unable to determine location for device. Voicemail password set via FreePBX
will not be valid.

This is a known FreePBX issue. http://www.freepbx.org/v3/ticket/36

Let's keep in ming FreePBX v3 is a developer release and as such many
features are in flux and might not work. That being said there some features
in the Windows build that still do not work. The biggest one right now is
the lack of the php ESL library for Windows which affects the voicemail app.
I'm trying to get this to compile but it's been difficult.

I do include the .svn files with the FreePBX install so you can freely
install TortoiseSVN and update FreePBX at your leisure.

With regards to the sip_profiles, did you create a trunk group and trunk?

regards,

Carlos

On Mon, Aug 24, 2009 at 9:56 PM, Giovanni Maruzzelli gmar...@celliax.orgwrote:

 Windows installer does not work for me.

 I've reinstalled various times, same results.

 I can correctly create a number, but when I try to create a device for
 that number, it tells me that cannot locate the device, and the
 password for vicemail will be invalid.

 After that, it begins to give the php error page, it cannot find the
 start  tag in directory/default.xml

 Also for me there are no sofia profiles...

 So, I cannot start to test it (eg: I would like to add mod_skypiax
 support to it).


 Sincerely,

 Giovanni Maruzzelli
 Cell : +39-347-2665618




 On Tue, Aug 25, 2009 at 12:06 AM, Raffaele P.
 Guidiraffaele.p.gu...@gmail.com wrote:
  This is what I was asking! :D When the installer finished it started the
  whole thing and everything got loaded fine, but when I restarted my
 system
  it didn't (and did not anymore). Well, I will try to install everything
 from
  scratch again and see...
 
  On Mon, Aug 24, 2009 at 20:30, Brian West br...@freeswitch.org wrote:
 
  If you installed FreePBX then it would be that softwares job to manage
  the sofia profiles... wouldn't it?
 
  /b
 
  On Aug 24, 2009, at 1:24 PM, Raffaele P. Guidi wrote:
 
   Actually I did that and it worked fine. I had the problem the SECOND
   time I run FS and freepbx. And (@Brian) mod_sofia was loaded but
   sip_profiles were not
 
 
  ___
  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] Scalability

2009-08-25 Thread Jerry Richards
Hello All,

Does anyone know what the capacity of a stand-alone Freeswitch, in terms of
how many users?

Also, when that number is exceeded, how can Freeswitch server be distributed
to accommodate a larger installation?

Best Regards,
Jerry 


___
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 performance as a redirecting server

2009-08-25 Thread Tihomir Culjaga
clear... thanks!

On Tue, Aug 25, 2009 at 7:55 PM, Michael Jerris m...@jerris.com wrote:


 On Aug 25, 2009, at 1:40 PM, Michael Collins wrote:



 On Tue, Aug 25, 2009 at 10:31 AM, Tihomir Culjaga tculj...@gmail.comwrote:

 Of course i removed everytihng from teh dialplan except my extension :)

 when exactly do you react and bring up a new thread ? ... is it on INVITE
 or on 1st 1xx response ?


 Before it hits the dialplan.


 i beleive i can have several lets call it SIP interfaces ... on different
 ports 5060, 5070, 5080 ... every interface will have it's own sip profile.

 does it mean i will have one thread per profile?

 Yes.


 And no. There are still parts of the stack that are in one thread.

 Mike

 ___
 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 1.0.4 windows installer - great but I have a little problem

2009-08-25 Thread Michael Di Martino
Is FreePBX V3 based on Freeswitch?

Michael DiMartino | Director of IT | Open Access, Inc.
115 Bi County Blvd | Farmingdale, NY 11735
631.227.1034| 631.694.6730 FAX |631.988.6060 MOBILE
www.openaccessinc.com

From: freeswitch-users-boun...@lists.freeswitch.org 
[mailto:freeswitch-users-boun...@lists.freeswitch.org] On Behalf Of Carlos 
Talbot
Sent: Tuesday, August 25, 2009 2:07 PM
To: freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] FreeSWITCH 1.0.4 windows installer - great but 
I have a little problem

Giovanni,

you mean like this message?

Unable to determine location for device. Voicemail password set via FreePBX 
will not be valid.

This is a known FreePBX issue. http://www.freepbx.org/v3/ticket/36

Let's keep in ming FreePBX v3 is a developer release and as such many features 
are in flux and might not work. That being said there some features in the 
Windows build that still do not work. The biggest one right now is the lack of 
the php ESL library for Windows which affects the voicemail app. I'm trying to 
get this to compile but it's been difficult.

I do include the .svn files with the FreePBX install so you can freely install 
TortoiseSVN and update FreePBX at your leisure.

With regards to the sip_profiles, did you create a trunk group and trunk?

regards,

Carlos
On Mon, Aug 24, 2009 at 9:56 PM, Giovanni Maruzzelli 
gmar...@celliax.orgmailto:gmar...@celliax.org wrote:
Windows installer does not work for me.

I've reinstalled various times, same results.

I can correctly create a number, but when I try to create a device for
that number, it tells me that cannot locate the device, and the
password for vicemail will be invalid.

After that, it begins to give the php error page, it cannot find the
start  tag in directory/default.xml

Also for me there are no sofia profiles...

So, I cannot start to test it (eg: I would like to add mod_skypiax
support to it).


Sincerely,

Giovanni Maruzzelli
Cell : +39-347-2665618




On Tue, Aug 25, 2009 at 12:06 AM, Raffaele P.
Guidiraffaele.p.gu...@gmail.commailto:raffaele.p.gu...@gmail.com wrote:
 This is what I was asking! :D When the installer finished it started the
 whole thing and everything got loaded fine, but when I restarted my system
 it didn't (and did not anymore). Well, I will try to install everything from
 scratch again and see...

 On Mon, Aug 24, 2009 at 20:30, Brian West 
 br...@freeswitch.orgmailto:br...@freeswitch.org wrote:

 If you installed FreePBX then it would be that softwares job to manage
 the sofia profiles... wouldn't it?

 /b

 On Aug 24, 2009, at 1:24 PM, Raffaele P. Guidi wrote:

  Actually I did that and it worked fine. I had the problem the SECOND
  time I run FS and freepbx. And (@Brian) mod_sofia was loaded but
  sip_profiles were not


 ___
 FreeSWITCH-users mailing list
 FreeSWITCH-users@lists.freeswitch.orgmailto: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.orgmailto: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.orgmailto: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 1.0.4 windows installer - great but I have a little problem

2009-08-25 Thread Giovanni Maruzzelli
Carlos,

you're very kind, as always.

I'm aware that this is a dev preview, and I'm interested just in that,
to begin getting acquainted with the framework (and adding support to
the endpoints/trunk I take care of).

I probably have not got the logic right :-) (I tried both Windows
Installer and Linux ISO)

I started fpbx with fs running, it works. I create a number, then I
create a device and I connect it to that number. It works.

If I restart FS, do not works anymore, complaining no sofia profiles.

From the front page of FPBX is not clear you *must* create a trunk/trunk group.

I was thinking trunks were for outgoing calls, or for receiving from external.

I was just testing internal phones, trying an IVR, so I was thinking
trunks were not needed.

Can you explain to me?

Thanks again,

-giovanni

Sincerely,

Giovanni Maruzzelli
Cell : +39-347-2665618




On Tue, Aug 25, 2009 at 8:06 PM, Carlos Talbotcarlos.tal...@gmail.com wrote:
 Giovanni,
 you mean like this message?
 Unable to determine location for device. Voicemail password set via FreePBX
 will not be valid.
 This is a known FreePBX issue. http://www.freepbx.org/v3/ticket/36
 Let's keep in ming FreePBX v3 is a developer release and as such many
 features are in flux and might not work. That being said there some features
 in the Windows build that still do not work. The biggest one right now is
 the lack of the php ESL library for Windows which affects the voicemail app.
 I'm trying to get this to compile but it's been difficult.
 I do include the .svn files with the FreePBX install so you can freely
 install TortoiseSVN and update FreePBX at your leisure.
 With regards to the sip_profiles, did you create a trunk group and trunk?
 regards,
 Carlos

 On Mon, Aug 24, 2009 at 9:56 PM, Giovanni Maruzzelli gmar...@celliax.org
 wrote:

 Windows installer does not work for me.

 I've reinstalled various times, same results.

 I can correctly create a number, but when I try to create a device for
 that number, it tells me that cannot locate the device, and the
 password for vicemail will be invalid.

 After that, it begins to give the php error page, it cannot find the
 start  tag in directory/default.xml

 Also for me there are no sofia profiles...

 So, I cannot start to test it (eg: I would like to add mod_skypiax
 support to it).


 Sincerely,

 Giovanni Maruzzelli
 Cell : +39-347-2665618




 On Tue, Aug 25, 2009 at 12:06 AM, Raffaele P.
 Guidiraffaele.p.gu...@gmail.com wrote:
  This is what I was asking! :D When the installer finished it started the
  whole thing and everything got loaded fine, but when I restarted my
  system
  it didn't (and did not anymore). Well, I will try to install everything
  from
  scratch again and see...
 
  On Mon, Aug 24, 2009 at 20:30, Brian West br...@freeswitch.org wrote:
 
  If you installed FreePBX then it would be that softwares job to manage
  the sofia profiles... wouldn't it?
 
  /b
 
  On Aug 24, 2009, at 1:24 PM, Raffaele P. Guidi wrote:
 
   Actually I did that and it worked fine. I had the problem the SECOND
   time I run FS and freepbx. And (@Brian) mod_sofia was loaded but
   sip_profiles were not
 
 
  ___
  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] RTP Packet Routing

2009-08-25 Thread Jerry Richards
Hello All,

I noticed Freeswitch becomes the middle-man, handling RTP traffic for an
active call.  How do I configure it so it allows the two SIP endpoints to
send RTP packet to each other directly?

Best Regards,
Jerry


___
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 1.0.4 windows installer - great but I have a little problem

2009-08-25 Thread Michael Jerris
It supports FreeSWITCH and soon other engines as well.  More  
information is at:


http://www.freepbx.org/freepbx-v3

Mike

On Aug 25, 2009, at 2:20 PM, Michael Di Martino wrote:


Is FreePBX V3 based on Freeswitch?

Michael DiMartino | Director of IT | Open Access, Inc.
115 Bi County Blvd | Farmingdale, NY 11735
631.227.1034| 631.694.6730 FAX |631.988.6060 MOBILE
www.openaccessinc.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] RTP Packet Routing

2009-08-25 Thread Michael Collins
On Tue, Aug 25, 2009 at 11:35 AM, Jerry Richards jerry.richa...@teotech.com
 wrote:

 Hello All,

 I noticed Freeswitch becomes the middle-man, handling RTP traffic for an
 active call.  How do I configure it so it allows the two SIP endpoints to
 send RTP packet to each other directly?


Check out bypass media mode:
http://wiki.freeswitch.org/wiki/Bypass_Media

-MC
___
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] Scalability

2009-08-25 Thread Ken Rice
Deployable scalability varies based on a number of things... Number of users
registering, how often they register, concurrent call volume, call rate
(calls/second) etc...  Defining that a little better may illicit a better
response... But generally FS can scale into the 1000s of concurrent calls at
that 100s of calls/sec with 100s of registered users... The however as with
any software how well it actually scales for you will be dependant on the
hardware you deploy it on and its actual configuration...


 From: Jerry Richards jerry.richa...@teotech.com
 Reply-To: freeswitch-users@lists.freeswitch.org
 Date: Tue, 25 Aug 2009 11:12:39 -0700
 To: freeswitch-users@lists.freeswitch.org
 Subject: [Freeswitch-users] Scalability
 
 Hello All,
 
 Does anyone know what the capacity of a stand-alone Freeswitch, in terms of
 how many users?
 
 Also, when that number is exceeded, how can Freeswitch server be distributed
 to accommodate a larger installation?
 
 Best Regards,
 Jerry 
 
 
 ___
 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] RTP Packet Routing

2009-08-25 Thread Ken Rice
Just remember that bypass_media is a special mode and not everything will
work when a call is in that mode... Don¹t expect to do anything that
remotely relies on media being in the FS box...



From: Michael Collins m...@freeswitch.org
Reply-To: freeswitch-users@lists.freeswitch.org
Date: Tue, 25 Aug 2009 11:42:53 -0700
To: freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] RTP Packet Routing



On Tue, Aug 25, 2009 at 11:35 AM, Jerry Richards
jerry.richa...@teotech.com wrote:
 Hello All,
 
 I noticed Freeswitch becomes the middle-man, handling RTP traffic for an
 active call.  How do I configure it so it allows the two SIP endpoints to
 send RTP packet to each other directly?

Check out bypass media mode:
http://wiki.freeswitch.org/wiki/Bypass_Media

-MC



___
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] Moved Freeswitch to new subnet.

2009-08-25 Thread Mathieu Rene
You can start it without the -nc switch and it'll stay active on the  
current terminal so you can look for any errors.


Just do:

/usr/local/freeswitch/bin/freeswitch


Mathieu Rene
Avant-Garde Solutions Inc
Office: + 1 (514) 664-1044 x100
Cell: +1 (514) 664-1044 x200
mr...@avgs.ca



On 25-Aug-09, at 2:58 PM, Mike Peace wrote:

It was started from the services configuration window first and I  
still get the error. I set the service not to load rebooted then ran  
it from the prompt as you suggested. It stated “3585 Backgrounding”  
I then ran ps –eaf from the prompt and that PID didn’t show up. Then  
when I attempted to run the fs_cli I received the same error as  
before  [ERROR] libs/esl/fs_cli.c.639 main() Error Connecting  
[Socket Connection Error]



From: freeswitch-users-boun...@lists.freeswitch.org [mailto:freeswitch-users-boun...@lists.freeswitch.org 
] On Behalf Of Mathieu Rene

Sent: Tuesday, August 25, 2009 12:55 PM
To: freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] Moved Freeswitch to new subnet.

It means freeswitch is not running. You need to start it with /usr/ 
local/freeswitch/bin/freeswitch -nc


@MikeJ: Nice bash scripting :D

Mathieu Rene
Avant-Garde Solutions Inc
Office: + 1 (514) 664-1044 x100
Cell: +1 (514) 664-1044 x200
mr...@avgs.ca




On 25-Aug-09, at 1:53 PM, Mike Peace wrote:


Ok, figured out from your post to load the FS-CLI in order to run  
the Sophia status Michael mentioned.


Now I get: [ERROR] libs/esl/fs_cli.c.639 main() Error Connecting  
[Socket Connection Error] when running ./fs_cli from a terminal  
window in /usr/local/freeswitch/bin where fs_cli is located.


Mike
From: freeswitch-users-boun...@lists.freeswitch.org [mailto:freeswitch-users-boun...@lists.freeswitch.org 
] On Behalf Of Michael Jerris

Sent: Tuesday, August 25, 2009 12:39 PM
To: freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] Moved Freeswitch to new subnet.

if you want to run that at your prompt instead of at the fs_cli you  
can do this:


function sofia() { fs_cli -x $(echo sofia $@); }

(thanks ray for the bash foo)

Mike

On Aug 25, 2009, at 1:04 PM, Mike Peace wrote:



I get a bash: sofia: command not found. Is there something I need to  
add to my config to use these commands?


From: freeswitch-users-boun...@lists.freeswitch.org [mailto:freeswitch-users-boun...@lists.freeswitch.org 
] On Behalf Of Michael Collins

Sent: Tuesday, August 25, 2009 10:55 AM
To: freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] Moved Freeswitch to new subnet.

Hmm... can you fire up FS and then do sofia status and tell us if  
the internal profile looks okay? Also, do sofia status profile  
internal and capture the output. Something fishy is going on...

-MC
Mike Peace

Network Analyst

EDCO, The Document People

Direct 417-447-3367




EDCO Group, Inc.
Phone: (800) 999-3456
Fax: (800) 999-3551
Web: http://www.edcogroupinc.com/

Confidentiality Notice: The information contained in this e-mail  
message (including any attachments) may contain confidential and  
privileged information, and is for the sole use of the intended  
recipient(s). If you are not the intended recipient, any  
unauthorized review, use, or disclosure or distribution is strictly  
prohibited. If you have received this message in error, please  
notify the sender by replying to this e-mail message or by telephone  
at (800) 999-3456 and permanently destroy all copies of the original  
message (including any attachments), along with any reply, and  
delete them from your system.


___
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



EDCO Group, Inc.
Phone: (800) 999-3456
Fax: (800) 999-3551
Web: http://www.edcogroupinc.com/

Confidentiality Notice: The information contained in this e-mail  
message (including any attachments) may contain confidential and  
privileged information, and is for the sole use of the intended  
recipient(s). If you are not the intended recipient, any  
unauthorized review, use, or disclosure or distribution is strictly  
prohibited. If you have received this message in error, please  
notify the sender by replying to this e-mail message or by telephone  
at (800) 999-3456 and permanently destroy all copies of the original  
message (including any attachments), along with any reply, and  
delete them from your system.


___
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

Re: [Freeswitch-users] Moved Freeswitch to new subnet.

2009-08-25 Thread Mike Peace
It was started from the services configuration window first and I still get the 
error. I set the service not to load rebooted then ran it from the prompt as 
you suggested. It stated 3585 Backgrounding I then ran ps -eaf from the 
prompt and that PID didn't show up. Then when I attempted to run the fs_cli I 
received the same error as before  [ERROR] libs/esl/fs_cli.c.639 main() Error 
Connecting [Socket Connection Error]


From: freeswitch-users-boun...@lists.freeswitch.org 
[mailto:freeswitch-users-boun...@lists.freeswitch.org] On Behalf Of Mathieu Rene
Sent: Tuesday, August 25, 2009 12:55 PM
To: freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] Moved Freeswitch to new subnet.

It means freeswitch is not running. You need to start it with 
/usr/local/freeswitch/bin/freeswitch -nc

@MikeJ: Nice bash scripting :D

Mathieu Rene
Avant-Garde Solutions Inc
Office: + 1 (514) 664-1044 x100
Cell: +1 (514) 664-1044 x200
mr...@avgs.camailto:mr...@avgs.ca




On 25-Aug-09, at 1:53 PM, Mike Peace wrote:


Ok, figured out from your post to load the FS-CLI in order to run the Sophia 
status Michael mentioned.

Now I get: [ERROR] libs/esl/fs_cli.c.639 main() Error Connecting [Socket 
Connection Error] when running ./fs_cli from a terminal window in 
/usr/local/freeswitch/bin where fs_cli is located.

Mike
From: 
freeswitch-users-boun...@lists.freeswitch.orgmailto:freeswitch-users-boun...@lists.freeswitch.org
 [mailto:freeswitch-users-boun...@lists.freeswitch.org] On Behalf Of Michael 
Jerris
Sent: Tuesday, August 25, 2009 12:39 PM
To: 
freeswitch-users@lists.freeswitch.orgmailto:freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] Moved Freeswitch to new subnet.

if you want to run that at your prompt instead of at the fs_cli you can do this:

function sofia() { fs_cli -x $(echo sofia $@); }

(thanks ray for the bash foo)

Mike

On Aug 25, 2009, at 1:04 PM, Mike Peace wrote:



I get a bash: sofia: command not found. Is there something I need to add to my 
config to use these commands?

From: 
freeswitch-users-boun...@lists.freeswitch.orgmailto:freeswitch-users-boun...@lists.freeswitch.org
 [mailto:freeswitch-users-boun...@lists.freeswitch.org] On Behalf Of Michael 
Collins
Sent: Tuesday, August 25, 2009 10:55 AM
To: 
freeswitch-users@lists.freeswitch.orgmailto:freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] Moved Freeswitch to new subnet.

Hmm... can you fire up FS and then do sofia status and tell us if the 
internal profile looks okay? Also, do sofia status profile internal and 
capture the output. Something fishy is going on...
-MC

Mike Peace

Network Analyst

EDCO, The Document People

Direct 417-447-3367




EDCO Group, Inc.
Phone: (800) 999-3456
Fax: (800) 999-3551
Web: http://www.edcogroupinc.com/

Confidentiality Notice: The information contained in this e-mail message 
(including any attachments) may contain confidential and privileged 
information, and is for the sole use of the intended recipient(s). If you are 
not the intended recipient, any unauthorized review, use, or disclosure or 
distribution is strictly prohibited. If you have received this message in 
error, please notify the sender by replying to this e-mail message or by 
telephone at (800) 999-3456 and permanently destroy all copies of the original 
message (including any attachments), along with any reply, and delete them from 
your system.

___
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.orgmailto: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


=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
EDCO Group, Inc.
Phone: (800) 999-3456
Fax:   (800) 999-3551
Web:   http://www.edcogroupinc.com/

Confidentiality Notice:  The information contained in this e-mail message 
(including any attachments) may contain confidential and privileged 
information, and is for the sole use of the intended recipient(s).  If you are 
not the intended recipient, any unauthorized review, use, or disclosure or 
distribution is strictly prohibited.  If you have received this message in 
error, please notify the sender by replying to this e-mail message or by 
telephone at (800) 999-3456 and permanently destroy all copies of the original 
message (including any attachments), along with any reply, and delete them from 
your system.
___
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] Moved Freeswitch to new subnet.

2009-08-25 Thread Mike Peace

OK,

Received a different error: Cannot Initialize [[error near line 294]: unclosed 
!--]

?

From: freeswitch-users-boun...@lists.freeswitch.org 
[mailto:freeswitch-users-boun...@lists.freeswitch.org] On Behalf Of Mathieu Rene
Sent: Tuesday, August 25, 2009 2:02 PM
To: freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] Moved Freeswitch to new subnet.

You can start it without the -nc switch and it'll stay active on the current 
terminal so you can look for any errors.

Just do:

/usr/local/freeswitch/bin/freeswitch


Mathieu Rene
Avant-Garde Solutions Inc
Office: + 1 (514) 664-1044 x100
Cell: +1 (514) 664-1044 x200
mr...@avgs.camailto:mr...@avgs.ca



On 25-Aug-09, at 2:58 PM, Mike Peace wrote:


It was started from the services configuration window first and I still get the 
error. I set the service not to load rebooted then ran it from the prompt as 
you suggested. It stated 3585 Backgrounding I then ran ps -eaf from the 
prompt and that PID didn't show up. Then when I attempted to run the fs_cli I 
received the same error as before  [ERROR] libs/esl/fs_cli.c.639 main() Error 
Connecting [Socket Connection Error]


From: 
freeswitch-users-boun...@lists.freeswitch.orgmailto:freeswitch-users-boun...@lists.freeswitch.org
 [mailto:freeswitch-users-boun...@lists.freeswitch.org] On Behalf Of Mathieu 
Rene
Sent: Tuesday, August 25, 2009 12:55 PM
To: 
freeswitch-users@lists.freeswitch.orgmailto:freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] Moved Freeswitch to new subnet.

It means freeswitch is not running. You need to start it with 
/usr/local/freeswitch/bin/freeswitch -nc

@MikeJ: Nice bash scripting :D

Mathieu Rene
Avant-Garde Solutions Inc
Office: + 1 (514) 664-1044 x100
Cell: +1 (514) 664-1044 x200
mr...@avgs.camailto:mr...@avgs.ca




On 25-Aug-09, at 1:53 PM, Mike Peace wrote:



Ok, figured out from your post to load the FS-CLI in order to run the Sophia 
status Michael mentioned.

Now I get: [ERROR] libs/esl/fs_cli.c.639 main() Error Connecting [Socket 
Connection Error] when running ./fs_cli from a terminal window in 
/usr/local/freeswitch/bin where fs_cli is located.

Mike
From: 
freeswitch-users-boun...@lists.freeswitch.orgmailto:freeswitch-users-boun...@lists.freeswitch.org
 [mailto:freeswitch-users-boun...@lists.freeswitch.org] On Behalf Of Michael 
Jerris
Sent: Tuesday, August 25, 2009 12:39 PM
To: 
freeswitch-users@lists.freeswitch.orgmailto:freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] Moved Freeswitch to new subnet.

if you want to run that at your prompt instead of at the fs_cli you can do this:

function sofia() { fs_cli -x $(echo sofia $@); }

(thanks ray for the bash foo)

Mike

On Aug 25, 2009, at 1:04 PM, Mike Peace wrote:




I get a bash: sofia: command not found. Is there something I need to add to my 
config to use these commands?

From: 
freeswitch-users-boun...@lists.freeswitch.orgmailto:freeswitch-users-boun...@lists.freeswitch.org
 [mailto:freeswitch-users-boun...@lists.freeswitch.org] On Behalf Of Michael 
Collins
Sent: Tuesday, August 25, 2009 10:55 AM
To: 
freeswitch-users@lists.freeswitch.orgmailto:freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] Moved Freeswitch to new subnet.

Hmm... can you fire up FS and then do sofia status and tell us if the 
internal profile looks okay? Also, do sofia status profile internal and 
capture the output. Something fishy is going on...
-MC

Mike Peace

Network Analyst

EDCO, The Document People

Direct 417-447-3367




EDCO Group, Inc.
Phone: (800) 999-3456
Fax: (800) 999-3551
Web: http://www.edcogroupinc.com/

Confidentiality Notice: The information contained in this e-mail message 
(including any attachments) may contain confidential and privileged 
information, and is for the sole use of the intended recipient(s). If you are 
not the intended recipient, any unauthorized review, use, or disclosure or 
distribution is strictly prohibited. If you have received this message in 
error, please notify the sender by replying to this e-mail message or by 
telephone at (800) 999-3456 and permanently destroy all copies of the original 
message (including any attachments), along with any reply, and delete them from 
your system.

___
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.orgmailto: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




EDCO Group, Inc.
Phone: (800) 999-3456
Fax: (800) 999-3551
Web: http://www.edcogroupinc.com/

Confidentiality Notice: The information contained in this e-mail message 
(including any attachments) may contain confidential and privileged 
information, and is for the sole use of the intended recipient(s). If you are 
not the intended recipient, any 

Re: [Freeswitch-users] Moved Freeswitch to new subnet.

2009-08-25 Thread Mathieu Rene
It means you have an error in your XML configuration. You can open / 
usr/local/freeswitch/log/freeswitch.xml.fsxml to figure out where it  
is (but do not modify this file, as it is generated from all the other  
xml files).


Mathieu Rene
Avant-Garde Solutions Inc
Office: + 1 (514) 664-1044 x100
Cell: +1 (514) 664-1044 x200
mr...@avgs.ca




On 25-Aug-09, at 3:41 PM, Mike Peace wrote:



OK,

Received a different error: Cannot Initialize [[error near line  
294]: unclosed !--]


?

From: freeswitch-users-boun...@lists.freeswitch.org [mailto:freeswitch-users-boun...@lists.freeswitch.org 
] On Behalf Of Mathieu Rene

Sent: Tuesday, August 25, 2009 2:02 PM
To: freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] Moved Freeswitch to new subnet.

You can start it without the -nc switch and it'll stay active on the  
current terminal so you can look for any errors.


Just do:

/usr/local/freeswitch/bin/freeswitch


Mathieu Rene
Avant-Garde Solutions Inc
Office: + 1 (514) 664-1044 x100
Cell: +1 (514) 664-1044 x200
mr...@avgs.ca



On 25-Aug-09, at 2:58 PM, Mike Peace wrote:


It was started from the services configuration window first and I  
still get the error. I set the service not to load rebooted then ran  
it from the prompt as you suggested. It stated “3585 Backgrounding”  
I then ran ps –eaf from the prompt and that PID didn’t show up. Then  
when I attempted to run the fs_cli I received the same error as  
before  [ERROR] libs/esl/fs_cli.c.639 main() Error Connecting  
[Socket Connection Error]



From: freeswitch-users-boun...@lists.freeswitch.org [mailto:freeswitch-users-boun...@lists.freeswitch.org 
] On Behalf Of Mathieu Rene

Sent: Tuesday, August 25, 2009 12:55 PM
To: freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] Moved Freeswitch to new subnet.

It means freeswitch is not running. You need to start it with /usr/ 
local/freeswitch/bin/freeswitch -nc


@MikeJ: Nice bash scripting :D

Mathieu Rene
Avant-Garde Solutions Inc
Office: + 1 (514) 664-1044 x100
Cell: +1 (514) 664-1044 x200
mr...@avgs.ca




On 25-Aug-09, at 1:53 PM, Mike Peace wrote:



Ok, figured out from your post to load the FS-CLI in order to run  
the Sophia status Michael mentioned.


Now I get: [ERROR] libs/esl/fs_cli.c.639 main() Error Connecting  
[Socket Connection Error] when running ./fs_cli from a terminal  
window in /usr/local/freeswitch/bin where fs_cli is located.


Mike
From: freeswitch-users-boun...@lists.freeswitch.org [mailto:freeswitch-users-boun...@lists.freeswitch.org 
] On Behalf Of Michael Jerris

Sent: Tuesday, August 25, 2009 12:39 PM
To: freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] Moved Freeswitch to new subnet.

if you want to run that at your prompt instead of at the fs_cli you  
can do this:


function sofia() { fs_cli -x $(echo sofia $@); }

(thanks ray for the bash foo)

Mike

On Aug 25, 2009, at 1:04 PM, Mike Peace wrote:




I get a bash: sofia: command not found. Is there something I need to  
add to my config to use these commands?


From: freeswitch-users-boun...@lists.freeswitch.org [mailto:freeswitch-users-boun...@lists.freeswitch.org 
] On Behalf Of Michael Collins

Sent: Tuesday, August 25, 2009 10:55 AM
To: freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] Moved Freeswitch to new subnet.

Hmm... can you fire up FS and then do sofia status and tell us if  
the internal profile looks okay? Also, do sofia status profile  
internal and capture the output. Something fishy is going on...

-MC
Mike Peace

Network Analyst

EDCO, The Document People

Direct 417-447-3367




EDCO Group, Inc.
Phone: (800) 999-3456
Fax: (800) 999-3551
Web: http://www.edcogroupinc.com/

Confidentiality Notice: The information contained in this e-mail  
message (including any attachments) may contain confidential and  
privileged information, and is for the sole use of the intended  
recipient(s). If you are not the intended recipient, any  
unauthorized review, use, or disclosure or distribution is strictly  
prohibited. If you have received this message in error, please  
notify the sender by replying to this e-mail message or by telephone  
at (800) 999-3456 and permanently destroy all copies of the original  
message (including any attachments), along with any reply, and  
delete them from your system.


___
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



EDCO Group, Inc.
Phone: (800) 999-3456
Fax: (800) 999-3551
Web: http://www.edcogroupinc.com/

Confidentiality Notice: The information contained in this e-mail  
message (including any attachments) may contain confidential and  
privileged information, and is for the sole use of the intended  
recipient(s). If you are not the intended recipient, any  

Re: [Freeswitch-users] SIPp issues - seems FS doesn't understand ACK message

2009-08-25 Thread Bradley Brashier
Well, you'd have another nickel from over here, then.
If I can get this working before I'm tasked with something else I'll write
up something more on the wiki about Freeswitch and SIPp, but I'm not sure
I'll get that chance.

BB

On Tue, Aug 25, 2009 at 11:05 AM, Anthony Minessale 
anthony.miness...@gmail.com wrote:

 I wish I had a nickel for every guy struggling with sipp load testing vs
 real world traffic.



 On Tue, Aug 25, 2009 at 1:51 AM, Tihomir Culjaga tculj...@gmail.comwrote:

 Hello Takeshi,

 Thanks for your hint... it worked out... so to be precise:

 VIA header of both INVITE and ACK messages MUST be identical (IP:PORT +
 branch)... and you are right... it might not be according to SIP
 specification. Anyhow, i get FS understand my ACK message.


 Finally, here is what i used and I'm getting some poor results .. but this
 is another topic :)


 Thanks for your help.
 Tihomir.


 sipp 10.4.4.251 -sf uac_redirect.xml -s 30003016094191500 -trace_err -r 1
 -rp 100 -trace_msg -inf test.txt -m 2 -l 4000


 ?xml version=1.0 encoding=ISO-8859-1 ?
 !DOCTYPE scenario SYSTEM sipp.dtd


 scenario name=Basic Sipstone UAC
   send retrans=500 start_rtd=1 start_rtd=2

 ![CDATA[

   INVITE sip:[servi...@[remote_ip]:[remote_port] SIP/2.0
   Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
   Max-Forwards: 70
   Contact: sip:[fiel...@[local_ip]
   From: [field1]
 sip:[fiel...@[local_ip]:[local_port];tag=[call_number]
   To: [service] sip:[servi...@[remote_ip]:[remote_port]
   Call-ID: [call_id]
   CSeq: 1 INVITE
   Content-Type: application/sdp
   Content-Length: [len]

   v=0
   o=user1 53655765 2353687637 IN IP[local_ip_type] [local_ip]
   s=-
   c=IN IP[media_ip_type] [media_ip]
   t=0 0
   m=audio [media_port] RTP/AVP 0
   a=rtpmap:0 PCMU/8000

 ]]
   /send

   recv response=100
 optional=true rtd=1
   /recv


   recv response=302 rtd=2
   /recv

   send
 ![CDATA[

   ACK sip:[servi...@[remote_ip]:[remote_port] SIP/2.0
   Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch-3]
   From: [field1]
 sip:[fiel...@1[local_ip]:[local_port];tag=[call_number]
   To: [service]
 sip:[servi...@[remote_ip]:[remote_port][peer_tag_param]
   Call-ID: [call_id]
   CSeq: 1 ACK
   Max-Forwards: 70
   Content-Length: 0

 ]]
   /send

   !-- definition of the response time repartition table (unit is ms)
 --
   ResponseTimeRepartition value=10, 20, 30, 40, 50, 100, 150, 200/

   !-- definition of the call length repartition table (unit is ms)
 --
   CallLengthRepartition value=10, 50, 100, 500, 1000, 5000, 1/

 /scenario



 On Tue, Aug 25, 2009 at 3:57 AM, mayamatakeshi 
 mayamatake...@gmail.comwrote:

 On Tue, Aug 25, 2009 at 10:52 AM, mayamatakeshimayamatake...@gmail.com
 wrote:
  On Tue, Aug 25, 2009 at 7:31 AM, Tihomir Culjagatculj...@gmail.com
 wrote:
 
  sipp_cmd: sipp -sn uac 10.4.4.251 -sf uac_redirect.xml -s
  30003016094191500 -trace_err -r 1 -rp 1000 -trace_msg -inf test.txt -m
 1 -l
  4000
  scenario file:  uac_redirect.xml
  FS dialplan:   public.xml
  SIP trace:  trace.log
 
  The Via definition in your SIPp scenario differs between the INVITE and
 the ACK:
 
  INVITE:
  Via: SIP/2.0/[transport] [local_ip];branch=[branch]
 
  ACK:
  Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch-3]
 
 
  In the INVITE, you are not adding the [local_port] as you do in the
 ACK.
  Just adding the [local_port] in the INVITE makes FreeSWITCH accept the
 ACK.
  So it seems FS is not checking just the ACK's branch against the
  INVITE's; it seems it is checking the whole Via header.
  I don't know if this is in accordance to SIP specs.
  Another thing, about the way you are calling SIPp: do no use -sn uac
  and -sf uac_redirect.xml at the same time. The parameter -sn xxx
  means use the internal (embedded) scenario named xxx. So this
  conflicts with the other parameter -sf which specifies an external
  profile.

 I mean, an external scenario (file).

  It seems this doesn't cause any problem (probably because in
  the sipp startup, -sf overrides -sn), but it is misleading.
 
  regards,
  takeshi
 

 ___
 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/
 Twitter: http://twitter.com/FreeSWITCH_wire

 AIM: anthm
 

Re: [Freeswitch-users] SIPp issues - seems FS doesn't understand ACK message

2009-08-25 Thread Anthony Minessale
here's the one i use for making a call waiting x seconds and hanging up
http://www.freeswitch.org/eg/load_test/dft_cap.xml

This requires that the sipp terminate all the calls.

careful with sipp, it's like a roach motel, you can get stuck trying to make
it work and never get it to produce real-life situations.



On Tue, Aug 25, 2009 at 3:23 PM, Bradley Brashier bjbrash...@gmail.comwrote:

 Well, you'd have another nickel from over here, then.
 If I can get this working before I'm tasked with something else I'll write
 up something more on the wiki about Freeswitch and SIPp, but I'm not sure
 I'll get that chance.

 BB

 On Tue, Aug 25, 2009 at 11:05 AM, Anthony Minessale 
 anthony.miness...@gmail.com wrote:

 I wish I had a nickel for every guy struggling with sipp load testing vs
 real world traffic.



 On Tue, Aug 25, 2009 at 1:51 AM, Tihomir Culjaga tculj...@gmail.comwrote:

 Hello Takeshi,

 Thanks for your hint... it worked out... so to be precise:

 VIA header of both INVITE and ACK messages MUST be identical (IP:PORT +
 branch)... and you are right... it might not be according to SIP
 specification. Anyhow, i get FS understand my ACK message.


 Finally, here is what i used and I'm getting some poor results .. but
 this is another topic :)


 Thanks for your help.
 Tihomir.


 sipp 10.4.4.251 -sf uac_redirect.xml -s 30003016094191500 -trace_err -r 1
 -rp 100 -trace_msg -inf test.txt -m 2 -l 4000


 ?xml version=1.0 encoding=ISO-8859-1 ?
 !DOCTYPE scenario SYSTEM sipp.dtd


 scenario name=Basic Sipstone UAC
   send retrans=500 start_rtd=1 start_rtd=2

 ![CDATA[

   INVITE sip:[servi...@[remote_ip]:[remote_port] SIP/2.0
   Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
   Max-Forwards: 70
   Contact: sip:[fiel...@[local_ip]
   From: [field1]
 sip:[fiel...@[local_ip]:[local_port];tag=[call_number]
   To: [service] sip:[servi...@[remote_ip]:[remote_port]
   Call-ID: [call_id]
   CSeq: 1 INVITE
   Content-Type: application/sdp
   Content-Length: [len]

   v=0
   o=user1 53655765 2353687637 IN IP[local_ip_type] [local_ip]
   s=-
   c=IN IP[media_ip_type] [media_ip]
   t=0 0
   m=audio [media_port] RTP/AVP 0
   a=rtpmap:0 PCMU/8000

 ]]
   /send

   recv response=100
 optional=true rtd=1
   /recv


   recv response=302 rtd=2
   /recv

   send
 ![CDATA[

   ACK sip:[servi...@[remote_ip]:[remote_port] SIP/2.0
   Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch-3]
   From: [field1]
 sip:[fiel...@1[local_ip]:[local_port];tag=[call_number]
   To: [service]
 sip:[servi...@[remote_ip]:[remote_port][peer_tag_param]
   Call-ID: [call_id]
   CSeq: 1 ACK
   Max-Forwards: 70
   Content-Length: 0

 ]]
   /send

   !-- definition of the response time repartition table (unit is ms)
 --
   ResponseTimeRepartition value=10, 20, 30, 40, 50, 100, 150, 200/

   !-- definition of the call length repartition table (unit is ms)
 --
   CallLengthRepartition value=10, 50, 100, 500, 1000, 5000, 1/

 /scenario



 On Tue, Aug 25, 2009 at 3:57 AM, mayamatakeshi 
 mayamatake...@gmail.comwrote:

 On Tue, Aug 25, 2009 at 10:52 AM, mayamatakeshimayamatake...@gmail.com
 wrote:
  On Tue, Aug 25, 2009 at 7:31 AM, Tihomir Culjagatculj...@gmail.com
 wrote:
 
  sipp_cmd: sipp -sn uac 10.4.4.251 -sf uac_redirect.xml -s
  30003016094191500 -trace_err -r 1 -rp 1000 -trace_msg -inf test.txt
 -m 1 -l
  4000
  scenario file:  uac_redirect.xml
  FS dialplan:   public.xml
  SIP trace:  trace.log
 
  The Via definition in your SIPp scenario differs between the INVITE
 and the ACK:
 
  INVITE:
  Via: SIP/2.0/[transport] [local_ip];branch=[branch]
 
  ACK:
  Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch-3]
 
 
  In the INVITE, you are not adding the [local_port] as you do in the
 ACK.
  Just adding the [local_port] in the INVITE makes FreeSWITCH accept the
 ACK.
  So it seems FS is not checking just the ACK's branch against the
  INVITE's; it seems it is checking the whole Via header.
  I don't know if this is in accordance to SIP specs.
  Another thing, about the way you are calling SIPp: do no use -sn uac
  and -sf uac_redirect.xml at the same time. The parameter -sn xxx
  means use the internal (embedded) scenario named xxx. So this
  conflicts with the other parameter -sf which specifies an external
  profile.

 I mean, an external scenario (file).

  It seems this doesn't cause any problem (probably because in
  the sipp startup, -sf overrides -sn), but it is misleading.
 
  regards,
  takeshi
 

 ___
 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] wav2mp3 conversion inside of spidermonkey

2009-08-25 Thread Alberto Escudero-Pascual (lists)
Hi Brian,

From the CLI

freeswi...@open46 system /usr/local/freeswitch/bin/lame -V2 /tmp/foo.wav
/tmp/foo.mp3 -S
2009-08-25 22:41:51.556484 [NOTICE] mod_commands.c:3386 Executing command:
/usr/local/freeswitch/bin/lame -V2 /tmp/foo.wav /tmp/foo.mp3 -S
API CALL [system(/usr/local/freeswitch/bin/lame -V2 /tmp/foo.wav
/tmp/foo.mp3 -S)] output:
+OK

open46:/tmp# ls
foo.wav


and running the command from the command line:


open46:/tmp#  /usr/local/freeswitch/bin/lame -V2 /tmp/foo.wav /tmp/foo.mp3
-Sopen46:/tmp# ls
foo.mp3  foo.wav


If I do the same with lame397

freeswi...@open46 system /usr/local/freeswitch/bin/lame397 -V2
/tmp/foo.wav /tmp/foo.mp3 -S
2009-08-25 22:44:32.743998 [NOTICE] mod_commands.c:3386 Executing command:
/usr/local/freeswitch/bin/lame397 -V2 /tmp/foo.wav /tmp/foo.mp3 -S
API CALL [system(/usr/local/freeswitch/bin/lame397 -V2 /tmp/foo.wav
/tmp/foo.mp3 -S)] output:
+OK

open46:/tmp# ls
foo.mp3  foo.wav


Highly paranormal! Sorry for hijacking the previous thread.

/aep

-- 
Stopping junk mailers is good for the environment

 Try running it at the CLI and see if you see any errors.  Also please
 do not hijack threads.  The original thread [Freeswitch-users] XML-
 RPC on different ip than 0.0.0.0 which was hijacked by clicking
 reply, changing the subject and clicking send.  Please in the future
 do not do that as it clutters up the threading and could get your
 query lost in the noise.

 Thanks,
 Brian

 On Aug 25, 2009, at 1:54 AM, Alberto Escudero-Pascual (lists) wrote:

 Here it comes the mystery. I am use lame 3.98.2 the mp3 file never
 appears, if I use version 3.97 (older version), it does!.


 ___
 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] wav2mp3 conversion inside of spidermonkey

2009-08-25 Thread Anthony Minessale
maybe it's writing some err to stderr that is being suppressed somehow

On Tue, Aug 25, 2009 at 3:46 PM, Alberto Escudero-Pascual (lists) 
aep.li...@it46.se wrote:

 Hi Brian,

 From the CLI

 freeswi...@open46 system /usr/local/freeswitch/bin/lame -V2 /tmp/foo.wav
 /tmp/foo.mp3 -S
 2009-08-25 22:41:51.556484 [NOTICE] mod_commands.c:3386 Executing command:
 /usr/local/freeswitch/bin/lame -V2 /tmp/foo.wav /tmp/foo.mp3 -S
 API CALL [system(/usr/local/freeswitch/bin/lame -V2 /tmp/foo.wav
 /tmp/foo.mp3 -S)] output:
 +OK

 open46:/tmp# ls
 foo.wav


 and running the command from the command line:


 open46:/tmp#  /usr/local/freeswitch/bin/lame -V2 /tmp/foo.wav /tmp/foo.mp3
 -Sopen46:/tmp# ls
 foo.mp3  foo.wav


 If I do the same with lame397

 freeswi...@open46 system /usr/local/freeswitch/bin/lame397 -V2
 /tmp/foo.wav /tmp/foo.mp3 -S
 2009-08-25 22:44:32.743998 [NOTICE] mod_commands.c:3386 Executing command:
 /usr/local/freeswitch/bin/lame397 -V2 /tmp/foo.wav /tmp/foo.mp3 -S
 API CALL [system(/usr/local/freeswitch/bin/lame397 -V2 /tmp/foo.wav
 /tmp/foo.mp3 -S)] output:
 +OK

 open46:/tmp# ls
 foo.mp3  foo.wav


 Highly paranormal! Sorry for hijacking the previous thread.

 /aep

 --
 Stopping junk mailers is good for the environment

  Try running it at the CLI and see if you see any errors.  Also please
  do not hijack threads.  The original thread [Freeswitch-users] XML-
  RPC on different ip than 0.0.0.0 which was hijacked by clicking
  reply, changing the subject and clicking send.  Please in the future
  do not do that as it clutters up the threading and could get your
  query lost in the noise.
 
  Thanks,
  Brian
 
  On Aug 25, 2009, at 1:54 AM, Alberto Escudero-Pascual (lists) wrote:
 
  Here it comes the mystery. I am use lame 3.98.2 the mp3 file never
  appears, if I use version 3.97 (older version), it does!.
 
 
  ___
  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/
Twitter: http://twitter.com/FreeSWITCH_wire

AIM: anthm
MSN:anthony_miness...@hotmail.com msn%3aanthony_miness...@hotmail.com
GTALK/JABBER/PAYPAL:anthony.miness...@gmail.compaypal%3aanthony.miness...@gmail.com
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:8...@conference.freeswitch.org sip%3a...@conference.freeswitch.org
iax:gu...@conference.freeswitch.org/888
googletalk:conf+...@conference.freeswitch.orggoogletalk%3aconf%2b...@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] Moved Freeswitch to new subnet.

2009-08-25 Thread Mike Peace
That was it! I had been try to setup the conference java script example and I 
made an error in the conference-conf.xml. Thanks a lot to everyone!

Can somebody point me in the right direction to get my new T-1 taking to the 
Sangoma A101?

I have it installed and setup the Wanpipe driver off their site.

When I issue a wanrouter status it shows connected, an ifconfig shows RX and TX 
packets incrementing on the w1g1 interface.

This is the spec on the phone line:

LD T1 with ISDN, ESF, B8ZS, DTMF, ASCENDING HUNTING, PSEUDO ANI 417-862-4351, 
REAL TIME ANI, COS US 50 CA,
AND TO ADD 10 8XX #S TO POINT AT THE DS1 WITH NO DNIS.

Thanks again!

Mike







From: freeswitch-users-boun...@lists.freeswitch.org 
[mailto:freeswitch-users-boun...@lists.freeswitch.org] On Behalf Of Mathieu Rene
Sent: Tuesday, August 25, 2009 2:45 PM
To: freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] Moved Freeswitch to new subnet.

It means you have an error in your XML configuration. You can open 
/usr/local/freeswitch/log/freeswitch.xml.fsxml to figure out where it is (but 
do not modify this file, as it is generated from all the other xml files).

Mathieu Rene
Avant-Garde Solutions Inc
Office: + 1 (514) 664-1044 x100
Cell: +1 (514) 664-1044 x200
mr...@avgs.camailto:mr...@avgs.ca




On 25-Aug-09, at 3:41 PM, Mike Peace wrote:



OK,

Received a different error: Cannot Initialize [[error near line 294]: unclosed 
!--]

?

From: 
freeswitch-users-boun...@lists.freeswitch.orgmailto:freeswitch-users-boun...@lists.freeswitch.org
 [mailto:freeswitch-users-boun...@lists.freeswitch.org] On Behalf Of Mathieu 
Rene
Sent: Tuesday, August 25, 2009 2:02 PM
To: 
freeswitch-users@lists.freeswitch.orgmailto:freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] Moved Freeswitch to new subnet.

You can start it without the -nc switch and it'll stay active on the current 
terminal so you can look for any errors.

Just do:

/usr/local/freeswitch/bin/freeswitch


Mathieu Rene
Avant-Garde Solutions Inc
Office: + 1 (514) 664-1044 x100
Cell: +1 (514) 664-1044 x200
mr...@avgs.camailto:mr...@avgs.ca



On 25-Aug-09, at 2:58 PM, Mike Peace wrote:



It was started from the services configuration window first and I still get the 
error. I set the service not to load rebooted then ran it from the prompt as 
you suggested. It stated 3585 Backgrounding I then ran ps -eaf from the 
prompt and that PID didn't show up. Then when I attempted to run the fs_cli I 
received the same error as before  [ERROR] libs/esl/fs_cli.c.639 main() Error 
Connecting [Socket Connection Error]


From: 
freeswitch-users-boun...@lists.freeswitch.orgmailto:freeswitch-users-boun...@lists.freeswitch.org
 [mailto:freeswitch-users-boun...@lists.freeswitch.org] On Behalf Of Mathieu 
Rene
Sent: Tuesday, August 25, 2009 12:55 PM
To: 
freeswitch-users@lists.freeswitch.orgmailto:freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] Moved Freeswitch to new subnet.

It means freeswitch is not running. You need to start it with 
/usr/local/freeswitch/bin/freeswitch -nc

@MikeJ: Nice bash scripting :D

Mathieu Rene
Avant-Garde Solutions Inc
Office: + 1 (514) 664-1044 x100
Cell: +1 (514) 664-1044 x200
mr...@avgs.camailto:mr...@avgs.ca




On 25-Aug-09, at 1:53 PM, Mike Peace wrote:




Ok, figured out from your post to load the FS-CLI in order to run the Sophia 
status Michael mentioned.

Now I get: [ERROR] libs/esl/fs_cli.c.639 main() Error Connecting [Socket 
Connection Error] when running ./fs_cli from a terminal window in 
/usr/local/freeswitch/bin where fs_cli is located.

Mike
From: 
freeswitch-users-boun...@lists.freeswitch.orgmailto:freeswitch-users-boun...@lists.freeswitch.org
 [mailto:freeswitch-users-boun...@lists.freeswitch.org] On Behalf Of Michael 
Jerris
Sent: Tuesday, August 25, 2009 12:39 PM
To: 
freeswitch-users@lists.freeswitch.orgmailto:freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] Moved Freeswitch to new subnet.

if you want to run that at your prompt instead of at the fs_cli you can do this:

function sofia() { fs_cli -x $(echo sofia $@); }

(thanks ray for the bash foo)

Mike

On Aug 25, 2009, at 1:04 PM, Mike Peace wrote:





I get a bash: sofia: command not found. Is there something I need to add to my 
config to use these commands?

From: 
freeswitch-users-boun...@lists.freeswitch.orgmailto:freeswitch-users-boun...@lists.freeswitch.org
 [mailto:freeswitch-users-boun...@lists.freeswitch.org] On Behalf Of Michael 
Collins
Sent: Tuesday, August 25, 2009 10:55 AM
To: 
freeswitch-users@lists.freeswitch.orgmailto:freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] Moved Freeswitch to new subnet.

Hmm... can you fire up FS and then do sofia status and tell us if the 
internal profile looks okay? Also, do sofia status profile internal and 
capture the output. Something fishy is going on...
-MC

Mike Peace

Network Analyst

EDCO, The Document People

Direct 417-447-3367



Re: [Freeswitch-users] FreeSWITCH 1.0.4 windows installer - great but I have a little problem

2009-08-25 Thread Darren Schreiber
Hi there...

So a few things on this.

1) We have a module that's still being worked on called Sip Interface that 
allows you to configure Sip Profiles in FreeSWITCH. Unfortunately we don't have 
the ability to easily import your existing SIP profiles, and by NOT displaying 
them in the UI your stock config conflicts with those profiles. In other words, 
internal.xml and external.xml define sip profiles on ports 5060 and 5080 that 
the GUI is unaware. So to simplify things, we just delete those files and 
expect you to recreate them via the UI on install. We'll probably make this a 
little more obvious in the near future, but for now, that's what we do.

2) The trunk creation system in the ISO does give the impression that trunk 
groups  trunks are for external. This is a design flaw I have already fixed in 
trunk (referenced above). We have now split this module into two modules - one 
for configuring Sip Interface/Sip Profiles (which are for defining your IPs  
ports to use for sending/receiving calls and authentication settings) and the 
other for defining gateways ('trunks) which are generally used for making 
outbound calls.

So in other words, we're aware of the issues you are detailing. We will be 
finalizing the fix for this issue hopefully on Sunday and will rebuild the ISO 
by Monday.

Hope that helps.

- Darren





From: freeswitch-users-boun...@lists.freeswitch.org 
[mailto:freeswitch-users-boun...@lists.freeswitch.org] On Behalf Of Carlos 
Talbot
Sent: Tuesday, August 25, 2009 12:02 PM
To: freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] FreeSWITCH 1.0.4 windows installer - great but 
I have a little problem


This would be a question for Darren and the FreePBX group. :) I guess it does 
not help that the User Documentation link on this page is currently empty: 
http://www.freepbx.org/v3/wiki/

If you note the message during FreePBX initialization *all* files in the 
sip_profiles directory are removed (including internal*.xml). This causes 
'sofia status' to come back empty.


Incompatible Configuration
WARNING: THE FOLLOWING FILES WILL BE DELETED!


 *   D:/FreeSWITCH/conf/sip_profiles/external.xml
 *   D:/FreeSWITCH/conf/sip_profiles/internal-ipv6.xml
 *   D:/FreeSWITCH/conf/sip_profiles/internal.xml



regards,

Carlos

On Tue, Aug 25, 2009 at 1:28 PM, Giovanni Maruzzelli 
gmar...@celliax.orgmailto:gmar...@celliax.org wrote:

From the front page of FPBX is not clear you *must* create a trunk/trunk group.

I was thinking trunks were for outgoing calls, or for receiving from external.

I was just testing internal phones, trying an IVR, so I was thinking
trunks were not needed.

Can you explain to me?


Thanks again,

-giovanni

Sincerely,

Giovanni Maruzzelli
Cell : +39-347-2665618




On Tue, Aug 25, 2009 at 8:06 PM, Carlos 
Talbotcarlos.tal...@gmail.commailto:carlos.tal...@gmail.com wrote:
 Giovanni,
 you mean like this message?
 Unable to determine location for device. Voicemail password set via FreePBX
 will not be valid.
 This is a known FreePBX issue. http://www.freepbx.org/v3/ticket/36
 Let's keep in ming FreePBX v3 is a developer release and as such many
 features are in flux and might not work. That being said there some features
 in the Windows build that still do not work. The biggest one right now is
 the lack of the php ESL library for Windows which affects the voicemail app.
 I'm trying to get this to compile but it's been difficult.
 I do include the .svn files with the FreePBX install so you can freely
 install TortoiseSVN and update FreePBX at your leisure.
 With regards to the sip_profiles, did you create a trunk group and trunk?
 regards,
 Carlos

 On Mon, Aug 24, 2009 at 9:56 PM, Giovanni Maruzzelli 
 gmar...@celliax.orgmailto:gmar...@celliax.org
 wrote:

 Windows installer does not work for me.

 I've reinstalled various times, same results.

 I can correctly create a number, but when I try to create a device for
 that number, it tells me that cannot locate the device, and the
 password for vicemail will be invalid.

 After that, it begins to give the php error page, it cannot find the
 start  tag in directory/default.xml

 Also for me there are no sofia profiles...

 So, I cannot start to test it (eg: I would like to add mod_skypiax
 support to it).


 Sincerely,

 Giovanni Maruzzelli
 Cell : +39-347-2665618




 On Tue, Aug 25, 2009 at 12:06 AM, Raffaele P.
 Guidiraffaele.p.gu...@gmail.commailto:raffaele.p.gu...@gmail.com wrote:
  This is what I was asking! :D When the installer finished it started the
  whole thing and everything got loaded fine, but when I restarted my
  system
  it didn't (and did not anymore). Well, I will try to install everything
  from
  scratch again and see...
 
  On Mon, Aug 24, 2009 at 20:30, Brian West 
  br...@freeswitch.orgmailto:br...@freeswitch.org wrote:
 
  If you installed FreePBX then it would be that softwares job to manage
  the sofia profiles... wouldn't it?
 
  /b
 
  On Aug 

Re: [Freeswitch-users] FreeSWITCH 1.0.4 windows installer - great but I have a little problem

2009-08-25 Thread Giovanni Maruzzelli
Darren,

thanks! it helps a lot.

If we svn up in /var/www/freepbx we got the trunk?


On Tue, Aug 25, 2009 at 10:59 PM, Darren Schreiberd...@d-man.org wrote:
 Hi there...

 So a few things on this.

 1) We have a module that's still being worked on called Sip Interface that
 allows you to configure Sip Profiles in FreeSWITCH. Unfortunately we don't
 have the ability to easily import your existing SIP profiles, and by NOT
 displaying them in the UI your stock config conflicts with those profiles.
 In other words, internal.xml and external.xml define sip profiles on ports
 5060 and 5080 that the GUI is unaware. So to simplify things, we just delete
 those files and expect you to recreate them via the UI on install. We'll
 probably make this a little more obvious in the near future, but for now,
 that's what we do.

 2) The trunk creation system in the ISO does give the impression that trunk
 groups  trunks are for external. This is a design flaw I have already fixed
 in trunk (referenced above). We have now split this module into two modules
 - one for configuring Sip Interface/Sip Profiles (which are for defining
 your IPs  ports to use for sending/receiving calls and authentication
 settings) and the other for defining gateways ('trunks) which are generally
 used for making outbound calls.

 So in other words, we're aware of the issues you are detailing. We will be
 finalizing the fix for this issue hopefully on Sunday and will rebuild the
 ISO by Monday.

 Hope that helps.

 - Darren



 
 From: freeswitch-users-boun...@lists.freeswitch.org
 [mailto:freeswitch-users-boun...@lists.freeswitch.org] On Behalf Of Carlos
 Talbot
 Sent: Tuesday, August 25, 2009 12:02 PM
 To: freeswitch-users@lists.freeswitch.org
 Subject: Re: [Freeswitch-users] FreeSWITCH 1.0.4 windows installer - great
 but I have a little problem


 This would be a question for Darren and the FreePBX group. :) I guess it
 does not help that the User Documentation link on this page is currently
 empty: http://www.freepbx.org/v3/wiki/
 If you note the message during FreePBX initialization *all* files in the
 sip_profiles directory are removed (including internal*.xml). This causes
 'sofia status' to come back empty.

 Incompatible Configuration

 WARNING: THE FOLLOWING FILES WILL BE DELETED!

 D:/FreeSWITCH/conf/sip_profiles/external.xml
 D:/FreeSWITCH/conf/sip_profiles/internal-ipv6.xml
 D:/FreeSWITCH/conf/sip_profiles/internal.xml


 regards,
 Carlos

 On Tue, Aug 25, 2009 at 1:28 PM, Giovanni
 Maruzzelli gmar...@celliax.org wrote:

 From the front page of FPBX is not clear you *must* create a trunk/trunk
 group.

 I was thinking trunks were for outgoing calls, or for receiving from
 external.

 I was just testing internal phones, trying an IVR, so I was thinking
 trunks were not needed.

 Can you explain to me?

 Thanks again,

 -giovanni

 Sincerely,

 Giovanni Maruzzelli
 Cell : +39-347-2665618




 On Tue, Aug 25, 2009 at 8:06 PM, Carlos Talbotcarlos.tal...@gmail.com
 wrote:
  Giovanni,
  you mean like this message?
  Unable to determine location for device. Voicemail password set via
  FreePBX
  will not be valid.
  This is a known FreePBX issue. http://www.freepbx.org/v3/ticket/36
  Let's keep in ming FreePBX v3 is a developer release and as such many
  features are in flux and might not work. That being said there some
  features
  in the Windows build that still do not work. The biggest one right now
  is
  the lack of the php ESL library for Windows which affects the voicemail
  app.
  I'm trying to get this to compile but it's been difficult.
  I do include the .svn files with the FreePBX install so you can freely
  install TortoiseSVN and update FreePBX at your leisure.
  With regards to the sip_profiles, did you create a trunk group and
  trunk?
  regards,
  Carlos
 
  On Mon, Aug 24, 2009 at 9:56 PM, Giovanni Maruzzelli
  gmar...@celliax.org
  wrote:
 
  Windows installer does not work for me.
 
  I've reinstalled various times, same results.
 
  I can correctly create a number, but when I try to create a device for
  that number, it tells me that cannot locate the device, and the
  password for vicemail will be invalid.
 
  After that, it begins to give the php error page, it cannot find the
  start  tag in directory/default.xml
 
  Also for me there are no sofia profiles...
 
  So, I cannot start to test it (eg: I would like to add mod_skypiax
  support to it).
 
 
  Sincerely,
 
  Giovanni Maruzzelli
  Cell : +39-347-2665618
 
 
 
 
  On Tue, Aug 25, 2009 at 12:06 AM, Raffaele P.
  Guidiraffaele.p.gu...@gmail.com wrote:
   This is what I was asking! :D When the installer finished it started
   the
   whole thing and everything got loaded fine, but when I restarted my
   system
   it didn't (and did not anymore). Well, I will try to install
   everything
   from
   scratch again and see...
  
   On Mon, Aug 24, 2009 at 20:30, Brian West br...@freeswitch.org
   wrote:
  
   If you installed 

Re: [Freeswitch-users] Moved Freeswitch to new subnet.

2009-08-25 Thread Michael Collins

 Can somebody point me in the right direction to get my new T-1 taking to
 the Sangoma A101?



Are you using PRI or just a 24 channel T1, aka CAS or RBS? Check out this
page for some handy information:
http://wiki.freeswitch.org/wiki/OpenZAP

-MC

P.S. - If you join #openzap and/or #freeswitch on irc.freenode.net you can
usually get real-time help with most of these questions.
___
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] Moved Freeswitch to new subnet.

2009-08-25 Thread Mike Peace
I have looked at that but I am confused on which files need to be edited. Since 
I have already installed in Wanpipe mode with the Sangoma card I skipped 
straight to the Wanpipe section. It mentions setting the [span wanpie PRI_1] 
etc in the openzap.conf then further down it mentions editing the 
autoload_configs/openzap.conf.xml with a completely different format of config.

Are these the same file? If not where does the first one mentioned reside?

From: freeswitch-users-boun...@lists.freeswitch.org 
[mailto:freeswitch-users-boun...@lists.freeswitch.org] On Behalf Of Michael 
Collins
Sent: Tuesday, August 25, 2009 5:00 PM
To: freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] Moved Freeswitch to new subnet.


Can somebody point me in the right direction to get my new T-1 taking to the 
Sangoma A101?


Are you using PRI or just a 24 channel T1, aka CAS or RBS? Check out this page 
for some handy information:
http://wiki.freeswitch.org/wiki/OpenZAP

-MC

P.S. - If you join #openzap and/or #freeswitch on 
irc.freenode.nethttp://irc.freenode.net you can usually get real-time help 
with most of these questions.

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
EDCO Group, Inc.
Phone: (800) 999-3456
Fax:   (800) 999-3551
Web:   http://www.edcogroupinc.com/

Confidentiality Notice:  The information contained in this e-mail message 
(including any attachments) may contain confidential and privileged 
information, and is for the sole use of the intended recipient(s).  If you are 
not the intended recipient, any unauthorized review, use, or disclosure or 
distribution is strictly prohibited.  If you have received this message in 
error, please notify the sender by replying to this e-mail message or by 
telephone at (800) 999-3456 and permanently destroy all copies of the original 
message (including any attachments), along with any reply, and delete them from 
your system.
___
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 1.0.4 windows installer - great but I have a little problem

2009-08-25 Thread Mitul Limbani

Darren,

I shall look forward to check version 3 of FreePBX for FS.
I hope it not trixswitch anyone aware of status on trixswitch (not  
that I m a big fan of Trixbox, but quite a while back I had seen  
trixswitch iso so wondering if anything is progresing on that end.


Thanks  Regards,
Mitul Limbani,
Founder  CEO,
Enterux Solutions Pvt. Ltd.,
The Enterprise Linux Company (r),
http://www.enterux.com
http://www.entVoice.com

On 26-Aug-2009, at 2:29 AM, Darren Schreiber d...@d-man.org wrote:


Hi there...

So a few things on this.

1) We have a module that's still being worked on called Sip  
Interface that allows you to configure Sip Profiles in FreeSWITCH.  
Unfortunately we don't have the ability to easily import your  
existing SIP profiles, and by NOT displaying them in the UI your  
stock config conflicts with those profiles. In other words,  
internal.xml and external.xml define sip profiles on ports 5060 and  
5080 that the GUI is unaware. So to simplify things, we just delete  
those files and expect you to recreate them via the UI on install.  
We'll probably make this a little more obvious in the near future,  
but for now, that's what we do.


2) The trunk creation system in the ISO does give the impression  
that trunk groups  trunks are for external. This is a design flaw I  
have already fixed in trunk (referenced above). We have now split  
this module into two modules - one for configuring Sip Interface/Sip  
Profiles (which are for defining your IPs  ports to use for sending/ 
receiving calls and authentication settings) and the other for  
defining gateways ('trunks) which are generally used for making  
outbound calls.


So in other words, we're aware of the issues you are detailing. We  
will be finalizing the fix for this issue hopefully on Sunday and  
will rebuild the ISO by Monday.


Hope that helps.

- Darren




From: freeswitch-users-boun...@lists.freeswitch.org  
[mailto:freeswitch-users-boun...@lists.freeswitch.org] On Behalf Of  
Carlos Talbot

Sent: Tuesday, August 25, 2009 12:02 PM
To: freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] FreeSWITCH 1.0.4 windows installer -  
great but I have a little problem



This would be a question for Darren and the FreePBX group. :) I  
guess it does not help that the User Documentation link on this page  
is currently empty: http://www.freepbx.org/v3/wiki/


If you note the message during FreePBX initialization *all* files in  
the sip_profiles directory are removed (including internal*.xml).  
This causes 'sofia status' to come back empty.



Incompatible Configuration
WARNING: THE FOLLOWING FILES WILL BE DELETED!


D:/FreeSWITCH/conf/sip_profiles/external.xml
D:/FreeSWITCH/conf/sip_profiles/internal-ipv6.xml
D:/FreeSWITCH/conf/sip_profiles/internal.xml

regards,

Carlos

On Tue, Aug 25, 2009 at 1:28 PM, Giovanni Maruzzelli gmar...@celliax.org 
 wrote:


From the front page of FPBX is not clear you *must* create a trunk/ 
trunk group.


I was thinking trunks were for outgoing calls, or for receiving from  
external.


I was just testing internal phones, trying an IVR, so I was thinking
trunks were not needed.

Can you explain to me?


Thanks again,

-giovanni

Sincerely,

Giovanni Maruzzelli
Cell : +39-347-2665618




On Tue, Aug 25, 2009 at 8:06 PM, Carlos  
Talbotcarlos.tal...@gmail.com wrote:

 Giovanni,
 you mean like this message?
 Unable to determine location for device. Voicemail password set  
via FreePBX

 will not be valid.
 This is a known FreePBX issue. http://www.freepbx.org/v3/ticket/36
 Let's keep in ming FreePBX v3 is a developer release and as such  
many
 features are in flux and might not work. That being said there  
some features
 in the Windows build that still do not work. The biggest one right  
now is
 the lack of the php ESL library for Windows which affects the  
voicemail app.

 I'm trying to get this to compile but it's been difficult.
 I do include the .svn files with the FreePBX install so you can  
freely

 install TortoiseSVN and update FreePBX at your leisure.
 With regards to the sip_profiles, did you create a trunk group and  
trunk?

 regards,
 Carlos

 On Mon, Aug 24, 2009 at 9:56 PM, Giovanni Maruzzelli gmar...@celliax.org 


 wrote:

 Windows installer does not work for me.

 I've reinstalled various times, same results.

 I can correctly create a number, but when I try to create a  
device for

 that number, it tells me that cannot locate the device, and the
 password for vicemail will be invalid.

 After that, it begins to give the php error page, it cannot find  
the

 start  tag in directory/default.xml

 Also for me there are no sofia profiles...

 So, I cannot start to test it (eg: I would like to add mod_skypiax
 support to it).


 Sincerely,

 Giovanni Maruzzelli
 Cell : +39-347-2665618




 On Tue, Aug 25, 2009 at 12:06 AM, Raffaele P.
 Guidiraffaele.p.gu...@gmail.com wrote:
  This is what I was asking! :D When the installer finished it  
started the
  whole thing 

Re: [Freeswitch-users] how to avoid many | in bridge application?

2009-08-25 Thread Carlos S. Antunes

Anthony,

Yes, you are right, I was thinking strictly in terms of SIP gateways. I 
guess that instead on the tag gateway, one could use channel? For 
example:


action application=bridge
  !-- set some kind of *bridge-specific* variable --
  channel order=1 data=sofia/gateway/gw-1/1$1/
  channel order=1 data=sofia/gateway/gw-2/1$1/
  channel order=2 data=sofia/gateway/gw-3/1$1
  !-- set some kind of *channel-specific* variable --
  /channel 
  channel order=3 data=sofia/gateway/gw-4/1$1/
/action

Would this be acceptable to you?

Regarding the combinations of continue_on_fail and hangup_after bridge, 
I'll give that a try although I suspect it will result in less 
structured and harder to understand markup...


Thanks!

Carlos

Anthony Minessale wrote:

This suggestion violates the scope boundaries.

gateways are specific concept to mod_sofia so a gateway tag in 
action (part of agnostic xml dialplan)

does not flow properly.

you can also use combinations of continue_on_fail and hangup_after 
bridge so you can

just put each bridge statement in it's own action.


On Tue, Aug 25, 2009 at 9:06 AM, Carlos S. Antunes c...@nowthor.com 
mailto:c...@nowthor.com wrote:


Max,

I would like to see something similar too. For example, it would be
wonderful if one could specify multiple gateways to try like this or
something similar:

action application=bridge
   !-- set some kind of *bridge-specific* parameter/variable --
   gateway order=1 data=sofia/gateway/gw-1/1$1/
   gateway order=1 data=sofia/gateway/gw-2/1$1/
   gateway order=2 data=sofia/gateway/gw-3/1$1
   !-- set some kind of *gw-specific* parameter/variable --
   /gateway
   gateway order=3 data=sofia/gateway/gw-4/1$1/
/action

One would be able to avoid the [] and {} hacks and combine
sequential and simultaneous trying of gateways.

What do the developers think of this?

Carlos

Max Ivanov wrote:
 Nowdays I 'm forced to put multiple | to find first free
gateway, ie


sofia/gateway/panas111/1000|sofia/gateway/panas112/1000|sofia/gateway/panas113/1000
 ,
 the whole sting is tooo long, is there any shorter way to write
same thing? Like
 sofia/gateway/panas*/1000 will try all gateways matching the
pattern.

 ___
 FreeSWITCH-users mailing list
 FreeSWITCH-users@lists.freeswitch.org
mailto: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
mailto: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/
Twitter: http://twitter.com/FreeSWITCH_wire

AIM: anthm
MSN:anthony_miness...@hotmail.com 
mailto:msn%3aanthony_miness...@hotmail.com
GTALK/JABBER/PAYPAL:anthony.miness...@gmail.com 
mailto:paypal%3aanthony.miness...@gmail.com

IRC: irc.freenode.net http://irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:8...@conference.freeswitch.org 
mailto:sip%3a...@conference.freeswitch.org
iax:gu...@conference.freeswitch.org/888 
http://iax:gu...@conference.freeswitch.org/888
googletalk:conf+...@conference.freeswitch.org 
mailto:googletalk%3aconf%2b...@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] caller id on origination does not work

2009-08-25 Thread Shameem Shiek
I am setting the caller id like this in my ESL script:

@con.sendRecv(api originate
{origination_caller_id_number=15103245678}sofia/gateway/junctionnetworks/1...@number}
park())

And the caller id comes out as all zeroes.  The sip trace shows the from
as shown in the sofia status command.  This is output of sofia gateway
status and my gateway is under
/usr/local/freeswitch/conf/sip_profiles/external/junctionnetworks.xml .
Also, adding the gateway under /conf/directory/default did not work as the
wiki suugests. What I need to do for the caller_id to come through?


sofia status gateway junctionnetworks
=
Namejunctionnetworks
Scheme  Digest
Realm   jnctn.net
Usernameusername
Passwordyes
Fromsip:usern...@jnctn.net sip%3ausern...@jnctn.net
;transport=udp
Contact sip:gw+junctionnetwo...@24.87.80.12:5080;transport=udp
Exten   899xxx
To  sip:usern...@sip.jnctn.net sip%3ausern...@sip.jnctn.net
Proxy   sip:sip.jnctn.net
Context public
Expires 3600
Freq3600
Ping0
PingFreq0
State   REGED
Status  UP
CallsIN 0
CallsOUT1
___
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 avoid many | in bridge application?

2009-08-25 Thread Ken Rice
That still wouldn¹t work... An action has 2 parameters application and
data... And deeper then that and you have to start re-arranging all sorts of
things...

Continue_on_fail and hangup_after_bridge like tony pointed out are what you
want if you don¹t want to use the | delimiting ... I use these all the time
with gateway counts  10 just stacking additional actions for each bridge
line



From: Carlos S. Antunes c...@nowthor.com
Organization: Nowthor Corporation
Reply-To: freeswitch-users@lists.freeswitch.org
Date: Tue, 25 Aug 2009 22:50:08 -0400
To: freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] how to avoid many | in bridge application?

Anthony,

Yes, you are right, I was thinking strictly in terms of SIP gateways. I
guess that instead on the tag gateway, one could use channel? For
example:

action application=bridge
   !-- set some kind of *bridge-specific* variable --
   channel order=1 data=sofia/gateway/gw-1/1$1/
   channel order=1 data=sofia/gateway/gw-2/1$1/
   channel order=2 data=sofia/gateway/gw-3/1$1
   !-- set some kind of *channel-specific* variable --
   /channel 
   channel order=3 data=sofia/gateway/gw-4/1$1/
/action

Would this be acceptable to you?

Regarding the combinations of continue_on_fail and hangup_after bridge, I'll
give that a try although I suspect it will result in less structured and
harder to understand markup...

Thanks!

Carlos

Anthony Minessale wrote:
 This suggestion violates the scope boundaries.
  
 gateways are specific concept to mod_sofia so a gateway tag in action
 (part of agnostic xml dialplan)
 does not flow properly.
  
 you can also use combinations of continue_on_fail and hangup_after bridge so
 you can
 just put each bridge statement in it's own action.
  
  
  
 On Tue, Aug 25, 2009 at 9:06 AM, Carlos S. Antunes c...@nowthor.com wrote:
  
 Max,
  
 I would like to see something similar too. For example, it would be
 wonderful if one could specify multiple gateways to try like this or
 something similar:
  
 action application=bridge
!-- set some kind of *bridge-specific* parameter/variable --
gateway order=1 data=sofia/gateway/gw-1/1$1/
gateway order=1 data=sofia/gateway/gw-2/1$1/
gateway order=2 data=sofia/gateway/gw-3/1$1
!-- set some kind of *gw-specific* parameter/variable --
/gateway
gateway order=3 data=sofia/gateway/gw-4/1$1/
 /action
  
 One would be able to avoid the [] and {} hacks and combine
 sequential and simultaneous trying of gateways.
  
 What do the developers think of this?
  
 Carlos
   
  
 
 Max Ivanov wrote:
  Nowdays I 'm forced to put multiple | to find first free gateway, ie
  
 sofia/gateway/panas111/1000|sofia/gateway/panas112/1000|sofia/gateway/panas1
 13/1000
  ,
  the whole sting is tooo long, is there any shorter way to write same
 thing? Like
  sofia/gateway/panas*/1000 will try all gateways matching the pattern.
 
  ___
  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/
 Twitter: http://twitter.com/FreeSWITCH_wire
  
 AIM: anthm
  MSN:anthony_miness...@hotmail.com
 mailto:msn%3aanthony_miness...@hotmail.com
 GTALK/JABBER/PAYPAL:anthony.miness...@gmail.com
 mailto:paypal%3aanthony.miness...@gmail.com
 IRC: irc.freenode.net http://irc.freenode.net #freeswitch
  
 FreeSWITCH Developer Conference
  sip:8...@conference.freeswitch.org
 mailto:sip%3a...@conference.freeswitch.org
  iax:gu...@conference.freeswitch.org/888
 http://iax:gu...@conference.freeswitch.org/888
  googletalk:conf+...@conference.freeswitch.org
 mailto:googletalk%3aconf%2b...@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 mailing list
FreeSWITCH-users@lists.freeswitch.org

Re: [Freeswitch-users] caller id on origination does not work

2009-08-25 Thread SP
You can try playing with this in your gateway profile
  param name=caller-id-in-from value=true/

Not sure what it'll do to your registration, give it a try

On Tue, Aug 25, 2009 at 21:51, Shameem Shiek gshfre...@gmail.com wrote:

 I am setting the caller id like this in my ESL script:

 @con.sendRecv(api originate
 {origination_caller_id_number=15103245678}sofia/gateway/junctionnetworks/1...@number}
 park())

 And the caller id comes out as all zeroes.  The sip trace shows the from
 as shown in the sofia status command.  This is output of sofia gateway
 status and my gateway is under
 /usr/local/freeswitch/conf/sip_profiles/external/junctionnetworks.xml .
 Also, adding the gateway under /conf/directory/default did not work as the
 wiki suugests. What I need to do for the caller_id to come through?


 sofia status gateway junctionnetworks

 =
 Namejunctionnetworks
 Scheme  Digest
 Realm   jnctn.net
 Usernameusername
 Passwordyes
 Fromsip:usern...@jnctn.net sip%3ausern...@jnctn.net
 ;transport=udp
 Contact sip:gw+junctionnetwo...@24.87.80.12:5080;transport=udp
 Exten   899xxx
 To  sip:usern...@sip.jnctn.net sip%3ausern...@sip.jnctn.net
 Proxy   sip:sip.jnctn.net
 Context public
 Expires 3600
 Freq3600
 Ping0
 PingFreq0
 State   REGED
 Status  UP
 CallsIN 0
 CallsOUT1


 ___
 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




-- 
Shannon
___
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 avoid many | in bridge application?

2009-08-25 Thread Max Ivanov

 Continue_on_fail and hangup_after_bridge like tony pointed out are what you
 want if you don’t want to use the | delimiting ... I use these all the time
 with gateway counts  10 just stacking additional actions for each bridge
 line

Let's imagine that I need to call 1000,1001,1002 via  gw1,gw2,gw3 by
choosing first available. How dialplan would look like?

continue_on_fail=True
hangup_after_bridge=True
bridge gw1/1000
bridge gw1/1001
bridge gw1/1002
bridge gw2/1000
bridge gw2/1001
bridge gw2/1002
bridge gw3/1000
bridge gw3/1001
bridge gw3/1002

Is it easy to understand? From my point of view it's not. Compare to this:
continue_on_fail=True
hangup_after_bridge=True
bridge ${get_avail_gw(gw1,gw2,gw3)}/1000
bridge ${get_avail_gw(gw1,gw2,gw3)}/1001
bridge ${get_avail_gw(gw1,gw2,gw3)}/1002

___
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