[SR-Users] Registration replication

2012-02-17 Thread Spencer Thomason
Hello, I'm currently working on a HA setup with geographically separated proxies. Each proxy is in a different data center with an MPLS link between them. The proxies access a locally connected PostgreSQL database that is replicated from a master in the primary data center. Note that the

Re: [SR-Users] Require Certificate

2012-02-17 Thread Bruno Bresciani
Thanks Daniel but I have some problems... a) my SIP gateway doesn't send the certificate when it isn't demanded... b) I was reading about TLS specific config file (tls.cfg), but my requirements doesn't allow to configure differents TLS ports. Do you have other idea? Best Regards 2012/2/17 D

Re: [SR-Users] Kamailio or VOS3000

2012-02-17 Thread Andreas Granig
Hi, On 02/17/2012 07:10 PM, Abid Naseem wrote: > How kamailio is different from VOS3000 or Nextone or PORTASwitch when we are > talking about wholesale routing? Kamailio is a sip routing engine and could be seen as an SDK to implement a soft-switch, whereas the others you mentioned are complete

Re: [SR-Users] Require Certificate

2012-02-17 Thread Daniel Pocock
On 17/02/12 19:01, Bruno Bresciani wrote: > Hi All, > > Does it possible on tls module require certificates only some hosts? Yes, you have at least two options: a) just set the require_certificate 0 option - make sure your client still sends it's cert even when it is not demanded - and in your

[SR-Users] Kamailio or VOS3000

2012-02-17 Thread Abid Naseem
How kamailio is different from VOS3000 or Nextone or PORTASwitch when we are talking about wholesale routing? Sent from my iPhone ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-

[SR-Users] Require Certificate

2012-02-17 Thread Bruno Bresciani
Hi All, Does it possible on tls module require certificates only some hosts? My kamailio comunicate with several UA clients (Softphones and IP phones) and one SIP gateway. I want require certificate only gateway SIP, it's possible? The parameter *modparam("tls", "require_certificate", 1)* requir

Re: [SR-Users] Topoh hiding prefixes

2012-02-17 Thread Alex Balashov
On 02/17/2012 11:30 AM, Efelin Novak wrote: But the contact from the UAS is hidden to the UAC. So the UAS have to put a "hidden" contact to the R-URI. Should the TOPOH module also "fallback" the request uri? I dont think so. So the client has to receive ACK with a different r-uri that the contac

Re: [SR-Users] Topoh hiding prefixes

2012-02-17 Thread Efelin Novak
But the contact from the UAS is hidden to the UAC. So the UAS have to put a "hidden" contact to the R-URI. Should the TOPOH module also "fallback" the request uri? I dont think so. So the client has to receive ACK with a different r-uri that the contact he sent in 200OK. Efelin 2012/2/17 Alex Bal

Re: [SR-Users] Need example of Kamailio.cfg for a port mirror setup

2012-02-17 Thread Nelson Pereira
I have libpcap, it's in /usr/lib64 but it's libpcap0.9.8 >:/usr/local/src/captagent # find / |grep libpcap /usr/share/doc/packages/libpcap-devel /usr/share/doc/packages/libpcap-devel/pcap.xml /usr/share/doc/packages/libpcap-devel/pcap.html /usr/share/doc/packages/libpcap-devel/pcap.txt /usr/share/

Re: [SR-Users] Topoh hiding prefixes

2012-02-17 Thread Alex Balashov
On 02/17/2012 10:33 AM, Efelin Novak wrote: However don't you have any experinece with clients that have problems with seq. requests being sent to some "random" string expect of the propagated contact? Not sure I follow. The initiating UA is obligated to use whatever contact is provided by t

Re: [SR-Users] Need example of Kamailio.cfg for a port mirror setup

2012-02-17 Thread Max Mühlbronner
Hi, you are missing libpcap0.8 which is a dependency for the captagent. BR Max M. Am 17.02.2012 16:31, schrieb Nelson Pereira: ok, tried to do the make install, getting the bellow: aurast:/usr/local/src/captagent # /usr/local/bin/captagent /usr/local/bin/captagent: error while loading shared

Re: [SR-Users] Topoh hiding prefixes

2012-02-17 Thread Alex Balashov
On 02/17/2012 10:06 AM, Efelin Novak wrote: Hi Alex, thanks for the answer. My customer is on the SIP side. So my customer sees a prefix of my PSTN gateway in the contact header. Oh, I see. So, the UA is your customer, and the prefix is added by the proxy? Sequential requests are being s

Re: [SR-Users] Topoh hiding prefixes

2012-02-17 Thread Efelin Novak
I have to apologize. The Topoh module hides the whole contact not just a domain part. So The problem is fixed. However don't you have any experinece with clients that have problems with seq. requests being sent to some "random" string expect of the propagated contact? UA ---invite ---> kamail

Re: [SR-Users] Need example of Kamailio.cfg for a port mirror setup

2012-02-17 Thread Nelson Pereira
ok, tried to do the make install, getting the bellow: aurast:/usr/local/src/captagent # /usr/local/bin/captagent /usr/local/bin/captagent: error while loading shared libraries: libpcap.so.0.8: cannot open shared object file: No such file or directory Do i need to compile this? Also just tried run

Re: [SR-Users] Need example of Kamailio.cfg for a port mirror setup

2012-02-17 Thread Nelson Pereira
from the atttached kamailio.cfg file, what should be changed to get captagent receiver working in kamailio instead of port mirroring? Thanks On Fri, Feb 17, 2012 at 7:29 AM, Alexandr Dubovikov wrote: > > The link has been not changed, you know it already: > > http://code.google.com/p/homer/wiki

Re: [SR-Users] Topoh hiding prefixes

2012-02-17 Thread Efelin Novak
Hi Alex, thanks for the answer. My customer is on the SIP side. So my customer sees a prefix of my PSTN gateway in the contact header. Sequential requests are being sent to @. However I think when I remove the prefix from the contact, the gateway would have no problem in responding to this seq. r

Re: [SR-Users] how to match exact string value in mtree (Uri Shacked)

2012-02-17 Thread Uri Shacked
i think that if i set the match_op in the dialplan table to 0, it will only find the exact match... On Fri, Feb 17, 2012 at 4:22 PM, Javier Gallart wrote: > Hi > > Maybe I didn't understand your scenario, but I don't see how to do it with > the dialplan module. Let's say you have two entries in

Re: [SR-Users] ndb_redis module fails after a while

2012-02-17 Thread Daniel-Constantin Mierla
Hello, thanks for testing and feedback. Latest patch was just committed on master branch. Cheers, Daniel On 2/17/12 3:08 PM, Javier Gallart wrote: Thanks Daniel On Fri, Feb 17, 2012 at 2:30 PM, Daniel-Constantin Mierla mailto:mico...@gmail.com>> wrote: Hello, right, very dummy p

Re: [SR-Users] Kamailio Exits With: Segmentation Fault Error 4 in usrloc.so

2012-02-17 Thread Simpson Chua
Hi, I have Kamailio 3.2.2. I am using the raw_moni_capture_on of the sipcapture module. 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

Re: [SR-Users] Topoh hiding prefixes

2012-02-17 Thread Alex Balashov
Efelin, There is probably some confusion here. The 200 OK message is from your gateway (in your call flow), and it can put whatever it wants in the Contact URI; you have no control over that on the Kamailio side. You might be able to influence it with configuration settings on the GW side, bu

Re: [SR-Users] how to match exact string value in mtree (Uri Shacked)

2012-02-17 Thread Javier Gallart
Hi Maybe I didn't understand your scenario, but I don't see how to do it with the dialplan module. Let's say you have two entries in your dialplan table: 09555333 (this should go first) 09555* If your string is 09555444 you will still get the second entry Regards Javi On Fri, Feb 17, 201

[SR-Users] Topoh hiding prefixes

2012-02-17 Thread Efelin Novak
Hi folks, I have a topology like this: UA -> kamailio -> PSTN GW. When I'm placing calls to a PSTN I have to append prefixes so the PSTN GW knows how to route the call. So the request-uri is @ e.g. 999123456@192.168.1.1. When the UA calls to the GW a "200 OK" message contains a contact header wi

Re: [SR-Users] how to match exact string value in mtree (Uri Shacked)

2012-02-17 Thread Uri Shacked
hi, what do you think about the Dialplan module? it can probably do the trick as well... cheers, On Fri, Feb 17, 2012 at 10:18 AM, Daniel-Constantin Mierla < mico...@gmail.com> wrote: > Hello, > > > On 2/16/12 2:51 PM, Javier Gallart wrote: > > Hello Uri > > I had similar needs and I found the

Re: [SR-Users] ndb_redis module fails after a while

2012-02-17 Thread Javier Gallart
Thanks Daniel On Fri, Feb 17, 2012 at 2:30 PM, Daniel-Constantin Mierla wrote: > Hello, > > right, very dummy paste position for resetting the redis context, use the > attached patch or exchange lines 228 and 229. in redis_client.c > It works perfectly well now.: ERROR: ndb_redis [redis_client

Re: [SR-Users] how to match exact string value in mtree (Uri Shacked)

2012-02-17 Thread Javier Gallart
HI Daniel On Fri, Feb 17, 2012 at 1:44 PM, Daniel-Constantin Mierla wrote: > Hello, > > > On 2/17/12 1:04 PM, Javier Gallart wrote: > > Hi Daniel, > > no, in order to find the best match we do a manual trick using > the s.prefixes transformation (I think you suggested that). > > > could be, at

[SR-Users] get myself ip address on start

2012-02-17 Thread Uri Shacked
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 ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-us

Re: [SR-Users] Kamailio Exits With: Segmentation Fault Error 4 in usrloc.so

2012-02-17 Thread Alexandr Dubovikov
Hi Daniel, ok, I will fix it in the sipcapture on this WE. Wbr, Alexandr 17.02.2012 14:26, Daniel-Constantin Mierla wrote: Hello, On 2/17/12 2:09 PM, Alexandr Dubovikov wrote: Hi, If i got it also correct: Simpson is getting SIP messages from a raw socket in the sipcapture module and try

Re: [SR-Users] ndb_redis module fails after a while

2012-02-17 Thread Daniel-Constantin Mierla
Hello, right, very dummy paste position for resetting the redis context, use the attached patch or exchange lines 228 and 229. in redis_client.c Thanks, Daniel On 2/17/12 1:13 PM, Javier Gallart wrote: Hi Daniel, Andrew I've just tested the patch and kamailio crashes when the redis server

Re: [SR-Users] Kamailio Exits With: Segmentation Fault Error 4 in usrloc.so

2012-02-17 Thread Daniel-Constantin Mierla
Hello, On 2/17/12 2:09 PM, Alexandr Dubovikov wrote: Hi, If i got it also correct: Simpson is getting SIP messages from a raw socket in the sipcapture module and try to save all REGISTER messages to the location table through the userloc module. (user registration audit) so sipcapture is

Re: [SR-Users] Kamailio Exits With: Segmentation Fault Error 4 in usrloc.so

2012-02-17 Thread Alexandr Dubovikov
Hi, If i got it also correct: Simpson is getting SIP messages from a raw socket in the sipcapture module and try to save all REGISTER messages to the location table through the userloc module. (user registration audit) Wbr, Alexandr 17.02.2012 13:49, Daniel-Constantin Mierla wrote: Hello,

Re: [SR-Users] how to match exact string value in mtree (Uri Shacked)

2012-02-17 Thread Uri Shacked
thanks, i use the mtree module for about 5 million records does htable able to handle it as well? On Fri, Feb 17, 2012 at 10:18 AM, Daniel-Constantin Mierla < mico...@gmail.com> wrote: > Hello, > > > On 2/16/12 2:51 PM, Javier Gallart wrote: > > Hello Uri > > I had similar needs and I found t

Re: [SR-Users] Kamailio Exits With: Segmentation Fault Error 4 in usrloc.so

2012-02-17 Thread Daniel-Constantin Mierla
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 o

Re: [SR-Users] how to match exact string value in mtree (Uri Shacked)

2012-02-17 Thread Daniel-Constantin Mierla
Hello, On 2/17/12 1:04 PM, Javier Gallart wrote: Hi Daniel, no, in order to find the best match we do a manual trick using the s.prefixes transformation (I think you suggested that). could be, at least is the way I do prefix matching with mysql. Postgres, on the other hand, afaik, has an in

Re: [SR-Users] Need example of Kamailio.cfg for a port mirror setup

2012-02-17 Thread Alexandr Dubovikov
The link has been not changed, you know it already: http://code.google.com/p/homer/wiki/HOWTO Homer Capture Agent (for all other unsupported system) if your SIP system (PBX, proxy) doesn't have a built-in capture agent with HEP or IPIP encapsulation support, you can use Homer Capture Agent (

Re: [SR-Users] how to match exact string value in mtree

2012-02-17 Thread José Luis Millán
Hi, El día 16 de febrero de 2012 11:54, Uri Shacked escribió: > 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;dbtabl

Re: [SR-Users] Need example of Kamailio.cfg for a port mirror setup

2012-02-17 Thread Nelson Pereira
Can captagent be installed on a asterisk server? If so, is there a howto? Sent from my iPhone4 on IOS4 On Feb 17, 2012, at 7:07 AM, Alexandr Dubovikov wrote: Hi, start two captagents instance, each on own interface and duplicate all traffic to your kamailio node. (HEP protocol) Wbr, Alexandr

Re: [SR-Users] ndb_redis module fails after a while

2012-02-17 Thread Javier Gallart
Hi Daniel, Andrew I've just tested the patch and kamailio crashes when the redis server is stopped. This is what I could get: -From the logs: Feb 17 06:33:32 r-gate-test ./kamailio[23812]: ALERT: [main.c:751]: child process 23819 exited by a signal 11 Feb 17 06:33:32 r-gate-test ./kamailio[23812]

Re: [SR-Users] Question on ("sipcapture", "raw_interface", "")

2012-02-17 Thread Alexandr Dubovikov
I have anwered you already: use two instance of captagent or two instance of kamailio. (each for one interface) Wbr, Alexandr 16.02.2012 15:05, Nelson Pereira wrote: but im not talking about sniff, but the SIPCAPTURE raw_interface function... On Thu, Feb 16, 2012 at 8:57 AM, Klaus Darili

Re: [SR-Users] how to match exact string value in mtree (Uri Shacked)

2012-02-17 Thread Javier Gallart
Hi Daniel, no, in order to find the best match we do a manual trick using the s.prefixes transformation (I think you suggested that). We start with the full number and stop when we find a non-null value. This kamailio is serving many thousands of calls per hour, and the response time is pretty muc

Re: [SR-Users] Need example of Kamailio.cfg for a port mirror setup

2012-02-17 Thread Alexandr Dubovikov
Hi, start two captagents instance, each on own interface and duplicate all traffic to your kamailio node. (HEP protocol) Wbr, Alexandr 16.02.2012 17:51, Nelson Pereira wrote: I would like to know if someone can show me an example of there setup configuration in kamailio.cfg for capturing pac

Re: [SR-Users] CAcert root in Lumicall

2012-02-17 Thread Daniel Pocock
On 17/02/12 00:40, David wrote: > What SIP stack does this use? It is based on the MJSIP SIP stack (same stack that is used in Sipdroid) > Is it open source? > http://www.mjsip.org/ I've made some fixes to the stack, I've tried to contact the developers about contributing the code back, but

Re: [SR-Users] ndb_redis module fails after a while

2012-02-17 Thread Daniel-Constantin Mierla
Hello, thanks for testing, indeed it was an extra declaration left over. Can you try with the new patch attached? Cheers, Daniel On 2/17/12 11:10 AM, Andrew Pogrebennyk wrote: Hi Daniel, On 02/17/2012 10:47 AM, Daniel-Constantin Mierla wrote: I made a patch for server reconnect -- I had no

Re: [SR-Users] ndb_redis module fails after a while

2012-02-17 Thread Andrew Pogrebennyk
Hi Daniel, On 02/17/2012 10:47 AM, Daniel-Constantin Mierla wrote: > I made a patch for server reconnect -- I had no access to a computer > with redis lib installed for the moment, hopefully it compiles. If you > can try and tell the result, it would be great, I can commit then. I may be able to

[SR-Users] image missing in xmlrpc module doc

2012-02-17 Thread Andrew Pogrebennyk
Hi, Was reading through the xmlrpc docs, could anybody with an access check why Figure "RPC Example" is missing from http://kamailio.org/docs/modules/devel/modules/xmlrpc.html#fig.rpc_example as well as 3.1 and 3.2 module docs? Thanks, Andrew ___ SIP Exp

Re: [SR-Users] ndb_redis module fails after a while

2012-02-17 Thread Daniel-Constantin Mierla
Hello, I made a patch for server reconnect -- I had no access to a computer with redis lib installed for the moment, hopefully it compiles. If you can try and tell the result, it would be great, I can commit then. Cheers, Daniel On 1/16/12 12:15 PM, Javier Gallart wrote: Hi Daniel On Mon,

Re: [SR-Users] Kamailio in VUC session, next Friday, Feb 17

2012-02-17 Thread Daniel-Constantin Mierla
the session is today -- looking forward to talk later to whoever wants to join! Cheers, Daniel On 2/14/12 11:02 AM, Daniel-Constantin Mierla wrote: Hello, a short reminder for those willing to join the next VUC session about kamailio, don't forget it is this week, on Friday: * http://ww

Re: [SR-Users] how to match exact string value in mtree (Uri Shacked)

2012-02-17 Thread Daniel-Constantin Mierla
Hello Javier, one question about redis, can it do longest prefix matching or all prefixes match? Cheers, Daniel On 2/16/12 2:51 PM, Javier Gallart wrote: Hello Uri I had similar needs and I found the ndb_redis module more suited for that type of task. Instead of a tree you have a hash like

Re: [SR-Users] mi_xmlrpc not compiling on Solaris

2012-02-17 Thread Jason Penton
I can second Daniel's suggestion to rather use xmlrpc. A while back we tested both versions and xmlrpc performance (and stability) was way better. Cheers Jason On Fri, Feb 17, 2012 at 10:17 AM, Daniel-Constantin Mierla < mico...@gmail.com> wrote: > Hello, > > > On 2/17/12 7:23 AM, Nathaniel L Ke

Re: [SR-Users] Kamailio Exits With: Segmentation Fault Error 4 in usrloc.so

2012-02-17 Thread Daniel-Constantin Mierla
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:

Re: [SR-Users] how to match exact string value in mtree (Uri Shacked)

2012-02-17 Thread Daniel-Constantin Mierla
Hello, On 2/16/12 2:51 PM, Javier Gallart wrote: Hello Uri I had similar needs and I found the ndb_redis module more suited for that type of task. Instead of a tree you have a hash like this: tname tprefix tvalue. If you do a hget nts $avp(DID) and you get a not null value you have found you

Re: [SR-Users] mi_xmlrpc not compiling on Solaris

2012-02-17 Thread Daniel-Constantin Mierla
Hello, On 2/17/12 7:23 AM, Nathaniel L Keeling wrote: 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_xml