I would like to terminate the dialog when one party disconnects without
sending a BYE
(no more connctivity, client shutdown)
I am using TCP connection.
Should I terminate the dialog from event_route[usrloc:contact-expired] ?
I have tried also to use SIP OPTION parameter from dialog module
modparam("dialog", "ka_timer", 10 )
modparam("dialog", "ka_interval", 30 )
but nothing is sent)
thibault
Hi All,
I need to run some SQL and then set the destination URI according to the
results, if any.
I've got this working using APP_LUA, however, I've noticed SQLOPS.
Can anyone advise on which method is likely to produce better results.
I'm assuming my Lua function is connecting to the DB and then disconnecting
each time.
If I use SQLOPS, does this mean Kamailio will keep a connection available
to the DB?
--
Luke Milbourne
<luke.milbourne(a)gmail.com>
Tel: 07857154817
Google Talk/Email: luke.milbourne(a)gmail.com
Dear Concern,
I have installed kamailo and siremis installed properly. But I cannot login
to the siremis, the login page is not loaded successfully. Please have a
look on the attached image and any suggestion from your end?
Regards,
Morshed Alam
Support Engineer | IP Telephony
Link3 Technologies Ltd.
Bulu Ocean Tower, 17th Floor
40, Kemal Ataturk Avenue, Banani,
Dhaka 1213, Bangladesh.
Tel: +88-02-9822288
IP Phone : +88-09678997705
Fax: +88-02-9821332
Web: <http://www.link3.net> www.link3.net
Hi,
I understand that kamailio does not allow float-point values in variables
and I think kamailio is not a great place to do complex arithemtic
operations and so I thought of using app_lua for the same.
So can I pass the control to app_lua and come back to config script with
some values? For eg. can I call a lua script that does a complex
arithemetic operation on my AVP values and based on certain conditions;
return back a true or false and then I continue in my existing script.
I came across an exmaple
http://kb.asipto.com/kamailio:usage:k32-lua-routing but
this is more like doing the entire thing inside LUA. What I'm looking at is
getting certain things done in lua and continue the script processing.
Thanks for any help here.
- Jayesh
Hello,
First, i have 7 years experience with Asterisk, but I started a project
with Kamailio, forgive me in advance if I say silly things...! ;-)
I set up a classic Asterisk / Kamailio configuration:
sip phones -> kamailio -> asterisk -> sip trunks/pstn.
When a call comes from the PSTN side, if I configure Asterisk as follows:
[012345678]
type = friend
username = 012345678
secret = xxxxxxx
host = dynamic
fromdomain = sip.mydomain.com
fromuser = 012345678
Standard mode:
exten => 012345678, 1, Dial(SIP/012345678) -> The call is redirected on the
phone by Kamailio ! :-)
------------------------------------------------------------------------------------------------------------------------------------------------
Trunk mode:
[mytrunk]
type = friend
username = mytrunkUser
secret = xxxxxxx
host = dynamic
fromdomain = sip.mydomain.com
fromuser = mytrunkUser
exten => 012345678, 1, Dial(SIP/mytrunk/012345678) -> The call is rejected
by Kamailio....
exten => 012345679, 1, Dial(SIP/mytrunk/012345679) -> The call is rejected
by Kamailio ....
My question is how to allow the routing of multiple numbers (trunk mode) in
a SIP account with Kamailio?
Best regards,
Mickael
Hello,
We are running Kamailio 4.2.6 ( db77ac) compiled with memory debugging.
The free PKG memory has decreased on ~6.5 M after two weeks.
Please see attached file with the log messages at kamailio shutdown.
Thank you in advance,
Julia.
Hi list,
Record-route on sequential requests doesn't have did/vsf parm.
On initial INVITE, I call record_route() and set dialog flag.
kamailio adds the following RR
Record-Route: <sip:ww.xx.yy.zz;lr;ftag=15af612df;vsf=AAAA....;did=4a8.3ca2>
UAC sends a re-INVITE, containing the following route:
Route: <sip:178.21.251.54;lr;ftag=15af612df;vsf=AAAA....;did=4a8.3ca2>
I call loose_route() followed by record-route(), and kamailio adds the following RR:
Record-Route: <sip:ww.xx.yy.zz;lr;ftag=15af612df>
I've got a phone which updates the routeset on sequential requests (which I don't think it should) and the did-matching fails.
Should kamailio add did/vsf on sequential requests, when I call record_route()?
Should I set dlg_match_mode to 1? (I use 0)
Is it wrong to call record_route() from sequential requests?
Which way is the best to resolve the problem?
Regards,
Kristian Høgh
Uni-tel A/S
Hello everyone,
this is my first message. I'm glad to become a part of this big community.
I'm new in SER technology. I worked in Asterisk PBX only, until now.
For the first time i installed Elastix MT witch have kamailio in front of
asterisk, and now i have a problem.
I attach a diagram of initial configuration in my lab and pcap file and
kamailio.cfg.
Regardless diagram, x.x.x.x addresses are public and y.y.y.y are private.
When i test connection 1.1 is working,
connection 1.2 not working
connection 2.2 not working
connection 1.3 not working
connection 2.3 working
Phones are connected(authenticate) to kamailio, but when i look at asterisk
cli those phones are unreachable, but can call, but can not be called.
On router where android works, Siemens dont, and where pc softphone works
other UAC dont work.
I think that my nat-traversal configure good, regardless of documentation.
Please tell me, if someone has some ideas of solve this problem.
Thanks in advance, and sorry for my bad english :)
----------------------------------------------------------------------
*Vladimir Stepić,*
Engineer specialist in computer networking
System Linux Administrator
mob. tel. +381 69/18-68-431
email: e1.e398(a)gmail.com
Hi,
I'm doing some experimentation on kamailio's udp_server.c. Now i need
libpcre for that. So i first thought if i enable the regex module, the
CFLAGS/LDFLAGS would be available from udp_server.c. But it turns out
it doesn't build(doesn't *link* to be more precise).
Kamailio's build system is pretty unfamiliar for me. Although i
absolutely hate autotools based build system(I prefer Scons), but i'm
pretty familiar with these. But Kamailio's build system is pretty much
cryptic for me(Is it based on CMake?).
There is a page on devel wiki for kamailio's build system. it turns
out i can do stuff like :
make cfg prefix=/opt/kamailio \
SCTP=1 \
CC_EXTRA_OPTS=-I/usr/gnu/include \
group_include="standard postgres presence" \
include_modules="snmpstats lcr tls"
So there might be a LD_EXTRA_OPTS or stuff like that. Which than would
be defined (I guess) globally so the core c files(like udp_server.c)
would be able to use that. One way i guess would be to sharpen my
egrep and find that variable name. But it all feels a bit hacky. As i
have already included regex module, there should be a way to reuse the
CFLAGS/LDFLAGS for that module for core files like udp_server.c.
Cheers
Arif
Hello,
On 30/11/15 14:52, Marino Mileti wrote:
>
> I would like to use nathelper module in order to "ping" all registered
> client and "delete" (from locations table) clients that are not
> reachable (maybe there's some network issue, or some other problem)
>
>
>
> I've seen that it's possible to have this feature for natted contact
> using nathelper (but i haven't tried this functionaliy)
>
>
>
> Is there a way to remove records from location table without wait that
> its expire is 0?
>
>
see:
http://kamailio.org/docs/modules/stable/modules/nathelper.html#nathelper.p.…
Also, look at the parameter of usrloc module for handling contacts that
have the tcp connection cut.
Cheers,
Daniel
--
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Book: SIP Routing With Kamailio - http://www.asipto.comhttp://miconda.eu