Freeswitch

birvin's picture

 I re-installed Freeswitch on another Server.  Then I configured my Freeswitch in the Resource pool to point to the new Server.  I also, changed the event_socket.conf.xml to have IP 0.0.0.0 and port 8021 and the xml_curl.conf.xml with the IP of my Starpound App Server.  I look in the server.log file and I see an error:

 

 

2010-08-25 12:25:42,718 INFO  [org.starpound.fs.FSConnectionManager] Connection to FreeSwitch has been set up2010-08-25 12:25:42,720 WARN  [org.starpound.fscc.FreeSwitchCallControlImpl] Can't get alive channells because of: java.lang.ClassCastException: org.starpound.fs.events.FSDisconnected cannot be cast to org.starpound.fs.events.FSJob Has anyone seen this error before?

 

birvin's picture

I was able to resolve the

I was able to resolve the above error.  Now the problem I'm having is with my SIP Softphone.  I get "Registration Error: 501 - Not Implemented".  This is the same softphone I've used for my other Freeswitch Server.  All I did was change the IP Address to point to my new server which tells me that the problem is with my new server.  Are there any troubleshooting techniques that I can use to figure out this issue?

Also, the ports that need to be open are open:

tcp        0      0 127.0.0.1:32000             0.0.0.0:*                   LISTEN      17934/java

tcp        0      0 127.0.0.1:2208              0.0.0.0:*                   LISTEN      1911/hpiod

tcp        0      0 127.0.0.1:32001             0.0.0.0:*                   LISTEN      18077/java

tcp        0      0 0.0.0.0:609                 0.0.0.0:*                   LISTEN      1699/rpc.statd

tcp        0      0 0.0.0.0:5060                0.0.0.0:*                   LISTEN      18305/VCS

tcp        0      0 0.0.0.0:5061                0.0.0.0:*                   LISTEN      18305/VCS

tcp        0      0 0.0.0.0:5063                0.0.0.0:*                   LISTEN      18305/VCS

tcp        0      0 10.4.4.174:5160             0.0.0.0:*                   LISTEN      16434/freeswitch

tcp        0      0 0.0.0.0:5064                0.0.0.0:*                   LISTEN      18305/VCS

tcp        0      0 0.0.0.0:5065                0.0.0.0:*                   LISTEN      18305/VCS

tcp        0      0 0.0.0.0:9993                0.0.0.0:*                   LISTEN      13792/vxlaunch

tcp        0      0 127.0.0.1:36714             0.0.0.0:*                   LISTEN      18305/VCS

 

epetrova's picture

can you show FS and SP logs?

can you show FS and SP logs?

Thanks,
Evgenia

birvin's picture

 Here is a snippet of the

 Here is a snippet of the server.log file.  The IP 10.4.4.35 is my old StarPound App server which should not be connected to my .172 Server.  

2010-08-26 10:41:49,890 WARN  [org.jgroups.protocols.pbcast.NAKACK] 10.4.4.172:59071] discarded message from non-member 10.4.4.172:35225, my view is [10.4.4.35:33925|6] [10.4.4.35:33925, 10.4.4.172:59071]

2010-08-26 10:41:54,059 WARN  [org.jgroups.protocols.VIEW_SYNC] discarding view as I (10.4.4.172:35225) am not member of view ([10.4.4.35:33925|6] [10.4.4.35:33925, 10.4.4.172:59071])

2010-08-26 10:42:00,123 WARN  [org.jgroups.protocols.pbcast.NAKACK] 10.4.4.172:59071] discarded message from non-member 10.4.4.172:35225, my view is [10.4.4.35:33925|6] [10.4.4.35:33925, 10.4.4.172:59071]

2010-08-26 10:42:04,619 WARN  [org.jgroups.protocols.VIEW_SYNC] discarding view as I (10.4.4.172:35225) am not member of view ([10.4.4.35:33925|6] [10.4.4.35:33925, 10.4.4.172:59071])

2010-08-26 10:42:10,161 WARN  [org.jgroups.protocols.pbcast.NAKACK] 10.4.4.172:59071] discarded message from non-member 10.4.4.172:35225, my view is [10.4.4.35:33925|6] [10.4.4.35:33925, 10.4.4.172:59071]

2010-08-26 10:42:15,238 WARN  [org.jgroups.protocols.VIEW_SYNC] discarding view as I (10.4.4.172:35225) am not member of view ([10.4.4.35:33925|6] [10.4.4.35:33925, 10.4.4.172:59071])

2010-08-26 10:42:20,179 WARN  [org.jgroups.protocols.pbcast.NAKACK] 10.4.4.172:59071] discarded message from non-member 10.4.4.172:35225, my view is [10.4.4.35:33925|6] [10.4.4.35:33925, 10.4.4.172:59071]

2010-08-26 10:42:25,994 WARN  [org.jgroups.protocols.VIEW_SYNC] discarding view as I (10.4.4.172:35225) am not member of view ([10.4.4.35:33925|6] [10.4.4.35:33925, 10.4.4.172:59071])

2010-08-26 10:42:27,044 WARN  [org.jgroups.protocols.pbcast.NAKACK] 10.4.4.172:59071] discarded message from non-member 10.4.4.172:35225, my view is [10.4.4.35:33925|6] [10.4.4.35:33925, 10.4.4.172:59071]

2010-08-26 10:42:30,209 WARN  [org.jgroups.protocols.pbcast.NAKACK] 10.4.4.172:59071] discarded message from non-member 10.4.4.172:35225, my view is [10.4.4.35:33925|6] [10.4.4.35:33925, 10.4.4.172:59071]

2010-08-26 10:42:36,404 WARN  [org.jgroups.protocols.VIEW_SYNC] discarding view as I (10.4.4.172:35225) am not member of view ([10.4.4.35:33925|6] [10.4.4.35:33925, 10.4.4.172:59071])

2010-08-26 10:42:40,229 WARN  [org.jgroups.protocols.pbcast.NAKACK] 10.4.4.172:59071] discarded message from non-member 10.4.4.172:35225, my view is [10.4.4.35:33925|6] [10.4.4.35:33925, 10.4.4.172:59071]

2010-08-26 10:42:46,926 WARN  [org.jgroups.protocols.VIEW_SYNC] discarding view as I (10.4.4.172:35225) am not member of view ([10.4.4.35:33925|6] [10.4.4.35:33925, 10.4.4.172:59071])

2010-08-26 10:42:50,251 WARN  [org.jgroups.protocols.pbcast.NAKACK] 10.4.4.172:59071] discarded message from non-member 10.4.4.172:35225, my view is [10.4.4.35:33925|6] [10.4.4.35:33925, 10.4.4.172:59071]

2010-08-26 10:42:57,555 WARN  [org.jgroups.protocols.VIEW_SYNC] discarding view as I (10.4.4.172:35225) am not member of view ([10.4.4.35:33925|6] [10.4.4.35:33925, 10.4.4.172:59071])

2010-08-26 10:43:00,251 WARN  [org.jgroups.protocols.pbcast.NAKACK] 10.4.4.172:59071] discarded message from non-member 10.4.4.172:35225, my view is [10.4.4.35:33925|6] [10.4.4.35:33925, 10.4.4.172:59071]

2010-08-26 10:43:08,229 WARN  [org.jgroups.protocols.VIEW_SYNC] discarding view as I (10.4.4.172:35225) am not member of view ([10.4.4.35:33925|6] [10.4.4.35:33925, 10.4.4.172:59071])

2010-08-26 10:43:10,251 WARN  [org.jgroups.protocols.pbcast.NAKACK] 10.4.4.172:59071] discarded message from non-member 10.4.4.172:35225, my view is [10.4.4.35:33925|6] [10.4.4.35:33925, 10.4.4.172:59071]

  Here is a snippet from the fs_cc.log file:{Content-Length=642, Content-Type=text/event-plain}2010-08-26 10:44:20,755 80523721 DEBUG [org.starpound.fs.EventSocketListener] (pool-1121-thread-1:) org.starpound.fs.events.FSHeartbeat Event headers:{Content-Length=642, Content-Type=text/event-plain}2010-08-26 10:44:20,755 80523721 TRACE [org.starpound.fs.EventSocketListener] (pool-1121-thread-1:) Enter dispatchFSEvent...2010-08-26 10:44:20,755 80523721 TRACE [org.starpound.fs.EventSocketListener] (pool-1121-thread-1:) Enter parseFSEvent...2010-08-26 10:44:20,755 80523721 TRACE [org.starpound.fs.events.FSEventFactory] (pool-1121-thread-1:) Enter createEvent...2010-08-26 10:44:20,755 80523721 TRACE [org.starpound.fs.events.FSEventFactory] (pool-1121-thread-1:) Enter parseHeaders...2010-08-26 10:44:30,886 80533852 TRACE [org.starpound.fs.EventSocketListener] (Timer-485:) Enter heartbeat checker run ...2010-08-26 10:44:30,886 80533852 DEBUG [org.starpound.fs.EventSocketListener] (Timer-485:) Heartbeat checker: heartbeat checked2010-08-26 10:44:40,460 80543426 TRACE [org.starpound.fs.events.FSEventFactory] (pool-1121-thread-1:) Enter parseEventPlain...2010-08-26 10:44:40,460 80543426 TRACE [org.starpound.fs.events.FSEventFactory] (pool-1121-thread-1:) Enter parseHeaders...2010-08-26 10:44:40,460 80543426 DEBUG [org.starpound.fs.events.FSEventFactory] (pool-1121-thread-1:) Parsed event:org.starpound.fs.events.FSHeartbeat     Event headers:{Content-Length=644, Content-Type=text/event-plain}2010-08-26 10:44:40,461 80543427 DEBUG [org.starpound.fs.EventSocketListener] (pool-1121-thread-1:) org.starpound.fs.events.FSHeartbeat Event headers:{Content-Length=644, Content-Type=text/event-plain}2010-08-26 10:44:40,461 80543427 TRACE [org.starpound.fs.EventSocketListener] (pool-1121-thread-1:) Enter dispatchFSEvent...2010-08-26 10:44:40,461 80543427 TRACE [org.starpound.fs.EventSocketListener] (pool-1121-thread-1:) Enter parseFSEvent...2010-08-26 10:44:40,461 80543427 TRACE [org.starpound.fs.events.FSEventFactory] (pool-1121-thread-1:) Enter createEvent...2010-08-26 10:44:40,461 80543427 TRACE [org.starpound.fs.events.FSEventFactory] (pool-1121-thread-1:) Enter parseHeaders...2010-08-26 10:44:59,635 80562601 TRACE [org.starpound.fs.EventSocketListener] (Timer-485:) Enter heartbeat checker run ...2010-08-26 10:44:59,635 80562601 DEBUG [org.starpound.fs.EventSocketListener] (Timer-485:) Heartbeat checker: heartbeat checked2010-08-26 10:45:00,707 80563673 TRACE [org.starpound.fs.events.FSEventFactory] (pool-1121-thread-1:) Enter parseEventPlain...2010-08-26 10:45:00,707 80563673 TRACE [org.starpound.fs.events.FSEventFactory] (pool-1121-thread-1:) Enter parseHeaders...2010-08-26 10:45:00,707 80563673 DEBUG [org.starpound.fs.events.FSEventFactory] (pool-1121-thread-1:) Parsed event:org.starpound.fs.events.FSHeartbeat     Event headers:{Content-Length=643, Content-Type=text/event-plain}2010-08-26 10:45:00,707 80563673 DEBUG [org.starpound.fs.EventSocketListener] (pool-1121-thread-1:) org.starpound.fs.events.FSHeartbeat Event headers:{Content-Length=643, Content-Type=text/event-plain}2010-08-26 10:45:00,707 80563673 TRACE [org.starpound.fs.EventSocketListener] (pool-1121-thread-1:) Enter dispatchFSEvent...2010-08-26 10:45:00,707 80563673 TRACE [org.starpound.fs.EventSocketListener] (pool-1121-thread-1:) Enter parseFSEvent...2010-08-26 10:45:00,707 80563673 TRACE [org.starpound.fs.events.FSEventFactory] (pool-1121-thread-1:) Enter createEvent...2010-08-26 10:45:00,707 80563673 TRACE [org.starpound.fs.events.FSEventFactory] (pool-1121-thread-1:) Enter parseHeaders...  

epetrova's picture

you should change

you should change xml_curl.conf.xml file too

Thanks,
Evgenia

birvin's picture

 I did.  The

 I did.  The xml_curl.conf.xml file has the IP of my StarPound App Server (.172)

epetrova's picture

try to re-run SP installer

try to re-run SP installer with new FS settings

Thanks,
Evgenia

birvin's picture

 I re-installed StarPound

 I re-installed StarPound Core, StarPound Call Center and StarPound PBX.  SIP Phone still cannot connect and I'm getting the same messages in the server.log file.

2010-08-26 12:23:47,428 WARN  [org.jgroups.protocols.pbcast.NAKACK] 10.4.4.172:54170] discarded message from non-member 10.4.4.35:33925, my view is [10.4.4.172:53765|1] [10.4.4.172:53765, 10.4.4.172:54170]2010-08-26 12:23:47,428 WARN  [org.jgroups.protocols.pbcast.NAKACK] 10.4.4.172:53765] discarded message from non-member 10.4.4.35:33925, my view is [10.4.4.172:53765|1] [10.4.4.172:53765, 10.4.4.172:54170]  Also, my old server (.35) is still running.  I just built another starpound server on a stronger server.  So why would my old server(.35) send messages to my new server (.172)

birvin's picture

 I think that the messages

 I think that the messages from my old server (.35) were going to my new server because they both had the same Channel Name.  I changed the Channel name on my new server and the messages are no longer being sent to my new server (.172).  But my SIP Phone still doesn't connect to my new Freeswitch Server (.174)

wwang's picture

 If xml_curl is configured

 If xml_curl is configured correctly, FS will send XML message to StarPound upon receiving REGISTER message. So you might want to run 'tcpdump' on FS server and see if there is any traffic to StarPound server (port: 8080) when SIP phone is registering to FS server.

maartendm's picture

Just to make sure, you did a

Just to make sure, you did a reloadxml after the changes on FS ?

birvin's picture

 I run the command tcpdump

 I run the command tcpdump tcp port 8080 on both my new Freeswitch Server and my New StarPound app server and I don't see any messages on either server.  When I run the same command on my old Freeswitch Server and my old StarPound App Server, I still don't see any messages, but my SIP phone successfully connects to the old setup when I change the IP to my old Freeswitch Server.

When I configured my xml_curl.conf.xml file, I just put the IP of my App Server and the Web Port of my App Server.  Unless there is something else I have to do to this file, it seems to be configured correctly.

 

I'm missing something, but I can't figure it out at the moment.

wwang's picture

Try this tcpdump

Try this tcpdump command:

tcpdump -i any -Annn -s 0 tcp and port 8080

 

BTW, when you building the new FS server from freeswitch source, did you modify 'modules.conf' and uncomment line 'xml_int/mod_xml_curl'?

wwang's picture

 Also make sure xml_curl

 Also make sure xml_curl module is enalbed in autoload_configs/modules.conf.xml:

<load module="mod_xml_curl"/>

 

birvin's picture

I reinstalled freeswitch with

I reinstalled freeswitch with 'xml_int/mod_xml_curl' uncommented.  I also made sure that <load module="mod_xml_curl"/> was uncommented in autoload_configs/modules.conf.xml.  I ran the above command while my SIP Phone was trying to connect and I didn't see any messages.  I ran the command on both my freeswitch server and my app server.  My SIP Phone still didn't connect.

 

 

wwang's picture

 Try this, modify

 Try this, modify xml_curl.conf.xml and change the server name to an invalid IP address. Restart FS and see if FS generate any error.

wwang's picture

 Also double check

 Also double check freeswitch.log. You should see something similar to this:

2010-08-28 08:02:54.807390 [NOTICE] mod_xml_curl.c:525 Binding [directory fetcher] XML Fetch Function [http://localhost:8080/runtime-web/userRegistration] [directory]

birvin's picture

 I see the above entry in the

 I see the above entry in the freeswitch.log file:

2010-08-30 13:26:24.905885 [NOTICE] mod_xml_curl.c:525 Binding [directory fetcher] XML Fetch Function [http://10.4.4.172:8080/runtime-web/userRegistration] [directory]

 I changed the xml_curl.conf.xml to have an invalid IP address and I see the following errors in Freeswitch:2010-08-30 13:39:11.402918 [ERR] mod_xml_curl.c:304 Received HTTP error 0 trying to fetch http://10.4.4.888:8080/runtime-web/userRegistrationdata: [hostname=atldevaps04cl.uss.net&section=directory&tag_name=domain&key_name=name&key_value=10.4.4.174&Event-Name=GENERAL&Core-UUID=02e73715-2876-4419-9627-56091254e013&FreeSWITCH-Hostname=atldevaps04cl.uss.net&FreeSWITCH-IPv4=10.4.4.174&FreeSWITCH-IPv6=%3A%3A1&Event-Date-Local=2010-08-30%2013%3A39%3A11&Event-Date-GMT=Mon,%2030%20Aug%202010%2017%3A39%3A11%20GMT&Event-Date-Timestamp=1283189951399624&Event-Calling-File=switch_core.c&Event-Calling-Function=switch_load_network_lists&Event-Calling-Line-Number=1060&domain=10.4.4.174&purpose=network-list] 

wwang's picture

 Alright, your xml_curl

 Alright, your xml_curl configuration should be correct. If you register SIP phone to this server, did you see in the freeswitch.log regarding the phone registration?

birvin's picture

 I don't see any entries in

 I don't see any entries in the freeswitch.log regarding the phone registration.

epetrova's picture

do you even now have

do you even now have "Registration Error: 501 - Not Implemented" error when you try to register your phone or you have another error?

Thanks,
Evgenia

birvin's picture

 I removed Voxeo from my

 I removed Voxeo from my Freeswitch Server and put it on my StarPound App Server.  Now I get "Registration error: 408 - Request Timeout".

birvin's picture

 My SIP Phone is connected

 My SIP Phone is connected now.  I was using the latest version of Freeswitch.  I went back and installed 1.0.6 and it connected just fine.

 

Brian

birvin's picture

 Oops!  Spoke to soon. I look

 Oops!  Spoke to soon.

I look in the server.log file and see the error below:

 

2010-09-01 16:10:05,179 INFO  [org.starpound.fs.FSConnectionManager] Connection to FreeSwitch has been set up

2010-09-01 16:10:05,181 WARN  [org.starpound.fscc.FreeSwitchCallControlImpl] Can't get alive channells because of: java.lang.ClassCastException: org.starpound.fs.events.FSDisconnected cannot be cast to org.starpound.fs.events.FSJob

When I use my SIP Phone to call my 10-digit LMQ for one of my Applications, the SIP phone displayes "Call Established" and the Freeswitch console displays the messages below, but I don't hear anything: freeswitch@atldevaps04cl.uss.net> 2010-09-01 16:17:15.941122 [NOTICE] switch_channel.c:669 New Channel sofia/internal/1005@10.4.4.174 [e4c80c5b-5578-49ff-b3d8-67260573ef12]2010-09-01 16:17:15.948132 [INFO] mod_dialplan_xml.c:418 Processing 1005->6785551008 in context default2010-09-01 16:17:15.966300 [NOTICE] mod_dptools.c:719 Channel [sofia/internal/1005@10.4.4.174] has been answered   Also, my .wav files do not get copied onto my freeswitch server.  The directory on my freeswitch server has read and write access. Seems like I have a few issues going on here.

 

birvin's picture

 When I reinstalled

 When I reinstalled Freeswitch, I deleted the /usr/local/freeswitch directory and installed version 1.0.6.  Is there another directory I was supposed to delete?

epetrova's picture

No, you don't need to delete

No, you don't need to delete anything more

Thanks,
Evgenia

birvin's picture

 Do you know why I'm getting

 Do you know why I'm getting the ClassCastException above?

wwang's picture

 Voxeo will take over range

 Voxeo will take over range of UDP port staring from 5060 so unless you reconfigure FS to use other ports, your registration request could be processed by Voxeo and not by FS.

birvin's picture

Are you referring to the

Are you referring to the register request because I can register my SIP Phone successfully and according to the server.log file, the connection to freeswitch has been successful ... well until it gets the ClassCastException:

 

010-09-01 18:50:00,693 INFO  [org.starpound.fs.FSConnectionManager] Connection to FreeSwitch has been set up2010-09-01 18:50:00,695 WARN  [org.starpound.fscc.FreeSwitchCallControlImpl] Can't get alive channells because of: java.lang.ClassCastException: org.starpound.fs.events.FSDisconnected cannot be cast to org.starpound.fs.events.FSJob  So why am I getting the ClassCastException?Isn't Freeswitch using port 8021?

wwang's picture

  If you want to use your SIP

 

If you want to use your SIP phone to call local 10digits launching media queue, it is not going to work.

Depends on how the SIP phone registered as, it works differently upon dialing the 10digit number.

If the phone is registered as agent phone (domain as <orgname>.agent.example.com), dialing from SIP phone is not allowed, All agents need to login to WIC and dial *98<agent_ext>. After that,  the agnet can use WIC dial pad to make outbound call.

If the phone is registered as pbx phone (domain as <orgname>.pbx.example.com), dialing from SIP phone should invoke pbx process. You can see detail dialplan in dialplan/default/00_starpound.xml. 

If you want the outbound 10 digit dialing from pbx SIP phone to loopback invoking starpound process, you either need a external SIP router (kamailio for example) to route the traffic back, or you have to change FS dialplan to loop back the call.

wwang's picture

 Regarding the

 Regarding the ClassCastException, per suggestion of our developer, please shutdown both starpound server and freeswitch, clean all log files and start them up again. If this error occurred again, describe what operations have been done and attache server.log and fs_cc.log. 

birvin's picture

 Attached are the requested

 Attached are the requested log files.

epetrova's picture

you have wrong

you have wrong FS password.

check one parameter in three files:
[FS_Home]/conf/autoload_configs/event_socket.conf.xml   the line <param name="password" value="FS_password"/>
[Jboss_Home]/server/default/deploy/starpound-appserver/runtime.ear/FreeSwitchCallControl.jar/org\starpound\fscc\fs.properties the line inbound_password=FS_password
[Jboss_Home]/server/default/deploy/\starpound-agserver/AgentServer.ear/FreeSwitchCallControl.jar/org\starpound\fscc\fs.properties the line inbound_password=FS_password

there must be the same FS_password (by default ClueCon) in all three files

Thanks,
Evgenia

wwang's picture

You can also change the

You can also change the password in event_socket.xml.conf and restart FS.

birvin's picture

 Thanks.  That worked. I'm

 Thanks.  That worked.

I'm now working with Voxeo on my VXML issue.

birvin's picture

When starting Voxeo/Prophecy,

When starting Voxeo/Prophecy, the Service Control Manager fails to start.  So Voxeo Support told me to set the environment the following environment variable:

export LD_LIBRARY_PATH=/opt/voxeo:$LD_LIBRARY_PATH

Then to run VCS.  I get the following message:

VCS - Voice Center ServerCopyright � 1999-2009 Voxeo CorporationWarning: priority for real-time thread is not set. TBD./VCS: symbol lookup error: /opt/voxeo/libctstreaming.so.0: undefined symbol: lame_decoder_init

Service Control Manager (SCM) Fails to start.

 

Then they told me to remove lame.  In the StarPound documentation, lame is needed to run StarPound PBX and Campaign Builder.

Do you have any other suggestions to get my SCM to work?

 

Brian

wwang's picture

 Can you install Voxeo server

 Can you install Voxeo server on a separate machine? I always had hard time to make them running on the same server.

birvin's picture

 I installed it on a separate

 I installed it on a separate machine and it worked fine.

 

Thanks,
Brian

epetrova's picture

Tell task and IVR Play task

Tell task and IVR Play task are differet tasks so they pull .wav from different locations

Thanks,
Evgenia