issue with connecting of FS node

1,155 views
Skip to first unread message

Yuriy Nasida

unread,
Oct 26, 2012, 5:27:01 PM10/26/12
to 2600h...@googlegroups.com
All things is installed on same server.

My ecallmgr doc:

{
   "_id": "ecallmgr",
   "_rev": "22-956b0338cb415bad8d878433944fb3ee",
   "default": {
       "default": {
           "fs_nodes": [
               "frees...@mykazoo.domain.com"
           ],
           "fs_cmds": [
               {
                   "load": "mod_sofia"
               }
           ]
       }
   }
}

I look at fs_cli but mod_sofia is not loaded.
freeswitch@internal> sofia status
-ERR sofia status Command not found!

Also I check via sup command:
sup -n ecallmgr ecallmgr_config get fs_nodes
undefined

[root@mykazoo autoload_configs]# hostname -f

<configuration name="erlang_event.conf" description="Erlang Socket Client">
    <settings>
        <param name="listen-ip" value="0.0.0.0"/>
        <param name="listen-port" value="8031"/>
        <param name="cookie-file" value="/etc/freeswitch/autoload_configs/.erlang.cookie" />
        <param name="shortname" value="false"/>
        <param name="nodename" value="frees...@mykazoo.domain.com" />


I really did /opt/kazoo/utils/sup/sup whapps_config flush && /opt/kazoo/utils/sup/sup whapps_controller restart_app crossbar && /opt/kazoo/utils/sup/sup stepswitch_maintenance reload_resources  after changes of DB.

So FS is started but kazoo doesn't see FS. How can I debug and fix this ? Please advice.

Thanks.

James Aimonetti

unread,
Oct 26, 2012, 5:54:01 PM10/26/12
to 2600h...@googlegroups.com
What is the output of:

sup -n ecallmgr ecallmgr_maintenance list_fs_nodes

If no nodes are listed, try adding the node manually with:

sup -n ecallmgr ecallmgr_maintenance add_fs_node 'frees...@mykazoo.domain.com'

and check the list_fs_nodes command again to see if it added the node.

You can also check FreeSWITCH, in the cli, with:

erlang listeners

which should list the ecallmgr nodes connected to FreeSWITCH.


On Sat, 27 Oct 2012 01:27:01 +0400
Yuriy Nasida <nas...@live.ru> wrote:

>
> All things is installed on same server.
> My ecallmgr doc:
> {
> "_id": "ecallmgr",
> "_rev": "22-956b0338cb415bad8d878433944fb3ee",
> "default": {
> "default": {
> "fs_nodes": [
> "frees...@mykazoo.domain.com"
> ],
> "fs_cmds": [
> {
> "load": "mod_sofia"
> }
> ]
> }
> }
> }
> I look at fs_cli but mod_sofia is not loaded.freeswitch@internal> sofia
> status-ERR sofia status Command not found! Also I check via sup command:sup
> -n ecallmgr ecallmgr_config get fs_nodesundefined [root@mykazoo
> autoload_configs]# hostname -fmykazoo.domain.com <configuration
> name="erlang_event.conf" description="Erlang Socket Client">
> <settings> <param name="listen-ip" value="0.0.0.0"/> <param
> name="listen-port" value="8031"/> <param name="cookie-file"
> value="/etc/freeswitch/autoload_configs/.erlang.cookie" /> <param
> name="shortname" value="false"/> <param name="nodename"
> value="frees...@mykazoo.domain.com" />
>
> I really did /opt/kazoo/utils/sup/sup whapps_config flush
> && /opt/kazoo/utils/sup/sup whapps_controller restart_app crossbar
> && /opt/kazoo/utils/sup/sup stepswitch_maintenance reload_resources after
> changes of DB. So FS is started but kazoo doesn't see FS. How can I debug and
> fix this ? Please advice. Thanks.
>


--
James Aimonetti
Distributed Systems Engineer / DJ MC_

2600hz | http://2600hz.com
sip:ja...@2600hz.com
tel: 415.886.7905
signature.asc

Yuriy Nasida

unread,
Oct 26, 2012, 6:09:06 PM10/26/12
to 2600h...@googlegroups.com
Thanks a lot James !

I have fs_node after manually adding
sup -n ecallmgr ecallmgr_maintenance add_fs_node 'frees...@mykazoo.domain.com'

sup -n ecallmgr ecallmgr_maintenance list_fs_nodes

Also
freeswitch@internal> erlang listeners
Listener to ecal...@mykazoo.domain.com with 0 outbound sessions

Looks good, but mod_sofia still is not started.
freeswitch@internal> sofia status
-ERR sofia status Command not found!

Now I have a bit other ecallmgr doc

{
   "_id": "ecallmgr",
   "_rev": "30-d8fad743ec408f4ce41fa7f7d329d72c",
   "default": {
       "default": {
           "fs_nodes": [
               "frees...@mykazoo.domain.com"
           ],
           "fs_cmds": [
               {
                   "load": "mod_sofia"
               }
           ]
       },
       "fs_nodes": null,
       "fs_cmds": null,
       "distribute_presence": true,
       "distribute_message_query": true
   }
}

May be I have to change anything alse ?

Thanks.


> Date: Fri, 26 Oct 2012 14:54:01 -0700
> From: ja...@2600hz.com
> To: 2600h...@googlegroups.com
> Subject: Re: issue with connecting of FS node

James Aimonetti

unread,
Oct 26, 2012, 6:17:29 PM10/26/12
to 2600h...@googlegroups.com
You need to un-nest the fs_nodes/fs_cmds stuff.

{
"_id":"ecallmgr"
,"default":{
"fs_cmds":[{"load":"mod_sofia"}]
,"fs_nodes":["frees...@mykazoo.domain.com"]
}
}

You can load sofia manually in the FreeSWITCH cli though, right?

On Sat, 27 Oct 2012 02:09:06 +0400
Yuriy Nasida <nas...@live.ru> wrote:

>
> Thanks a lot James !
> I have fs_node after manually addingsup -n ecallmgr ecallmgr_maintenance
> add_fs_node 'frees...@mykazoo.domain.com' sup -n ecallmgr
> ecallmgr_maintenance list_fs_nodes['frees...@mykazoo.domain.com']
> Alsofreeswitch@internal> erlang listenersListener to
> ecal...@mykazoo.domain.com with 0 outbound sessions Looks good, but
> mod_sofia still is not started.freeswitch@internal> sofia status-ERR sofia
> status Command not found! Now I have a bit other ecallmgr doc { "_id":
signature.asc

Yuriy Nasida

unread,
Oct 26, 2012, 6:59:15 PM10/26/12
to 2600h...@googlegroups.com
wow! now sofia module does start automatically and my softphone are registered :)
Great! But.. last thing for today. kazoo UI doesn't show that softphone is registered meanwhile as fs_cli says it is so.


> Date: Fri, 26 Oct 2012 15:17:29 -0700

Joshua Goldbard

unread,
Oct 26, 2012, 7:00:22 PM10/26/12
to <2600hz-dev@googlegroups.com>
I'll let our team chime in on this, but have you tried refreshing? Sorry if you've already done so.

Cheers,
Joshua

Sent from my iPad

Yuriy Nasida

unread,
Oct 26, 2012, 7:04:45 PM10/26/12
to 2600h...@googlegroups.com
NP. Sure I tried refreshing. Still same result.

Thanks.


To: 2600h...@googlegroups.com
Subject: Re: issue with connecting of FS node
Date: Fri, 26 Oct 2012 23:00:22 +0000

Yuriy Nasida

unread,
Oct 26, 2012, 7:49:26 PM10/26/12
to 2600h...@googlegroups.com
Fixed after full restarting of server. 


From: nas...@live.ru
To: 2600h...@googlegroups.com
Subject: RE: issue with connecting of FS node
Date: Sat, 27 Oct 2012 03:04:45 +0400

Darren Schreiber

unread,
Oct 27, 2012, 2:38:10 PM10/27/12
to 2600h...@googlegroups.com
Can you check under Hosted PBX / Registrations please? Does it list there?

--
Darren Schreiber
CEO / Co-Founder


 visit: www.2600hz.com
 tel: 415-886-7901

Joshua Goldbard

unread,
Oct 27, 2012, 2:47:59 PM10/27/12
to <2600hz-dev@googlegroups.com>, 2600h...@googlegroups.com
Darren,

This was resolved with a restart yesterday.

Cheers,
Joshua

Sent from my iPad

On Oct 27, 2012, at 11:38 AM, "Darren Schreiber" <dar...@2600hz.com> wrote:

Can you check under Hosted PBX / Registrations please? Does it list there?

--
<773BD915-519F-42B9-8DB7-78EE7BD2EAC4[6].png>
 tel: 415-886-7901

Darren Schreiber

unread,
Oct 27, 2012, 2:48:57 PM10/27/12
to 2600h...@googlegroups.com
I'm so slow! Thanks all :-)

--
Darren Schreiber
CEO / Co-Founder


 visit: www.2600hz.com
 tel: 415-886-7901

Reply all
Reply to author
Forward
0 new messages