Hi Guys,
Anybody knows if each 'socket' specified in routes struct should be use to
send the messages?
The socket is configured in kamailio.
In kamailio.cfg
listen=udp:172.16.213.38:5060
json struct
"routes": [
{
"uri": "sip:127.0.0.1:5080",
"dst_uri": "sip:127.0.0.1:5082",
"path": "<sip:127.0.0.1:5084>, <sip:127.0.0.1:5086>",
----> "socket": "udp:172.16.213.38:5060",<----
"headers": {
"from": {
"display": "Alice",
"uri": "sip:alice@127..
In our kamailio has two eth and I want to select which one to use but I
can't make it work through rtjson.
In the code of the module I can't find where is being assigned the socket.
Thanks in advance!
Diego
Hi everybody,
I have difficult time when configure load balancing for kamailio servers, i’m very appreciated if you help me figure out the problem.
This email contain images, if you can see images please read problem_detail.pdf.
I want to setup the system as following:
Both Load Balancer (LB) and Sip Server (SIP) run on Amazon EC2, (LB) using dispatcher module.
I enclose here config files for both (LB) and (SIP). Please view the files attached.
Figure (1) is what i saw when run kamctl dispatcher dump:
Figure (1)
I created 2 users with following information (extract from mysql cluster database, table subscriber):
Figure (2)
Then use sip client (Linphone) connect to (LB), registration is success, below is records from location table:
Figure (3)
But i can’t make call between 2 users. Below is data i get from wireshark:
Load Balancer:
Figure(4)
SIP Server:
Figure (5)
I also enclose 2 files export from wireshark for detail information.
Steve Nguyen,
---------------------------------------
Cell phone: (84)909585104
Mobile app developer
Phan Thi Company
Sai Gon, VietNam
Hi everybody,
I have difficult time when configure load balancing for kamailio servers, i’m very appreciated if you help me figure out the problem.
This email contain images, if you can see images please read problem_detail.pdf.
I want to setup the system as following:
Both Load Balancer (LB) and Sip Server (SIP) run on Amazon EC2, (LB) using dispatcher module.
I enclose here config files for both (LB) and (SIP). Please view the files attached.
Figure (1) is what i saw when run kamctl dispatcher dump:
Figure (1)
I created 2 users with following information (extract from mysql cluster database, table subscriber):
Figure (2)
Then use sip client (Linphone) connect to (LB), registration is success, below is records from location table:
Figure (3)
But i can’t make call between 2 users. Below is data i get from wireshark:
Load Balancer:
Figure(4)
SIP Server:
Figure (5)
I also enclose 2 files export from wireshark for detail information.
Hi,
shared memory not freed once TLS connection close means shm available
memory decreasing for new connection that leads to the following error
*tls: ssl bug #1491 workaround: not enough memory for safe operation*
*TestCase:*
1. start kamailio
2. use sample program to establish tls connection and close imediately.
3. Kamailio Log is
For first TLS connection
tls [tls_server.c:189]: tls_complete_init(): tls: enough memory for
safe operation: shm=63604096 threshold1=12058624
tls [tls_server.c:649]: tls_h_tcpconn_clean(): tls shm_available after
shm_free: 63545192
For second TLS connection
tls [tls_server.c:189]: tls_complete_init(): tls: enough memory for
safe operation: shm=63545192 threshold1=12058624
tls [tls_server.c:649]: tls_h_tcpconn_clean(): tls shm_available after
shm_free: 63489352
*Memory Leak:*
for tls connection connection
63604096 - 63545192 = 58904 bytes not freed.
for tls connection connection
63545192 - 63489352 = 55840 bytes not freed.
I tested same scenario on kamailio - 4.2.4, 4.3.4 versions result is same.
Could you please provide the fix?
Thanks & Regards,
Raja Chegondi.
in mod_init I have something like
list = (struct list_t*) shm_malloc .....
this list is available from any functions in the module,
now there is a timer registered, in the same module
register_timer(callback_f, 0 , 5)
the callback_f function when tries to use list, always sees as empty
--
View this message in context: http://sip-router.1086192.n5.nabble.com/register-timer-cb-function-does-not…
Sent from the Users mailing list archive at Nabble.com.
Hello,
My SIP vendor request me to replace the from in order to authenticate calls.
I use:
uac_replace_from("111111111", "sip:111111111@vendor-domain.com");
And when finishing calls I have this error:
ERROR: uac [replace.c:607]: restore_uri(): new URI [] shorter than old URI
[sip:34912345678@vendor-public-ip]
Information
------------------------------------------------------------------
34912345678 -> original CLI
111111111 -> my vendor contract
vendor-domain.com -> domain of the vendor
------------------------------------------------------------------
I use the function uac_replace_from in the request_route
My Kamailio version is: 4.2.8-1.1
Thank you
Nelson.-
Hi all,
Is it possible to set the natping_interval to a different value, per registration, at the time the user registers? For example, user A has 10 seconds and user B has 60 seconds.
Thanks
Hi all
I'm getting an auth challenge result of -3 and I don't know what it means as
it's not listed in the auth module doc.
Here's syslog' output:
db_postgres [km_dbase.c:230]: db_postgres_submit_query(): sending query ok:
0x7f36d1f75f00 (2) - [select secret from sip_buddies where
username='48481628780']
db_postgres [km_res.c:108]: db_postgres_get_columns(): 1 columns returned from
the query
db_postgres [km_res.c:133]: db_postgres_get_columns():
RES_NAMES(0x7f36d1f92238)[0]=[secret] db_postgres
[km_res.c:166]:
db_postgres_get_columns(): use DB1_STRING result type db_postgres
[km_res.c:211]: db_postgres_convert_rows(): no rows returned from the query
auth_db [authorize.c:199]: get_ha1(): no result for user '48481628780@'
INFO: <script>: Ha fallado la auth con resultado -3
cheers
Jon
Hello,
with MI code planned to be removed, I updated the kamctl and default
kamailio.cfg to use jsonrpcs (jsonrpc server) module instead of mi_fifo
to interact with kamailio at runtime.
The default fifo file for rpc command is
/var/run/kamailio/kamailio_rpc.fifo and expects JSONRPC commands as
described at:
- http://kamailio.org/docs/modules/devel/modules/jsonrpcs.html#idp31525708
Switching back to mi_fifo is still possible by loading the module and
editing kamctlrc, but the module might not make it to 5.0, so for new
installations and testing is better not to use it.
Few rpc commands are missing in carrierroute, otherwise the kamctl
commands should work just as before, but be aware that the output is now
in json format.
Testing of the master branch with the latest kamctl and providing
feedback will be really appreciated -- I could do tests only for the
modules I typically use.
Cheers,
Daniel
--
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference - May 8-10, 2017 - www.kamailioworld.com