[OpenSIPS-Users] Problem with /tmp/opensips_fifo

Bogdan-Andrei Iancu bogdan at voice-system.ro
Fri Mar 12 16:31:20 CET 2010


Hi Erick,

maybe opensips is not starting - see 
http://www.opensips.org/Resources/DocsTsStart

Regards,
Bogdan

Erick Chinchilla Berrocal wrote:
> Bogan 
> More info, according remember, before you install the Control Panel 4.0 ,
> The OpenSIPS 1.6.1 worked well, phone register and tests.
> But not for now does not work.
> I reviewed the manual step by step and find nothing different from what the
> manual says
>
> opensipsctl restart
> database engine 'MYSQL' loaded
> Control engine 'FIFO' loaded
>
> INFO: Restarting OpenSIPS : 
>
> ERROR: No PID file found (/var/run/opensips.pid)! OpenSIPS probably not
> running
>
> INFO: Starting OpenSIPS : 
>
> ERROR: PID file /var/run/opensips.pid does not exist -- OpenSIPS start
> failed
>
>
>
> -----Original Message-----
> From: Erick Chinchilla Berrocal [mailto:erick at netcrc.net] 
> Sent: Friday, March 12, 2010 7:43 AM
> To: 'OpenSIPS users mailling list'
> Subject: RE: [OpenSIPS-Users] Problem with /tmp/opensips_fifo
>
> Hi Bogan 
> The problem continuos
> My comments 
> I use Opensips 1.6.1 with Control Panel 4.0
> - Opensisps Status
> # /etc/init.d/opensips status
> Status of opensips: opensips is not running.
>
> # /etc/init.d/opensips start
> Starting opensips: opensipsListening on 
>              udp: 127.0.0.1 [127.0.0.1]:5060
>              udp: x.x.x.x [x.x.x.x]:5060
>              tcp: 127.0.0.1 [127.0.0.1]:5060
>              tcp: x.x.x.x [x.x.x.x]:5060
> Aliases: 
>              tcp: abc:5060
>              tcp: abc.domian.net:5060
>              tcp: localhost:5060
>              udp: net:5060
>              udp: abc.domain.net:5060
>              udp: localhost:5060
>
> #/etc/init.d/opensips status
> Status of opensips: opensips is not running.
>
> PATH=/sbin:/bin:/usr/sbin:/usr/bin
> DAEMON=/sbin/opensips
> NAME=opensips
> DESC=opensips
> HOMEDIR=/var/run/opensips
> PIDFILE=$HOMEDIR/$NAME.pid
> DEFAULTS=/etc/default/opensips
> RUN_OPENSIPS=yes
>
> - mi_fifo module
> /lib/opensips/modules# ls
> aaa_radius.so     call_control.so  diversion.so     load_balancer.so
> options.so            rr.so          textops.so
> acc.so            cfgutils.so      domainpolicy.so  localcache.so
> path.so               seas.so        tm.so
> alias_db.so       closeddial.so    domain.so        mangler.so        pdt.so
> signaling.so   uac_redirect.so
> auth_aaa.so       db_flatstore.so  drouting.so      maxfwd.so
> peering.so            siptrace.so    uac.so
> auth_db.so        db_mysql.so      enum.so          mediaproxy.so
> permissions.so        sl.so          uri.so
> auth_diameter.so  db_text.so       exec.so          mi_datagram.so
> pike.so               sms.so         userblacklist.so
> auth.so           db_virtual.so    gflags.so        mi_fifo.so
> presence_xcapdiff.so  speeddial.so   usrloc.so
> avpops.so         dialog.so        group.so         msilo.so          qos.so
> sst.so         xlog.so
> b2b_entities.so   dialplan.so      imc.so           nathelper.so
> ratelimit.so          statistics.so
> benchmark.so      dispatcher.so    lcr.so           nat_traversal.so
> registrar.so          stun.so
>
>
> - the fifo_name (in opensips.cfg) is configured to a different name 
> than /tmp/opensips_fifo
>
> This is the same in the book (Building Telepfohne System qith OpenSIPS 1.6),
> Chart 5 
> "Full script with all the resources above" pag.119 to 124
>
>
> 	- /etc/opensips/opensips.cfg (my current setup)
> 			fork=yes
> 			children = 4 #total number of UDP SIP worker
> processes per interface
> 			tcp_children=6 #total number of TCP SIP worker
> processes in total
> 			disable_tcp=no
> 			#disable_tls=no
> 			####### Modules Section ########
>
> 			#set module path
> 			mpath="//lib/opensips/modules/"
>
> 			/* uncomment next line for MySQL DB support */
> 			loadmodule "db_mysql.so"
> 			loadmodule "signaling.so"
> 			loadmodule "sl.so"
> 			loadmodule "tm.so"
> 			loadmodule "rr.so"
> 			loadmodule "maxfwd.so"
> 			loadmodule "usrloc.so"
> 			loadmodule "registrar.so"
> 			loadmodule "textops.so"
> 			loadmodule "mi_fifo.so"
> 			loadmodule "uri.so"
> 			loadmodule "xlog.so"
> 			loadmodule "acc.so"
> 			/* uncomment next lines for MySQL based
> authentication support
>    			NOTE: a DB (like db_mysql) module must be also
> loaded */
> 			loadmodule "auth.so"
> 			loadmodule "auth_db.so"
> 			/* uncomment next line for aliases support
>    			NOTE: a DB (like db_mysql) module must be also
> loaded */
> 			loadmodule "alias_db.so"
> 			/* uncomment next line for multi-domain support
>    			NOTE: a DB (like db_mysql) module must be also
> loaded
>    			NOTE: be sure and enable multi-domain support in all
> used modules
>          		(see "multi-module params" section ) */
> 			loadmodule "domain.so"
> 			/* uncomment the next two lines for presence server
> support
>    			NOTE: a DB (like db_mysql) module must be also
> loaded */
> 			#loadmodule "presence.so"
> 			#loadmodule "presence_xml.so"
> 			# ----------------- setting module-specific
> parameters ---------------
>
>
> 			# ----- mi_fifo params -----
> 			modparam("mi_fifo", "fifo_name",
> "/tmp/opensips_fifo")
>
>
> 			# ----- rr params -----
> 			# add value to ;lr param to cope with most of the
> UAs
> 			modparam("rr", "enable_full_lr", 1)
> 			# do not append from tag to the RR (no need for this
> script)
> 			modparam("rr", "append_fromtag", 0)
>
>
> 			# ----- registrar params -----
> 			/* uncomment the next line not to allow more than 10
> contacts per AOR */
> 			#modparam("registrar", "max_contacts", 10)
> 			# ----- usrloc params -----
> 			modparam("usrloc", "db_mode",   0)
> 			/* uncomment the following lines if you want to
> enable DB persistency
>   			 for location entries */
> 			modparam("usrloc", "db_mode",   2)
> 			modparam("usrloc", "db_url",
>  
> "mysql://opensips:(mysqlpassword)@localhost/opensips")
>
> Another things
> This is my first time with this application, but I like.
> Can you help with the  SerMyAdmin , I do not understand the setup in the
> step 2 (pag.136)
> /usr/local/apache-tomcat-6.0.16/webapps/serMyAdmin/WEB-INF/spring/resource.x
> ml
> I can look the web page, but the user and password don't work
>
> username: admin at setup
> password: secret
>
> username: admin at sermyadmin.org
> password: secret
>
> Can you send me a example please.
>
> This is the default configuration
> <?xml version="1.0" encoding="UTF-8"?>
> <beans xmlns="http://www.springframework.org/schema/beans"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://www.springframework.org/schema/beans
> http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
> <bean id="smtpAuthenticator" class="SmtpAuthenticator">
> <constructor-arg value="email at sermyadmin.org" />
> <constructor-arg value="password" />
> </bean>
> <bean id="mailSession" class="javax.mail.Session" factory-
> method="getInstance">
> <constructor-arg>
> <props>
> <prop key="mail.smtp.auth">true</prop>
> <prop key="mail.smtp.socketFactory.port">465</prop>
> <prop key="mail.smtp.socketFactory.class">
> javax.net.ssl.SSLSocketFactory
> </prop>
> <prop key="mail.smtp.socketFactory.fallback">false</prop>
> </props>
> </constructor-arg>
> <constructor-arg ref="smtpAuthenticator" />
> </bean>
> <bean id="mailSender"
> class="org.springframework.mail.javamail.JavaMailSenderImpl">
> <property name="host" value="smtp.gmail.com" />
> <property name="session" ref="mailSession" />
> </bean>
> <bean id="mailMessage" class="org.springframework.mail.SimpleMailMessage">
> <property name="from" value="email at sermyadmin.org" />
> </bean>
> </beans>
>
> I know my questions can be a bit silly, but I read a lot of the manual, I've
> also installed several times the server and not where I'm making mistakes.
> I am also doing a translation of the manual installation (summary) in
> Spanish, maybe you can serve others people.
>
> Thanks for your help
> Erick Ch.
>
> -----Original Message-----
> From: users-bounces at lists.opensips.org
> [mailto:users-bounces at lists.opensips.org] On Behalf Of Bogdan-Andrei Iancu
> Sent: Friday, March 12, 2010 6:19 AM
> To: OpenSIPS users mailling list
> Subject: Re: [OpenSIPS-Users] Problem with /tmp/opensips_fifo
>
> Hi Erick,
>
> erick at netcrc.net wrote:
>   
>>> I have with the following problem:
>>>
>>> The file /tmp/opensips_fifo for any reason disappears
>>> for example if  send the command for reboot the server.
>>> The  opensips using mi_fifo module.
>>>
>>> With the command "opensips -c" said is ok
>>>
>>> opensipsctl moni said (if not find the file)
>>> ERROR: Error opening OpenSIPS's FIFO /tmp/opensips_fifo
>>> ERROR: Make sure you have the line 'modparam("mi_fifo", "fifo_name",
>>> "/tmp/opensips_fifo")' in your config
>>> ERROR: and also have loaded the mi_fifo module.
>>>
>>> But for fix this problem I made the following
>>> touch /tmp/opensips_fifo
>>> chmod 755 /tmp/opensips_fifo
>>>     
>>>       
> DO NOT DO THAT!!!!!!
>
> the fifo file must be created by opensips daemon - if you do not have it 
> , it means:
>     - opensips is not running
>     - mi_fifo module is not loaded
>     - the fifo_name (in opensips.cfg) is configured to a different name 
> than /tmp/opensips_fifo
>
>   
>>> this is temporary but it works.
>>>
>>> Another things is with the Control Panel 4.0
>>>
>>> I have problems with the following modules and this is the message of
>>>       
> each
>   
>>> -Dialog = Array ( [0] => Cannot connect to OpenSIPS Server via Management
>>> Interface (/tmp/opensips_fifo) )
>>>
>>> - Dispatcher = Array ( [0] => Cannot connect to OpenSIPS Server via
>>> Management Interface (/tmp/opensips_fifo) [1] => Cannot connect to
>>> OpenSIPS Server via Management Interface (/tmp/opensips_fifo) )
>>>
>>> - MI Commands = /tmp/opensips_fifo
>>>
>>> - Monit = Process - Opensips / Status - Execution failed
>>>
>>> - SIP Trace = Array ( [0] => Cannot connect to OpenSIPS Server via
>>> Management Interface (/tmp/opensips_fifo) )
>>>
>>> - Statistics Monitor = Cannot connect to OpenSIPS Server via Management
>>> Interface (/tmp/opensips_fifo)
>>>
>>> The common problem is " /tmp/opensips_fifo"
>>>     
>>>       
> yes, because you created a bogus file which does not provide 
> communication with opensips :)
>
> Regards,
> Bogdan
>
>   
>>> Thanks
>>> Erick
>>>
>>>     
>>>       
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>>   
>>     
>
>
>   


-- 
Bogdan-Andrei Iancu
www.voice-system.ro




More information about the Users mailing list