Hey Jony,
while during "make deb" it complains of lua files
output
..................................
In file included from app_lua_api.c:37:
app_lua_api.h:27:17: warning: lua.h: No such file or directory
app_lua_api.h:28:21: warning: lauxlib.h: No such file or directory
app_lua_api.h:29:20: warning: lualib.h: No such file or directory
In file included from app_lua_api.c:37:
app_lua_api.h:35: error: expected specifier-qualifier-list before
‘lua_State’
app_lua_api.h:58: error: expected ‘)’ before ‘*’ token
---------------------------------
I have all the 3 versions devs of lua installed
debbox:~/kamailio# apt-file search lualib.h
liblua5.1-0-dev: /usr/include/lua5.1/lualib.h
liblualib40-dev: /usr/include/lua40/lualib.h
liblualib50-dev: /usr/include/lua50/lualib.h
dpkg - L | grep -i liblua
debbox:~/kamailio# dpkg -l |grep lua
ii liblua40 4.0-13 Main
interpreter library for the Lua 4.0 programming language
ii liblua40-dev 4.0-13 Main
interpreter library for lua40: static library and headers
ii liblua5.1-0 5.1.3-1 Simple,
extensible, embeddable programming language
ii liblua5.1-0-dev 5.1.3-1 Simple,
extensible, embeddable programming language
ii liblua50 5.0.3-3 Main
interpreter library for the Lua 5.0 programming language
ii liblua50-dev 5.0.3-3 Main
interpreter library for Lua 5.0: static library and heade
ii liblualib40 4.0-13 Extension
library for the Lua 4.0 programming language
ii liblualib40-dev 4.0-13 Extension
library for Lua 4.0: static and headers
ii liblualib50 5.0.3-3 Extension
library for the Lua 5.0 programming language
ii liblualib50-dev 5.0.3-3 Extension
library for Lua 5.0: static and headers
ii lua50 5.0.3-3 Small
embeddable language with simple procedural syntax
I reckon the path is not correct in one of the header files.
vi modules/app_lua/app_lua_api.h
.....................
#include <lua.h>
#include <lauxlib.h>
#include <lualib.h>
........................
could you enlighten me ?
Thanx.
>> In Kamailio, how would I go about receiving a sip request, append a
>> user "sipentry1" then forward it to Asterisk? I would be using some
>> sort of trunk prefix to identify which sip request to append the user
>> like:
>>
>> 552145551212@siprouter, strip 55, append user "sipentry1", dispatch
>> t-relay to asterisk
>> 562145551212@siprouter, strip 56, append user "sipentry2", dispatch
>> t-relay to asterisk
>> 572145551212@siprouter, strip 57, append user "sipentry3", dispatch
>> t-relay to asterisk
>>
>> Any point in the right direction will be appriciated. Which module
>> should I be looking into?
>
> In Asterisk, sip.conf peer matching is done by source host and port
> unless the 'type' is set to 'dynamic'.
>
> That said, if your desire is to change the From header display name or
> user part of the From URI, you should use the 'uac' module and look
> into the 'uac_replace_from()' function. It's a little unorthodox by
> RFC 2543 standards, but because it spoofs the From header statefully
> and reverts the value on replies before passing back to the near
> end--such that the initiating endpoint is none the wiser--it works.
>
> Otherwise, if your main desire is to customise entry points into
> various dial plan contexts for otherwise similar calls, I suggest
> routing on a different criterion. Custom headers have sort of become
> a de facto means of out-of-band inter-machine associated signaling
> additions in SIP where it is possible to add them. Why not use a
> custom header? In Kamailio, add a header to the initial INVITE
> request that is something like:
>
> append_hf("X-JR-Dialplan-Target: my_context");
>
> Then, route all calls in Asterisk via one sip.conf peer and into one
> "master" dial plan context, where you can then make further routing
> decisions based on the value of the header - sip.conf:
>
> [my_proxy]
> ...
> host=xx.xx.xx.xx
> insecure=port,invite
> ...
> context=master_dp_router
>
> And then in extensions.conf:
>
> [master_dp_router]
>
> exten => _.,1,Goto(${SIP_HEADER(X-JR-Dialplan-Target)},${EXTEN},1)
>
> ...
>
> [my_context]
>
> exten => 5551212,1,Answer
> exten => 5551212,n,Playback(hello-world)
> ...
> Alex Balashov - Principal
> Evariste Systems LLC
Hi Alex. I use a general context in asterisk to route calls already
and wanted to get away from pattern matches. I'm using asterisk
realtime and want to decrease the load. I'll play around with the
'uac_replace_from()' and 'append_hf' to see what works best for me.
I really appreciate your quick response, very insightful.
Thanks.
JR
--
JR Richardson
Engineering for the Masses
Hi All,
I am using Kamilio 3.0.2 as a load balancer in front of Asterisk
servers, using Dispatcher/PDT and such, working fine. I would like to
be able to bring sip calls into Asterisk at different entry points in
the dialp plan, so I want to setup sip users; [sipentry1] contex=blah,
[sipentry2] context=blahblah.
In Kamailio, how would I go about receiving a sip request, append a
user "sipentry1" then forward it to Asterisk? I would be using some
sort of trunk prefix to identify which sip request to append the user
like:
552145551212@siprouter, strip 55, append user "sipentry1", dispatch
t-relay to asterisk
562145551212@siprouter, strip 56, append user "sipentry2", dispatch
t-relay to asterisk
572145551212@siprouter, strip 57, append user "sipentry3", dispatch
t-relay to asterisk
Any point in the right direction will be appriciated. Which module
should I be looking into?
Thanks.
JR
--
JR Richardson
Engineering for the Masses
Hello,
I published a tutorial of how to implement a SIP SIMPLE Presence & XCAP
server with latest Kamailio/SER version. You can find it at:
http://bit.ly/btrJij
Last build of SIP Communicator softphone was used to exemplify some use
cases.
xcap_server is a new module in upcoming v3.1.0, I have tested it with
several SIP clients, but I have to say is not easy to find one that
implements many presence & xcap extensions (filled already couple of
bugs so far). So consider it a young component by now, however, with it
inside our SIP server, deploying a SIP presence server becomes trivial.
Hope is helpful,
Daniel
--
Daniel-Constantin Mierla
http://www.asipto.com
Hello,
is it possible to retrieve the info related to the INVITE transaction while the CANCEL is processed?
In particular, when the script is handling the CANCEL, how can I get the avp values written in the corresponding INVITE transaction?
Thanks,
Daniele
**********************************************************************
The information in this message is confidential and may be legally
privileged. It is intended solely for the addressee. Access to this
message
by anyone else is unauthorized. If you are not the intended
recipient, any
disclosure, copying, or distribution of the message, or any action
or
omission taken by you in reliance on it, is prohibited and may be
unlawful.
Please immediately contact the sender if you have received this
message in error.
**********************************************************************
Hi List,
Having an issue with my freeradius, I am getting below errors when kamailio
sends radius records and freeradius try to store into database;
Error: Ignoring request from unknown client 192.168.1.100:1814
Radius client and server are running on the same machine and I have
necessary configuration in clinet.conf and server.conf for localhost and I
can see radius is writing record for the calls but looks like radius client
is trying to send record twice one from localhost and one from the interface
ip?
Error: Rejecting request 88 due to lack of any response from home server
OpenSER:5061
Proxy: marking accounting server 192.168.1.100:1813 for realm DEFAULT dead
Proxy: marking accounting server 78.137.190.133:1813 for realm DEFAULT dead
Error: rlm_sql (sql): Couldn't insert SQL accounting START record -
Duplicate entry
'fdeb080-b342ea59-13c4-50022-17bee27-76d4b161-17bee27-fc5b7f8-b34' for key
'sess_id'
Error: rlm_sql_mysql: Cannot store result
As the radius record being store in the database so looks like its trying to
record the same data twice and because the this record already in the
database its failing to record the data.
I know this is more related to freeradius but I am just wondering if someone
experienced the same problem and how it was resolved
Thanks,
Asim
Hey Jon,
I gather you are the man when it comes to packaging the goods.
My query:
Building packages for a distribution yields in the end packages with this
3.0.2.99 version.
How come ? shoudn't it be 3.1.x
(source pulled from git repo of kamailio 3.1)
Anyway how are there any test packages out there to be tested before
releasing on 6 th ?
Thanks
--
now that 3.1 has async tls support, i decided (first time ever) to try
to test tls. things went quite smoothly when i followed "Create
Certificates to be used with Kamailio" document
http://kamailio.org/dokuwiki/doku.php/tls:create-certificates#using_the_cer…
during the process, i fixed a typo in the doc, added two comments to cfg
part:
enable_tls=1
tcp_async=no # do not include in 3.1
listen=udp:0.0.0.0:5060
listen=tcp:0.0.0.0:5060
listen=tls:0.0.0.0:5061 # not needed in 3.1
and fixed wrong file references in client configurations:
eyebeam: copy the CA certificate (/etc/certs/demoCA/cert.pem) to the Windows PC and add it to the Windows certificate store (Start→Control Panel→Internet)
QjSimple: copy the CA certificate (/etc/certs/demoCA/cert.pem) to the
client PC and configure QjSimple to use this CA (“TLS CA file” and
“verify TLS server certificate)
earlier the paths pointed to certs/sip.mydomain.com files, which i think
were wrong. at least i was not able to get them working.
perhaps someone who is more familiar with tsl stuff could verify the
above changes.
-- juha
What is the correct way to write flags in Kamailio 3.0.3? I've tried
both enum-like way: "flags a, b;" and the macro way: "#!define a 1",
but neither has worked. I'm getting a syntax error trying to used
defined flag, e.g.:
modparam("usrloc", "nat_bflag", FLB_NATB)
In 3.1 though the macro works fine.
--
Sincerely,
Andrew Pogrebennyk