Re: [SR-Users] allow_trusted not passing
Hi, On Tue, Nov 28, 2017 at 1:47 AM, voipspace voipspace wrote: > Unfortunately that does not work. Second argument is required Try it with only if (!allow_trusted()) { ... } If you check against the source address, you don't need an argument at all. I don't know if some pattern is needed for the trusted entry to work. In our setup the trusted entries look like this: item: { ip: w.x.y.z proto: 0 pattern: ^sip:.*$ ruri_pattern: NULL tag: NULL priority: 0 } Regards, Sebastian ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
[SR-Users] dmq replicate
Hello, I set up kamailio cluster. dmq_usrloc works fine, but PUSBLISH and SUBSCRIBE replication not. If I make a call to first node I've got many(hundreds) PUBLISH messages from first node to first node and some messages (8 for example) to other nodes. And second xnotice in config not executes. And errors n log ERROR: [core/sr_module.c:1726]: get_int_fparam(): Unsupported param type for int value: 32 How to replicate publish and subscribe, is it wrong way? my confiig: request_route { if(is_method("KDMQ")) { if ($Rp == 5050) { dmq_handle_message(); exit; } else { drop; } } . . if(is_method("PUBLISH|SUBSCRIBE")) { if(!dmq_is_from_node()) { xnotice(""); dmq_t_replicate("1"); xnotice("BBB"); } } 2017/11/28 12:56:06.415601 192.168.8.213:5060 -> 192.168.8.213:5060 PUBLISH sip:34200@siptest. SIP/2.0 Via: SIP/2.0/UDP 192.168.8.213;branch=z9hG4bKc7a5.cee84051.0 To: From: ;tag=ae81df16b5a52fc1f62f9b45f337e660-db10 CSeq: 10 PUBLISH Call-ID: 4c8f9e6e799efcd7-57244@192.168.8.213 Content-Length: 556 User-Agent: kamailio (5.0.4 (x86_64/linux)) Max-Forwards: 70 Event: dialog Expires: 125 Content-Type: application/dialog-info+xml Trying sip:53003@siptest.t sip:34200@siptest -- Aydar A. Kamalov ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Re: [SR-Users] dmq replicate
I think I understood.. I put if(!dmq_is_from_node()) dmq_t_replicate() after handle_publish(), handle_subscribe() and t_release() and now it work ok. 2017-11-28 16:11 GMT+03:00 Aidar Kamalov : > Hello, > > I set up kamailio cluster. dmq_usrloc works fine, but PUSBLISH and > SUBSCRIBE replication not. > If I make a call to first node I've got many(hundreds) PUBLISH messages > from first node to first node and some messages (8 for example) to other > nodes. > And second xnotice in config not executes. And errors n log ERROR: > [core/sr_module.c:1726]: get_int_fparam(): Unsupported param type for int > value: 32 > > How to replicate publish and subscribe, is it wrong way? > > > my confiig: > request_route { > if(is_method("KDMQ")) { > if ($Rp == 5050) { dmq_handle_message(); exit; } > else { drop; } > } > . > . > if(is_method("PUBLISH|SUBSCRIBE")) { > if(!dmq_is_from_node()) { > xnotice(""); > dmq_t_replicate("1"); > xnotice("BBB"); > } > } > > > > 2017/11/28 12:56:06.415601 192.168.8.213:5060 -> 192.168.8.213:5060 > PUBLISH sip:34200@siptest. SIP/2.0 > Via: SIP/2.0/UDP 192.168.8.213;branch=z9hG4bKc7a5. > cee84051.0 > To: > From: ;tag=ae81df16b5a52fc1f62f9b45f337e660-db10 > CSeq: 10 PUBLISH > Call-ID: 4c8f9e6e799efcd7-57244@192.168.8.213 > Content-Length: 556 > User-Agent: kamailio (5.0.4 (x86_64/linux)) > Max-Forwards: 70 > Event: dialog > Expires: 125 > Content-Type: application/dialog-info+xml > > > state="full" entity="sip:34200@siptest."> >call-id="898932197-5060...@bjc.bgi.d.db" > direction="initiator"> > Trying > > sip:53003@siptest.t > > > > sip:34200@siptest > > > > > > -- > Aydar A. Kamalov > -- Aydar A. Kamalov ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
[SR-Users] Using SIP tools through Kamailio and Asterisk - chrome issue.
Has anyone seen the issue where, when using a sip tool and going from Kamailio to Asterisk, that audio and video won't work, yet it works fine through Firefox? I am almost sure this not an issue with Kamailio, but I am pretty new to SIP and don't know 100% for sure. Thank you ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
sr-users@lists.kamailio.org
Hi. i would like to ask if someone has found any bash script that could install all at once for Kamailio and Siremis in ubuntu/debian or even in centos. ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Re: [SR-Users] allow_trusted not passing
Hello, one more thing to check -- the comparison is done by comparing the string values, be sure there is no whitespace around. On the other hand, if you do not need the pattern matching, I suggest to use address table instead of trusted table, it is better optimized for ip and network address matching. Cheers, Daniel On 28.11.17 09:41, Sebastian Damm wrote: > Hi, > > On Tue, Nov 28, 2017 at 1:47 AM, voipspace voipspace > wrote: >> Unfortunately that does not work. Second argument is required > Try it with only if (!allow_trusted()) { ... } > > If you check against the source address, you don't need an argument at all. > > I don't know if some pattern is needed for the trusted entry to work. > In our setup the trusted entries look like this: > > item: { > ip: w.x.y.z > proto: 0 > pattern: ^sip:.*$ > ruri_pattern: NULL > tag: NULL > priority: 0 > } > > Regards, > Sebastian > > ___ > Kamailio (SER) - Users Mailing List > sr-users@lists.kamailio.org > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users -- Daniel-Constantin Mierla www.twitter.com/miconda -- www.linkedin.com/in/miconda Kamailio Advanced Training - www.asipto.com Kamailio World Conference - May 14-16, 2018 - www.kamailioworld.com ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
[SR-Users] OpenSIPS-devel not starting (TCP Error)
Hi, I just installed the head version from git. version: opensips 2.4.0-dev (x86_64/linux) flags: STATS: On, SHM_EXTRA_STATS, EXTRA_DEBUG, DISABLE_NAGLE, USE_MCAST, SHM_MMAP, PKG_MALLOC, QM_MALLOC, DBG_MALLOC, FAST_LOCK-ADAPTIVE_WAIT ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535 poll method support: poll, epoll_lt, epoll_et, sigio_rt, select. git revision: d1a4419 main.c compiled on 19:53:20 Nov 28 2017 with gcc 4.8 It was compiled with EXTRA_DEBUG and DBG_TCPCON flags; While starting opensips with the residential vanilla script it gives following error: Nov 28 20:05:52 [30899] ERROR:core:tcp_init: oom con hist Nov 28 20:05:52 [30899] CRITICAL:core:main: could not initialize tcp Nov 28 20:05:52 [30899] INFO:core:cleanup: cleanup Nov 28 20:05:52 [30899] DBG:core:shm_mem_destroy: destroying the shared memory lock Nov 28 20:05:52 [30899] NOTICE:core:main: Exiting already running Even if I remove the proto_tcp, and tcp related things this still gives error and doesn't start. Kindly help. Regards, Sammy ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Re: [SR-Users] OpenSIPS-devel not starting (TCP Error)
P.S: Unchecking the EXTRA_DEBUG and DBG_TCPCON flags at compile time makes OpenSIPS work normally. On Tue, Nov 28, 2017 at 2:10 PM, SamyGo wrote: > Hi, > I just installed the head version from git. > > version: opensips 2.4.0-dev (x86_64/linux) > flags: STATS: On, SHM_EXTRA_STATS, EXTRA_DEBUG, DISABLE_NAGLE, USE_MCAST, > SHM_MMAP, PKG_MALLOC, QM_MALLOC, DBG_MALLOC, FAST_LOCK-ADAPTIVE_WAIT > ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, > MAX_URI_SIZE 1024, BUF_SIZE 65535 > poll method support: poll, epoll_lt, epoll_et, sigio_rt, select. > git revision: d1a4419 > main.c compiled on 19:53:20 Nov 28 2017 with gcc 4.8 > > It was compiled with EXTRA_DEBUG and DBG_TCPCON flags; > While starting opensips with the residential vanilla script it gives > following error: > > Nov 28 20:05:52 [30899] ERROR:core:tcp_init: oom con hist > Nov 28 20:05:52 [30899] CRITICAL:core:main: could not initialize tcp > Nov 28 20:05:52 [30899] INFO:core:cleanup: cleanup > Nov 28 20:05:52 [30899] DBG:core:shm_mem_destroy: destroying the shared > memory lock > Nov 28 20:05:52 [30899] NOTICE:core:main: Exiting > already running > > > Even if I remove the proto_tcp, and tcp related things this still gives > error and doesn't start. > > Kindly help. > > Regards, > Sammy > ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
[SR-Users] how to add new media server in dispatcher table through "ANSIBLE"
Hello Experts, I am new to ansible and deploying kamailio through ansible.Sucessfully deployed kamailio but my requirement is to add media server through ansible.As I am using dispatcher module in kamailio,not able to find any script that directly insert one media server IP and port into dispatcher table from ansible.(I am using ansible in one system and deploying kamailio in other). Any suggestion will be highly appreciated as always. Thanks, Narayan +91-9035438928 ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Re: [SR-Users] how to add new media server in dispatcher table through "ANSIBLE"
What backend database are you using for Kamailio? On Tue, Nov 28, 2017 at 11:32 AM, Narayan P wrote: > Hello Experts, > > > I am new to ansible and deploying kamailio through ansible.Sucessfully > deployed kamailio but my requirement is to add media server through > ansible.As I am using dispatcher module in kamailio,not able to find any > script that directly insert one media server IP and port into dispatcher > table from ansible.(I am using ansible in one system and deploying kamailio > in other). > > > > > Any suggestion will be highly appreciated as always. > > > > Thanks, > > Narayan > > +91-9035438928 > > > > > > ___ > Kamailio (SER) - Users Mailing List > sr-users@lists.kamailio.org > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users > ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Re: [SR-Users] Using SIP tools through Kamailio and Asterisk - chrome issue.
Through Firefox likely means via websockets (wss) rather than via the sip port. Many things could interfere with the latter. Take heart, though: websockets is harder to set up so you're likely through the worst. Look at logs and see what iftop shows you about traffic on the server as you try to make sip connections. Also try your sip client with a known-good sip server (e.g. Iptel) just to make sure the problem isn't with the client. Original message From: "Wilkins, Steve" Date: 11/28/2017 6:39 AM (GMT-08:00) To: "Kamailio (SER) - Users Mailing List" Subject: [SR-Users] Using SIP tools through Kamailio and Asterisk - chrome issue. Has anyone seen the issue where, when using a sip tool and going from Kamailio to Asterisk, that audio and video won’t work, yet it works fine through Firefox? I am almost sure this not an issue with Kamailio, but I am pretty new to SIP and don’t know 100% for sure. Thank you___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Re: [SR-Users] how to add new media server in dispatcher table through "ANSIBLE"
Hello Joel, I am using mysql database. Thanks, Narayan From: sr-users on behalf of Joel Serrano Sent: Wednesday, November 29, 2017 3:14:35 AM To: Kamailio (SER) - Users Mailing List Subject: Re: [SR-Users] how to add new media server in dispatcher table through "ANSIBLE" What backend database are you using for Kamailio? On Tue, Nov 28, 2017 at 11:32 AM, Narayan P wrote: > Hello Experts, > > > I am new to ansible and deploying kamailio through ansible.Sucessfully > deployed kamailio but my requirement is to add media server through > ansible.As I am using dispatcher module in kamailio,not able to find any > script that directly insert one media server IP and port into dispatcher > table from ansible.(I am using ansible in one system and deploying kamailio > in other). > > > > > Any suggestion will be highly appreciated as always. > > > > Thanks, > > Narayan > > +91-9035438928 > > > > > > ___ > Kamailio (SER) - Users Mailing List > sr-users@lists.kamailio.org > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users > ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Re: [SR-Users] how to add new media server in dispatcher table through "ANSIBLE"
Hello Joel, I am using mysql database. Thanks, Narayan From: Narayan P Sent: Wednesday, November 29, 2017 6:31:46 AM To: Kamailio (SER) - Users Mailing List Subject: Re: [SR-Users] how to add new media server in dispatcher table through "ANSIBLE" Hello Joel, I am using mysql database. Thanks, Narayan From: sr-users on behalf of Joel Serrano Sent: Wednesday, November 29, 2017 3:14:35 AM To: Kamailio (SER) - Users Mailing List Subject: Re: [SR-Users] how to add new media server in dispatcher table through "ANSIBLE" What backend database are you using for Kamailio? On Tue, Nov 28, 2017 at 11:32 AM, Narayan P wrote: > Hello Experts, > > > I am new to ansible and deploying kamailio through ansible.Sucessfully > deployed kamailio but my requirement is to add media server through > ansible.As I am using dispatcher module in kamailio,not able to find any > script that directly insert one media server IP and port into dispatcher > table from ansible.(I am using ansible in one system and deploying kamailio > in other). > > > > > Any suggestion will be highly appreciated as always. > > > > Thanks, > > Narayan > > +91-9035438928 > > > > > > ___ > Kamailio (SER) - Users Mailing List > sr-users@lists.kamailio.org > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users > ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
[SR-Users] lcr_id vs lcr_count
Hello Kamailio list! I've been working with the LCR module and I wanted to use the lcr_id to match some ID's I have somewhere else. However, due to the lcr_count my lcr_ids must be less than the lcr_count. I understand the reason behind the lcr_count, what I think is a mistake is to have the lcr_id dependent of the lcr_count. Ideally we should be able to use any lcr_id value, just observing that the total amount of lcr groups should not exceed the lcr_count. The problem is this if that appears in the load_gws, to_gw and from_gw functions in lcr_mod.c: if ((lcr_id < 1) || (lcr_id > lcr_count_param)) { LM_ERR("invalid lcr_id parameter value %d\n", lcr_id); return -1; } I ended up using another table to make the conversion of ids, but this is horrible Any other reason to force the lcr_id to be less than the lcr_count? Best Regards, Patrick Wakano ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Re: [SR-Users] lcr_id vs lcr_count
There is a strong reason to have lcr_count variable - it actually represents the size of in-memory table that is created to store all lcr_id's on module loading, I don't think there is a way to avoid that, unless you rewrite lcr module to not load lcr in-memory, but query database (which IMO is a terrible idea). If you need to dynamically assign kamailio lcr_id you can use event_route[core:worker-one-init] and write lcr_id inside $shv(). Alexandru Covalschi VoIP Engineer and System Administrator tel: +373 673 98 493 > 29 нояб. 2017 г., в 8:54, Patrick Wakano написал(а): > > Hello Kamailio list! > > I've been working with the LCR module and I wanted to use the lcr_id to match > some ID's I have somewhere else. > However, due to the lcr_count my lcr_ids must be less than the lcr_count. I > understand the reason behind the lcr_count, what I think is a mistake is to > have the lcr_id dependent of the lcr_count. > Ideally we should be able to use any lcr_id value, just observing that the > total amount of lcr groups should not exceed the lcr_count. > The problem is this if that appears in the load_gws, to_gw and from_gw > functions in lcr_mod.c: > if ((lcr_id < 1) || (lcr_id > lcr_count_param)) { > LM_ERR("invalid lcr_id parameter value %d\n", lcr_id); > return -1; > } > > I ended up using another table to make the conversion of ids, but this is > horrible Any other reason to force the lcr_id to be less than the > lcr_count? > > Best Regards, > Patrick Wakano > ___ > Kamailio (SER) - Users Mailing List > sr-users@lists.kamailio.org > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Re: [SR-Users] OpenSIPS-devel not starting (TCP Error)
Hi, I think you ended up on the wrong mailing list. This list is for Kamailio, not OpenSIPS. You might want to ask your question again somewhere here: https://www.opensips.org/Support/MailingLists Regards, Sebastian On Tue, Nov 28, 2017 at 8:33 PM, SamyGo wrote: > P.S: > Unchecking the EXTRA_DEBUG and DBG_TCPCON flags at compile time makes > OpenSIPS work normally. > > On Tue, Nov 28, 2017 at 2:10 PM, SamyGo wrote: >> >> Hi, >> I just installed the head version from git. >> >> version: opensips 2.4.0-dev (x86_64/linux) >> flags: STATS: On, SHM_EXTRA_STATS, EXTRA_DEBUG, DISABLE_NAGLE, USE_MCAST, >> SHM_MMAP, PKG_MALLOC, QM_MALLOC, DBG_MALLOC, FAST_LOCK-ADAPTIVE_WAIT >> ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, >> MAX_URI_SIZE 1024, BUF_SIZE 65535 >> poll method support: poll, epoll_lt, epoll_et, sigio_rt, select. >> git revision: d1a4419 >> main.c compiled on 19:53:20 Nov 28 2017 with gcc 4.8 >> >> It was compiled with EXTRA_DEBUG and DBG_TCPCON flags; >> While starting opensips with the residential vanilla script it gives >> following error: >> >> Nov 28 20:05:52 [30899] ERROR:core:tcp_init: oom con hist >> Nov 28 20:05:52 [30899] CRITICAL:core:main: could not initialize tcp >> Nov 28 20:05:52 [30899] INFO:core:cleanup: cleanup >> Nov 28 20:05:52 [30899] DBG:core:shm_mem_destroy: destroying the shared >> memory lock >> Nov 28 20:05:52 [30899] NOTICE:core:main: Exiting >> already running >> >> Even if I remove the proto_tcp, and tcp related things this still gives >> error and doesn't start. >> >> Kindly help. >> >> Regards, >> Sammy > > > > ___ > Kamailio (SER) - Users Mailing List > sr-users@lists.kamailio.org > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users > ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Re: [SR-Users] how to add new media server in dispatcher table through "ANSIBLE"
Hi, we deploy our gateways through ansible, and while doing that we insert a database entry for the gateway into the dispatcher table. After that, we issue a dispatcher.reload on our Kamailio servers. You need some delegate_to statements in your playbook, but this way we can add gateways automatically. After inserting and reloading we even wait a few seconds and then issue a kamcmd dispatcher.list within the playbook to check whether the new gateway is reachable from Kamailio. HTH Sebastian On Wed, Nov 29, 2017 at 7:33 AM, Narayan P wrote: > Hello Joel, > > I am using mysql database. > > Thanks, > Narayan > > > From: Narayan P > Sent: Wednesday, November 29, 2017 6:31:46 AM > > To: Kamailio (SER) - Users Mailing List > Subject: Re: [SR-Users] how to add new media server in dispatcher table > through "ANSIBLE" > > > Hello Joel, > > > I am using mysql database. > > > Thanks, > > Narayan > > > From: sr-users on behalf of Joel > Serrano > Sent: Wednesday, November 29, 2017 3:14:35 AM > To: Kamailio (SER) - Users Mailing List > Subject: Re: [SR-Users] how to add new media server in dispatcher table > through "ANSIBLE" > > What backend database are you using for Kamailio? > > > > On Tue, Nov 28, 2017 at 11:32 AM, Narayan P wrote: >> Hello Experts, >> >> >> I am new to ansible and deploying kamailio through ansible.Sucessfully >> deployed kamailio but my requirement is to add media server through >> ansible.As I am using dispatcher module in kamailio,not able to find any >> script that directly insert one media server IP and port into dispatcher >> table from ansible.(I am using ansible in one system and deploying >> kamailio >> in other). >> >> >> >> >> Any suggestion will be highly appreciated as always. >> >> >> >> Thanks, >> >> Narayan >> >> +91-9035438928 >> >> >> >> >> ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users