Hello guys,
I'd like to search for " ' or &
But i can't seem to figure out how... I tried:
$tU =~ "[\"'&]"
But that's not catching it...
Regards,
David Villasmil
email: david.villasmil.work(a)gmail.com
phone: +34669448337
ᐧ
Greetings,
I'm using subst_hf() function to do some search and replace and i want to
identify a undifined amount of digits after a string (ex: string=123123).
Everywhere i look, the right way seems to be \d so i'm doing
subst_hf("Via","/;string=\d/substitution_string/", "a");
It doesn't seem to work. Any ideas why?
Best Regards,
Duarte Rocha
Kamailio didn't start listening on IP mentioned in Module RTPPROXY parameter Timeout_Socket<https://kamailio.org/docs/modules/5.1.x/modules/rtpproxy.html#rtpproxy.p.ti…>.
Below is my configuration file.
loadmodule "rtpproxy.so"
modparam("rtpproxy", "rtpproxy_sock", "udp:127.0.0.1:7722")
modparam("rtpproxy", "rtpproxy_tout", 1)
modparam("rtpproxy", "rtpproxy_retr", 2)
modparam("rtpproxy", "timeout_socket", "xmlrpc:http://127.0.0.1:8000/RPC2")
loadmodule "xmlrpc.so"
modparam("xmlrpc", "route", "XMLRPC");
modparam("xmlrpc", "mode", 1)
modparam("xmlrpc", "url_match", "^/RPC2")
when I type a command
$ netstat -nlp
it only shows SIP listening ports. Kamailio should also start listening on 127.0.0.1:8000.
Below are the RTPproxy logs, RTPproxy is also unable to bridge the media
DBUG:get_command:GLOBAL: received command "19083_4 Uc120,101 9a1060af660d4202976c419ab5300470 58.65.176.42 4000 1ea06d1eb0a8443697a08e568045598c;1"
INFO:rtpp_command_ul_handle:GLOBAL: new session 9a1060af660d4202976c419ab5300470, tag 1ea06d1eb0a8443697a08e568045598c;1 requested, type strong
INFO:rtpp_command_ul_handle:9a1060af660d4202976c419ab5300470: new session on a port 35012 created, tag 1ea06d1eb0a8443697a08e568045598c;1
INFO:rtpp_command_ul_handle:9a1060af660d4202976c419ab5300470: pre-filling caller's address with 58.65.176.42:4000
DBUG:rtpc_doreply:GLOBAL: sending reply "35012 51.38.201.3
"
DBUG:get_command:GLOBAL: received command "19083_5 Uc120,101 9a1060af660d4202976c419ab5300470 58.65.176.42 4022 9RPsEBbcZSA23MmWAw0hfXzJ-bG1GYDq;1 1ea06d1eb0a8443697a08e568045598c;1 xmlrpc:http://127.0.0.1:8000/RPC2"
INFO:rtpp_command_ul_handle:GLOBAL: new session 9a1060af660d4202976c419ab5300470, tag 9RPsEBbcZSA23MmWAw0hfXzJ-bG1GYDq;1 requested, type strong
INFO:rtpp_command_ul_handle:9a1060af660d4202976c419ab5300470: new session on a port 35014 created, tag 9RPsEBbcZSA23MmWAw0hfXzJ-bG1GYDq;1
ERR:rtpp_command_ul_handle:9a1060af660d4202976c419ab5300470: invalid socket name 1ea06d1eb0a8443697a08e568045598c;1
INFO:rtpp_command_ul_handle:9a1060af660d4202976c419ab5300470: pre-filling caller's address with 58.65.176.42:4022
DBUG:rtpc_doreply:GLOBAL: sending reply "35014 51.38.201.3
"
DBUG:get_command:GLOBAL: received command "19086_4 D 9a1060af660d4202976c419ab5300470 9RPsEBbcZSA23MmWAw0hfXzJ-bG1GYDq 1ea06d1eb0a8443697a08e568045598c"
INFO:handle_delete:9a1060af660d4202976c419ab5300470: forcefully deleting session 1 on ports 35012/0
INFO:remove_session:9a1060af660d4202976c419ab5300470: RTP stats: 0 in from callee, 0 in from caller, 0 relayed, 0 dropped
INFO:remove_session:9a1060af660d4202976c419ab5300470: RTCP stats: 0 in from callee, 0 in from caller, 0 relayed, 0 dropped
INFO:remove_session:9a1060af660d4202976c419ab5300470: session on ports 35012/0 is cleaned up
INFO:handle_delete:9a1060af660d4202976c419ab5300470: forcefully deleting session 1 on ports 35014/0
INFO:remove_session:9a1060af660d4202976c419ab5300470: RTP stats: 0 in from callee, 0 in from caller, 0 relayed, 0 dropped
INFO:remove_session:9a1060af660d4202976c419ab5300470: RTCP stats: 0 in from callee, 0 in from caller, 0 relayed, 0 dropped
INFO:remove_session:9a1060af660d4202976c419ab5300470: session on ports 35014/0 is cleaned up
DBUG:rtpc_doreply:GLOBAL: sending reply "0
"
DBUG:get_command:GLOBAL: received command "19086_5 D 9a1060af660d4202976c419ab5300470 9RPsEBbcZSA23MmWAw0hfXzJ-bG1GYDq 1ea06d1eb0a8443697a08e568045598c"
INFO:handle_command:GLOBAL: delete request failed: session 9a1060af660d4202976c419ab5300470, tags 9RPsEBbcZSA23MmWAw0hfXzJ-bG1GYDq/1ea06d1eb0a8443697a08e568045598c not found
DBUG:rtpc_doreply:GLOBAL: sending reply "E50
But if I comment out the param "Timeout_Socket" then there is no issue in bridging the media.
Regards
Hamid R. Hashmi
Hello guys
On my working config, i enabled uac like so:
loadmodule "uac.so"
...
modparam("uac", "reg_db_url", DBURL)
modparam("uac", "reg_db_table", "uacreg")
modparam("uac", "reg_contact_addr", "test-proxy.singlecomm.com")
...
And i added a user to the uacreg table:
id,l_uuid,l_username,l_domain,r_username,r_domain,realm,auth_username,auth_password,auth_ha1,auth_proxy,expires,flags,reg_delay
1,10001,myuser,test-proxy.test.com,myuser,myprovider.com,myprovider.com
,myuser,mypass,,sip:myprovider.com,300,0,0
But it's not trying to register, and when i do:
#> kamcmd uac.reg_info l_uuid 10001
I get:
error: 404 - Record not found
What am I doing wrong?
Regards,
David Villasmil
email: david.villasmil.work(a)gmail.com
phone: +34669448337
ᐧ
Greetings,
I need to to include some routing information (Two Id's, example
"id_in=10;id_out=72") to be read later by Kamailio in every Request (Except
the first one and in every Reply.
For the requests, i'm including this info as parameters in the Record-Route
and i'm reading it later in the Route Headers.
For replies i thought about using the Via header. I'm using subst_hf() and
i'm having success adding the parameter to Via in the requests. However, it
does not seem the best idea since i breake the routing when i add the
parameter.
I wanted to avoid using custom headers for this since i can't really be
sure that they won't be erased by any client's CPE or endpoint.
Any ideas on this ?
Thanks
Cheers,
Duarte Rocha
Hello Everyone,
User location lookup looks like can't handle long $rU like
10102-ce72256df4945bc472ed9c27a1037f46.
It always return -3 404 not found.
here relevant log
Sep 19 23:37:26 canlvprx01 /usr/sbin/kamailio[29217]: INFO: <script>:
[INVITE] Call going from LAN SourceIP <10.18.130.50> to WAN.
Sep 19 23:37:26 canlvprx01 /usr/sbin/kamailio[29217]: INFO: <script>:
Looking user --> 10102-ce72256df4945bc472ed9c27a1037f46 in db
Sep 19 23:37:26 canlvprx01 /usr/sbin/kamailio[29217]: INFO: <script>:
Got [INVITE] and status <null>
route[LOCATION] {
$avp(oexten) = $rU;
xlog("L_INFO", "Looking user --> $rU in db\n");
if (!lookup("location")) {
$var(rc) = $rc;
t_newtran();
switch ($var(rc)) {
case -1:
case -3:
route(MSG_STORE);
# Meaning SMS has being stored for
offline delivery
if(!t_check_status("202")) {
xlog("L_INFO", "Got [$rm] and
status [$rs]\n");
# For rest traffic proceed as
normal
send_reply("404", "Not Found");
}
exit;
case -2:
send_reply("405", "Method Not Allowed");
exit;
}
}
}
kamailio-5.1.3-1.gitf0dce0c99.fc27.x86_64
volga629
Am Samstag, 15. September 2018, 20:00:39 CEST schrieb hexhaxtron:
> I can't make it work...
>
> It seems to have created the databases without any problem.
> [pastebin cfg and logs]
Hi Hexatron,
please keep the list in CC.
you should investigate why this error happens:
Sep 14 06:52:07 thunix.org mysqld[1943]: 2018-09-14 6:52:07 140187532334848
[Warning] Access denied for user 'kamailio'@'localhost' (using password: YES)
Sep 14 06:52:07 thunix.org /usr/sbin/kamailio[4254]: ERROR: db_mysql
[km_my_con.c:124]: db_mysql_new_connection(): driver error: Access denied for
user 'kamailio'@'localhost' (using password: YES)
Can you login with a mysql client on a shell to the database with the same
credentials?
Best regards,
Henning
--
Henning Westerholt
https://skalatan.de/blog/
Hello,
we are organizing an open social networking event in the evening of Sep
27, 2018, in Dusseldorf, at the end of the first day of Kamailio
Developers meeting.
Anyone in the area that wants to enjoy beer, pizza and chat about
Kamailio, VoIP/RTC is welcome to join us. More details at:
*
https://www.kamailio.org/w/2018/09/kamailio-on-tap-social-event-in-dusseldo…
Note that participation is free, but you have to announce your
participation until Sep 26 in order to plan properly the event.
Cheers,
Daniel
--
Daniel-Constantin Mierla -- www.asipto.comwww.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference -- www.kamailioworld.com
Kamailio Advanced Training, Nov 12-14, 2018, in Berlin -- www.asipto.com