Hi list,
We have two eth, one with a private ip and the other with a public ip. We
have MHOMED configured. The call comes from private network and then is
routed to a public network via rtjson routing. The is routed but the thing
is that the record route is being set with the private one (It's the same
when calls come from public and is routed to a private network, record
route has the public and not the private).
With mhomed configured shouldn't Record Route be updated as VIA header
".... …
[View More]When activated, sip-router will select a socket that can reach the
destination (to be able to connect to the remote address). (sip-router
opens a UDP socket to the destination, then it retrieves the local IP which
was assigned by the operating system to the new UDP socket. Then this
socket will be closed and the retrieved IP address will be used as IP
address in the Via/Record-Route headers)..."
This is part of ngrep
U 2016/12/22 11:24:15.019643 172.16.213.21:5060 -> 172.16.213.38:5060
INVITE sip:11111111111@172.16.213.38:5060 SIP/2.0.
Via: SIP/2.0/UDP 172.16.213.21:5060;branch=z9hG4bK-13024-1-0.
From: "Test" <sip:2222222222@172.16.213.21:5060;user=phone>;tag=1.
To: <sip:1111111111@172.16.213.38:5060>.
Call-ID: 1-13024(a)172.16.213.21.
CSeq: 1 INVITE.
Contact: "2222222222 <sip:2222222222@172.16.213.21:5060>.
....
U 2016/12/22 11:24:15.023923 172.16.213.38:5060 -> 172.16.213.21:5060
SIP/2.0 100 trying -- your call is important to us.
Via: SIP/2.0/UDP 172.16.213.21:5060;branch=z9hG4bK-13024-1-0.
....
U 2016/12/22 11:24:15.038695 XXX.XXX.XXX.01:5060 -> XXX.XXX.XXX.02:5060
INVITE sip:1111111111@XXX.XXX.XXX.02:5060 SIP/2.0.
*-----> Record-Route: <sip:172.16.213.38;lr;ftag=1;did=1111>. <----*
Via: SIP/2.0/UDP XXX.XXX.XXX.01;branch=z9hG4bKc09f
Via: SIP/2.0/UDP 127.0.0.8;branch=z9hG4bKsr-j4IPOlV7MGQKatycM.NLOBF6
This is my cfg
mhomed=1
request_route {
# per request initial checks
route(REQINIT);
# NAT detection
#route(NATDETECT);
# CANCEL processing
if (is_method("CANCEL")) {
if (t_check_trans()) {
route(RELAY);
}
exit;
}
# handle requests within SIP dialogs
route(WITHINDLG);
### only initial requests (no To tag)
# handle retransmissions
if(t_precheck_trans()) {
t_check_trans();
exit;
}
t_check_trans();
# authentication
route(AUTH);
# record routing for dialog forming requests (in case they are
routed)
# - remove preloaded route headers
remove_hf("Route");
if (is_method("INVITE|SUBSCRIBE")) {
record_route();
}
Thanks in advance.
Diego.
[View Less]
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 …
[View More]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
[View Less]
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 …
[View More]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
[View Less]
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 …
[View More]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.
[View Less]
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 […
[View More]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.
[View Less]
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 …
[View More]vendor
------------------------------------------------------------------
I use the function uac_replace_from in the request_route
My Kamailio version is: 4.2.8-1.1
Thank you
Nelson.-
[View Less]
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] …
[View More]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
[View Less]