tag:blogger.com,1999:blog-7979378259821020425.post8277396650827364598..comments2024-01-31T05:01:09.874-08:00Comments on SaevolGo: Installing OpenSIPS on Ubuntu-Server 11.04 (Natty)Unknownnoreply@blogger.comBlogger30125tag:blogger.com,1999:blog-7979378259821020425.post-31219979317462523182014-11-12T02:23:41.740-08:002014-11-12T02:23:41.740-08:00Hi Gohar Ahmed,
I install opensip1.11 and mysql 5...Hi Gohar Ahmed,<br /><br />I install opensip1.11 and mysql 5.5(server/client) everything work fine but when i try to create database for opensips like your step. I can't find the directory<br /><br /> "" root@asterisk11:~# cd /usr/local/etc/<br />root@asterisk11:/usr/local/etc# ls <br />root@asterisk11:/usr/local/etc# ls -l<br />total 0<br />root@asterisk11:/usr/local/etc# ""<br /><br />it appear that not have "opensips and opensipsctlrc" in this directory.<br /><br />Did i miss some step or done somethings wrong?<br />Please help me Sir.=3= Chai-z =3=https://www.blogger.com/profile/05206461922220361918noreply@blogger.comtag:blogger.com,1999:blog-7979378259821020425.post-14336409893100406352014-11-11T06:19:31.991-08:002014-11-11T06:19:31.991-08:00Hi Gohar,
I have already setup OpenSIPS on Ubuntu...Hi Gohar,<br /><br />I have already setup OpenSIPS on Ubuntu 12.04. Everything looks good so far since the opensips control panel is accessible. I am able to add a domain and users with no issues and they all show up on the actual database in the server. <br /><br />Currently I am running into issues using Zoiper and 3CX apps to add users to make some test calls. Looks to be like a communication issue. I turned off firewalls and such.<br /><br />What i noticed in my setup when starting opensips with /etc/init.d/opensips start, it shows as "already running" and when I do /etc/init.d/opensips status, it says that it is not running.<br /><br />My logs don't really show much either. <br /><br />Any input would be greatly appreciated and thank you very much for your help!<br /><br />- jota jota19noreply@blogger.comtag:blogger.com,1999:blog-7979378259821020425.post-60546007130111264242014-09-24T06:10:16.669-07:002014-09-24T06:10:16.669-07:00Hey, You need to see what error your OpenSIPS is p...Hey, You need to see what error your OpenSIPS is printing in the syslog/messages log file. That's why it is failing to start up.Gohar Ahmedhttps://www.blogger.com/profile/00614288169644917715noreply@blogger.comtag:blogger.com,1999:blog-7979378259821020425.post-12884014304623164242014-09-24T02:08:02.856-07:002014-09-24T02:08:02.856-07:00Hi,
any advise how can i solve this issue?
[root...Hi,<br /><br />any advise how can i solve this issue?<br /><br />[root@mawar1 ~]# opensipsctl restart<br /><br />INFO: Restarting OpenSIPS :<br />ERROR: No PID file found (/var/run/opensips/opensips.pid)! OpenSIPS probably not running<br />INFO: Starting OpenSIPS :<br />ERROR: PID file /var/run/opensips/opensips.pid does not exist -- OpenSIPS start failed<br /><br />thxMLMhttps://www.blogger.com/profile/00579208085208848139noreply@blogger.comtag:blogger.com,1999:blog-7979378259821020425.post-42171867915473349892014-03-31T10:06:27.675-07:002014-03-31T10:06:27.675-07:00Although I believe the error is someplace else and...Although I believe the error is someplace else and possible above this error in the log file, but what do you think if it can't create a file there what could be the causes?<br /><br />1- The directory doesn't exist ? /var/run/opensips/<br />2- The permissions aren't set ?Gohar Ahmedhttps://www.blogger.com/profile/00614288169644917715noreply@blogger.comtag:blogger.com,1999:blog-7979378259821020425.post-45662373990489442522014-03-31T10:04:20.647-07:002014-03-31T10:04:20.647-07:00check with firewall and your local ports being blo...check with firewall and your local ports being blocked by ISP probably ??Gohar Ahmedhttps://www.blogger.com/profile/00614288169644917715noreply@blogger.comtag:blogger.com,1999:blog-7979378259821020425.post-13951755135280919392014-03-11T13:00:13.885-07:002014-03-11T13:00:13.885-07:00Hi,
I installed 1.8 its working fine,once i reboot...Hi,<br />I installed 1.8 its working fine,once i rebooted,i have following errors<br /><br />Mar 12 01:25:36 genius-PI945GCM opensips: INFO:core:init_tcp: using epoll_lt as the TCP io watch method (auto detected)<br />Mar 12 01:25:36 genius-PI945GCM opensips: ERROR:core:daemonize: unable to create pid file /var/run/opensips/opensips.pid: No such file or directory<br />Mar 12 01:25:36 genius-PI945GCM opensips: INFO:core:daemonize: pre-daemon process exiting with -1<br />Hussainnoreply@blogger.comtag:blogger.com,1999:blog-7979378259821020425.post-38850601648748360972014-02-26T23:53:48.718-08:002014-02-26T23:53:48.718-08:00hi, Recently installed opensips sever which runnin...hi, Recently installed opensips sever which running smoothly on TCP connections, but users cannot register on UDP connections<br /><br />here my Log, have a look.<br /><br />Feb 26 01:48:28 root opensips: WARNING:core:warn: warning in config file /usr/local/opensips_proxy/e tc/opensips/opensips_residential_2014-2-24_6:42:29.cfg, line 51, column 13-16: tls support not compiled in<br />Feb 26 01:48:28 root opensips: INFO:core:init_tcp: using epoll_lt as the TCP io watch method (auto detected)<br />Feb 26 01:48:28 root /usr/local/opensips_proxy/sbin/opensips[6788]: NOTICE:core:main: version: opensips 1.8.3-notls (x86_64/linux)<br />Feb 26 01:48:28 root /usr/local/opensips_proxy/sbin/opensips[6788]: INFO:core:main: using 32 Mb shared memory<br />Feb 26 01:48:28 root /usr/local/opensips_proxy/sbin/opensips[6788]: INFO:core:main: using 2 Mb private memory per process<br />Feb 26 01:48:28 root /usr/local/opensips_proxy/sbin/opensips[6788]: NOTICE:signaling:mod_init: initializing module ...<br />Feb 26 01:48:28 root /usr/local/opensips_proxy/sbin/opensips[6788]: INFO:sl:mod_init: Initializing StateLess engine<br />Feb 26 01:48:28 root /usr/local/opensips_proxy/sbin/opensips[6788]: INFO:tm:mod_init: TM - initializing...<br />Feb 26 01:48:28 root /usr/local/opensips_proxy/sbin/opensips[6788]: INFO:rr:mod_init: rr - initializing<br />Feb 26 01:48:28 root /usr/local/opensips_proxy/sbin/opensips[6788]: INFO:maxfwd:mod_init: initializing...<br />Feb 26 01:48:28 root /usr/local/opensips_proxy/sbin/opensips[6788]: INFO:sipmsgops:mod_init: initializing...<br />Feb 26 01:48:28 root /usr/local/opensips_proxy/sbin/opensips[6788]: INFO:usrloc:ul_init_locks: locksarray size 512<br />Feb 26 01:48:28 root /usr/local/opensips_proxy/sbin/opensips[6788]: INFO:registrar:mod_init: initializing...<br />Feb 26 01:48:28 root /usr/local/opensips_proxy/sbin/opensips[6788]: INFO:acc:mod_init: initializing...<br />Feb 26 01:48:28 root /usr/local/opensips_proxy/sbin/opensips[6788]: INFO:auth:mod_init: initializing...<br />Feb 26 01:48:28 root /usr/local/opensips_proxy/sbin/opensips[6788]: INFO:auth_db:mod_init: initializing...<br />Feb 26 01:48:28 root /usr/local/opensips_proxy/sbin/opensips[6788]: INFO:dialog:mod_init: Dialog module - initializing<br />Feb 26 01:48:28 root /usr/local/opensips_proxy/sbin/opensips[6788]: INFO:core:probe_max_sock_buff: using rcv buffer of 480 kb<br />Feb 26 01:48:28 root /usr/local/opensips_proxy/sbin/opensips[6788]: INFO:core:probe_max_sock_buff: using snd buffer of 480 kb<br />Feb 26 01:48:28 root /usr/local/opensips_proxy/sbin/opensips[6788]: INFO:core:init_sock_keepalive: -- TCP keepalive enabled on socket<br /><br />Feb 26 01:48:28 root opensips: INFO:core:daemonize: pre-daemon process exiting with 0<br />--------<br /><br />from this I could understand that opensips pre-deamon is exiting with 0, means all modules initialized successfully and have no error ! <br /><br />when i start opensips<br />-------------------<br />root #/etc/init.d/opensips start<br /><br />Starting opensips: Listening on<br /><br /> udp: 192.168.xxx.xx [192.168.xxx.xxx]:5060<br /><br /> tcp: 192.168.xxx.xxx [192.168.xxx.xxx]:5060<br /><br />Aliases:<br /><br /><br />---------------<br />from this i could understand opensips running properly and also listening to both TCP and UDP. but I can't figure out this weird problem, why users could not register on UDP. Any helpful mind will be appreciated ... !! <br /><br />Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-7979378259821020425.post-49400775916447501562013-11-27T00:06:39.313-08:002013-11-27T00:06:39.313-08:00@Sammy Go. Gregory A. Lussier is right . it work...@Sammy Go. Gregory A. Lussier is right . it worked for me. <br />your method worked too , but in my case there's another problem to fix related to mysql script<br />ThanksHelloiloveithttps://www.blogger.com/profile/10021879865931297560noreply@blogger.comtag:blogger.com,1999:blog-7979378259821020425.post-63344212924895880482013-03-25T03:49:45.089-07:002013-03-25T03:49:45.089-07:00Gregory, that too is one way of installing a modul...Gregory, that too is one way of installing a module in opensips but, The issue he is talking about is that when executing the script "opensipcdbctl create" the DB schema is not found.<br /><br />The solution would be to manually locate the missing .mysql file in sources directory and place it to a location where the script is searching for.Anonymoushttps://www.blogger.com/profile/05010083637635292524noreply@blogger.comtag:blogger.com,1999:blog-7979378259821020425.post-80361901361277791832013-03-24T15:37:53.444-07:002013-03-24T15:37:53.444-07:00Instead of ``` make install ```, you might want to...Instead of ``` make install ```, you might want to try ``` make install include_modules="db_mysql" ```.Gregory A. Lussierhttps://www.blogger.com/profile/11865756227207342538noreply@blogger.comtag:blogger.com,1999:blog-7979378259821020425.post-31814165118898240342012-12-16T09:17:47.545-08:002012-12-16T09:17:47.545-08:00Do post this issue in opensips mailing list becaus...Do post this issue in opensips mailing list because a lot of other people face the same issue and that will get it fixed once and for all.Anonymoushttps://www.blogger.com/profile/05010083637635292524noreply@blogger.comtag:blogger.com,1999:blog-7979378259821020425.post-68551961134694738672012-12-16T09:15:57.159-08:002012-12-16T09:15:57.159-08:00That happens for OpenSIPS 1.8 version. I've fa...That happens for OpenSIPS 1.8 version. I've faced this issue in my newer installations. I'll post updated installer instructions someday.<br />Anonymoushttps://www.blogger.com/profile/05010083637635292524noreply@blogger.comtag:blogger.com,1999:blog-7979378259821020425.post-62959243549412217092012-12-15T04:25:11.731-08:002012-12-15T04:25:11.731-08:00I have error:
ERROR: could not load the script in...I have error:<br /><br />ERROR: could not load the script in /usr/local/lib/opensips/opensipsctl/opensipsdbctl.mysql for database engine MYSQL<br />ERROR: database engine not loaded - tried 'MYSQL'<br /><br />Why..?dX'Rhttps://www.blogger.com/profile/06458378488410522028noreply@blogger.comtag:blogger.com,1999:blog-7979378259821020425.post-68303890345561013562012-08-04T09:02:24.805-07:002012-08-04T09:02:24.805-07:00thank so much
#opensipsctl monitor
[cycle #: 11; i...thank so much<br />#opensipsctl monitor<br />[cycle #: 11; if constant make sure server lives]<br />Server:: OpenSIPS (1.7.2-tls (i386/linux))<br />Now:: Sat Aug 4 08:57:47 2012<br />Up since:: Sat Aug 4 08:56:40 2012<br />Up time:: 67 [sec]<br /><br />Transaction Statistics: <br />tm:UAS_transactions = 0<br />tm:UAC_transactions = 0<br />tm:inuse_transactions = 0<br /><br />Stateless Server Statistics: <br />sl:sent_replies = 0<br />sl:sent_err_replies = 0<br />sl:received_ACKs = 0<br /><br />UsrLoc Stats: <br />usrloc:registered_users = 0<br />usrloc:location-users = 0<br />usrloc:location-contacts = 0<br />usrloc:location-expires = 0VietNamhttps://www.blogger.com/profile/17362080151129892254noreply@blogger.comtag:blogger.com,1999:blog-7979378259821020425.post-5910898813528546342012-08-03T23:37:32.572-07:002012-08-03T23:37:32.572-07:001- Make sure you have the line 'modparam("...1- Make sure you have the line 'modparam("mi_fifo", "fifo_name", "/tmp/opensips_fifo")' in your config file (opensips.cfg)<br /><br />2- Edit the opensipsctlrc file located in the same directory as of opensips.cfg and make sure it's FIFO path is uncommented and is same as 1.<br /><br />then run the command and it should work.Gohar Ahmedhttps://www.blogger.com/profile/00614288169644917715noreply@blogger.comtag:blogger.com,1999:blog-7979378259821020425.post-64311456215592912602012-07-25T21:45:16.309-07:002012-07-25T21:45:16.309-07:00root@ubuntu:~# opensipsctl monitor
ERROR: Error op...root@ubuntu:~# opensipsctl monitor<br />ERROR: Error opening OpenSIPS's FIFO /tmp/opensips_fifo<br />ERROR: Make sure you have the line 'modparam("mi_fifo", "fifo_name", "/tmp/opensips_fifo")' in your config<br />ERROR: and also have loaded the mi_fifo module.VietNamhttps://www.blogger.com/profile/17362080151129892254noreply@blogger.comtag:blogger.com,1999:blog-7979378259821020425.post-49931969375560099232012-07-25T10:17:34.725-07:002012-07-25T10:17:34.725-07:00Thanks Qasim will update it shortly.Thanks Qasim will update it shortly.Gohar Ahmedhttps://www.blogger.com/profile/00614288169644917715noreply@blogger.comtag:blogger.com,1999:blog-7979378259821020425.post-76788822803657798682012-07-25T10:17:14.973-07:002012-07-25T10:17:14.973-07:00if your opensips is running with init.d/opensips s...if your opensips is running with init.d/opensips script then you should try adding this line.<br /><br />#chkconfig opensips onGohar Ahmedhttps://www.blogger.com/profile/00614288169644917715noreply@blogger.comtag:blogger.com,1999:blog-7979378259821020425.post-42944811681994354832012-07-25T05:59:49.892-07:002012-07-25T05:59:49.892-07:00Typo int he following line int.d should be init.d ...Typo int he following line int.d should be init.d (:<br /><br />Copy default and the int.d startup scripts to relevant directories.Qasim Ayyaz Khanhttps://www.blogger.com/profile/04782379149203899234noreply@blogger.comtag:blogger.com,1999:blog-7979378259821020425.post-1128992194879792882012-07-24T21:58:01.012-07:002012-07-24T21:58:01.012-07:00thank you very much, my opensips was running and h...thank you very much, my opensips was running and has not error. But, when i restart my computer. opensips is not running. why?help me, pleaseVietNamhttps://www.blogger.com/profile/17362080151129892254noreply@blogger.comtag:blogger.com,1999:blog-7979378259821020425.post-52235834744894502862012-07-22T22:07:56.355-07:002012-07-22T22:07:56.355-07:00ubuntu /usr/local/sbin/opensips[2922]: ERROR:core:...ubuntu /usr/local/sbin/opensips[2922]: ERROR:core:sctp_server_init: socket: Socket type not supported [94]<br /><br />Thats your problem. Let me share whats in my mind.<br /><br />1- You forgot to load the sctp module i,e #modprobe sctp<br />2- You din't install the sctp library and compile opensips with sctp.<br />3- The possibility for this is that you followed multiple tutorials on installing opensips and probably mixed everything up and somehow forgot few steps from each.<br /><br />I'd alsorequest to reply back if your problems get solved here, this will help any other readers looking for same issues. Thanks.Gohar Ahmedhttps://www.blogger.com/profile/00614288169644917715noreply@blogger.comtag:blogger.com,1999:blog-7979378259821020425.post-71168148155387470552012-07-22T21:20:57.468-07:002012-07-22T21:20:57.468-07:00thanks Gohar Ahmed very much
can you help me?pleas...thanks Gohar Ahmed very much<br />can you help me?please<br />root@ubuntu:~# /etc/init.d/opensips start<br />Starting opensips: opensipsListening on <br /> udp: 127.0.0.1 [127.0.0.1]:5060<br /> udp: 192.168.1.35 [192.168.1.35]:5060<br /> tcp: 127.0.0.1 [127.0.0.1]:5060<br /> tcp: 192.168.1.35 [192.168.1.35]:5060<br /> sctp: 127.0.0.1 [127.0.0.1]:5060<br /> sctp: 192.168.1.35 [192.168.1.35]:5060<br />Aliases: <br /> sctp: ubuntu.local:5060<br /> sctp: localhost:5060<br /> tcp: ubuntu.local:5060<br /> tcp: localhost:5060<br /> udp: ubuntu.local:5060<br /> udp: localhost:5060<br /><br /> already running.<br />root@ubuntu:~# /etc/init.d/opensips status<br />Status of opensips: opensips is not running.<br />root@ubuntu:~# tailf -n 60 /var/log/syslog<br /> ubuntu rtkit-daemon[2152]: Supervising 1 threads of 1 processes of 1 users.<br /><br /> ubuntu pulseaudio[2224]: [pulseaudio] pid.c: Daemon already running.<br /> ubuntu ntpdate[1430]: step time server 91.189.94.4 offset -2.488360 sec<br /> ubuntu NetworkManager[783]: (eth0): IP6 addrconf timed out or failed.<br /><br /> ubuntu gnome-session[2347]: WARNING: Session 'ubuntu' runnable check failed: Exited with code 1<br /><br /> ubuntu dbus[428]: [system] Activating service name='org.freedesktop.UDisks' (using servicehelper)<br /> ubuntu dbus[428]: [system] Successfully activated service 'org.freedesktop.UDisks'<br /> ubuntu goa[2717]: goa-daemon version 3.4.0 starting [main.c:112, main()]<br /> ubuntu dbus[428]: [system] Activating service name='org.freedesktop.PackageKit' (using servicehelper)<br /> ubuntu AptDaemon: INFO: Initializing daemon<br /> ubuntu AptDaemon.PackageKit: INFO: Initializing PackageKit compat layer<br /> ubuntu dbus[428]: [system] Successfully activated service 'org.freedesktop.PackageKit'<br /> ubuntu AptDaemon.PackageKit: INFO: Initializing PackageKit transaction<br /><br /> ubuntu opensips: INFO:core:init_tcp: using epoll_lt as the TCP io watch method (auto detected)<br /> ubuntu /usr/local/sbin/opensips[2922]: NOTICE:core:main: version: opensips 1.7.2-tls (i386/linux)<br /> ubuntu /usr/local/sbin/opensips[2922]: INFO:core:main: using 128 Mb shared memory<br /><br /> ubuntu /usr/local/sbin/opensips[2922]: ERROR:core:sctp_server_init: socket: Socket type not supported [94]<br /> ubuntu opensips: INFO:core:daemonize: pre-daemon process exiting with -1<br /><br /><br />^Z<br />[1]+ Stopped tailf -n 60 /var/log/syslog<br />root@ubuntu:~# opensipsctl start<br /><br />INFO: Starting OpenSIPS : <br /><br />ERROR: PID file /var/run/opensips/opensips.pid does not exist -- OpenSIPS start failedVietNamhttps://www.blogger.com/profile/17362080151129892254noreply@blogger.comtag:blogger.com,1999:blog-7979378259821020425.post-7353010670552025272012-07-22T20:49:10.236-07:002012-07-22T20:49:10.236-07:00Thanks you!
And I'm trying to make calls using...Thanks you!<br />And I'm trying to make calls using x-lite software. But can't seem to connect to port 5060. Please help me. Thanks a lot.VietNamnoreply@blogger.comtag:blogger.com,1999:blog-7979378259821020425.post-20171627494979632582012-07-22T06:21:18.971-07:002012-07-22T06:21:18.971-07:00Hey there,
I think a few lines from log will help ...Hey there,<br />I think a few lines from log will help me find the issue for you. I'd say you should try to start opensips with the init.d script rather opensipsctl command.<br /><br />#/etc/init.d/opensips start<br /><br />if you don't see the "." appearing after the above command then you definitely need to see the log file for errors.<br /><br />#tailf -n 60 /var/log/syslog [Ubuntu]<br />#tailf -n 60 /var/log/messages [CentOS]<br /><br />that'll show you last 60 lines in the standard log file.Gohar Ahmedhttps://www.blogger.com/profile/00614288169644917715noreply@blogger.com