[SR-Users] lcr module and IPv6

2011-12-15 Thread Juha Heinanen
Andreas Granig writes: > Just realized that lcr module does not support IPv6 yet. Is there > already any work going on here? Otherwise we'd take this task over. i don't know of such work. if you decide to do it, try to not cause any performance hit for current ipv4 usage. -- juha _

[SR-Users] MSRP Relay with Kamailio

2011-12-13 Thread Juha Heinanen
Krishna Kurapati writes: > I would like to use MSRP as part of SIP communication for > session based IM, and file transfer. > > Is there an MSRP relay software that works well with Kamailio? this one has worked ok for me: http://msrprelay.org/ -- juha _

Re: [SR-Users] route return value confusion

2011-12-13 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > coding wise might not be a lot, thus I haven't analyzed all the cases > where functions are evaluated by return code, but it will impact and > break config file as it used to be so far, for example: > > route[x] { > return -1; > } > > if(route(x)) will be t

Re: [SR-Users] route return value confusion

2011-12-13 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > Thus, no matter what code you return from a subroute, you have to > compare against 0 (for negative return code) or 1 (for positive return > code). > > Solutions/alternatives: is it not an alternative to fix to change the current implementation so that the re

Re: [SR-Users] route return value confusion

2011-12-12 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > cannot test it for now personally, but what you get if you do: > > route(TEST_ROUTE_MINUS_ONE); > > $var(r) = $rc; > > xlog("returned code by route minus one is: $var(r)\n"); > > Maybe this will give some leads I can follow in the code... daniel, i correctl

[SR-Users] route return value confusion

2011-12-10 Thread Juha Heinanen
i have defined two routes: route [TEST_ROUTE_MINUS_ONE] { return (-1); } route [TEST_ROUTE_PLUS_ONE] { return (1); } and then test them with these statements: if (route(TEST_ROUTE_MINUS_ONE) == -1) { xlog("L_INFO", "TEST_ROUTE returned -1\n"); } if (!route(TEST_

Re: [SR-Users] LCR weight parameter

2011-11-22 Thread Juha Heinanen
Fabian Borot writes: > 3 gws inside same group, and assuming the higher the weight the higher > the capacity > > gw 1 with weight 20 > gw 2 with weight 30 > gw 3 with weight 60 > > I would like to send more calls to gw 3, then gw 2 then gw 1 > but if when I do a load_gws, and I randomize the

Re: [SR-Users] LCR weight parameter

2011-11-22 Thread Juha Heinanen
Fabian Borot writes: > The help file for versions 3.1 and 3.2 also says "randomized weight", > does it really work on those versions? yes it does. > or do you mean the "priority" column on the "lcr_rule_target" table > instead? yes. > This may be a dumb question but since I don't get it I have

[SR-Users] LCR weight parameter

2011-11-22 Thread Juha Heinanen
Fabian Borot writes: > 1- since it is "randomized", does this mean that the weight parameter > actually can not guarantee that the weight value can decide how > gateways are ordered? it is a randomized weight, not an absolute priority. > 2- once I have the gws on the avp, is it posible to re-ord

[SR-Users] Limiting simultaneous calls

2011-11-21 Thread Juha Heinanen
Stefan Sayer writes: > if it's acceptable for you to use an external B2BUA, you could send > the calls through SEMS' sbc, activating session timers there and using > parallel calls cc_pcalls to limit. what if parties of the call do not support session timers and do not (for one reason or anothe

Re: [SR-Users] sqlops crash when connection does not exist

2011-11-18 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > I pushed a commit on the master that tries to make a graceful shutdown: > > http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=2396dde7230e04f853e6936cfff9059661c55635 > > Maybe you can try it with your case again and see if all goes fine now,

[SR-Users] Problem trying to play recorded message before call

2011-11-18 Thread Juha Heinanen
check if sems's early_announce app would solve your problem. -- juha ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

Re: [SR-Users] Dropped registrar bindings with 1.5.3

2011-11-17 Thread Juha Heinanen
Alex Balashov writes: > It's not logically possible. I checked, believe me. ok, then start adding more xlog statements in order to figure out what happens. -- juha ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@

[SR-Users] Dropped registrar bindings with 1.5.3

2011-11-17 Thread Juha Heinanen
Alex Balashov writes: > else if(is_method("REGISTER")) { > xlog("L_INFO", "... Processing REGISTER from $si:$sp for > AOR $tu\n"); > route(2); > exit; > } no matter what db you use, the above would print the syslog message IF the piece of code is execu

[SR-Users] sqlops crash when connection does not exist

2011-11-15 Thread Juha Heinanen
i misspelled connection argument in sql_query and got crash: Nov 10 17:19:15 sip /usr/sbin/sip-proxy[4182]: ERROR: sqlops [sqlops.c:266]: invalid connection [sip-proxy] Nov 10 17:19:15 sip /usr/sbin/sip-proxy[4182]: ERROR: [route.c:1216]: fixing failed (code=-1) at cfg:/etc/sip-proxy/sip-proxy.

Re: [SR-Users] mtree on db Berkeley DB?

2011-11-15 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > I assume many times the changes will be somewhere down the tree, since > the first part of the number is usually the same (e.g., country code and > operator prefix). To update the tree at runtime, while there are reads > on it, there must be used a lock to be

[SR-Users] New module: xhttp_rpc

2011-11-14 Thread Juha Heinanen
Ovidiu Sas writes: > A new module providing a web interface to kamailio/sip-router RPC > interface is available in trunk: ovidiu, thanks for the new module. i'll give it a try and report if i have any issues. -- juha ___ SIP Express Router (SER) and

Re: [SR-Users] mtree on db Berkeley DB?

2011-11-14 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > are there any other no-sql database systems that have such mechanism? > Might not be hard to make a connector when the time will allow -- just > to know the best options here. http://www.couchbase.org/ claims out-of-box clustering support, but i don't have per

Re: [SR-Users] mtree on db Berkeley DB?

2011-11-13 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > just mentioning ndb_redis module (in 3.2) - you may want to look at, it > is key based access memory system. sad that redis does not support master-master redundancy, but requires manual promotion of slave to master in case master fails. -- juha _

Re: [SR-Users] negative www_authorize result codes

2011-11-09 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > quick look into the code and the README seems outdated. But there is no > -7 return code in auth and auth_db -- return codes are taken from > modules/auth/api.h, structure auth_cfg_result_t. Maybe -7 is specific > for radius auth function. daniel, that is ok

[SR-Users] negative www_authorize result codes

2011-11-08 Thread Juha Heinanen
auth_db/README tells this about www_authorize() negative result codes: Negative codes may be interpreted as follows: * -1 (generic error) - some generic error occurred and no reply was sent out; * -2 (invalid password) - valid user, but wrong password; * -3 (invalid user)

[SR-Users] how to give integer avp name in pseudo variable?

2011-11-08 Thread Juha Heinanen
i have not been able to figure out, how to give integer avp name in a pseudo variable. test $var(name) = "i:1000"; $avp($var(name)) = "value"; xlog("L_INFO", "avp i:1000 has value <$avp(i:1000)>\n"); xlog("L_INFO", "avp s:i1000 has value <$avp(s:i:1000)>\n"); produces to syslog N

Re: [SR-Users] how to give integer avp name in pseudo variable?

2011-11-08 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > go ahead and add notes about it -- any improvement to documentation is > welcome and always good, no matter how obvious the information is for > some people or not. i added in pv doc third (pseudo variable) option for avp id. i'm a bit confused about the two

[SR-Users] how to give integer avp name in pseudo variable?

2011-11-08 Thread Juha Heinanen
answering to myself, the solution is to assign integer value to $var(name). test $var(name) = 1000; $avp($var(name)) = "value"; xlog("L_INFO", "avp i:1000 has value <$avp(i:1000)>\n"); xlog("L_INFO", "avp s:i1000 has value <$avp(s:i:1000)>\n"); produces to syslog Nov 8 13:26:25

[SR-Users] how to give integer avp name in pseudo variable?

2011-11-08 Thread Juha Heinanen
i have not been able to figure out, how to give integer avp name in a pseudo variable. test $var(name) = "i:1000"; $avp($var(name)) = "value"; xlog("L_INFO", "avp i:1000 has value <$avp(i:1000)>\n"); xlog("L_INFO", "avp s:i1000 has value <$avp(s:i:1000)>\n"); produces to syslog N

[SR-Users] kamctl lcr

2011-11-03 Thread Juha Heinanen
Jonny Klompas writes: > How do I install or configure lcr? use phpmyadmin or write a web interface for configuring lcr. -- juha ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-

Re: [SR-Users] is there help on mi commands in sercmd?

2011-11-03 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > there is a MI command listing all MI commands available at that time: > which. ok, i didn't know about that. perhaps better name would be 'help' because at top level that name is used for listing. -- juha ___ SIP Ex

[SR-Users] is there help on mi commands in sercmd?

2011-11-03 Thread Juha Heinanen
sercmd has help that lists the commands, one of which is mi. is there a way to list all mi sub-commands? i have tried ip-proxy_ctl> help mi Execute MI command sip-proxy_ctl> mi help error: 500 - command not available -- juha ___ SIP Express Router (S

Re: [SR-Users] extra _ctl in ctl file

2011-11-03 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > hopefully this is fixed by a recent commit, which is in master only for > the moment: daniel, i tested and, yes, the commit to master fixed the problem. i'll cherry pick it to 3.2. -- juha ___ SIP Express Router (

[SR-Users] extra _ctl in ctl file

2011-11-02 Thread Juha Heinanen
Juha Heinanen writes: > any idea where that comes from or it is only me, who has this problem? > i have not changed anything the command used to work fine earlier. the reason is this change to modules/ctl/ctl_defaults.h done in october: -#define DEFAULT_CTL_SOCKET "unixs:/tmp/ser_ct

[SR-Users] extra _ctl in ctl file

2011-11-02 Thread Juha Heinanen
i just noticed that my sip-proxy_ctl (alias kamailio_ctl) command has stopped working. it now adds an extra _ctl to the socket file name: # sip-proxy_ctl ERROR: connect_unix_sock: connect(/tmp/sip-proxy_ctl_ctl): No such file or directory [2] any idea where that comes from or it is only me, wh

Re: [SR-Users] sdpops and dynamic codec ids

2011-11-01 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > Try again with master and let me know if now is working fine. it is getting better, but not quite working yet. in: v=0. o=twinkle 1072425606 342738659 IN IP4 192.98.102.10. s=-. c=IN IP4 192.98.102.10. t=0 0. m=audio 8000 RTP/AVP 99 97 8 0 3 101. a=rtpmap:99 s

Re: [SR-Users] sdpops and dynamic codec ids

2011-10-31 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > btw, since I haven't spotted if you said it in previous emails, does > keep_codecs_by_name() work now ok with codecs that have dynamic ids? no, as i mentioned, it doesn't work. sdp_keep_codecs_by_name("PCMU,PCMA,speex"); on Session Description Prot

Re: [SR-Users] sdpops and dynamic codec ids

2011-10-29 Thread Juha Heinanen
Juha Heinanen writes: > it is possible to call both keep_codecs_by_name and keep_codecs_by_id, > since 101 does not have name: sorry, 101 does have name (telephone-event), so there is no problem. -- juha ___ SIP Express Router (SER) and Ka

Re: [SR-Users] sdpops and dynamic codec ids

2011-10-29 Thread Juha Heinanen
daniel, it is possible to call both keep_codecs_by_name and keep_codecs_by_id, since 101 does not have name: > v=0. > o=twinkle 1548176998 229186862 IN IP4 192.98.102.10. > s=-. > c=IN IP4 192.98.102.10. > t=0 0. > m=audio 8000 RTP/AVP 99 97 8 0 3 101. > a=rtpmap:99 speex/32000. > a=rtpmap:97 spe

Re: [SR-Users] sdpops and dynamic codec ids

2011-10-29 Thread Juha Heinanen
daniel, i fixed the crash like this: *** *** 482,495 int sdp_keep_codecs_by_name(sip_msg_t* msg, str* codecs) { str idslist; ! if(parse_sdp(msg) < 0) { LM_ERR("Unable to parse sdp\n"); return -1; } ! LM_ERR("at

Re: [SR-Users] sdpops and dynamic codec ids

2011-10-29 Thread Juha Heinanen
785 in receive_msg ( buf=0xb49fb770 "SUBSCRIBE sip:t...@test.fi SIP/2.0\r\nVia: SIP/2.0/TCP 192.98.102.10:5074;rport;branch=z9hG4bKwgssaikv\r\nMax-Forwards: 69\r\nTo: \r\nFrom: \"Juha Heinanen\" ;tag=hdatd\r\nCall-I"..., len=422, rcv_info=0xb49fb5c4) at receive.c:206

[SR-Users] sdpops and dynamic codec ids

2011-10-22 Thread Juha Heinanen
i made call sdp_keep_codecs_by_name("PCMU,PCMA,speex"); on an invite request and it didn't keep speex although it was in the sdp: Session Description Protocol Session Description Protocol Version (v): 0 Owner/Creator, Session Id (o): sems 1 1 IN IP4 192.98.102.10

[SR-Users] kamailio and high-available db backend

2011-10-19 Thread Juha Heinanen
mino, instead of ndb cluster, you can use drbd together with heartbeat and pacemaker to provide high available mysql/sip server solution. -- juha ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org

[SR-Users] Make all error

2011-10-17 Thread Juha Heinanen
Peter Schrock writes: > I am doing a "make all" and am getting this error: > > error: mysql/mysql.h: No such file or directory > > I have mysql installed and know that kamailio is having trouble finding > mysql header files. Is there a configuration I can set up to help kamailio > find it? Is th

Re: [SR-Users] Organization in SIP header

2011-10-15 Thread Juha Heinanen
Skyler writes: > I mean, is there a way to add an Organization Header Field without > using append_hf function in script. > > Example, organization_header="Organization: Company Name" i don't think there is any other way. -- juha ___ SIP Express R

[SR-Users] Organization in SIP header

2011-10-15 Thread Juha Heinanen
Skyler writes: > Is there a way to set Organization: within SIP header? I know how to > change user_agent_header and server_header but I'd rather not do that. > Also I know I could do append_hf, but is there an organization_header? i don't know what you mean by "within SIP header", but you can u

Re: [SR-Users] Problem with Route containing two elements

2011-10-12 Thread Juha Heinanen
davy van de moere writes: > Imho Kamailio does what it is supposed to do, it forwards the packet to the > first element in the Route header. yes. > But as I received the BYE packet from , that one should have > stripped itself out of the Route header, making everything just work, > right? yes,

Re: [SR-Users] [OT] SIP on the Web

2011-10-11 Thread Juha Heinanen
Iñaki Baz Castillo writes: > No, it isn't. But OverSIP is not just a proxy providing WebSocket > transport ;) i would prefer not to add more servers into my sip platform, because there is already sip proxy, registrar, presence server, xcap server, msrp server, and sems that provides several servi

[SR-Users] [OT] SIP on the Web

2011-10-11 Thread Juha Heinanen
inaki, i read your slides and have question about the example: is OverSIP sip proxy still needed if Kamailio sip proxy/registrar would implement websocket transport? -- juha ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr

Re: [SR-Users] limiting concurrent calls with dialog module

2011-10-10 Thread Juha Heinanen
Alex Balashov writes: > Stateless replies have that name for a reason; they lack state. They > don't trigger any TM callbacks that the dialog module can latch onto. > So, figuring out how to remove a dialog to which a stateless final > failure reply has been sent is actually quite difficult, and

[SR-Users] Audio quality issue

2011-10-08 Thread Juha Heinanen
Austin Einter writes: > One way audio stream (from called party to calling party) quality is good. > The other audio stream (from calling party to called party is very > bad. i don't think that rtpproxy does anything else to your audio streams than just forwards them as is from one side to the o

[SR-Users] tm and msilo module

2011-10-07 Thread Juha Heinanen
Mark Anthony C. Delfin writes: > ct 8 11:30:30 localhost kamailio[13856]: ERROR: tm [tm_load.c:48]: > tm:load_tm: Module not initialized yet, make sure that all modules that need > tm module are loaded after tm in the configuration file ... > Any ideas how can I fixed it. please read the error m

Re: [SR-Users] Problem with REGISTER retransmissions

2011-09-20 Thread Juha Heinanen
> we have been experiencing a big problem with REGISTER retransmissions. > When the server receives a retransmitted REGISTER it removes the > binding and the UAC remains unregistered until next refreshing > period. have you tried calling t_newtran() on register request? -- juha ___

Re: [SR-Users] [Sems] directed media problem when video is included in sdp

2011-09-20 Thread Juha Heinanen
Stefan Sayer writes: > The latter. The direction attribute from comedia draft is a media > level attribute. If it is set in the video stream only, it applies > only to the video stream. fix_nated_sdp should put it in the audio m > section as well. stefan, thanks for your reply. i fixed fix_n

Re: [SR-Users] how to remove media description from sdp?

2011-09-19 Thread Juha Heinanen
alex, thanks for the pointers. using regexs to manipulate sdp is really the scary last resort. -- juha ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailma

[SR-Users] how to remove media description from sdp?

2011-09-19 Thread Juha Heinanen
trying to hack around the possible fix_nated_sdp("1") issue that i outlined in previous message, i thought to remove video media description from sdp. in sdpops module there is sdp_with_media(type), but for some reason no sdp_remove_media(type) function. is there some other means to get rid of sd

[SR-Users] directed media problem when video is included in sdp

2011-09-19 Thread Juha Heinanen
when sems receives voice call invite from ua behind nat that has direction:active in its sdp, like this: Session Description Protocol Session Description Protocol Version (v): 0 Owner/Creator, Session Id (o): foo.bar 0 0 IN IP4 192.168.1. 68 Session Name

Re: [SR-Users] [sr-dev] planning v3.1.5

2011-09-13 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > Indeed, this is not a show stopper, dialog module has several things at > the border between required enhancement/bug, many from the first day. > That's life in sip, sometimes must is shoud, should is may, may is > june :-) especially with dialog module, which

[SR-Users] max_contacts

2011-09-13 Thread Juha Heinanen
Rafael Rincon writes: > Is there any chance to modify at running time (in a register event) > the max_contacts parameter? > I am running OpenSER version 1.4 . please check archives before posting. this issue was discussed recently. -- juha ___ SIP E

Re: [SR-Users] no publish from pua/pua_mi to outbound proxy

2011-09-12 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > By using ".", the presence server will create a new e-tag, right? It is > not an update to an existing presence document, but creation of a new > one. yes, it is considered a new presence document, which replaces an old one if any. same as if a single ua crash

Re: [SR-Users] no publish from pua/pua_mi to outbound proxy

2011-09-12 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > have had any time to try the patch I sent? Thinking of committing it, > but no presence server environment at hand for me to try it quickly... daniel, sorry, i forgot about it. is it really a good idea to allow any etag? would it be better to require that eta

Re: [SR-Users] Does xcap server of kamailio support partial update of xcap document?

2011-09-07 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > Feel free to do it, however I think it has to be reviewed where is used, > though -- it should be safe even size in db is longer as long as the > insert is done by kamailio itself, not sure we have affected cases when > the insert is done by external apps, so

Re: [SR-Users] Does xcap server of kamailio support partial update of xcap document?

2011-09-07 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > the error is because the size of http url is higher than 127. You can > increase it, no problem, it is now 255 in devel version -- be aware you > have to increase in the database xcap table as well the size of > doc_uri. daniel, if uri size in devel version n

[SR-Users] tls + tcp problems

2011-09-05 Thread Juha Heinanen
MÉSZÁROS Mihály writes: > Second: > I am experiencing that TLS connection is dropped by sip proxy very > frequently! > And i think the tcp connection shouldn't dropped! So my guess is that > TLS communication is not restarting the timeout counters! > So in every 2 minutes the sip-router is resta

[SR-Users] Carrier module for kamailio

2011-09-05 Thread Juha Heinanen
Mino Haluz writes: > I found LCR and carrierroute module, but it does not have peak/offpeak > feature. Correct me if I am wrong.. run from cron a script that modifies rules based on your needs. -- juha ___ SIP Express Router (SER) and Kamailio (OpenSE

Re: [SR-Users] [sr-dev] SIP Analysis & Testing tools

2011-09-05 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > thank you for sharing it with us. Are the diagrams generated as image, > or does also kind of html where can browse the content of SIP messages? > Maye uploading some screenshots on the wiki of github will make it more > appealing to try. i tried it and got a

Re: [SR-Users] no publish from pua/pua_mi to outbound proxy

2011-08-29 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > >> In the xmlrpc command, there was an etag value, have you tried with '.' > >> as etag? > > i haven't tried with "." etag yet. i'll try that tomorrow. mi pua publish from different UAs on same presentity seems to work ok, when UAs always use "." as tag param.

Re: [SR-Users] no publish from pua/pua_mi to outbound proxy

2011-08-29 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > The presentity table is built when a PUBLISH is received, did you sent > another PUBLISH before so that you have a record in this table? Or how > was it added in this table so that you could get the etag value? there are several sources that can send publish f

Re: [SR-Users] no publish from pua/pua_mi to outbound proxy

2011-08-29 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > looking at the xmlrpc command content, I see the E-Tag value set, for > the first publish, shouldn't it be empty and the presence server returns > the value to be used later for updates? daniel, my app that sends mi pua publish, takes etag from presentity tab

[SR-Users] no publish from pua/pua_mi to outbound proxy

2011-08-29 Thread Juha Heinanen
Juha Heinanen writes: > pua/send_publish() function and it spits out 418 in this piece of code: > > presentity= search_htable(&pres, hash_code); > if(publ->etag && presentity== NULL) > { > lock_release(&HashT->p_records[hash

[SR-Users] no publish from pua/pua_mi to outbound proxy

2011-08-29 Thread Juha Heinanen
i added some debug to pua_mi/mi_pua_publish() function and pua/send_publish() function and got to syslog: Aug 29 20:57:41 sip /usr/sbin/pres-serv[3861]: INFO: pua_mi [mi_func.c:254]: send publish Aug 29 20:57:41 sip /usr/sbin/pres-serv[3861]: INFO: pua [send_publish.c:403]: pres_uri=sip:j...@vm.

[SR-Users] no publish from pua/pua_mi to outbound proxy

2011-08-29 Thread Juha Heinanen
i started to test sr presence and for some reason sr does not send out any publish request when i issue one via pua_mi. i have in route [xmlrpc_requests]: xlog("L_INFO", "Handling XMLRPC $rm from <$si> with body <$(rb{re.subst,/[\n\r\t]//g})>\n"); set_reply_no_connect(); set_reply_cl

[SR-Users] enum_pv_query

2011-08-26 Thread Juha Heinanen
Andrew Melton writes: > Ideally, it would be something like: > > enum_pv_query("$rU + $rp"); try assigning $rU + $rp to a var and give that var as argument to enum_pv_query. -- juha ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mail

Re: [SR-Users] WARNING: timer: add_timeout: 0 expire timer added

2011-08-23 Thread Juha Heinanen
Alex Hermann writes: > > which version of sr is that? have you tried with latest master version? > > It is the latest master version, Kamailio flavour. andrei fixed this warning a couple of days ago and it disappeared from my setups. if you have build your sip router from today's master versio

[SR-Users] WARNING: timer: add_timeout: 0 expire timer added

2011-08-23 Thread Juha Heinanen
Alex Hermann writes: > I get this warning message when a request is relayed over tcp: > > WARNING: [timer_funcs.h:119]: WARNING: timer: add_timeout: 0 expire > timer added which version of sr is that? have you tried with latest master version? -- juha ___

[SR-Users] max branches

2011-08-23 Thread Juha Heinanen
Jon Bonilla (Manwe) writes: > Is there any configuration option in kamailio 3.1 to set the max number of > branches? there is no config option. max branches is a constant in config.h: #define MAX_BRANCHES12 /*!< maximum number of branches per tra nsaction */ -- juha _

Re: [SR-Users] mtree question

2011-08-18 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > * this is intended to control the behavior of the tree data and matching > mode. The default one is 0, match longest prefix and the associated data > with the prefix is a string. This is complete implementation. > > There is actually a second mode, 1, intended

[SR-Users] LCR Modules Comparison

2011-08-17 Thread Juha Heinanen
Spencer Thomason writes: > Can anyone shed some light into the differences between the available > LCR modules? We have migrated our config from OpenSIPS where we used > the drouting module to Kamailio where we are using the lcr module. > Our ruleset is not crazy huge, about 100k entries. Are th

Re: [SR-Users] mtree question

2011-08-16 Thread Juha Heinanen
Javier Gallart writes: > -mt_match() will match the longest prefix in the tree, in your case > -00358 in that case, it might make sense to implement a version of mt_match() that loads ALL matching tree branch values to an avp. in case of 00 and 00358 prefixes in the three, string 0035892345670 w

[SR-Users] mtree question

2011-08-12 Thread Juha Heinanen
after reading mtree readme, it is not clear to me if mt_match() matches to longest or any matching prefix in the three. for example, if i have tree with prefixes 00 and 00358 and string to be matched is 0035892345670, will mt_match() set pv to value associated with 00 or 00358? also, if mt_ignore

[SR-Users] lookup for specified user

2011-08-10 Thread Juha Heinanen
Efelin Novak writes: > I would like to change uri like lookup() function does it, but for the > specific user. Problem is I want to have one registration (X) for > several numbers. When this number is called I have to perform lookup() > for this one common registration (X) and send this call there

Re: [SR-Users] $hu is not documented

2011-08-10 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > indeed, seems I missed that -- I will try to fix the docs soon if none > is doing it meanwhile (it is in 3.1 as well). The PV is exported by > xhttp module and gives the http url, which is practically the original > URI of the request. i added $hu to devel ps

[SR-Users] $hu is not documented

2011-08-06 Thread Juha Heinanen
xcap_server examples refer to pseudo variable $hu, which is not documented on pseudo variables wiki page: http://sip-router.org/wiki/cookbooks/pseudo-variables/devel -- juha ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr

Re: [SR-Users] udp vs. tcp receiver processes

2011-08-05 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > One idea was to add udp_children and sctp_children parameters (or just > one like socket_children) that will count as they are set and will > affect next listen, like: > > socket_children=2 > listen=127.0.0.1 > socket_children=8 > listen = ... > > The other i

Re: [SR-Users] udp vs. tcp receiver processes

2011-08-04 Thread Juha Heinanen
Henning Westerholt writes: > this is the result of the different server design for UDP and TCP. For > TCP > AFAIK one main dispatcher accepts all the connections and then > distribute them > to the workers. For UDP the workers listen directly on the (one) network > socket, so there is no dispa

[SR-Users] udp vs. tcp receiver processes

2011-08-04 Thread Juha Heinanen
i have 8 children specified in default file and in cfg file i have: listen=192.98.101.10:5060; listen=udp:127.0.0.1:5070; listen=udp:127.0.0.1:5070; listen=tcp:127.0.0.1:5070; listen=udp:127.0.0.1:5080; listen=tcp:127.0.0.1:5080; listen=tcp:127.0.0.1:6060; that results in 8 tcp receiver processes

[SR-Users] what is tcp_accept_no_cl core param?

2011-07-30 Thread Juha Heinanen
xcap_server module requires tcp_accept_no_cl=yes i didn't find that param defined in core cookbook. what does it do? -- juha ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-ro

[SR-Users] [sr-dev] issue tracking system

2011-07-19 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > Opinions? i read somewhere that code.google.com now supports git. it also includes an issues tracker, but i don't know how good it is. -- juha ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing l

Re: [SR-Users] Questions about LCR module

2011-06-28 Thread Juha Heinanen
Fabian Borot writes: > Then I tried the sercmd commands to reload and dump and I do not see > the contents o the screen. Is this how is supposed to work now?. How > do I know that the new values are being loaded into memory w/o > restarting kamailio? lcr.reload load the tables to memory and does

[SR-Users] Questions about LCR module

2011-06-28 Thread Juha Heinanen
Fabian Borot writes: > I am trying to port our setup from kamailio 1.4.3 to 3.1.4 and I see > huge differences on the LCR module. there is a script somewhere (read wiki) that upgrades the tables. > I have these main questions: > > 1- does lcr_id replaces the grp_id? not really. lcr_ids denote

Re: [SR-Users] [sr-dev] kamailio 3.1.3 fail to start as a service when load the ldap.so module

2011-06-21 Thread Juha Heinanen
could you please decide a single mailing list for this discussion. -- juha ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

Re: [SR-Users] Using =~ to get the group identifier with longest match

2011-06-06 Thread Juha Heinanen
Iñaki Baz Castillo writes: > > Dialplan module allows setting a regular expression per table entry > (by setting the column match_op to 1 (regexp). sure, but i was asking about cr and the other module that henning was recommending. -- juha ___ SIP Exp

Re: [SR-Users] Using =~ to get the group identifier with longest match

2011-06-06 Thread Juha Heinanen
Iñaki Baz Castillo writes: > > We use the userblacklist module for this, it works with the same > > longest prefix match logic as cr. do both of them also support regular expressions, what inaki was asking for? -- juha ___ SIP Express Router (SER) and

Re: [SR-Users] Using =~ to get the group identifier with longest match

2011-06-06 Thread Juha Heinanen
Iñaki Baz Castillo writes: > Thanks. I don't need different priorities, I just need that, in case > of multiple matching (i.e. ^1 , ^10) the longest matching wins. Does > the dialplan module allow it? try by giving rule ^1 lower priority than ^10. -- juha __

Re: [SR-Users] Using =~ to get the group identifier with longest match

2011-06-06 Thread Juha Heinanen
Iñaki Baz Castillo writes: > The problem is that it would require perform N regular expression > matching and such expressions will be very long (all the country > prefixes in the world). The main problem is that some groups would > contain prefixes starting with, for example, 12, while in other g

[SR-Users] Questino about dialplan module

2011-06-03 Thread Juha Heinanen
Gary Chen writes: > I am testing out dialplan module. Every time when I issue 'kamctl > dialplan show', it shows what is in the database even if I have not > yet issue "kamctl dialplan reload' after I changed data in database. I > thought that dialplan is stored in the memory and you have to issue

Re: [SR-Users] [sr-dev] discussing about next major release - v3.2.0

2011-05-31 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > Based on people that expressed the option, we can do it Thursday this > week, is that fine? If not Friday. there still exists the bug that domain class avps are not stored in transaction. also, there stil exists the bug where master crashes when pkg memory siz

Re: [SR-Users] kamailio and radius

2011-05-30 Thread Juha Heinanen
Asun writes: > Can anyone send me a kamailio.cfg file with radius authentication for > kamailio 3.1? i have: loadmodule "auth_radius" modparam("auth_radius", "radius_config", "/etc/radiusclient-ng/radiusclient.conf") if (!radius_proxy_authorize("$var(uri_domain)", "$var(uri_user)")) {

Re: [SR-Users] kamailio and radius

2011-05-30 Thread Juha Heinanen
Asun writes: > I have testing with acc_radius module, but It doesnt work. The > misc_radius module is better than acc_radius? those two modules are for different purposes. acc_radius is for accounting, misc_radius provides various radius based checks, and auth_radius is for authentication. re

[SR-Users] Cancel issue

2011-05-24 Thread Juha Heinanen
Carl Wagner writes: > It looks like the problem is that that "200 Canceling" has a To: tag and > it shouldn't. where did you learn that? -- juha Regardless of the method of the original request, as long as the CANCEL matched an existing transaction, the UAS answers the CANCEL request itself wi

Re: [SR-Users] htable ::size has wrong value

2011-05-24 Thread Juha Heinanen
the query in ht_db_load_table is select key_name,key_type,value_type,key_value from htable order by key_type; that is records are ordered by key_type, which means that 0 entries come first and 1 entries after that. in ht_db_load_table function there is test in the loop: if(ktype==0 &&

Re: [SR-Users] htable ::size has wrong value

2011-05-24 Thread Juha Heinanen
Juha Heinanen writes: > here you go: > > # sip-proxy_ctl mi sht_reload htable > # sip-proxy_ctl mi sht_dump htable | egrep 20033 > lpi::20033::prefix[0]:: +3583796294 > lpi::20033::prefix[1]:: +35837824030 > lpi::20033::prefix::size:: 1 now when i took closer look at the

Re: [SR-Users] htable ::size has wrong value

2011-05-24 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > If the value is invalid at startup/reload, then something is wrong, > indeed. daniel, here you go: # sip-proxy_ctl mi sht_reload htable # sip-proxy_ctl mi sht_dump htable | egrep 20033 lpi::20033::prefix[0]:: +3583796294 lpi::20033::prefix[1]:: +35837824030 lp

Re: [SR-Users] app_lua in kamailio

2011-05-24 Thread Juha Heinanen
Bret McDanel writes: > How does one set a variable and subsequently access it outside of lua? > I tried what I thought was correct, but absent any documentation I can > find I cant seem to get that to work. there must be some documentation somewhere, since i was able to write a couple of lua func

<    4   5   6   7   8   9   10   11   12   >