<!--
Kamailio Project uses GitHub Issues only for bugs in the code or feature requests.
If you have questions about using Kamailio or related to its configuration file,
ask on sr-users mailing list:
* http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
If you have questions about developing extensions to Kamailio or its existing
C code, ask on sr-dev mailing list
* http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
Please try to fill this template as much as possible for any issue. It helps the
developers to troubleshoot the issue.
If you submit a feature request (or enhancement), you can delete the text of
the template and only add the description of what you would like to be added.
If there is no content to be filled in a section, the entire section can be removed.
You can delete the comments from the template sections when filling.
You can delete next line and everything above before submitting (it is a comment).
-->
### Description
I have configured a kamailio as PCSCF taking the configuration sample files (kamailio.cfg and pcscf.cfg) in https://github.com/kamailio/kamailio/tree/master/misc/examples/pcscf
The version of kamailio installed is the 5.1.
When I perform "service pcscf start" the services doesn't restart giving a parsing error for a pseudo variable called $uac_req. The error is found in this section:
route[NATPING] {
route(preload_pcscf);
sht_iterator_start("nat_iterator", "natping");
while(sht_iterator_next("nat_iterator")) {
xlog("OPTIONS to $shtitval(nat_iterator) via $shtitkey(nat_iterator)...\n");
$uac_req(method) = "OPTIONS";
$uac_req(ruri) = $shtitval(nat_iterator);
$uac_req(furi) = PCSCF_URL;
$uac_req(turi) = $shtitval(nat_iterator);
$uac_req(ouri) = $shtitkey(nat_iterator);
$uac_req(evroute) = 1;
uac_req_send();
}
sht_iterator_end("nat_iterator");
}
I have checked that I have only one "uac.so" file in /usr/lib64/kamailio/modules/ and the date of the file is April 15th. So I guess that the file is updated.
### Troubleshooting
#### Reproduction
<!--
If the issue can be reproduced, describe how it can be done.
-->
#### Debugging Data
```
(paste your debugging data here)
```
#### Log Messages
ERROR: <core> [core/pvapi.c:828]: pv_parse_spec2(): error searching pvar "uac_req" 0(2271) ERROR: <core> [core/pvapi.c:1032]: pv_parse_spec2(): wrong char [m/109] in [$uac_req(method)] at [9 (5)] 0(2271) CRITICAL: <core> [core/cfg.y:3414]: yyerror_at(): parse error in config file /etc/kamailio/pcscf/kamailio.cfg, line 906, column 3-18: Can't get from cache: $uac_req(method) ERROR: bad config file (1 errors)
#### SIP Traffic
<!--
If the issue is exposed by processing specific SIP messages, grab them with ngrep or save in a pcap file, then add them next, or attach to issue, or provide a link to download them (e.g., to a pastebin site).
-->
```
(paste your sip traffic here)
```
### Possible Solutions
<!--
If you found a solution or workaround for the issue, describe it. Ideally, provide a pull request with a fix.
-->
### Additional Information
* **Kamailio Version** - output of `kamailio -v`
version: kamailio 5.1.0-dev2 (x86_64/linux)
flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: unknown
compiled with gcc 4.7.2
* **Operating System**:
<!--
Details about the operating system, the type: Linux (e.g.,: Debian 8.4, Ubuntu 16.04, CentOS 7.1, ...), MacOS, xBSD, Solaris, ...;
Kernel details (output of `uname -a`)
-->
Debian 8
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/1123
- URL: https://github.com/kamailio/kamailio/commit/b6f49f92e11b3289a074cfe8a62d164…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-09-10T08:25:39+02:00
sdpops: cast in dbg message to avoid compile warning on 32b systems
(cherry picked from commit f6921b92d382db3c0a72bd1d97eb46d1f4aee2d7)
- URL: https://github.com/kamailio/kamailio/commit/dd9bc5441ec4682213ed2fa07d8a7f7…
Author: Juha Heinanen <jh(a)tutpro.com>
Date: 2018-09-10T08:26:02+02:00
modules/auth: fixed path in auth.xml
(cherry picked from commit 26449dc2da3b47dd71265e8103de5957bd2245f4)
- URL: https://github.com/kamailio/kamailio/commit/ff6af9edbbb08f6ccb9ae953b9ea6d5…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-09-10T08:27:29+02:00
core: debug message when dropping a sip reply
(cherry picked from commit e4d2ca28ee2d42683d7604c6a767a201b6babbed)
- URL: https://github.com/kamailio/kamailio/commit/d0f1d8212f0f42df8a1cc1e5c7b85fc…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-09-10T08:27:41+02:00
core: more accurate debug messages when forwarding a reply
(cherry picked from commit 085e2c2ea5f85616c037b083495094a2232c405a)
- URL: https://github.com/kamailio/kamailio/commit/5d6be9c971a0cd1bf3ebd10214e89f0…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-09-10T08:27:55+02:00
tm: more debug messages for reply relay
(cherry picked from commit 927d738d0e1585ccbccc878ab55c219ae737091d)
- URL: https://github.com/kamailio/kamailio/commit/8c191147abac8ffb1d2360f6a115617…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-09-10T08:28:09+02:00
tm: added fcount field for free operations debugging
(cherry picked from commit e361e5ec2883775d14d92d46659d062b31c45f33)
- URL: https://github.com/kamailio/kamailio/commit/3164b552f78762591199df6c29db55d…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-09-10T08:29:04+02:00
app_lua: kemi - exported KSR.pv.getw("$...")
- get the value of the pseudo-variable if it is not $null and the empty string
("") if it is $null
(cherry picked from commit b98cb43b1ea33706fe133f6585c0705892663ae6)
- URL: https://github.com/kamailio/kamailio/commit/9db1528afb6b6d90251a25f42d8f4f8…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-09-10T08:29:16+02:00
app_lua: split function for returning pv null value
(cherry picked from commit f3312715943867f76c8753eba992dad5859d8c2f)
- URL: https://github.com/kamailio/kamailio/commit/c26b2fac5eefb47edcdba65a7ba9d68…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-09-10T08:29:30+02:00
app_lua: new KEMI pv functions KSR.pv.getvn(...) and KSR.pv.getvs(...)
- KSR.pv.getvn(pv, ival) - return the value of pv if not null,
otherwise return the int value ival
- KSR.pv.getvs(pv, sval) - return the value of pv if not null,
otherwise return the str value sval
(cherry picked from commit 1576dc7cf504a3a30e83919222f1b8441e4207b5)
- URL: https://github.com/kamailio/kamailio/commit/4b05951967fb9460a0158fdb1765e4a…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-09-10T08:29:39+02:00
app_lua: proper return 'nil' for $null values of pvs
(cherry picked from commit fd3656fba3fe5dcb472836f935e2b4781b02251e)
- URL: https://github.com/kamailio/kamailio/commit/527c20056413d0cd088b8aadd2d84a2…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-09-10T08:30:05+02:00
app_python: implemented KSR.pv.gete(...)
(cherry picked from commit 63498d6c2180645562f495077d6b414b12b39820)
- URL: https://github.com/kamailio/kamailio/commit/9a3d4698491a4f020b1c0d4635f1d3a…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-09-10T08:30:30+02:00
app_jsdt: implemented kemi KSR.pv.gete(...)
(cherry picked from commit d92216ebdb94c4a068437c083c9f1809ddfa8857)
- URL: https://github.com/kamailio/kamailio/commit/57debe742063c776cf8b91e34d5cbe3…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-09-10T08:30:41+02:00
ipops: exported KSR.ipops.is_in_subnet(...)
- match the function name from kamailio.cfg
- so far it was exported as KSR.ipops.ip_is_in_subnet(...)
(cherry picked from commit 7bd55ca760a2b1aed8da431b61370c750742ff84)
- URL: https://github.com/kamailio/kamailio/commit/44fc897c51f23f3da3c0d556a270edc…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-09-10T08:30:52+02:00
app_sqlang: implemented KSR.pv.gete(...)
(cherry picked from commit 89c65fa3210ab0682d4cb699d732ac1653ba0221)
- URL: https://github.com/kamailio/kamailio/commit/50910ac1035df1d3899389d72314353…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-09-10T08:31:10+02:00
app_python: give scan format to PyArg_ParseTuple() via param
(cherry picked from commit c1701cf3e57adbf8448c414bfb8ba10426a69104)
- URL: https://github.com/kamailio/kamailio/commit/b6ed4d39c68f543f18a4a938d1bba37…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-09-10T08:31:27+02:00
app_lua: rmode 1 corresponds to int returned value
(cherry picked from commit b7047205287a0fde12b3568bd0cd0425eeb68fcd)
- URL: https://github.com/kamailio/kamailio/commit/57d8b5287d27fe32b302442c2b18a17…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-09-10T08:32:17+02:00
tls: docs - some updates to sample tls.cfg
(cherry picked from commit 957b43ddea8dad434736e800a16581d49ccb2478)
- URL: https://github.com/kamailio/kamailio/commit/6815f91eba33216102f7e8ebb0a67e7…
Author: Roman Romanchenko <rromanchenko(a)sipwise.com>
Date: 2018-09-10T08:33:02+02:00
tm: crash on memcpy fix
- in some cases tag is not initialized and lead to crash.
Memory pointer check before writing to added.
(cherry picked from commit db3b9dbd48f7bb74abf08b0e97bcac15015df719)
- URL: https://github.com/kamailio/kamailio/commit/2ce4f035be25c8d43a96d24331a5673…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-09-10T08:33:29+02:00
core: Makefiles - catch unavailbility of docbook2man tool
- print an info message instead of ending up in execution error of
Makefile rule trying to generate man pages from xml files
- DOCBOOK var renamed to DOCBOOKMAN to be more suggestive for its
purpose
- related to GH #1624
(cherry picked from commit 35aef078dfbcb92de9591eea2841b3ba0f9682f6)
- URL: https://github.com/kamailio/kamailio/commit/7417602f16f17495bad935e87ef504a…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-09-10T08:34:01+02:00
core: xavp - more debug details when printing xavp
(cherry picked from commit 3fef2b3c18f83add1af13c2b84303b507e27aeca)
- URL: https://github.com/kamailio/kamailio/commit/82117ce2d576a1f9073e36d1e0508d6…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-09-10T08:34:28+02:00
htable: exported sht_rm_value_re() and sht_rm_name_re() to kemi
- GH #1614
(cherry picked from commit 9121118444e638223c789641618ed4145a67b0f3)
- URL: https://github.com/kamailio/kamailio/commit/290073feb2ebf94bfa64be8071cf4cc…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-09-10T08:34:47+02:00
pv: increased transformation buffer slots from 4 to 8
(cherry picked from commit d68c1bcb350bce2f1951b604f97e246734e43b84)
- URL: https://github.com/kamailio/kamailio/commit/31fd064f209246ef028d0d2369be9e2…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-09-10T08:35:42+02:00
htable: exported sht_rm_name() and sht_rm_value() to KEMI
(cherry picked from commit 2806831045cdb8f110737a87470382c28c5ce094)
- URL: https://github.com/kamailio/kamailio/commit/1fd8cc14ae5a81359ece661677b7818…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-09-10T08:36:11+02:00
htable: proper return on match for sw operator whith rm functions
(cherry picked from commit dec17cb6af275789c4ae804d5e1004a9f77010a3)
- URL: https://github.com/kamailio/kamailio/commit/e6676483116cac28a958d5dc5edeea3…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-09-10T08:36:26+02:00
tcpops: more debug messages when executing event route
(cherry picked from commit d453bdd36a6cd569978a1d19e41d55b28c2b4e13)
- URL: https://github.com/kamailio/kamailio/commit/ce5fd6f415e504f967e00820d6c57ec…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-09-10T08:36:52+02:00
core: tcp - improved safety check for available byte in tcp read buffer
(cherry picked from commit 2fc11f183d8fcedeb35559c5236ad7159a6a5864)
- URL: https://github.com/kamailio/kamailio/commit/aec30b799256fc3c1aeac537d111ecf…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-09-10T08:38:05+02:00
core: tcp - more safety check to avoid jumping out if receive buf for ws proto
(cherry picked from commit db00d11d6a30cb779cecfae73487de6d05b6b915)
- URL: https://github.com/kamailio/kamailio/commit/aa7d8921eac1379f3d31648f99f7138…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-09-10T08:38:29+02:00
tls: cast to usigned for computing available size for read
(cherry picked from commit 1e67fdd53a1c6dc3964d25e891caad24029b7887)
- URL: https://github.com/kamailio/kamailio/commit/d877cd62175dd31d8eb7a1fbcabb32b…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-09-10T08:38:57+02:00
rtpengine: safety check for tm uas.request field
(cherry picked from commit 75040f62238d6181dc9aec977588c63d15dc5cbc)
- URL: https://github.com/kamailio/kamailio/commit/b03b6f7a12e66eab1619e1f10eeba67…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-09-12T09:52:53+02:00
acc: more debug message when checking if acc should be done
(cherry picked from commit f21554c6befaddbc82016d5d498e11ab3720c404)
- URL: https://github.com/kamailio/kamailio/commit/5195a700241650a1407f4e663db4c6e…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-09-12T09:53:05+02:00
tm: update uas rb activ_type when overwriting realyed_code
- otherwise could end up skipping the execution for TMCB_RESPONSE_OUT tm
callback, affecting acc, ...
(cherry picked from commit 5b223a2e8a92f351b8eab756f5256fda7645ff21)
- URL: https://github.com/kamailio/kamailio/commit/c9b1410c13fb8d70d4785779b499898…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-09-12T09:53:14+02:00
tm: activ_type field renamed to rbtype in struct retr_buf
- better matching the purpose and do not use a typo word
- field t_active changed from char to short for better mem align
(cherry picked from commit 1aad02edc6b9ffb104900cbc624f0853166ae926)
- URL: https://github.com/kamailio/kamailio/commit/7438c7511c4ee151d5126ee34748e49…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-09-12T09:53:34+02:00
tm: typedefs renamed to match better module and common pattern
- were not used so far
(cherry picked from commit 0ea62995ab026737411f3106a4584ba4ba640426)
- URL: https://github.com/kamailio/kamailio/commit/ebcffdb917b2c2c0a1b6d85cbf9c46e…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-09-12T09:53:44+02:00
tm: set uas rb type along with the buffer when relaying replies
- ensure it is same reply code used in outgoing buffer
(cherry picked from commit 35dec4c20d78f49ba242229c877894d70c94705c)
- URL: https://github.com/kamailio/kamailio/commit/fb69f81152368b8727f6d51298b6f8a…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-09-12T09:54:14+02:00
dialog: update active and early dialogs stats for dmq operations
- related to GH #1591
(cherry picked from commit bc41d0bc75f1b41f0185eeed37d5514525ef27be)
- URL: https://github.com/kamailio/kamailio/commit/3c4f242fff1171fbe9c19472b8d9430…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-09-12T09:54:25+02:00
tls: proper upper limit for tls connection lifetime
- GH #1639
(cherry picked from commit deb2904d73a7a540f8eb6e2e8722185b7f0a9a99)
- URL: https://github.com/kamailio/kamailio/commit/9ff43b7f8017fb68681a49379ab9273…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-09-12T09:54:36+02:00
jsonrpcs: print flags in error message when rpc reply is not initialized
(cherry picked from commit 1501e20b65f63c64a89b84196dc925cef79b7c76)
- URL: https://github.com/kamailio/kamailio/commit/780e44b9045e6051fc7f41a34db2418…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-09-12T09:54:47+02:00
jsonrpcs: set global active context to delayed value for async commands
- GH #1640
(cherry picked from commit 1db7dc4de6588131b4340390b5996141940b7ef0)
Module: kamailio
Branch: master
Commit: 275290bd7387b7794c4ae1bef1c94ee07007bece
URL: https://github.com/kamailio/kamailio/commit/275290bd7387b7794c4ae1bef1c94ee…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2018-09-12T08:47:05+02:00
modules: readme files regenerated - textops ... [skip ci]
---
Modified: src/modules/textops/README
---
Diff: https://github.com/kamailio/kamailio/commit/275290bd7387b7794c4ae1bef1c94ee…
Patch: https://github.com/kamailio/kamailio/commit/275290bd7387b7794c4ae1bef1c94ee…
---
diff --git a/src/modules/textops/README b/src/modules/textops/README
index de3ce988ea..60954cd3c7 100644
--- a/src/modules/textops/README
+++ b/src/modules/textops/README
@@ -150,10 +150,11 @@ Ovidiu Sas
1.42. starts_with usage
1.43. set_body_multipart usage
1.44. append_body_part usage
- 1.45. append_body_part_hex usage
- 1.46. get_body_part usage
- 1.47. get_body_part_raw usage
- 1.48. remove_body_part usage
+ 1.45. append_body_part with headers
+ 1.46. append_body_part_hex usage
+ 1.47. get_body_part usage
+ 1.48. get_body_part_raw usage
+ 1.49. remove_body_part usage
Chapter 1. Admin Guide
@@ -1196,7 +1197,7 @@ text
Example 1.44. append_body_part usage
...
-$var(b) = "7e Od 04 55 75 69 20 4d 61 6b 65 43 61 6c 6c"
+$var(b) = "7e Od 04 55 75 69 20 4d 61 6b 65 43 61 6c 6c";
append_body_part("$var(b)", "application/vnd.cirpack.isdn-ext", "signal;handling
=required");
...
@@ -1209,6 +1210,27 @@ Content-Disposition: signal;handling=required
7e Od 04 55 75 69 20 4d 61 6b 65 43 61 6c 6c
+--unique-boundary-1
+...
+
+ If other headers are wanted to be added for a body part, they can be
+ appended after the value of the content-type parameter, separated by
+ `\r\n` (at the very end do not add the '\r\n').
+
+ Example 1.45. append_body_part with headers
+...
+$var(b) = "";
+append_body_part("$var(b)", "application/xml\r\nX-Header: xyz");
+...
+
+# Will append this to the body:
+
+...
+Content-Type: application/vnd.cirpack.isdn-ext
+Content-Disposition: signal;handling=required
+
+7e Od 04 55 75 69 20 4d 61 6b 65 43 61 6c 6c
+
--unique-boundary-1
...
@@ -1233,7 +1255,7 @@ Content-Disposition: signal;handling=required
The core will take care of the last boundary ending "--". Detecting
wich one is the last and fixing the others if needed.
- Example 1.45. append_body_part_hex usage
+ Example 1.46. append_body_part_hex usage
...
$var(b) = "6b 61 6d 61 69 6c 69 6f";
append_body_part_hex("$var(b)", "application/my-custom-ext");
@@ -1249,6 +1271,9 @@ kamailio
--unique-boundary-1
...
+ If other headers are wanted to be added for a body part, see the docs
+ for append_body_part(...) function.
+
4.46. get_body_part(content_type, opv)
Return the content of a multipart body SIP message, storing it in opv.
@@ -1262,7 +1287,7 @@ kamailio
This function can be used from REQUEST_ROUTE, FAILURE_ROUTE,
BRANCH_ROUTE, ONREPLY_ROUTE.
- Example 1.46. get_body_part usage
+ Example 1.47. get_body_part usage
...
get_body_part("application/vnd.cirpack.isdn-ext", "$var(pbody)");
...
@@ -1281,7 +1306,7 @@ get_body_part("application/vnd.cirpack.isdn-ext", "$var(pbody)");
This function can be used from REQUEST_ROUTE, FAILURE_ROUTE,
BRANCH_ROUTE, ONREPLY_ROUTE.
- Example 1.47. get_body_part_raw usage
+ Example 1.48. get_body_part_raw usage
...
get_body_part("application/vnd.cirpack.isdn-ext", "$var(hbody)");
...
@@ -1301,7 +1326,7 @@ get_body_part("application/vnd.cirpack.isdn-ext", "$var(hbody)");
The core will take care of the last boundary ending "--". Detecting
wich one is the last and fixing the others if needed.
- Example 1.48. remove_body_part usage
+ Example 1.49. remove_body_part usage
...
remove_body_part("application/vnd.cirpack.isdn-ext");
...