pchero / asterisk-zmq

zmq/json support asterisk AMI module. (zeromq, 0MQ)
16 stars 7 forks source link

Installation problem #10

Open pchero opened 8 years ago

pchero commented 8 years ago

Moved from #9


Hi Sungtae,

Hope you are doing well.
facing some error while installing Install zmq-manager on Centos 6.7

Below are the Error reports

src/res_zmq_manager.c: In function 'zmq_cmd_thread':
src/res_zmq_manager.c:283: warning: implicit declaration of function 'zmq_msg_recv'
src/res_zmq_manager.c:301: warning: passing argument 2 of 'zmq_send' from incompatible pointer type
/usr/include/zmq.h:229: note: expected 'struct zmq_msg_t *' but argument is of type 'char *'
src/res_zmq_manager.c:301: error: too many arguments to function 'zmq_send'
src/res_zmq_manager.c:313: warning: passing argument 2 of 'zmq_send' from incompatible pointer type
/usr/include/zmq.h:229: note: expected 'struct zmq_msg_t *' but argument is of type 'char *'
src/res_zmq_manager.c:313: error: too many arguments to function 'zmq_send'
src/res_zmq_manager.c: In function '_load_module':
src/res_zmq_manager.c:449: warning: implicit declaration of function 'zmq_ctx_new'
src/res_zmq_manager.c:449: warning: assignment makes pointer from integer without a cast
src/res_zmq_manager.c: In function 'load_module':
src/res_zmq_manager.c:518: warning: passing argument 2 of 'zmq_send' from incompatible pointer type
/usr/include/zmq.h:229: note: expected 'struct zmq_msg_t *' but argument is of type 'char *'
src/res_zmq_manager.c:518: error: too many arguments to function 'zmq_send'
src/res_zmq_manager.c: In function 'zmq_evt_helper':
src/res_zmq_manager.c:707: warning: passing argument 2 of 'zmq_send' from incompatible pointer type
/usr/include/zmq.h:229: note: expected 'struct zmq_msg_t *' but argument is of type 'char *'
src/res_zmq_manager.c:707: error: too many arguments to function 'zmq_send'
pchero commented 8 years ago

You seems like installed the zmq-2.x. But the asterisk-zmq needs the zmq-3.x.

Please try again with libzmq-3.x. :)

mbmannubisht commented 8 years ago

Issue fixed bro..

Thanks for your support

pchero commented 8 years ago

You're welcome! ;)

mbmannubisht commented 8 years ago

but bro one more issue i am facing .

IS-51433_CLI> IS-51433_CLI> IS-51433_CLI> IS-51433_CLI> zmq manager status No such command 'zmq manager status ' (type 'core show help zmq manager' for other possible commands)

No zmq manager status ----

pchero commented 8 years ago

It seems like you didn't load the module.

type the "modue show" from the asterisk cli. Plus, you will need to configure your asterisk-zmq configuration file.

Please read README file. :)

mbmannubisht commented 8 years ago

One more problem problem.

when load from asterisk console ,below are the ERROR we received

IS-51433*CLI> module load res_zmq_manager.so Unable to load module res_zmq_manager.so Command 'module load res_zmq_manager.so ' failed. [Jun 20 14:41:43] WARNING[4304]: loader.c:564 load_dynamic_module: Error loading module 'res_zmq_manager.so': /usr/lib64/asterisk/modules/res_zmq_manager.so: undefined symbol: zmq_msg_recv

[Jun 20 14:41:43] WARNING[4304]: loader.c:1038 load_resource: Module 'res_zmq_manager.so' could not be loaded.

pchero commented 8 years ago

I can see the problem. :)

See the http://zeromq.org/distro:centos and install the zeromq-devel for the zmq-3.x

mbmannubisht commented 8 years ago

Already installed zeromq-3.2.5.tar.gz Is this version is suitable or not

pchero commented 8 years ago

It's suitable version of zmq. The problem is very simple. The Asterisk could not find the libzmq.so(libzmq-3.x) file.

Normally, it happens if you install the zeromq-3.x manually. You need *.so file either. And the Asterisk should get reach of them.

mbmannubisht commented 8 years ago

Hope you are doing well.

We are facing same issue till now. Below are the logs details:

IS-51433*CLI> zmq manager status No such command 'zmq manager status ' (type 'core show help zmq manager' for other possible commands) Below are the details of Installed software on Centos 6.7 Server. 1) pjproject-2.3 2) Asterisk Asterisk 13.1-cert2 3) asterisk-zmq 4) zeromq-3.2.5 5) libevhtp-1.2.10 6) libzmq 7) libevent-2.0.21-stable

Please let me know any issue from my end if done how to fix it now.

pchero commented 8 years ago

Hi,

It seems like you didn't load the module. To use the module, first of all, you need to load the module.

Please read the README. And if there's problem, when you loading the module, please put the your error log at here. :)

USAGE:

Thank you.

Kind regards, Sungtae

On 06/21/2016 09:22 AM, Manoj Bisht wrote:

Hope you are doing well.

We are facing same issue till now. Below are the logs details:

IS-51433*CLI> zmq manager status No such command 'zmq manager status ' (type 'core show help zmq manager' for other possible commands) Below are the details of Installed software on Centos 6.7 Server. 1) pjproject-2.3 2) Asterisk Asterisk 13.1-cert2 3) asterisk-zmq 4) zeromq-3.2.5 5) libevhtp-1.2.10 6) libzmq 7) libevent-2.0.21-stable

Please let me know any issue from my end if done how to fix it now.

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/pchero/asterisk-zmq/issues/10#issuecomment-227360789, or mute the thread https://github.com/notifications/unsubscribe/AEWor3lVA0xKOo3M2FmscLaSDd_TT3zVks5qN5FKgaJpZM4I5rnf.

mbmannubisht commented 8 years ago

Hi,

Done all the required changes. Still facing ERROR , See Error Logs

IS-51433*CLI> module load res_zmq_manager.so Unable to load module res_zmq_manager.so Command 'module load res_zmq_manager.so ' failed. [Jun 21 08:50:33] WARNING[31004]: loader.c:564 load_dynamic_module: Error loading module 'res_zmq_manager.so': /usr/lib64/asterisk/modules/res_zmq_manager.so: undefined symbol: zmq_msg_recv [Jun 21 08:50:33] WARNING[31004]: loader.c:1038 load_resource: Module 'res_zmq_manager.so' could not be loaded.

pchero commented 8 years ago

Good. :)

But the it's again. It's same problem like yesterday.

The problem is very simple. The Asterisk could not find the
libzmq.so(libzmq-3.x) file.

Normally, it happens if you install the zeromq-3.x manually. You
need *.so file either. And the Asterisk should get reach of them.

On 06/21/2016 09:55 AM, Manoj Bisht wrote:

Hi,

Done all the required changes. Still facing ERROR , See Error Logs

IS-51433*CLI> module load res_zmq_manager.so Unable to load module res_zmq_manager.so Command 'module load res_zmq_manager.so ' failed. [Jun 21 08:50:33] WARNING[31004]: loader.c:564 load_dynamic_module: Error loading module 'res_zmq_manager.so': /usr/lib64/asterisk/modules/res_zmq_manager.so: undefined symbol: zmq_msg_recv [Jun 21 08:50:33] WARNING[31004]: loader.c:1038 load_resource: Module 'res_zmq_manager.so' could not be loaded.

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/pchero/asterisk-zmq/issues/10#issuecomment-227367054, or mute the thread https://github.com/notifications/unsubscribe/AEWor1JVLGk8AqpaU9ESswyCl70ibY5kks5qN5jYgaJpZM4I5rnf.

mbmannubisht commented 8 years ago

Should I have to install libzmq.so(libzmq-3.x) file using update command or higher stable version like libzmq-4.x. I am not getting above point You need *.so file either. And the Asterisk should get reach of them

pchero commented 8 years ago

Try install libzmq-devel(3.x or 4.x) using yum upgrade/install. That gonna be working for you. :)

On 06/21/2016 10:35 AM, Manoj Bisht wrote:

Should I have to install libzmq.so(libzmq-3.x) file using update command or higher stable version like libzmq-4.x. I am not getting above point You need *.so file either. And the Asterisk should get reach of them

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/pchero/asterisk-zmq/issues/10#issuecomment-227375773, or mute the thread https://github.com/notifications/unsubscribe/AEWor22Ugu5dIzq0XP_mpzRJS0lHwd2bks5qN6JXgaJpZM4I5rnf.

mbmannubisht commented 8 years ago

Hi Sungtae,

Really you are genius after rebooting its fix now.

IS-51433*CLI> zmq manager status [cmd address: tcp://:967] [evt address: tcp://:968]

Now I am getting below error while running python script [root@IS-51433 asterisk-zmq]# python samples/evt_receiver.py Traceback (most recent call last): File "samples/evt_receiver.py", line 1, in import zmq ImportError: No module named zmq

mbmannubisht commented 8 years ago

Hi Sungtae,

I have done db part now How do i install bmake or pmake in src folder Is there any web interface to check in gui mode.

Can you please share last steps:

Database cd db_scripts mysql -u root -p olive < create.sql

Above part is done

source cd src bmake or pmake -----not done ----

[root@IS-51433 src]# bmake -bash: bmake: command not found [root@IS-51433 src]# pmake -bash: pmake: command not found

waiting for your revert bro

mbmannubisht commented 8 years ago

Hi Sungtae,

Please update me . waiting for your response.

pchero commented 8 years ago

You need to install the bmake package. Try this. :)

$ yum install bmake

mbmannubisht commented 8 years ago

Hi ,

What about centos 6.7 ..?

Getting below message [root@IS-51433 samples]# yum install bmake Loaded plugins: fastestmirror Setting up Install Process Loading mirror speeds from cached hostfile

pchero commented 8 years ago

Hm,

I couldn't find proper bmake rpm packages for the centos-6.7. But, btw, are you installing the asterisk-outbound module?

Have you read the wiki page for the asterisk-outbound module?

It's not completed yet..

On 06/22/2016 10:32 AM, Manoj Bisht wrote:

Hi ,

What about centos 6.7 ..?

Getting below message [root@IS-51433 samples]# yum install bmake Loaded plugins: fastestmirror Setting up Install Process Loading mirror speeds from cached hostfile

  • base: mirrors.coreix.net
  • epel: mirrors.coreix.net
  • extras: centos.hyve.com
  • updates: centos.hyve.com No package bmake available. Error: Nothing to do

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/pchero/asterisk-zmq/issues/10#issuecomment-227677752, or mute the thread https://github.com/notifications/unsubscribe/AEWor_TZY27D2voMlnA_FZ8eVZL1WKioks5qOPMAgaJpZM4I5rnf.

mbmannubisht commented 8 years ago

This module is not completed . Should i go with asterisk-outbound module what about pchero (olive) outbound dialer .. Can you please suggest the right path of complete installation. I am bit confused

pchero commented 8 years ago

Hm..

Don't use the olive. I don't fix the olive anymore..

And it would be good idea to read the wiki and README files.

olive : it supports only progressive dialing. But not good quality. And it's really hard to install and set it up. - deprecated. I don't manage this anymore. asterisk-zmq : It's zmq-json module for asterisk. It's working correctly. asterisk-outbound : It's much more easier to install than the olive. But it supports only progressive dialing mode. And not good quality.

On 06/22/2016 11:24 AM, Manoj Bisht wrote:

This module is not completed . Should i go with asterisk-outbound module what about pchero outbound dialer .. Can you please suggest the right path of complete installation. I am bit confused

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/pchero/asterisk-zmq/issues/10#issuecomment-227689807, or mute the thread https://github.com/notifications/unsubscribe/AEWor2Dto54SeMLhgW472TrkYOUd_O0rks5qOP84gaJpZM4I5rnf.

mbmannubisht commented 8 years ago

Thanks for your suggestion Sungtae.

I have successfully installed asterisk-zmq. I have installed olive but unable to compile it ,already share you the logs. Please guide me how to gui access in asterisk-zmq. Also share we required to install asterisk-outbound etc

Logs Share : [root@IS-51433 asterisk-zmq]# python samples/evt_receiver.py Connecting to server... Connected!

pchero commented 8 years ago

There's no gui for the asterisk-zmq... It's support module for some another applications.

I found some of bmake packages for the fedora cores but no packages for the centos-6.7. May you could try these. http://rpmfind.net/linux/rpm2html/search.php?query=bmake&submit=Search+...

After install the bmake, then you could trying compile and install it. But it requires more manual job either which is long way to go.

Now, I'm just started again to fix the code to make it easy. But it will takes long time... May you could expect some updated wiki soon.

But for right now, it also good way to find another outbound module for the Asterisk..

Sorry, I had very busy time meanwhile. :P

On 06/22/2016 11:44 AM, Manoj Bisht wrote:

Thanks for your suggestion Sungtae.

I have successfully installed asterisk-zmq. I have installed olive but unable to compile it ,already share you the logs. Please guide me how to gui access in asterisk-zmq. Also share we required to install asterisk-outbound etc

Logs Share : [root@IS-51433 asterisk-zmq]# python samples/evt_receiver.py Connecting to server... Connected!

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/pchero/asterisk-zmq/issues/10#issuecomment-227694967, or mute the thread https://github.com/notifications/unsubscribe/AEWor_0rHImnMR2JBVZ-Di230MGPVNeMks5qOQQQgaJpZM4I5rnf.

mbmannubisht commented 8 years ago

Hi Sungtae ,

Many thanks for your support or guide. I really appreciated your positive effort here when i faced issue with code. I have very simple requirement. I need only broadcasting outbound call in asterisk. if possible it will some gui based to monitor live calls, outgoing dialled number details etc. Do you have any running or stable source code for this requirement. Or can you share some good source code links .

Waiting for your response

pchero commented 8 years ago

As I know, there's no easy way to make this. Simply, it's not simple.

Because below reasons.

It's really hard to implement. And I couldn't find suitable open source solution for this. That's why I stated this..

And I have some code but it's not for open it up.. Not ready for commit. After some test and more fixing, then I could submit. :)

On 06/22/2016 12:06 PM, Manoj Bisht wrote:

Hi Sungtae ,

Many thanks for your support or guide. I really appreciated your positive effort here when i faced issue with code. I have very simple requirement. I need only broadcasting outbound call in asterisk. if possible it will some gui based to monitor live calls, outgoing dialled number details etc. Do you have any running or stable source code for this requirement. Or can you share some good source code links .

Waiting for your response

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/pchero/asterisk-zmq/issues/10#issuecomment-227699998, or mute the thread https://github.com/notifications/unsubscribe/AEWor2WNpyVSlFEw5E63-TZ26f3PA3_2ks5qOQk_gaJpZM4I5rnf.