[OpenSIPS-Users] newbie need help on opensips -- opensipsctl moni cli

ha donguyen haloha201 at gmail.com
Mon Oct 6 13:12:51 CEST 2008


it is working now
Thank you Bogdan

On Mon, Oct 6, 2008 at 5:52 PM, Bogdan-Andrei Iancu
<bogdan at voice-system.ro>wrote:

> Hi there,
>
> In opensips.cfg the line
>   'modparam("mi_fifo", "fifo_name", "FIFO")'
>                        ^^^^^^^^^^^
>
> must have the same fifo_name as in opensipsctl.rc
>   OSIPS_FIFO="fifo_name"
>              ^^^^^^^^^^^
>
> for example, set fifo_name = /tmp/opensips_fifo
>
> Regards,
> Bogdan
>
>
> ha donguyen wrote:
>
>> Hi
>>
>> i am new to opensips and i installed opensips
>> i edit the Makefile -- clear the db-mysql + everything is related to
>> radius
>> exclude_modules?= jabber cpl-c db_postgres osp db_unixodbc \
>>        db_oracle \
>>        xmpp presence presence_xml presence_mwi pua pua_bla pua_mi \
>>        pua_usrloc pua_xmpp rls mi_xmlrpc perl snmpstats perlvdb \
>>        ldap carrierroute h350 xcap_client db_berkeley seas peering
>>
>> do
>>    make prefix=/ all
>>    make prefix=/ install
>>
>> when install successfully, i edit the opensipsctl which is located in
>> /etc/opensips/
>> ## your SIP domain
>>  SIP_DOMAIN=192.168.2.11 <http://192.168.2.11>
>>
>>
>> ## chrooted directory
>> # $CHROOT_DIR="/path/to/chrooted/directory"
>>
>> DBENGINE=MYSQL
>> DBHOST=localhost
>> DBNAME=opensips
>>
>> # database path used by dbtext or db_berkeley
>> # DB_PATH="/usr/local/etc/opensips/dbtext"
>>
>>  DBRWUSER=opensips
>>  DBRWPW="opensipsrw"
>>  DBROUSER=opensipsro
>>  DBROPW=opensipsro
>>
>> ## database super user (for ORACLE this is 'scheme-creator' user)
>>  DBROOTUSER="root"
>>
>> # user name column
>> # USERCOL="username"
>>
>> # FOREVER="2020-05-28 21:32:15"
>> # DEFAULT_ALIASES_EXPIRES=$FOREVER
>> # DEFAULT_Q="1.0"
>> # DEFAULT_CALLID="Default-Call-ID"
>> # DEFAULT_CSEQ="13"
>> # DEFAULT_LOCATION_EXPIRES=$FOREVER
>>
>> # Program to calculate a message-digest fingerprint
>> # MD5="md5sum"
>>
>> # awk tool
>> # AWK="awk"
>>
>> # grep tool
>> # GREP="egrep"
>>
>> # sed tool
>> # SED="sed"
>>
>> # If to install tables for the modules in the EXTRA_MODULES variable.
>> # INSTALL_EXTRA_TABLES=ask
>>
>> # If to install presence related tables.
>> # INSTALL_PRESENCE_TABLES=ask
>>
>> # opensips standard modules
>>  STANDARD_MODULES="standard acc lcr domain group permissions registrar
>> usrloc msilo
>>                   alias_db uri_db speeddial avpops auth_db pdt dialog
>> dispatcher
>>                   dialplan"
>>
>> # opensips extra modules
>> # EXTRA_MODULES="imc cpl siptrace domainpolicy carrierroute userblacklist"
>>
>>
>> ## type of aliases used: DB - database aliases; UL - usrloc aliases
>> ## - default: none
>> # ALIASES_TYPE="DB"
>>
>> ## control engine: FIFO or UNIXSOCK
>> ## - default FIFO
>>  CTLENGINE="FIFO"
>>
>> ## path to FIFO file
>>  OSIPS_FIFO="FIFO"
>>
>> ## check ACL names; default on (1); off (0)
>> # VERIFY_ACL=1
>>
>> ## ACL names - if VERIFY_ACL is set, only the ACL names from below list
>> ## are accepted
>> # ACL_GROUPS="local ld int voicemail free-pstn"
>>
>> ## verbose - debug purposes - default '0'
>> # VERBOSE=1
>>
>> ## do (1) or don't (0) store plaintext passwords
>> ## in the subscriber table - default '1'
>>  STORE_PLAINTEXT_PW=0
>>
>> ## OPENSIPS START Options
>> ## PID file path - default is: /var/run/opensips.pid
>>  PID_FILE=/var/run/opensips.pid
>>
>> ## Extra start options - default is: not set
>> # example: start opensips with 64MB share memory: STARTOPTIONS="-m 64"
>> # STARTOPTIONS=
>> [root at Centos opensips]#
>>
>>
>> i start opensips with opensipsctl start
>>
>> [root at Centos opensips]# opensipsctl start
>>
>> INFO: Starting OpenSIPS :
>> INFO: started (pid: 15590)
>>  but when i do
>> root at Centos opensips]# opensipsctl moni
>> ERROR: Error opening OpenSIPS's FIFO FIFO
>> ERROR: Make sure you have the line 'modparam("mi_fifo", "fifo_name",
>> "FIFO")' in  your config
>> ERROR: and also have loaded the mi_fifo module.
>>
>> the /etc/opensips/opensips.cfg, i didnt change anything in this file
>>
>> could someone give me a hand on this problem
>>
>> Thanks
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20081006/4c688021/attachment.htm 


More information about the Users mailing list