Re: [SR-Users] dispather

2015-07-03 Thread Slava Bendersky
Hello Daniel, Thank you for reply, based on you example. Can I do some thing like that. modparam("dispatcher", "dstid_avp", "$avp(dsdst_id)") switch ($fd) { case "domain1.tld": $avp(dsdst_id)=1; break; case "domain2.tld": $avp(dsdst_id)=2; break; } ds_select_dst($avp(dsdst_id),4);

Re: [SR-Users] Siremis 4.2 and Kamailio 4.3

2015-07-03 Thread Daniel-Constantin Mierla
Have you selected all the options when running the wizard? There is a log folder in subdir siremis. Also, logs from web server can be useful sometimes. Cheers, Daniel On 03/07/15 14:09, Alberto Sagredo wrote: > Umm not telling the truth > > It creates tables but they are empty. > > mysql> show t

Re: [SR-Users] subst + insert_hf issue

2015-07-03 Thread Daniel-Constantin Mierla
Hello, On 03/07/15 14:24, Igor Potjevlesch wrote: > > Hello Daniel, > > > > Thanks for your reply. > > > > The doc of msg_apply_changes is scary. > it is not that bad to use it, just don't abuse it. Sometime is the only option, with current cpu power, the performances are not really affected.

Re: [SR-Users] Diameter sorce/destination port

2015-07-03 Thread Daniel-Constantin Mierla
Hello, diameter uses tcp and by design the source port of a tcp connection cannot be ensured. One can try to bind local socket for opening a connection, but that is not guaranteed to happen, the kernel can overwrite and select another available port. TCP is connection oriented communication with

Re: [SR-Users] Problem Storing USRLOC Additional Attributes

2015-07-03 Thread Luca Mularoni
Hi Daniel, I would propend for a usrloc issue, because if I print just created xavp (below chunk of real code I'm using for debugging) before invoke save() func: xlog("REGDATAGET - FromUser [$xavp(ulvals[0]=>FromUser)]\n"); xlog("REGDATAGET - FromDomain [$xavp(ulvals[0]=>FromDomain)]\n

[SR-Users] Diameter sorce/destination port

2015-07-03 Thread micunek
Hi All, I am trying to use Cx (Diameter) interface via TCP towards our HSS according to Carsten Bock example. However kamailio client obtain TCP RST from HSS because a kamailio source port is different than port where kamailio is listen. I do not know if this is Diameter/Cx requirement or not. I

Re: [SR-Users] subst + insert_hf issue

2015-07-03 Thread Igor Potjevlesch
Hello Daniel, Thanks for your reply. The doc of msg_apply_changes is scary. The use of $fn instead of subst would be something to try to solve this issue? For some cases, I must also change the username part. $fU = anonymous@anonymous.invalid " woul

Re: [SR-Users] Siremis 4.2 and Kamailio 4.3

2015-07-03 Thread Alberto Sagredo
Umm not telling the truth It creates tables but they are empty. mysql> show tables; +---+ | Tables_in_siremis | +---+ | acl_action| | acl_role_action | | contact | | contact_type | | cronjob

Re: [SR-Users] Siremis 4.2 and Kamailio 4.3

2015-07-03 Thread Alberto Sagredo
Thanks Daniel I did not checked Import Default Data I did it and all worked fine Newbie error sorry :P Have a nice day 2015-07-03 13:28 GMT+02:00 Daniel-Constantin Mierla : > Hello, > > when you install for first time, you have to select the options in the web > installation wizard for cre

Re: [SR-Users] Problem Storing USRLOC Additional Attributes

2015-07-03 Thread Daniel-Constantin Mierla
Hello, hmm, can you print the xavps just after you added them before save(location)? Trying to spot where the issue is, in storing inside usrloc or outside in the xavp framework. There should be some function to dump all xavps, iirc. Cheers, Daniel On 02/07/15 23:09, Luca Mularoni wrote: > Hi Da

Re: [SR-Users] Segment fault

2015-07-03 Thread Daniel-Constantin Mierla
On 03/07/15 11:58, Nick Raper wrote: > > Thanks Daniel, much appreciated. > Welcome! You should start considering to upgrade to a newer version - 3.2.x is quite old at this moment and no longer officially maintained for bugs/security issues. Cheers, Daniel -- Daniel-Co

Re: [SR-Users] Siremis 4.2 and Kamailio 4.3

2015-07-03 Thread Daniel-Constantin Mierla
Hello, when you install for first time, you have to select the options in the web installation wizard for creating the siremis database content. You can redo the installation wizard, remove the install.lock file -- see the installation docs for more details. Cheers, Daniel On 03/07/15 12:09, Alb

Re: [SR-Users] Segment fault

2015-07-03 Thread Nick Raper
Thanks Daniel, much appreciated. [Final Kibo Connect logo] Nick Raper │ Infrastructure Engineer Kibo Connect | Cape Town │ South Africa Office: +27 21 036 0011 │ Information: i...@kiboconnect.co.za │ Helpdesk: supp...@kiboconnect.co.za

Re: [SR-Users] Siremis 4.2 and Kamailio 4.3

2015-07-03 Thread Alberto Sagredo
Umm I have checked mysql tables and are empty for siremis mysql> use siremis; Database changed mysql> show tables; Empty set (0.00 sec) mysql> So maybe wizard is not installing sql on it? Any way to make it manually? 2015-07-03 12:04 GMT+02:00 Alberto Sagredo : > Hi > > Im installing Sire

[SR-Users] Siremis 4.2 and Kamailio 4.3

2015-07-03 Thread Alberto Sagredo
Hi Im installing Siremis 4.2 and getting this error when login. INstallation Wizard was fine and all dependencies are installed following Asipto Guide for Siremis. Any idea what could be wrong? Popup i get is.. {"target":"ERROR","content":" \n[2015-07-03 10:04:05 (GMT)] An exception occurred wh

[SR-Users] clarification on tcp keepalive

2015-07-03 Thread Kelvin Chua
using kamailio 4.3 on ubuntu server 14.04 i noticed tcp socket will be killed by kamailio after around 11 minutes with or without tcp_keepalive=no. tcpdump shows that by default (tcp_keepalive=yes) there is indeed keepalive packets going back and forth. if set to no, there would be nothing in betw

Re: [SR-Users] dispather

2015-07-03 Thread Daniel Tryba
On Thursday 02 July 2015 09:12:41 Slava Bendersky wrote: > Is dispatcher module can do call routing based on domain ? > This only inbound traffic. > So if call come from @domain1.tld -> asterisk box 1 @domain2.tld -> > asterisk box 2. Sure, just make the dispatcher target dynamic with a

Re: [SR-Users] Segment fault

2015-07-03 Thread Daniel-Constantin Mierla
Hello, in a quick look at the trace and the code, the assignment with empty value seems to be the issue, likely to be: $rU = $dbr(ra=>[0,1]); I remember that a similar issue was fixed long time ago, but not sure before your version (3.2.x) which is very old right now. If you have time, you can s

[SR-Users] dispather

2015-07-03 Thread Slava Bendersky
Hello Everyone, Is dispatcher module can do call routing based on domain ? This only inbound traffic. So if call come from @domain1.tld -> asterisk box 1 @domain2.tld -> asterisk box 2. Or which way is better to achieve it ? Thank you. ___

[SR-Users] Problem Storing USRLOC Additional Attributes

2015-07-03 Thread Luca Mularoni
Hi All, I'm using kamailio 4.2.5 (compiled from source and aligned up to commit [00a36ae07c587992d6486277ce2e9ae6c009685f]). In order to enrich users data collected during registering phase, I would like to store them in USRLOC Additional Attributes through the use of 'xavp_contact' structure, b

Re: [SR-Users] Segment fault

2015-07-03 Thread Nick Raper
This is our call forward route: route[CALLFWD] { if(!is_method("INVITE")) return -1; if($avp(DST_CARRIER) != CARRIER_US) return -1; sql_result_free("ra"); sql_query("ca", "SELECT forward, fwdnumber FROM subscriber WHER