<!--
Kamailio Project uses GitHub Issues only for bugs in the code or feature requests. Please use this template only for bug reports.
If you have questions about using Kamailio or related to its configuration file, ask on sr-users mailing list:
* http://lists.kamailio.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.kamailio.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 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
A patch was pushed to master branch to enable use of trace_type in the ki_sip_trace_dst_cid_flag(), following the latest additions to the module. It seemed that the trace type was used only for kamailio.cfg functions, because inside ki_sip_trace_dst_cid_flag() the trace_type was parsed and stored in local variable, but it was not used further.
I open this issue for review, to be sure something was not overlooked, the commit is:
* e8d765610c6926cc6cb4dfa490595214a3680f97
@ionutionita92 - can you have a look and eventually do some tests to be sure it still works as expected for kamailio.cfg functions?
There is one more aspect to clarify. The trace info structure is alocated in shared memory, but some of its fields (duplicate uri and correlation id) were set to addresses of function parameters/local variables. The code was relocated and now is at the following lines:
* https://github.com/kamailio/kamailio/blob/master/src/modules/siptrace/siptr…
Is it safe to do it like this? Are the fields used in this case only in current process and the callbacks use the variant stored in AVP?
Speaking of serializing to a string stored in AVP, it might be better to just have a structure compacted with all content in shared memory and stored in an XAVP -- the xavp can store a pointer and also have in its structure the callback to free the pointer.
<!--
Explain what you did, what you expected to happen, and what actually happened.
-->
### Troubleshooting
#### Reproduction
<!--
If the issue can be reproduced, describe how it can be done.
-->
#### Debugging Data
<!--
If you got a core dump, use gdb to extract troubleshooting data - full backtrace,
local variables and the list of the code at the issue location.
gdb /path/to/kamailio /path/to/corefile
bt full
info locals
list
If you are familiar with gdb, feel free to attach more of what you consider to
be relevant.
-->
```
(paste your debugging data here)
```
#### Log Messages
<!--
Check the syslog file and if there are relevant log messages printed by Kamailio, add them next, or attach to issue, or provide a link to download them (e.g., to a pastebin site).
-->
```
(paste your log messages here)
```
#### 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`
```
Git Master Branch
```
* **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`)
-->
```
(paste your output here)
```
--
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/1955
Since debian excludes some modules from the repo, I'd love to have an official debian repository for buster and stretch with all modules to add to my /etc/apt/sources.list
--
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/1970
Hi
Is there any mechanism to add a contact and rr headers to the option messages generated by dispatcher?
I have a need for both headers to be present otherwise the message gets rejected at the proxy im trying to connect to, the content of the headers in my use case is the from address, so would seem trivial (in so far I know enough c to just about follow what's going on in the code, but wouldn't know where to start to add the functionality) to add using the existing from attribute and a pair of additional modparams to enable this functionality, if its not already possible
Currently I have a workaround by generating the pings in asterisk and routing as usual, but would really prefer to not reinvent the wheel and use dispatcher as I do with other trunks and services mainly for consistency and keeping what is essentially a routing issue out of the application stack, as apart from the missing headers dispatchers functionality is exactly what I need.
Any suggestions?
Tim.
Hello Everyone,
Since last my email about optimization hiops module for kamailio, I am
thinking about new approach of relaying RTP (media) in Kamailio. I
know there are some modules like RTPEngine, RTPProxy and
rtp_media_server in Kamailio.
All those modules are in TURN concept of NAT-Traversal in vioce over
ip networks.
Suppose there is no needed for transcoding in some calls, then those
modules get RTP packets from one hand and relay them to another hand.
This activities (with no transcoding) could be done by just forwarding
RTP-packet in third level of networks,too. Just like as connection
tracking have been doing in Linux Kernel. The RTPEngine use Linux
Kernel, But it is different from my own idea.
Actually i have written another module in Kamailio (light-rtp-engine
or lre) for checking this concept. it works great.It increase
concurrent of calls rather than other modules in the same situation
(no transcoding situation).
Now i want to integrate this module with all other RTP-engine module
in Kamailio, For example in some situation that the call no need for
transcoding, the module runs as upper layer on other RTP modules and
active forwarding packet by add new rule in Linux Kernel connection
tracking.
Now i need to get some idea of working this module with other RTP
module in Kamailio. Do you have any idea in regard of this module
works as upper layer on other RTP-modules?
Do you have better idea of using this new approach of relaying RTP in Kamailio?
With Best Regards.
--
--Mojtaba Esfandiari.S
Hi,Kamailio Community
Is there a bug when we assign new value to $fU pseudo-variable multi time?
My scenery is according below:
In a point on config file, let us that $fU value is: 7777. When I do assign:
.....
$fU = "5555" + $fU; ### Here $fU = 55557777
.....
In another point, let us that value $sht(htble=>$var(nnnn)) hold is:
44444444. And I do:
.....
$fU = $sht(htble=>$var(nnnn)); #### Here, it seems that this is
happening $fU = 5555777744444444
.....
When I turn on ngrep analysis, I catch From header:
.................
.................
From: "User Name" <sip:5555777744444444@IP-Address>
.................
.................
This two assignments are realizing on same route block.
So, it seems to be a bug.
Best Regards,
CMA
Hello,
I am considering to split the app_lua module in order to move the older
style API available under Lua 'sr' module in a dedicated module (like
app_lua_sr). Later this module can be obsoleted and removed, once we
know that everything there is covered by KEMI KSR Lua module.
In this way, we make it more clear that KSR is the preferred API to use
as well have the app_lua smaller, for those using only KSR and not
needing 'sr' API.
Therefore I am starting the discussion to see if anyone has something
against or other suggestions. I cc-ed sr-dev to make developers aware,
but I think the best place for discussion is sr-users, being related to
how Kamailio is used, therefore reply only to sr-users.
Cheers,
Daniel
--
Daniel-Constantin Mierla -- www.asipto.comwww.twitter.com/miconda -- www.linkedin.com/in/miconda