Project

General

Profile

Bug #9283 ยป Logs.txt

Daniel Xd, 05/13/2024 02:50 AM

 
1
Hello i need a help to find out why kamailio is not running. 
2

    
3
I have followed all the forum and everything in documentations and still no solution about this. Kamailio is not running at all, and i still dont know why.
4

    
5
My following cfg are:
6

    
7
*systemctl status kamailio -l*
8

    
9

    
10
โ— kamailio.service - Kamailio (OpenSER) - the Open Source SIP Server
11
   Loaded: loaded (/usr/lib/systemd/system/kamailio.service; enabled; vendor preset: disabled)
12
   Active: failed (Result: start-limit) since Mon 2024-05-13 02:08:45 PST; 5s ago
13
  Process: 11593 ExecStart=/usr/sbin/kamailio -DD -P /var/run/kamailio/kamailio.pid -f $CFGFILE -m $SHM_MEMORY -M $PKG_MEMORY (code=exited, status=255)
14
 Main PID: 11593 (code=exited, status=255)
15

    
16
May 13 02:08:45 vaglxc01.goautodial.com systemd[1]: kamailio.service: main process exited, code=exited, status=255/n/a
17
May 13 02:08:45 vaglxc01.goautodial.com systemd[1]: Unit kamailio.service entered failed state.
18
May 13 02:08:45 vaglxc01.goautodial.com systemd[1]: kamailio.service failed.
19
May 13 02:08:45 vaglxc01.goautodial.com systemd[1]: kamailio.service holdoff time over, scheduling restart.
20
May 13 02:08:45 vaglxc01.goautodial.com systemd[1]: Stopped Kamailio (OpenSER) - the Open Source SIP Server.
21
May 13 02:08:45 vaglxc01.goautodial.com systemd[1]: start request repeated too quickly for kamailio.service
22
May 13 02:08:45 vaglxc01.goautodial.com systemd[1]: Failed to start Kamailio (OpenSER) - the Open Source SIP Server.
23
May 13 02:08:45 vaglxc01.goautodial.com systemd[1]: Unit kamailio.service entered failed state.
24
May 13 02:08:45 vaglxc01.goautodial.com systemd[1]: kamailio.service failed.
25

    
26
*/var/www/html/php/goCRMAPISettings.php*
27

    
28
<?php
29
define ('gourl', 'https://66.29.138.207/goAPIv2');
30
define ('goUser', 'goAPI');
31
define ('goPass', 'KToB93bzjGd1RS4mDqePJ6Uk.jgNRrK');
32
define ('responsetype', 'json');
33
?>
34

    
35
*asterisk -rx "sip show peers"*
36

    
37
Name/username             Host                                    Dyn Forcerport Comedia    ACL Port     Status      Description
38
7790915996/7790915996     (Unspecified)                            D  Yes        Yes            0        UNKNOWN              
39
albcom/33987              5.*.*.*.*                               Yes        Yes            5060     OK (190 ms)          
40
*_kamailio                  127.0.0.1                                   Yes        Yes            5060     UNREACHABLE_   * 
41

    
42

    
43
*/etc/asterisk/sip-goautodial.conf*
44

    
45
[kamailio]
46
;encryption=yes ;uncomment for TLS encryption
47
disallow=all
48
allow=opus
49
allow=ulaw
50
type=friend
51
dtmfmode=rfc2833
52
context=default
53
qualify=yes
54
nat=force_rport,comedia
55
host=vaglxc01.goautodial.com ;change me to my FQDN
56
insecure=port,invite
57

    
58

    
59
*/etc/kamailio/kamctlrc*
60

    
61
# The Kamailio configuration file for the control tools.
62
#
63
# Here you can set variables used in the kamctl and kamdbctl setup
64
# scripts. Per default all variables here are commented out, the control tools
65
# will use their internal default values.
66

    
67
## your SIP domain
68
SIP_DOMAIN=vaglxc01.goautodial.com
69

    
70
## chrooted directory
71
# $CHROOT_DIR="/path/to/chrooted/directory"
72

    
73
## database type: MYSQL, PGSQL, ORACLE, DB_BERKELEY, DBTEXT, or SQLITE
74
# by default none is loaded
75
#
76
# If you want to setup a database with kamdbctl, you must at least specify
77
# this parameter.
78
DBENGINE=MYSQL
79

    
80
## database host
81
DBHOST=localhost
82

    
83
## database host
84
DBPORT=3306
85

    
86
## database name (for ORACLE this is TNS name)
87
DBNAME=kamailio
88

    
89
# database path used by dbtext, db_berkeley or sqlite
90
# DB_PATH="/usr/local/etc/kamailio/dbtext"
91

    
92
## database read/write user
93
DBRWUSER="kamailio"
94

    
95
## password for database read/write user
96
DBRWPW="kamailiorw"
97

    
98
## database read only user
99
DBROUSER="kamailioro"
100

    
101
## password for database read only user
102
DBROPW="kamailioro"
103

    
104
## database access host (from where is kamctl used)
105
# DBACCESSHOST=192.168.0.1
106

    
107
## database super user (for ORACLE this is 'scheme-creator' user)
108
DBROOTUSER="root"
109

    
110
## password for database super user
111
## - important: this is insecure, targeting the use only for automatic testing
112
## - known to work for: mysql
113
# DBROOTPW="dbrootpw"
114

    
115
## database character set (used by MySQL when creating database)
116
#CHARSET="latin1"
117

    
118
## user name column
119
# USERCOL="username"
120

    
121

    
122
# SQL definitions
123
# If you change this definitions here, then you must change them
124
# in db/schema/entities.xml too.
125
# FIXME
126

    
127
# FOREVER="2030-05-28 21:32:15"
128
# DEFAULT_Q="1.0"
129

    
130

    
131
# Program to calculate a message-digest fingerprint
132
# MD5="md5sum"
133

    
134
# awk tool
135
# AWK="awk"
136

    
137
# gdb tool
138
# GDB="gdb"
139

    
140
# If you use a system with a grep and egrep that is not 100% gnu grep compatible,
141
# e.g. solaris, install the gnu grep (ggrep) and specify this below.
142
#
143
# grep tool
144
# GREP="grep"
145

    
146
# egrep tool
147
# EGREP="egrep"
148

    
149
# sed tool
150
# SED="sed"
151

    
152
# tail tool
153
# LAST_LINE="tail -n 1"
154

    
155
# expr tool
156
# EXPR="expr"
157

    
158

    
159
# Describe what additional tables to install. Valid values for the variables
160
# below are yes/no/ask. With ask (default) it will interactively ask the user
161
# for an answer, while yes/no allow for automated, unassisted installs.
162
#
163

    
164
# If to install tables for the modules in the EXTRA_MODULES variable.
165
# INSTALL_EXTRA_TABLES=ask
166

    
167
# If to install presence related tables.
168
# INSTALL_PRESENCE_TABLES=ask
169

    
170
# If to install uid modules related tables.
171
# INSTALL_DBUID_TABLES=ask
172

    
173
# Define what module tables should be installed.
174
# If you use the postgres database and want to change the installed tables, then you
175
# must also adjust the STANDARD_TABLES or EXTRA_TABLES variable accordingly in the
176
# kamdbctl.base script.
177

    
178
# Kamailio standard modules
179
# STANDARD_MODULES="standard acc lcr domain group permissions registrar usrloc msilo
180
#                   alias_db uri_db speeddial avpops auth_db pdt dialog dispatcher
181
#                   dialplan"
182

    
183
# Kamailio extra modules
184
# EXTRA_MODULES="imc cpl siptrace domainpolicy carrierroute userblacklist htable purple sca"
185

    
186

    
187
## type of aliases used: DB - database aliases; UL - usrloc aliases
188
## - default: none
189
# ALIASES_TYPE="DB"
190

    
191
## control engine: RPCFIFO
192
## - default RPCFIFO
193
CTLENGINE="RPCFIFO"
194

    
195
## path to FIFO file for engine RPCFIFO
196
RPCFIFOPATH="/var/run/kamailio/kamailio_rpc.fifo"
197

    
198
## check ACL names; default on (1); off (0)
199
# VERIFY_ACL=1
200

    
201
## ACL names - if VERIFY_ACL is set, only the ACL names from below list
202
## are accepted
203
# ACL_GROUPS="local ld int voicemail free-pstn"
204

    
205
## verbose - debug purposes - default '0'
206
VERBOSE=1
207

    
208
## do (1) or don't (0) store plaintext passwords
209
## in the subscriber table - default '1'
210
STORE_PLAINTEXT_PW=0
211

    
212
## Kamailio START Options
213
## PID file path - default is: /var/run/kamailio/kamailio.pid
214
PID_FILE=/var/run/kamailio/kamailio.pid
215

    
216
## Extra start options - default is: not set
217
# example: start Kamailio with 64MB share memory: STARTOPTIONS="-m 64"
218
# STARTOPTIONS=
219

    
220

    
221
*systemctl status ngcp-rtpengine*
222

    
223
 ngcp-rtpengine.service - LSB: NGCP rtpengine
224
   Loaded: loaded (/etc/rc.d/init.d/ngcp-rtpengine; bad; vendor preset: disabled)
225
   Active: active (running) since Mon 2024-05-13 01:35:56 PST; 52min ago
226
     Docs: man:systemd-sysv-generator(8)
227
  Process: 1067 ExecStart=/etc/rc.d/init.d/ngcp-rtpengine start (code=exited, status=0/SUCCESS)
228
 Main PID: 1708 (rtpengine)
229
   CGroup: /system.slice/ngcp-rtpengine.service
230
           โ””โ”€1708 /usr/sbin/rtpengine --no-fallback --config-file=/etc/rtpengine/rtpengine.conf --pidfile=/var/run/rtpengin...
231

    
232
May 13 01:35:56 vaglxc01.goautodial.com systemd[1]: Starting LSB: NGCP rtpengine...
233
May 13 01:35:56 vaglxc01.goautodial.com ngcp-rtpengine[1067]: Loading module for in-kernel packet forwarding
234
May 13 01:35:56 vaglxc01.goautodial.com rtpengine[1644]: INFO: Generating new DTLS certificate
235
May 13 01:35:56 vaglxc01.goautodial.com rtpengine[1708]: INFO: Startup complete, version 6.4.0.0-1.el7
236
May 13 01:35:56 vaglxc01.goautodial.com ngcp-rtpengine[1067]: Starting rtpengine: [  OK  ]
237
May 13 01:35:56 vaglxc01.goautodial.com systemd[1]: Started LSB: NGCP rtpengine.
238
You have new mail in /var/spool/mail/root
239

    
240
*All this Part Done Successfully: Issue still remains even with Git Update.*
241

    
242
 nano /var/www/html/php/Config.php
243

    
244
<?php
245
// database configuration
246
define('DB_USERNAME', 'goautodialu');
247
define('DB_PASSWORD', 'goautodialu1234');
248
define('DB_HOST', 'localhost');
249
define('DB_NAME', 'goautodial');
250
define('DB_PORT', '3306');
251
define('DB_NAME_ASTERISK', 'asterisk');
252
define('DB_USERNAME_KAMAILIO', 'kamailiou');
253
define('DB_PASSWORD_KAMAILIO', 'kamailiou1234');
254
define('DB_HOST_KAMAILIO', 'localhost');
255
define('DB_NAME_KAMAILIO', 'kamailio');
256
define('DB_PORT_KAMAILIO', '3306');
257

    
258
// other configuration parameters
259
define('CRM_ADMIN_EMAIL', '[email protected]');
260
?>
261
nano /var/www/html/php/goCRMAPISettings.php
262

    
263
<?php
264
define ('gourl', 'https://192.168.22.9/goAPIv2');
265
define ('goUser', 'goAPI');
266
define ('responsetype', 'json');
267
?>
268
nano /etc/kamailio/kamailio.cfg
269

    
270

    
271
#!substdef "!MY_IP_ADDR!192.168.22.9!g" 
272
#!substdef "!MY_DOMAIN!vaglxc01.goautodial.com!g" 
273

    
274
/* add local domain aliases */
275
alias="192.168.22.9" 
276
alias="vaglxc01.goautodial.com" 
277

    
278
/* uncomment and configure the following line if you want Kamailio to
279
   bind on a specific interface/port/proto (default bind on all available) */
280
listen=udp:127.0.0.1:5060
281
listen=udp:192.168.22.9:5060
282

    
283
# ----- rtpengine params -----
284
modparam("rtpengine", "rtpengine_sock", "udp:127.0.0.1:5066")
285
modparam("rtpengine", "rtpengine_disable_tout", 20)
286
#modparam("rtpengine", "db_url", DBURL)
287

    
288
nano /etc/rtpengine/rtpengine.conf
289

    
290
[rtpengine]
291

    
292
table = 0
293
# no-fallback = false
294
### for userspace forwarding only:
295
# table = -1
296

    
297
### a single interface:
298
interface = 192.168.22.9
299
### separate multiple interfaces with semicolons:
300
# interface = internal/12.23.34.45;external/23.34.45.54
301
### for different advertised address:
302
# interface = 12.23.34.45!23.34.45.56
303
nano /etc/kamailio/tls.cfg
304

    
305
[server:default]
306
method = TLSv1+
307

    
308
I need a help for this to solve as soon as possible.
309

    
310
Thank you i appreciate any replay above
    (1-1/1)
    Go to top