Hi,
i would like to get the kamailio server ip address on start up and save it
in an $shv().
i tried to use "myself" but did manage to get the ip from it.
any ideas?
Uri
Hello,
On 2/17/12 1:11 PM, Alexandr Dubovikov wrote:
> Hi Daniel,
>
> he use raw_socket in the sipcapture module and save all REGISTER
> messages to location. (something like fraud controling for
> registration). I think in this case he have to ignore socket listener.
not sure I understood -- it is on the server that saves to homer's
database? It gets the traffic over a raw socket and then executes the
config file as usual with functions from other modules?
Cheers,
Daniel
>
> Wbr,
> Alexandr
>
>
>
>
> 17.02.2012 09:19, Daniel-Constantin Mierla wrote:
>> Hello,
>>
>> looks like an invalid listen socket structure, quite strange... what
>> version of kamailio do you have?
>>
>> Also, in gdb, frame 0, can you send the output of:
>>
>> p *_c
>> p *_c->sock
>>
>> You can replace sensitive data (like IP), if you wish.
>>
>> Cheers,
>> Daniel
>>
>> On 2/16/12 10:52 PM, Simpson Chua wrote:
>>> Hi,
>>>
>>> Kamailio is exiting with a segmentation fault when trying to do a
>>> save("location"). Here is some information I gathered.
>>>
>>> Feb 16 15:30:19 ubuntu /usr/local/sbin/kamailio[25721]: DEBUG:
>>> <core> [parser/msg_parser.c:103]: found end of header
>>> Feb 16 15:30:19 ubuntu /usr/local/sbin/kamailio[25721]: ERROR:
>>> <core> [db.c:435]: invalid parameter value
>>> Feb 16 15:30:19 ubuntu /usr/local/sbin/kamailio[25721]: ERROR:
>>> usrloc [udomain.c:564]: failed to use table location
>>> Feb 16 15:30:19 ubuntu kernel: [171540.056663] kamailio[25721]:
>>> segfault at 89 ip 00007fa1f9a41452 sp 00007fff971a3af0 error 4 in
>>> usrloc.so[7fa1f9a37000+1f000]
>>> Feb 16 15:30:19 ubuntu /usr/local/sbin/kamailio[25708]: ALERT:
>>> <core> [main.c:751]: child process 25720 exited by a signal 11
>>> Feb 16 15:30:19 ubuntu /usr/local/sbin/kamailio[25708]: ALERT:
>>> <core> [main.c:754]: core was generated
>>> Feb 16 15:30:19 ubuntu /usr/local/sbin/kamailio[25708]: INFO: <core>
>>> [main.c:766]: INFO: terminating due to SIGCHLD
>>>
>>> Core was generated by `kamailio -w /home/core'.
>>> Program terminated with signal 11, Segmentation fault.
>>> #0 db_insert_ucontact (_c=0x7f5f8f737eb0) at ucontact.c:474
>>> 474 vals[11].val.str_val = _c->sock->sock_str;
>>> (gdb) bt
>>> #0 db_insert_ucontact (_c=0x7f5f8f737eb0) at ucontact.c:474
>>> #1 0x00007f5f916d9649 in insert_ucontact (_r=<optimized out>,
>>> _contact=<optimized out>, _ci=<optimized out>, _c=0x7fff52bbeb88) at
>>> urecord.c:473
>>> #2 0x00007f5f914b785f in insert_contacts (_m=0x7f5f93d7f458,
>>> _d=0x7f5f8f72f680, _a=0x7fff52bbec00) at save.c:428
>>> #3 0x00007f5f914b8d10 in add_contacts (_mode=1, _a=0x7fff52bbec00,
>>> _d=0x7f5f8f72f680, _m=0x7f5f93d7f458) at save.c:737
>>> #4 save (_m=0x7f5f93d7f458, _d=0x7f5f8f72f680, _cflags=4) at save.c:790
>>> #5 0x000000000041ba87 in do_action (h=0x7fff52bbf5d0,
>>> a=0x7f5f93d7f238, msg=0x7f5f93d7f458) at action.c:1128
>>> #6 0x000000000041abe2 in run_actions (h=0x7fff52bbf5d0,
>>> a=0x7f5f93d7f238, msg=0x7f5f93d7f458) at action.c:1610
>>> #7 0x000000000041c05b in do_action (h=0x7fff52bbf5d0,
>>> a=0x7f5f93d7fe08, msg=0x7f5f93d7f458) at action.c:1107
>>> #8 0x000000000041abe2 in run_actions (h=0x7fff52bbf5d0,
>>> a=0x7f5f93d7fe08, msg=0x7f5f93d7f458) at action.c:1610
>>> #9 0x0000000000422fa2 in run_top_route (a=0x7f5f93d7fe08,
>>> msg=0x7f5f93d7f458, c=<optimized out>) at action.c:1683
>>> #10 0x00000000004b061e in receive_msg (buf=<optimized out>,
>>> len=<optimized out>, rcv_info=<optimized out>) at receive.c:207
>>> #11 0x00007f5f91b038b0 in raw_capture_rcv_loop (rsock=5, port1=5060,
>>> port2=8933, ipip=0) at sipcapture.c:1518
>>> #12 0x00007f5f91b03e1f in init_rawsock_children () at sipcapture.c:572
>>> #13 0x00007f5f91b04033 in child_init (rank=<optimized out>) at
>>> sipcapture.c:542
>>> #14 0x0000000000507a0f in init_mod_child (m=0x7f5f93d7b2b0, rank=0)
>>> at sr_module.c:886
>>> #15 0x0000000000507974 in init_mod_child (m=0x7f5f93d7b668, rank=0)
>>> at sr_module.c:883
>>> #16 0x0000000000507974 in init_mod_child (m=0x7f5f93d7c178, rank=0)
>>> at sr_module.c:883
>>> #17 0x0000000000507974 in init_mod_child (m=0x7f5f93d7c4b0, rank=0)
>>> at sr_module.c:883
>>> #18 0x0000000000476149 in main_loop () at main.c:1661
>>> #19 0x000000000041a940 in main (argc=<optimized out>,
>>> argv=0x7fff52bbfd68) at main.c:2475
>>>
>>> Any idea why this is happening? Is there something in the REGISTER
>>> message that is causing this?
>>>
>>> Thanks,
>>> Simpson
>>>
>>>
>>> _______________________________________________
>>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
>>> sr-users(a)lists.sip-router.org
>>> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>>
>> --
>> Daniel-Constantin Mierla --http://www.asipto.com
>> http://linkedin.com/in/miconda -- http://twitter.com/miconda
>>
>>
>> _______________________________________________
>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
>> sr-users(a)lists.sip-router.org
>> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
--
Daniel-Constantin Mierla -- http://www.asipto.comhttp://linkedin.com/in/miconda -- http://twitter.com/miconda
Is it possible to monitor 2 interfaces?
I have 2 Asterisk servers and they are on 2 different switches so I need to
capture ETH0 and ETH3 which is where the mirror ports are connected to from
each switch.
Thanks
I've been contemplating Daniel's earlier question about using the CAcert
certificates with Lumicall
sip5060.net should already accept mutual authentication from other
Kamailio instances running with a CAcert certificate
However, the Lumicall dialer itself will only connect to servers that
are using a cert signed by a root CA trusted within Android. This
applies to both the SIP and STUN over TLS support.
It may be possible for me to embed the CACert root in the Lumicall
package and create a custom trust manager - allowing Lumicall to work
with any server using CAcert TLS certificates. Does anyone have any
strong feelings about not doing something like that?
Hi,
I am using Mtree to match prefix numbers, some of them starts with 0 or
characters like D for example.
so, the mtree param is like this:
modparam("mtree", "db_url", CFGDB)
modparam("mtree", "mtree", "name=nts;dbtable=service_numbers_view;type=0;")
modpmodparam("mtree", "char_list", "0123456789*+#YMDabcdefgh")
modparam("mtree", "pv_value", "$avp(mtval)")
modparam("mtree", "pv_values", "$avp(mtvals)")
The thing is, that i tried all:
if(!mt_match("nts", "$avp(DID)","1"))
if(!mt_match("nts", "$avp(DID)","2"))
if(!mt_match("nts", "$avp(DID)","0"))
and lets say i have the both prefix in the nts mtree:
09555
09555333
And the prefix i search for is $avp(DID)=09555444
I allwasy get the 09555 because it is the longest match.
I need exact match.....
how do i do that?
Hello,
there will be a VoIP Users Conference (VUC) session dedicated to
Kamailio SIP Server next week, Friday, February 17, starting with
17:00GMT. VUC is an online weekly audio conferencing event, you can
connect via SIP and IRC to interact with the other participants.
More details (including the ways to connect) are available at:
*
http://www.kamailio.org/w/2012/02/kamailio-at-voipuserconference-fri-feb-17…
Join the event to learn about latest developments and future plans for
the project, ask questions about your interested topics. Spreading the
word about the event is also appreciated.
Cheers,
Daniel
--
Daniel-Constantin Mierla -- http://www.asipto.comhttp://linkedin.com/in/miconda -- http://twitter.com/miconda
Hello,
I am trying to compile mi_xmlrpc on Solaris 10 64bit OS and I am
getting this error:
CC (gcc) [M mi_xmlrpc.so] abyss_xmlrpc_server.o
abyss_xmlrpc_server.c:948:1: error: conflicting types for 'shutdownAbyss'
abyss_xmlrpc_server.c:945:34: note: previous declaration of
'shutdownAbyss' was here
abyss_xmlrpc_server.c: In function 'normalLevelAbyssRun':
abyss_xmlrpc_server.c:1005:42: warning: passing argument 2 of
'xmlrpc_registry_set_shutdown' from incompatible pointer type [enabled
by default]
/opt/csw/include/xmlrpc-c/server.h:114:1: note: expected 'void (*
const)(struct xmlrpc_env * const, void * const, const char * const,
void * const)' but argument is of type 'void (*)(struct xmlrpc_env *
const, void * const, const char * const)'
gmake[1]: *** [abyss_xmlrpc_server.o] Error 1
gmake: *** [modules_k] Error 1
Thanks
Nathaniel L Keeling
Hi, can someone please recommend the most appropriate modules to
rewrite R-URIs based on a database lookup table? I've read the
documentation for lcr and carrierroute but not sure if they can do
this.
In most cases it will be a simple R-URI rewrite but I also need to
rewrite based on From user.
ie
R-URI match From match new R-URI
=========== ========== =========
*97(a)example.com 6[0-9](a)example.com *97(a)10.0.0.1
*97(a)example.com 7[0-9](a)example.com *97(a)10.0.0.2
6[0-9](a)example.com match any rewrite domain to 10.0.0.1
abc(a)example.com match any def(a)example.com
Thanks
Ben
Hi,
our customers are using mostly UDP but some of them want to use TCP. The
problem is, I get various TCP errors in kamailio log and I do not
understand what they mean
1) ERROR: <core> [tcp_main.c:4130]: connect <customerIP:port> failed
This means kamailio is trying to connect with TCP to the customer ??
2) WARNING: tcp_do_connect <customerIP:port> : could not find corresponding
listening socket for IPaddress , using default... ( where IPaddress is
kamailio physical IP address)
Kamailio has one virtual IP address (heartbeat IP address) and one
physical. It listens on the virtual IP address but I do not understand why
it is trying to use the physical IP address ?
I was investigating this thing because the BYE message is not being relayed
if the TCP is used (everytime the 2. error message is printed), so that's
why I have to understand what it really means...
And the last question,
3) If kamailio is relaying the traffic to the PSTN gateway, and the
customer is using TCP, kamailio uses TCP as well for connecting to the PSTN
gw. Is this behaviour normal ? I would expect that
customer -- TCP --> kamailio --- UDP --> GW,
and not
customer -- TCP --> kamailio --- TCP --> GW,
Thanks,
Mino