[SR-Users] getting source IP from Contact header

2017-03-22 Thread Ali Taher
Hello everyone, I'm trying to get the host part from the contact header in the sip invite packet. Following is the contact header format: Contact: What I want as result is 192.168.1.1 I searched among the pseudovairables and found $ct variable which reference to the body of conta

Re: [SR-Users] Kamailio / issue with registration

2016-05-12 Thread Ali Taher
Hello , Kind reminder on the below. Regards, Ali From: Ali Taher [mailto:ata...@vanrise.com] Sent: Wednesday, May 11, 2016 7:01 PM To: 'Kamailio (SER) - Users Mailing List' Cc: 'Ali Taher~Vanrise Technical Support' Subject: Kamailio / issue with registrat

[SR-Users] Kamailio / issue with registration

2016-05-11 Thread Ali Taher
reply(): failed to send 200 OK Can you please help with resolving this issue , noting that the registration works good if I remove the routing logic set for sipcapture. Any hint would be appreciated. Cheers, Ali Taher ___ SIP Express Router (SER

Re: [SR-Users] Kamailio - Sip_capture Module

2016-05-05 Thread Ali Taher
, 2016 2:24 PM To: Kamailio (SER) - Users Mailing List Subject: Re: [SR-Users] Kamailio - Sip_capture Module Someone answered your partner Zainab about a question quite similar to yours. Take a look Thanks 2016-05-05 11:35 GMT+02:00 Ali Taher mailto:ata...@vanrise.com> >:

[SR-Users] Kamailio - Sip_capture Module

2016-05-05 Thread Ali Taher
entire packet and not part of it. We are hopefully asking if you can give us a hand with that , beside the Homer project, what we actually wanted is to know if there is another module in kamailio that store the entire packet captured and not only the part of it. Regards, Ali Taher

[SR-Users] sipcapture module with wireshark

2016-04-14 Thread Ali Taher
Hello, I'm using sipcapture module in Kamailio to capture sip packets and save them into mysql database. Everything is working as expected and I got the packets registered in the database , yet I'm wondering if there is a way to open these packets directly in Wireshark , or do I need an interm

[SR-Users] sipcapture module

2016-04-14 Thread Ali Taher
I need an intermediate step to convert these packets to pcap format (if possible) in order to be read by Wireshark. Any help or hint would be appreciated. Ali Taher Technical Support Engineer T&F M W A +961-5-457437 Ext 215 +961-70-010600 <http://www.v

[SR-Users] multi-process not multi-threading

2015-08-14 Thread Ali Taher
Hello, Can you please help me to well understand this statement : Kamailio is a multi-process application not multi-threading Does this mean that if we have a machine with one processor of 8 cores , kamailio cannot process more than 1 call at the same time ? Any help would be appreciated.

[SR-Users] Kamailio - Missing INVITEs

2015-07-28 Thread Ali Taher
Hello, I connected Kamailio to a postgresql database (through sqlops module) and fetching result from a table containing around 300K records , where time processing of the single query is taking around 12 ms. I noticed that on huge load (around 200 - 300 calls per second) Kamailio is not p

Re: [SR-Users] Kamailio mod_destroy() ERROR

2015-07-22 Thread Ali Taher
Any help regarding the below would be appreciated. BR, Ali From: Ali Taher [mailto:ata...@vanrise.com] Sent: Wednesday, July 22, 2015 1:39 PM To: 'Kamailio (SER) - Users Mailing List' Cc: 'Ali Taher~Vanrise Technical Support' Subject: Kamailio mod_destroy() ERRO

[SR-Users] Kamailio mod_destroy() ERROR

2015-07-22 Thread Ali Taher
Hello, I'm getting below error when starting Kamailio. ERROR: ctl [ctl.c:379]: mod_destroy(): ERROR: ctl: could not delete unix socket /tmp/kamailio_ctl: Operation not permitted (1) Any advice ? Regards, Ali __

Re: [SR-Users] Kamailio as radius server

2015-07-08 Thread Ali Taher
Any advise regarding the below would be appreciated. BR, Ali Sent from my iPhone > On Jul 8, 2015, at 2:20 AM, Ali Taher wrote: > > Hello, > > I'm wondering if kamailio can act as radius server who's responsible of > authentication,authorization and accoun

[SR-Users] Kamailio as radius server

2015-07-07 Thread Ali Taher
Hello, I'm wondering if kamailio can act as radius server who's responsible of authentication,authorization and accounting, where kamailio receive accounting record types (start-stop-interim) and write them in a database. Thanks Ali ___ SIP Express

[SR-Users] Kamailio transformation

2015-06-22 Thread Ali Taher
Hello, Suppose I have $var(a) = 1234#5678 and $var(b)=123455667 I need to get the number before '#' character if exists , meaning that from $var(a) I must get 1234# and from $var(b) I must get empty string. I tried $var(pref)= $(var(a){s.select,0,#}); but I'm getting the whole string if #

Re: [SR-Users] Kamailio invite counter

2015-06-19 Thread Ali Taher
, Ali From: sr-users [mailto:sr-users-boun...@lists.sip-router.org] On Behalf Of Alex Balashov Sent: Friday, June 19, 2015 5:16 PM To: Ali Taher Subject: Re: [SR-Users] Kamailio invite counter Ali, $var variables do not persist outside the scope of the processing of a single SIP message

Re: [SR-Users] Kamailio invite counter

2015-06-19 Thread Ali Taher
: Ali Taher Subject: Re: [SR-Users] Kamailio invite counter Ali, $var variables do not persist outside the scope of the processing of a single SIP message. They live in the private memory of every receiver process. Take a look at the 'htable' or 'statistics'

Re: [SR-Users] Kamailio invite counter

2015-06-19 Thread Ali Taher
in a scope per thread, so you will have a different counter in every thread. You should use shared memory instead: http://www.kamailio.org/wiki/cookbooks/4.2.x/pseudovariables#shv_name_-_shar ed_memory_variables Cheers, Dirk On 19-06-15 15:54, Ali Taher wrote: > Hello, > > I want to

[SR-Users] Kamailio invite counter

2015-06-19 Thread Ali Taher
Hello, I want to define a counter that increase in every invite. I tried the below : if (is_method("INVITE")) { $var(u)=$var(u)+1; xlog("L_INFO","Counter : $var(u) " ); } But the counter is reset to 1 randomly (even before restarting kamailio service) How

[SR-Users] Kamailio number of matches of specific character in a string

2015-06-18 Thread Ali Taher
Hello, I just need to count the number of a specific character in a string. For example I want to count the number of "a" in the following string : "bbbaddaa34" I searched among transformations but didn't find such tool. Any help would be appreciated. Thanks Ali _

Re: [SR-Users] Kamailio LCR module memory concern

2015-06-10 Thread Ali Taher
Thanks Alex you saved my life! will check and try to implement this module Ali Sent from my iPhone > On Jun 10, 2015, at 10:55 PM, Alex Balashov wrote: > >> On 06/10/2015 03:53 PM, Ali Taher wrote: >> >> Can I configure kamailio to read directly from the database wi

Re: [SR-Users] Kamailio LCR module memory concern

2015-06-10 Thread Ali Taher
The case mentioned is exactly our case where we deal with class 4, wholesale carriers with many vendors; just as explained in the provided short duration dialer video where we are using Kamailio lcr as redirect server. Hence, what can we do in order to afford such Huge number of rules? How did

Re: [SR-Users] Kamailio LCR module memory concern

2015-06-10 Thread Ali Taher
hem in the memory? or you mean trying to compress the rules Thanks, Ali Sent from my iPhone > On Jun 10, 2015, at 7:48 PM, Alex Balashov wrote: > >> On 06/10/2015 12:44 PM, Ali Taher wrote: >> >> This is the number of rules generated from our system for LCR routi

Re: [SR-Users] Kamailio LCR module memory concern

2015-06-10 Thread Ali Taher
This is the number of rules generated from our system for LCR routing (we are dealing with transit traffic) Ali Sent from my iPhone > On Jun 10, 2015, at 7:10 PM, Alex Balashov wrote: > >> On 06/10/2015 12:00 PM, Ali Taher wrote: >> >> So what memory should be allocat

Re: [SR-Users] Kamailio LCR module memory concern

2015-06-10 Thread Ali Taher
Thanks Alex, So what memory should be allocated to handle 67m buckets ? Is there any documentation for hash tables for kamailio? Ali Sent from my iPhone > On Jun 10, 2015, at 6:52 PM, Alex Balashov wrote: > >> On 06/10/2015 11:48 AM, Ali Taher wrote: >> >> Hi Alex, &

Re: [SR-Users] Kamailio LCR module memory concern

2015-06-10 Thread Ali Taher
ginal Message- From: sr-users [mailto:sr-users-boun...@lists.sip-router.org] On Behalf Of Alex Balashov Sent: Wednesday, June 10, 2015 6:35 PM To: sr-users@lists.sip-router.org Subject: Re: [SR-Users] Kamailio LCR module memory concern On 06/10/2015 11:33 AM, Ali Taher wrote: > Can you please

Re: [SR-Users] Kamailio LCR module memory concern

2015-06-10 Thread Ali Taher
List Subject: [SR-Users] Kamailio LCR module memory concern Ali Taher writes: > I'm using LCR module where I have 44 million rules and 13 million rule > targets (not all rules have destinations). > When I'm setting lcr_rule_hash_size parameter to 268435456 (2 power > 2

[SR-Users] Kamailio LCR module memory concern

2015-06-10 Thread Ali Taher
Hello, I'm using LCR module where I have 44 million rules and 13 million rule targets (not all rules have destinations). Noting that I'm running Ubuntu on virtual machine with 8GB allocated memory. When I'm setting lcr_rule_hash_size parameter to 268435456 (2 power 28) I got the following err

[SR-Users] Kamailio number of LCR rules

2015-06-09 Thread Ali Taher
Hello, I'm testing LCR module in Kamailio and everything works as expected so far. Before going further , I just want to ask about how much rule in LCR_rule table and target in LCR_rule_target can Kamailio support . We are dealing with hundreds of millions of rules and targets. Kindly advise

Re: [SR-Users] Kamailio second contact header

2015-06-05 Thread Ali Taher
Hi Daniel, Below solution works very well. Thanks :) Ali From: Daniel-Constantin Mierla [mailto:mico...@gmail.com] Sent: Friday, June 05, 2015 12:49 PM To: Ali Taher; 'Kamailio (SER) - Users Mailing List' Subject: Re: [SR-Users] Kamailio second contact header Hello, t

Re: [SR-Users] Kamailio second contact header

2015-06-05 Thread Ali Taher
riday, June 05, 2015 10:04 AM To: Ali Taher; 'Kamailio (SER) - Users Mailing List' Subject: Re: [SR-Users] Kamailio second contact header Hello, the last address from next_gw() becaomes the last r-uri and that is added as first contact. You will have to shift the URIs. Maybe the si

Re: [SR-Users] Kamailio second contact header

2015-06-05 Thread Ali Taher
Hi Daniel, Here is the log I got : 2015-06-05T10:04:35.864338+03:00 ubuntu /usr/local/sbin/kamailio[25115]: INFO:

Re: [SR-Users] Kamailio second contact header

2015-06-04 Thread Ali Taher
xlog("L_INFO", "gateway is : $ru\n"); $var(a)=$var(a)+1; if($var(a)!=$var(z))append_branch(); } In this case I'm getting in contact headers the followin

Re: [SR-Users] Kamailio second contact header

2015-06-04 Thread Ali Taher
y, June 04, 2015 5:28 PM To: Ali Taher; 'Kamailio (SER) - Users Mailing List' Subject: Re: [SR-Users] Kamailio second contact header Hello, next_gw() is also setting the r-uri, so for the last successful next_gw() you should not call anymore append_branch(). Try to remove the last br

Re: [SR-Users] Kamailio second contact header

2015-06-04 Thread Ali Taher
mented those function either). The active branches of the request are added as contact header to the reply. So you can practically use append_branch() as many times as you need and then do sl_send_reply("3xx", ...). You don't need to append headers to replies explicitely. Cheers, Da

[SR-Users] Kamailio second contact header

2015-06-04 Thread Ali Taher
Hello, I'm trying to build new contact header that will be sent from Kamailio as below : load_gws(1, $rU, $fu); append_to_reply("Contact:"); while (next_gw()) { append_to_reply("$ru");

Re: [SR-Users] Kamailio Contact header read-only

2015-06-04 Thread Ali Taher
rsday, June 04, 2015 12:27 PM To: Ali Taher Subject: Re: [SR-Users] Kamailio Contact header read-only ‎Hi Ali, Sorry, I've never used the lcr module. Whenever we build anything, we just pull lists of gateways from our own database tables with sqlops, typically using sql_xquery() to store the

Re: [SR-Users] Kamailio Contact header read-only

2015-06-04 Thread Ali Taher
Hi Alex, Any update regarding the below? Thanks, Ali -Original Message- From: Ali Taher [mailto:ata...@vanrise.com] Sent: Wednesday, June 03, 2015 2:04 PM To: 'Kamailio (SER) - Users Mailing List' Cc: 'Ali Taher~Vanrise Technical Support' Subject: RE: [SR-Users] Kam

Re: [SR-Users] Kamailio Contact header read-only

2015-06-03 Thread Ali Taher
} sl_send_reply("300","Multiple Choices"); any help would be appreciated. Ali -Original Message- From: sr-users [mailto:sr-users-boun...@lists.sip-router.org] On Behalf Of Alex Balashov Sent: Wednesday, June 03, 2015 1:35 PM To: Ali Taher Su

Re: [SR-Users] Kamailio Contact header read-only

2015-06-03 Thread Ali Taher
: sr-users [mailto:sr-users-boun...@lists.sip-router.org] On Behalf Of Alex Balashov Sent: Wednesday, June 03, 2015 12:00 PM To: Ali Taher Subject: Re: [SR-Users] Kamailio Contact header read-only Ali, With the exception of a few, pseudovariables that expose parts of a SIP message (such as

[SR-Users] Kamailio Contact header read-only

2015-06-03 Thread Ali Taher
Hello, I'm trying to change contact header in SIP response message by stripping first characters (for testing only) as below : $ct = $(ct{s.strip,25}); But I got below error saying that $ct is read-only: 0(15410) : [cfg.y:3419]: yyerror_at(): parse error in config file /usr/local/etc/kam

Re: [SR-Users] Kamailio LCR Multiple choices

2015-06-03 Thread Ali Taher
Hi, Any help regarding the below ? Thanks, Ali -Original Message- From: Ali Taher [mailto:ata...@vanrise.com] Sent: Monday, June 01, 2015 3:21 PM To: 'Kamailio (SER) - Users Mailing List' Cc: 'Ali Taher~Vanrise Technical Support' Subject: RE: [SR-Users] Kamailio LCR

[SR-Users] Kamailio LCR rule matching

2015-06-02 Thread Ali Taher
Hi, I'm using LCR module in Kamailio , where matching of the rule (From-URI in LCR-rule table) is currently based on user part of sip address in From field (highlighted below in blue). While we need to change the identification to be on the otg value sent in the sip address in From field (high

Re: [SR-Users] Kamailio LCR Multiple choices

2015-06-01 Thread Ali Taher
Hi, Below is the log I got (which is correct ordering) 2015-06-01T14:45:50.932170+03:00 ubuntu /usr/local/sbin/kamailio[58396]: INFO:

Re: [SR-Users] Kamailio LCR Multiple choices

2015-06-01 Thread Ali Taher
einanen Sent: Monday, June 01, 2015 11:32 AM To: Kamailio (SER) - Users Mailing List Subject: Re: [SR-Users] Kamailio LCR Multiple choices Ali Taher writes: > Yes I know , I gave 192.168.26.4 smaller priority , then 192.168.26.1 > then 192.168.26.6. > So in this way gateways must be ordere

Re: [SR-Users] Kamailio LCR Multiple choices

2015-06-01 Thread Ali Taher
iling List Subject: [SR-Users] Kamailio LCR Multiple choices Ali Taher writes: > Everything works fine so far , yet I have a problem that last gateway > comes first, then gateways are ordered correctly. hard to say anything based on the information you gave. smaller tuple priority value means

[SR-Users] Kamailio LCR Multiple choices

2015-06-01 Thread Ali Taher
Hello, I'm using LCR module to send multiple choices. Everything works fine so far , yet I have a problem that last gateway comes first, then gateways are ordered correctly. Below is correct sorting of gateways: First gateway : 192.168.26.4 Second gateway: 192.168.26.1 Third gateway :

Re: [SR-Users] Kamailio 300 Multiple choices

2015-05-29 Thread Ali Taher
Alex Balashov Sent: Friday, May 29, 2015 6:48 PM To: Ali Taher Subject: Re: [SR-Users] Kamailio 300 Multiple choices I'm not sure it can be done automatically. -- Alex Balashov | Principal | Evariste Systems LLC 303 Perimeter Center North, Suite 300 Atlanta, GA 30346 United States Tel: +1-80

Re: [SR-Users] Kamailio 300 Multiple choices

2015-05-29 Thread Ali Taher
@lists.sip-router.org Subject: Re: [SR-Users] Kamailio 300 Multiple choices On 05/29/2015 11:34 AM, Ali Taher wrote: > In this way , all gateways will be sent by Kamailio by one SIP response ? If you like! append_to_reply("Contact: ;q=0.1\r\n"); append_to_reply("Contact: ;q=0.2\r\n&quo

Re: [SR-Users] Kamailio 300 Multiple choices

2015-05-29 Thread Ali Taher
-Users] Kamailio 300 Multiple choices Ali, It's up to you where you pull the gateway list from. After that, you can use append_to_reply() to construct the Contact header and send the redirect message. So, yes, it can be done. -- Alex On 05/29/2015 10:35 AM, Ali Taher wrote: > Hello, >

[SR-Users] Kamailio 300 Multiple choices

2015-05-29 Thread Ali Taher
Hello, We need to integrate Kamailio with an exchange switch in order to have routing decision. Kamailio must send to the switch the list of available gateways in the contact tag of SIP response as shown in the below example: SIP/2.0 300 Multiple choices Via: SIP/2.0/UDP 172.16.5.112:5060

Re: [SR-Users] Kamailio not receiving BYE request

2015-05-28 Thread Ali Taher
Hi, Thanks its working good now. Yet now when the client or the gateway stops the call , the call is still opened at the other end. Attached trace is for your reference. Regards, Ali Taher Technical Support Engineer T&F M W A +961-5-457437

Re: [SR-Users] Kamailio not receiving BYE request

2015-05-28 Thread Ali Taher
PM To: Ali Taher Subject: Re: [SR-Users] Kamailio not receiving BYE request ‎Can you provide a packet capture of this scenario, from the reference frame of the Kamailio server? -- Alex Balashov | Principal | Evariste Systems LLC 303 Perimeter Center North, Suite 300 Atlanta, GA 30346 United

Re: [SR-Users] Kamailio not receiving BYE request

2015-05-28 Thread Ali Taher
Hi, When I'm adding record_route() to kamailio config , Acks and BYE messages are received by kamailio , yet connection between the client and the gateway is not properly established meaning that the gateway keeps waiting for acknowledgement and then network failure message appear. Below is the s

Re: [SR-Users] Kamailio not receiving BYE request

2015-05-28 Thread Ali Taher
: Thursday, May 28, 2015 2:44 PM To: Ali Taher Subject: Re: [SR-Users] Kamailio not receiving BYE request ‎Hi Ali, Why is Kamailio not receiving the BYE? Is it not coming through the network (as determined by a packet capture off the wire)? Or is it not being correctly processed, as for example because

[SR-Users] Kamailio not receiving BYE request

2015-05-28 Thread Ali Taher
Hello, Kamailio is not receiving the BYE request when the call is ended by any of call parties. Noting that when the call is connected, a direct RTP session is established between the user and the gateway , and kamailio doesn't receive since then any message related to this call. Is there

Re: [SR-Users] Kamailio drouting failure not working

2015-05-26 Thread Ali Taher
please. Regards, Ali Taher Technical Support Engineer T&F M W A +961-5-457437 Ext 215 +961-70-010600 <http://www.vanrise.com/> http://www.vanrise.com Vanrise Building <https://maps.google.com/maps/ms?msa=0&msid=208243362929850217065.0004cbc8d6 12c5f

Re: [SR-Users] Kamailio drouting failure not working

2015-05-26 Thread Ali Taher
"L_INFO", "failure_route; code: $T_reply_code"); PS include "loadmodule 'tmx.so'" for $T_reply_code 2015-05-26 17:46 GMT+03:00 Ali Taher mailto:ata...@vanrise.com> >: Hi, Below is failure_route content: f

Re: [SR-Users] Kamailio drouting failure not working

2015-05-26 Thread Ali Taher
gards, Ali From: sr-users [mailto:sr-users-boun...@lists.sip-router.org] On Behalf Of Daniel-Constantin Mierla Sent: Wednesday, May 27, 2015 9:24 AM To: Kamailio (SER) - Users Mailing List Subject: Re: [SR-Users] Kamailio drouting failure not working Hello, On 26/05/15 19:02, Ali Tahe

Re: [SR-Users] Kamailio drouting failure not working

2015-05-26 Thread Ali Taher
Hi, In wireshark, I’m getting Status: 486 Busy Here | , when cancel button is clicked. Isnt’ that meaning that the reply code is 486? Regards, Ali Taher Technical Support Engineer T&F M W A +961-5-457437 Ext 215 +961-70-010600 &

Re: [SR-Users] Kamailio drouting failure not working

2015-05-26 Thread Ali Taher
gt; yes, status code 486 in sip flow has to match 486 transaction status in > script > > 2015-05-26 19:21 GMT+03:00 Ali Taher : >> Hi, >> >> >> >> In wireshark, I’m getting Status: 486 Busy Here | , when cancel button is >> clicked. >> >> I

Re: [SR-Users] Kamailio drouting failure not working

2015-05-26 Thread Ali Taher
g at start of failure_route to determine error code: xlog("L_INFO", "failure_route; code: $T_reply_code"); PS include "loadmodule 'tmx.so'" for $T_reply_code 2015-05-26 17:46 GMT+03:00 Ali Taher mailto:ata...@vanrise.com> >: Hi,

Re: [SR-Users] Kamailio drouting failure not working

2015-05-26 Thread Ali Taher
hat phone is showing : “Service not available” meaning that all destinations in avp list were tried. Regards, Ali Taher Technical Support Engineer T&F M W A +961-5-457437 Ext 215 +961-70-010600 <http://www.vanrise.com/> http://www.vanrise.

Re: [SR-Users] Kamailio drouting failure not working

2015-05-26 Thread Ali Taher
Hi, Thanks for your fast reply. I tried below condition in failure_route but still rerouted to next destination when clicking on ignore. Appreciate your help. Regards, Ali Taher Technical Support Engineer T&F M W A +961-5-457437 Ext 215

Re: [SR-Users] Kamailio drouting failure not working

2015-05-26 Thread Ali Taher
function to exit when cancel occur , but didn’t work :(. Appreciate your help. Regards, Ali Taher Technical Support Engineer T&F M W A +961-5-457437 Ext 215 +961-70-010600 <http://www.vanrise.com/> http://www.vanrise.com <https://ma

Re: [SR-Users] Kamailio drouting failure not working

2015-05-26 Thread Ali Taher
Hello, I added below parameters but still didn't rerouted to second destination :( modparam("drouting", "ruri_avp", '$avp(dr_ruri)') modparam("drouting", "attrs_avp", '$avp(dr_attrs)') regards, Ali Taher

Re: [SR-Users] Kamailio drouting failure not working

2015-05-26 Thread Ali Taher
ble", "dr_rules") modparam("drouting", "drg_table", "dr_groups") modparam("drouting", "drl_table", "dr_gw_lists") modparam("drouting", "sort_order", 0) regards, Ali Taher Technical Support En

[SR-Users] Kamailio drouting failure not working

2015-05-26 Thread Ali Taher
ot available"); exit; } } route[1] { # send it out now; use stateful forwarding as it works # reliably even for UDP2TCP if (!t_relay()) { sl_reply_error(); }; exit; } Appreciating your prompt reply and assistance.