Re: [SR-Users] question on call cancel

2016-12-14 Thread Kelvin Chua
thanks for the insights alex :) Kelvin Chua On Wed, Dec 14, 2016 at 6:06 PM, Alex Balashov wrote: > Unfortunately, calls can be set up between two fixed endpoints only. If > those endpoints change, not much you can do. > > I think this is a problem that some of the standards around

[SR-Users] question on call cancel

2016-12-14 Thread Kelvin Chua
on kamailio core from the old wifi IP. Is there maybe a way to update the transaction perhaps? Kelvin Chua ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin

[SR-Users] Serial Forking and t_suspend

2016-09-27 Thread Kelvin Chua
we have serial forking already setup properly but need to t_suspend(). found out that it completely breaks the destination set. other than manually rebuilding the destination set after t_continue(), are there any other solution out there? Kelvin Chua

Re: [SR-Users] ndb_mongodb, db_mongodb and replicasets

2015-11-18 Thread Kelvin Chua
careless mistake, working fine now. would be best to backport :) thanks so much! Kelvin Chua On Tue, Nov 17, 2015 at 9:54 PM, Daniel-Constantin Mierla wrote: > Have you used quotes around the uri? Like: > > modparam("ndb_mongodb", "server", "name=mgs1;u

Re: [SR-Users] ndb_mongodb, db_mongodb and replicasets

2015-11-17 Thread Kelvin Chua
[mongodb_client.c:306]: mongodbc_exec_cmd(): Cursor failure: not master it only adds the first host on the mongo uri, since it is not master, refuses to insert it Kelvin Chua On Tue, Nov 17, 2015 at 4:20 PM, Daniel-Constantin Mierla wrote: > Can you try with the patch from next commit? > >

Re: [SR-Users] ndb_mongodb, db_mongodb and replicasets

2015-11-16 Thread Kelvin Chua
p;readPreference=primaryPreferred.version query:{ table_name: "sip_trace" } looks like the parameters are being appended to the db name Kelvin Chua On Mon, Nov 16, 2015 at 7:26 PM, Daniel-Constantin Mierla wrote: > Can you try with ndb_mongodb module? > > Is anything suspect in t

Re: [SR-Users] ndb_mongodb, db_mongodb and replicasets

2015-11-16 Thread Kelvin Chua
o result from mongodb Nov 16 17:56:47 SG1-SIP /usr/local/sbin/kamailio[16130]: DEBUG: db_mongodb [mongodb_dbase.c:733]: db_mongodb_store_result(): no result from mongodb Nov 16 17:56:47 SG1-SIP /usr/local/sbin/kamailio[16131]: DEBUG: db_mongodb [mongodb_dbase.c:733]: db_mongodb_store_result(): no r

Re: [SR-Users] ndb_mongodb, db_mongodb and replicasets

2015-11-16 Thread Kelvin Chua
yes, for example: mongodb://10.0.1.1,10.0.1.2, 10.0.1.3/replicaSet=rs0&slaveOk=true&readPreference=primaryPreferred i tried this but it didn't work. according to mongoc documentation, this URI should be valid http://api.mongodb.org/c/1.2.1/mongoc_uri_t.html Kelvin Chua O

[SR-Users] ndb_mongodb, db_mongodb and replicasets

2015-11-11 Thread Kelvin Chua
anybody ever tried using a mongodb url with replicasets and parameters to work with kamailio? Kelvin Chua ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin

Re: [SR-Users] dmq_usrloc

2015-08-27 Thread Kelvin Chua
483648 reg_id = 0 aor = {s = 0xb92550 "kelvin", len = 6} ruid = {s = 0xb92a10 "uloc-55dffbe9-258b-1", len = 20} c = {s = 0xb92aa0 "sip:kelvin@192.168.1.120:5060;alias=4x.1x8.62.213~5060~1", len = 56} received = {s = 0xb92b6

Re: [SR-Users] dmq_usrloc

2015-08-17 Thread Kelvin Chua
yes, same crash Kelvin Chua On Mon, Aug 17, 2015 at 3:17 PM, Charles Chance < charles.cha...@sipcentric.com> wrote: > There were some issues fixed since 4.3.1 - have you tried with latest > master? > > Cheers, > Charles > On 17 Aug 2015 04:50, "Kelvin Chua&qu

Re: [SR-Users] dmq_usrloc

2015-08-16 Thread Kelvin Chua
i think we should support custom location tables in the future but either way, i tried changing location to kam_location in 2 instances on usrloc_sync.c -- crash i tried changing save("location") -- crash Kelvin Chua On Fri, Aug 14, 2015 at 7:32 PM, Charles Chance <

Re: [SR-Users] dmq_usrloc

2015-08-14 Thread Kelvin Chua
Cseq:: 30 User-agent:: qutecom/rev-g-trunk Path:: State:: CS_DIRTY Flags:: 0 Cflag:: 0 Socket:: udp:1.2.3.4:5080

Re: [SR-Users] dmq_usrloc

2015-08-13 Thread Kelvin Chua
c:924 #19 0x004aa753 in main_loop () at main.c:1650 #20 0x004b02b0 in main (argc=13, argv=0x7ffe6028e318) at main.c:2533 Kelvin Chua On Sat, Aug 8, 2015 at 12:09 AM, Asgaroth <00asgarot...@gmail.com> wrote: > Hi, > > > > Yes, I do see it replicating contacts

Re: [SR-Users] dmq_usrloc

2015-08-07 Thread Kelvin Chua
have you seen your usrloc actually populate data from another server? i can verify my dmq is working properly. just usrloc not populating. Kelvin Chua On Fri, Aug 7, 2015 at 6:22 PM, Asgaroth <00asgarot...@gmail.com> wrote: > Hi, > > > > I’m a new user to the dmq subsy

[SR-Users] dmq_usrloc

2015-08-05 Thread Kelvin Chua
am i doing something wrong? Kelvin Chua ___ 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] CNXCC lock

2015-07-27 Thread Kelvin Chua
already looked into it. let's see if i get the time to create a patch for this Kelvin Chua On Thu, Jul 23, 2015 at 3:28 PM, Dirk Teurlings - SIGNET B.V. < dteurli...@signet.nl> wrote: > Although we also use CNXCC I can't confirm this bug, mainly because we > only fire up

[SR-Users] CNXCC lock

2015-07-21 Thread Kelvin Chua
initial_pulse, int final_pulse) { call_t *call = NULL; lock_get(&credit_data->lock); ... the next lines will never be executed Kelvin Chua ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@li

[SR-Users] mongodb and jansson

2015-07-06 Thread Kelvin Chua
json_dumps(v, JSON_COMPACT); + const char* value = json_dumps(v, JSON_COMPACT|JSON_PRESERVE_ORDER); *freeme = (char*)value; val->rs.s = (char*)value; val->rs.len = strlen(value); Kelvin Chua ___ SIP Express Router (SER) and Kamailio (OpenSER)

[SR-Users] clarification on tcp keepalive

2015-07-03 Thread Kelvin Chua
4-5 probes, kamailio will send a FIN to the client. i checked the source code tcp_main.c and it looks alright. could this be an ubuntu issue? anybody seen this before? I created a workaround by setting expire 900 for all registrations but this is not ideal. Kelvin Chua

Re: [SR-Users] invalid char in json text

2015-06-29 Thread Kelvin Chua
this is spot on daniel, thanks! Kelvin Chua On Mon, Jun 29, 2015 at 6:18 PM, Daniel-Constantin Mierla wrote: > iirc, the command function can execute any type of operation, including > insert, try with the command like in the next docs: > > - http://docs.mongodb.org/manual/refer

Re: [SR-Users] invalid char in json text

2015-06-29 Thread Kelvin Chua
according to that documentation, inserting a document uses mongoc_collection_insert (collection, MONGOC_INSERT_NONE, doc, NULL, &error) which I cannot find in ndb_mongodb. is this really supported? or should be added to the module? Kelvin Chua On Mon, Jun 29, 2015 at 3:40 PM, Da

Re: [SR-Users] invalid char in json text

2015-06-27 Thread Kelvin Chua
303 Perimeter Center North, Suite 300 > Atlanta, GA 30346 > United States > > Tel: +1-800-250-5920 (toll-free) / +1-678-954-0671 (direct) > Web: http://www.evaristesys.com/, http://www.csrpswitch.com/ > > Sent from my BlackBerry. > *From: *Kelvin Chua > *Sent: *Saturday

[SR-Users] invalid char in json text

2015-06-27 Thread Kelvin Chua
time:new Date(),src_user:"kelvin",term_ani:"14112",src_domain:" domain.com",src_ip:"0",dst_ouser:"18188",dst_user:"18112",dst_domain:" domain.com"}) and other combinations, same error any ideas? i guess we need some more exa

Re: [SR-Users] Redirect with path

2015-06-22 Thread Kelvin Chua
yeah, i guess there is no standard for this. thanks for the tip! Kelvin Chua On Fri, Jun 19, 2015 at 6:27 PM, Daniel-Constantin Mierla wrote: > > > On 19/06/15 11:52, Kelvin Chua wrote: > > on my registrar server: > > after calling lookup, and getting AOR with path, how d

[SR-Users] Redirect with path

2015-06-19 Thread Kelvin Chua
on my registrar server: after calling lookup, and getting AOR with path, how do I send the path info back as a redirect? Kelvin Chua ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http

Re: [SR-Users] TLS conversion

2015-03-04 Thread Kelvin Chua
NOTICE","record route 3 $(hdr(Record-route)[2])"); subst_hf("Record-route", "/^ wrote: > Record-Route is not yet visible at that moment. Maybe a solution is to > use record_route_preset(..) with parameters instead of record_route(). > > Cheers, > Daniel &

Re: [SR-Users] TLS conversion

2015-03-04 Thread Kelvin Chua
i was thinking of changing the record-route before sending out. I tried it, but it's not working subst_hf("Record-route", "/^ wrote: > just an idea, will it work if i used subst_hf? > > Kelvin Chua > > On Tue, Mar 3, 2015 at 5:16 PM, Daniel-Constantin

Re: [SR-Users] TLS conversion

2015-03-03 Thread Kelvin Chua
just an idea, will it work if i used subst_hf? Kelvin Chua On Tue, Mar 3, 2015 at 5:16 PM, Daniel-Constantin Mierla wrote: > Hello, > > We need to review this in rr. > > Meanwhile you can use s.substr transformation to get whats after sips and > prefix it with sip in

Re: [SR-Users] TLS conversion

2015-03-03 Thread Kelvin Chua
ld be sip: and not sips: how can we force this? protocol pv is read-only Kelvin Chua On Tue, Mar 3, 2015 at 2:43 PM, Daniel-Constantin Mierla wrote: > Hello, > > doesn't the ACK have a Route header for K1 and double Route headers for > K2? K1 should use the first Route of K2

[SR-Users] TLS conversion

2015-03-02 Thread Kelvin Chua
ed because client never received the ACK any ideas on a fix or workaround? Kelvin Chua ___ 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] TLS t_replicate

2015-02-24 Thread Kelvin Chua
too fast to the keyboard. nevermind this. working now Kelvin Chua On Wed, Feb 25, 2015 at 11:54 AM, Kelvin Chua wrote: > serverA listens on both UDP and TLS > serverB listens on UDP only > > client registers to serverA via UDP. > serverA uses t_replicate (;transport=udp) se

[SR-Users] TLS t_replicate

2015-02-24 Thread Kelvin Chua
kamailio :( how is it supposed to be done? any ideas? Kelvin Chua ___ 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] dialog timeout reinvite

2015-01-08 Thread Kelvin Chua
Hi Daniel, Thanks for the patch. working perfectly Kelvin Chua On Thu, Jan 8, 2015 at 5:32 AM, Daniel-Constantin Mierla wrote: > > On 07/01/15 12:24, Kelvin Chua wrote: >> thanks for the tip, i'm using 4.1 >> what i did was to catch the reinvite and compute the remainin

Re: [SR-Users] dialog timeout reinvite

2015-01-07 Thread Kelvin Chua
ialog. any ideas? Kelvin Chua On Fri, Jan 2, 2015 at 1:35 AM, Federico Cabiddu wrote: > Hi, > You can use the timeout_noreset parameter of the dialog module: > http://www.kamailio.org/docs/modules/devel/modules/dialog.html#idp16963672. > > Regards, > > Federico > > O

[SR-Users] dialog timeout reinvite

2015-01-01 Thread Kelvin Chua
Happy new year everyone! :) I have stumbled into a case where a switch would send a reinvite to my kamailio server every 15 minutes. I am setting dialog timeout using avp for prepaid purposes. now i think it resets the timer upon processing of the reinvite. what is the best way to work around thi

[SR-Users] SDP media IP variable

2014-12-01 Thread Kelvin Chua
Hi, Is there a way to get the SDP media IP from an INVITE or 183 or 200? and store it in a variable? Kelvin Chua ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi

[SR-Users] channel parameter on SDP

2014-10-01 Thread Kelvin Chua
Hi guys, my provider is being a dick. they do not accept doubango's a=rtpmap:0 PCMU/8000/1 what they wanted was a=rtpmap:0 PCMU/8000 is there a way of changing this on kamailio? Kelvin Chua ___ SIP Express Router (SER) and Kamailio (Op

Re: [SR-Users] cnxcc serial fork

2014-09-28 Thread Kelvin Chua
Hi Carlos, Any updates on this? Kelvin Chua On Sun, Sep 7, 2014 at 12:35 PM, Kelvin Chua wrote: > i am not sure if this is related but, there are cases when if a user adds > credit, it does not reflect on cnxcc.active_clients > after the next call. somehow, cnxcc saves the old credit

Re: [SR-Users] cnxcc serial fork

2014-09-06 Thread Kelvin Chua
i am not sure if this is related but, there are cases when if a user adds credit, it does not reflect on cnxcc.active_clients after the next call. somehow, cnxcc saves the old credit and does not update it Kelvin Chua On Thu, Aug 28, 2014 at 10:24 PM, Carlos Ruiz Díaz < carlos.ru

[SR-Users] dialog match on loop back

2014-09-06 Thread Kelvin Chua
same. kamailio treats this call as just 1, not 2. is there any ideas out there to work around this scenario? Kelvin Chua ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/

[SR-Users] cnxcc serial fork

2014-08-28 Thread Kelvin Chua
ated to $200? is there an override in cnxcc_set_max_credit when called twice or after failure_route? Kelvin Chua ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi

Re: [SR-Users] CNXCC curious case

2014-08-21 Thread Kelvin Chua
just to close this issue, it does not happen on 4.1.5 Kelvin Chua On Thu, Jul 10, 2014 at 9:26 PM, Carlos Ruiz Díaz wrote: > Hi Kevin, > > what are the steps to reproduce this? > > Also, do you have the latest update of the module? I remember fixing a > deadlock that could

Re: [SR-Users] XMLRPC problem

2014-08-15 Thread Kelvin Chua
ble_dump_doc, 0}, + {"htable.dump", htable_rpc_dump, htable_dump_doc, RET_ARRAY}, {"htable.delete", htable_rpc_delete, htable_delete_doc, 0}, {"htable.get", htable_rpc_get, htable_get_doc, 0}, {"htable.sets", htable_rpc_sets, htable_sets_doc, 0}, Kelvin Chua

Re: [SR-Users] possible regression on 4.1.3 vs 4.1.4

2014-07-26 Thread Kelvin Chua
thanks, will wait for 4.1.5 then Kelvin Chua On Sat, Jul 26, 2014 at 5:46 AM, Daniel-Constantin Mierla wrote: > You have to upgrade to latest sources from branch 4.1. There was a > regression with execution of event routes from dialog module, which should > be fixed already. &

Re: [SR-Users] possible regression on 4.1.3 vs 4.1.4

2014-07-25 Thread Kelvin Chua
right, i missed this one from route.h #define LOCAL_ROUTE (1 << 6) for the debug 3 log (can't find my dev server running the default cfg, here's something similar, just added dialog and cnxcc to the default cfg) http://pastebin.com/mrrbH0rh Kelvin Chua On Fri, Jul 25,

[SR-Users] possible regression on 4.1.3 vs 4.1.4

2014-07-25 Thread Kelvin Chua
. i believe route type 64 is branch failure, but using the same cfg and reverting back to 4.1.3 solves it. so whatever changes was done to 4.1.4 broke it. Kelvin Chua ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users

[SR-Users] CNXCC curious case

2014-07-09 Thread Kelvin Chua
I am using cnxcc_set_max_channels and set the max channels to 1 after the 1st call goes through and hangs up, the 2nd one would be blocked even if there are no more active dialogs. could it be a dialog state issue? Kelvin Chua ___ SIP Express Router

Re: [SR-Users] $avp(received)

2014-07-06 Thread Kelvin Chua
as always, thanks daniel :) Kelvin Chua On Thu, Jul 3, 2014 at 4:21 PM, Daniel-Constantin Mierla wrote: > Hello, > > the received avp is set by fix_nated_registrar(), iirc. > set_contact_alias() doesn't do it. > > If you want to get the source IP and port, use $s

Re: [SR-Users] msilo possible bug

2014-07-02 Thread Kelvin Chua
looks like it was. testing further, thanks Kelvin Chua On Mon, Jun 30, 2014 at 5:30 PM, Daniel-Constantin Mierla wrote: > Hello, > > is the message still in database table? > > Have you looked at loopback network interface, because it might used to > send out the SIP MESSA

[SR-Users] $avp(received)

2014-07-02 Thread Kelvin Chua
is there any way of getting the received ip/port/proto from nathelper? modparam("nathelper|registrar", "received_avp", "$avp(RECEIVED)") set_contact_alias(); xlog("$avp(RECEIVED)"); this gives me Kelvin Chua _

[SR-Users] msilo possible bug

2014-06-27 Thread Kelvin Chua
[msilo.c:1089]: m_dump(): message[0] mid=405 already sent. using ngrep, no message was ever seen on the wire. then, kamctl fifo get_statistics all | grep mess msilo:dumped_messages = 0 msilo:failed_messages = 0 msilo:stored_messages = 1 still the same. anybody experienced this? Kelvin Chua

[SR-Users] CNXCC and multiple servers

2014-06-04 Thread Kelvin Chua
I was just playing around with the dmq module when i thought of an idea, cnxcc being able to track users across servers. cnxcc would have to be aware of dialogs created on another server. is this something doable? Kelvin Chua ___ SIP Express Router

Re: [SR-Users] sqlops

2014-06-03 Thread Kelvin Chua
thanks daniel, found the culprit in db_cluster. my bad. Kelvin Chua On Tue, Jun 3, 2014 at 3:01 PM, Daniel-Constantin Mierla wrote: > Hello, > > if you run with debug=3, do you get more hints? > > Also, in case you have mysql server, you can enable logging sql query and > s

[SR-Users] sqlops

2014-06-02 Thread Kelvin Chua
what is wrong with this sql query? it works outside kamailio. select s.* from (select @p1:=4088112345 p) parm , lrn.lrnx s; ERROR: sqlops [sql_api.c:435]: sql_exec_xquery(): cannot do the query Kelvin Chua ___ SIP Express Router (SER) and Kamailio

Re: [SR-Users] cnxcc

2014-06-02 Thread Kelvin Chua
hi guys, just to close this issue, i figured the problem only affects scenarios where dlg_manage() comes before cnxcc_set_max_credits() Kelvin Chua On Mon, May 12, 2014 at 10:00 AM, Carlos Ruiz Díaz wrote: > Hi, > > Check this commitdiff [1], it has some subtle lines of code that r

Re: [SR-Users] cnxcc

2014-05-11 Thread Kelvin Chua
ncy is the dialog module, shouldn't it include the rtimer module? is it really required? what if i would only use CNXCC_MONEY and not CNXCC_TIME or CNXCC_CHANNEL? should i still load rtimer.so before loading cnxcc.so? Kelvin Chua On Mon, Apr 28, 2014 at 9:13 PM, Carlos Ruiz Díaz wrote: >

Re: [SR-Users] cnxcc

2014-04-26 Thread Kelvin Chua
No, I have not yet found the solution for this issue on my setup. Maybe Carlos can help us out On Apr 26, 2014 5:10 PM, "Andrzej Ciupek" wrote: > Hello > > Have You solved this issue ? > I’am using Kamailio 4.1.3 and I’am getting the same results. > > Greetings > Andrzej Ciupek > _

Re: [SR-Users] cnxcc

2014-04-09 Thread Kelvin Chua
;; # 1$ per sec $var(i_pulse) = "1"; # 1$ to establish the call $var(f_pulse) = "1"; # 1$ per second # if only one call is established, that call should last 9 seconds. if (!cnxcc_set_max_credit("$var(client)", "$var(credit)", "$var(cost_per_sec)

Re: [SR-Users] cnxcc

2014-04-08 Thread Kelvin Chua
non-zero client_id:6,number_of_calls:2,concurrent_calls:0,type:1,max_amount:0.00,consumed_amount:0.00; Kelvin Chua On Tue, Apr 8, 2014 at 5:19 AM, Daniel Grotti wrote: > Rome! > Great choice! :) > > Daniel > > > > On 04/08/2014 10:31 AM, Carlos Ruiz Díaz wrote: > &

[SR-Users] cnxcc

2014-04-08 Thread Kelvin Chua
alogs alongside cnxcc just to compare, all dialogs were disengaged. is this an expected behavior? It's also weird that the max_amount is 0 while i checked that there is a value for credit being passed as an argument. Kelvin Chua ___ SIP Express Router

Re: [SR-Users] Dialog: Keep-alive issue:

2014-04-07 Thread Kelvin Chua
se 2 will make sure that keep alive timers will apply to the current dialog Kelvin Chua On Mon, Apr 7, 2014 at 1:43 AM, Vassilis Radis wrote: > Hello, > > I am trying to use the dialog module for dealing with some cases where > clients do not send BYE messages correctly and just di

Re: [SR-Users] No audio issue

2014-04-07 Thread Kelvin Chua
is this webrtc? are you using rtpproxy? Kelvin Chua On Mon, Apr 7, 2014 at 6:37 AM, jaflong jaflong wrote: > Hi, > > I am at the point where connection is established and no apparent errors > are reported. > > However audio is not output. > > The rtp traffic seems t

Re: [SR-Users] Caller ID number being passed to Gateway

2014-04-07 Thread Kelvin Chua
hi joel, what kamailio version are you using? can you verify if you see your old username at the end of the domain? for example: us...@domain.com after calling uac_replace_from you wll get user2@domain.comuser1 Kelvin Chua On Mon, Apr 7, 2014 at 11:36 AM, Joel White wrote: > What I

Re: [SR-Users] sql_xquery() and xavp checks

2014-04-05 Thread Kelvin Chua
no, it's not for SELECT. $dbr for SELECTs Kelvin Chua On Sat, Apr 5, 2014 at 6:16 PM, Fred Posner wrote: > On 04/05/2014 09:01 PM, Alex Balashov wrote: > >> Does that work for SELECT queries? The documentation says it's only for >> INSERT, UPDATE and DELETE. >

Re: [SR-Users] sql_xquery() and xavp checks

2014-04-05 Thread Kelvin Chua
dunno if this helps but i use $sqlrows(ca) to check whether there are rows returned Kelvin Chua On Sat, Apr 5, 2014 at 9:15 AM, Alex Balashov wrote: > On 04/05/2014 12:14 PM, Fred Posner wrote: > >> > I don't think so. As I understood the documentation, at least, $d

Re: [SR-Users] uac_replace_from

2014-04-04 Thread Kelvin Chua
. using this experiment, i can conclude that it is indeed just once. I am curious on your method daniel, what do you mean by "store the changes in avps and commit the changes" ? Kelvin Chua On Fri, Apr 4, 2014 at 1:46 AM, Daniel Tryba wrote: > On Friday 04 April 2014 09:53:48

[SR-Users] uac_replace_from

2014-04-03 Thread Kelvin Chua
Has anybody experienced having uac_replace_from() concatenate the old from: value after the new domain? for example: From: "user1" becomes From: "user2" Kelvin Chua ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users m

Re: [SR-Users] Social Configuration module for Kamailio released

2014-03-31 Thread Kelvin Chua
Where do we sign-up? Is there an April 1st special promo code? lol :D Kelvin Chua On Mon, Mar 31, 2014 at 10:06 PM, Alex Balashov wrote: > For immediate release: > > ATLANTA, GA (1 April 2014)--Evariste Systems LLC, an Atlanta-based > consultancy and software vendor specialising

Re: [SR-Users] XMLRPC problem

2014-03-30 Thread Kelvin Chua
thanks juha i was able to apply the RET_ARRAY fix to htable.dump in 4.0.5 however unable to share the patch as htable_rpc[] is nowhere to be found on trunk was there any changes from 4.0.x to trunk with regards to rpc? Kelvin Chua On Sun, Mar 30, 2014 at 8:37 AM, Juha Heinanen wrote: > Kel

[SR-Users] XMLRPC problem

2014-03-30 Thread Kelvin Chua
rking response: entry6size1slotitemname4::numvalue1 entry11size1slotitemname3::numvalue1 Kelvin Chua ___ 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/lis

Re: [SR-Users] dialog expire, acc

2014-03-28 Thread Kelvin Chua
It worked! perfect Kelvin Chua On Fri, Mar 28, 2014 at 1:34 AM, Alex Balashov wrote: > On 03/28/2014 04:32 AM, Kelvin Chua wrote: > > I tried, AVPs, they are not accessible on the >> event_route[tm:local-request] >> > > That's because AVPs are only tr

Re: [SR-Users] dialog expire, acc

2014-03-28 Thread Kelvin Chua
Hi Alex, yes, locally generated BYEs I was trying to avoid the unique constraint approach as it is not very elegant. I tried, AVPs, they are not accessible on the event_route[tm:local-request] however, your idea on $dlg_vars was spot on, why didn't i think of that. Thanks a bunch! Kelvin

[SR-Users] dialog expire, acc

2014-03-28 Thread Kelvin Chua
handling this so i can only get 1 BYE on acc? Kelvin Chua ___ 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

[SR-Users] presence bug

2014-03-24 Thread Kelvin Chua
o_delete(): error while submitting query /usr/local/sbin/kamailio[20406]: ERROR: presence [subscribe.c:2220]: update_db_subs_timer(): deleting expired information from database Kelvin Chua ___ 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

[SR-Users] sqlops mysql URL

2014-03-21 Thread Kelvin Chua
anybody have idea on how to dynamically access mysql URLs using avp? reason being is, i have the mysql URLs in an htable. how can i avoid using modparam for it? is it doable? Kelvin Chua ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users

Re: [SR-Users] sip code and sip reason read only

2014-03-14 Thread Kelvin Chua
for anyone looking for the same thing, it's in textopsx module onreply_route { if (@status == "603") { change_reply_status(404, "Not Found"); exit; } } Kelvin Chua On Fri, Mar 14, 2014 at 6:06 AM, Kelvin Chua wrote: > How can i alter at lea

Re: [SR-Users] Inter domain routing

2014-03-14 Thread Kelvin Chua
easiest way is to change your domain before calling t_relay() for example: $rd = "1.2.3.4" t_relay(); this will overwrite the r-uri and relay the message to 1.2.3.4 instead Kelvin Chua On Fri, Mar 14, 2014 at 1:56 PM, Neville D'Souza wrote: > Hi Kelvin, > > >

Re: [SR-Users] Inter domain routing

2014-03-13 Thread Kelvin Chua
it is still the same t_relay() for both IP address or domain name. Kelvin Chua On Fri, Mar 14, 2014 at 11:34 AM, Neville D'Souza wrote: > Hi Daniel, > > > > Just a query regarding the same. I will be building 2 live kamailio > servers based in 2 different countries whi

Re: [SR-Users] Two kamailio servers sharing database

2014-03-13 Thread Kelvin Chua
try modparam("auth_db", "use_domain", 0); modparam("usrloc", "use_domain", 0); Kelvin Chua On Fri, Mar 14, 2014 at 11:39 AM, Owais ul Haq wrote: > Hello, > I have deployed two kamailio servers. Both are sharing a common database > deployed

[SR-Users] sip code and sip reason read only

2014-03-13 Thread Kelvin Chua
How can i alter at least the sip reason in transit? $rr is read only for example: what i wanted to do is when an egress switch returned, 404 i am ugly i wanted to return this to ingress 404 he is ugly Kelvin Chua ___ SIP Express Router (SER) and

Re: [SR-Users] milliseconds on $Ts

2014-03-11 Thread Kelvin Chua
thanks! it worked Kelvin Chua On Tue, Mar 11, 2014 at 2:09 PM, Daniel-Constantin Mierla wrote: > Hello, > > see this pv: > > - http://www.kamailio.org/wiki/cookbooks/4.1.x/pseudovariables#timeval > > Cheers, > Daniel > > > On 11/03/14 05:39, Kelvin Chua wr

[SR-Users] milliseconds on $Ts

2014-03-10 Thread Kelvin Chua
Hi guys, Is there a code somewhere in the project i can reuse to implement milliseconds on $Ts? for example introduce a "$Tms" or a "$TmS" to refer to a pv that stores milliseconds instead of seconds? Kelvin Chua ___ SIP Expr

Re: [SR-Users] ngcp-mediaproxy-ng media address

2014-02-03 Thread Kelvin Chua
Great! Thanks! On Feb 2, 2014 8:56 AM, "Richard Fuchs" wrote: > The master branch on github already fixes that. > > cheers > > > On 02/01/14 19:40, Kelvin Chua wrote: > > If you were to ask me, i would prefer that mp-ng would take the 2nd arg > >

Re: [SR-Users] ngcp-mediaproxy-ng media address

2014-02-01 Thread Kelvin Chua
ommand line, right? > > Right now, MP-NG treats it as an override to the original address given > in the received SDP. Not sure if it even makes sense to have that option. > > I'll push a fix shortly. > > cheers > > > On 01/30/14 20:25, Kelvin Chua wrote:

[SR-Users] ngcp-mediaproxy-ng media address

2014-01-30 Thread Kelvin Chua
ptime:20#015#012a=sendrecv#015#012a=rtcp:10003#015#012a=ice-ufrag:QocOqhlR#015#012a=ice-pwd:HZ7WUgsHAKlLGp1n2FAzEwWsS9gj#015#012a=candidate:pMoXfVtH0dDfxpoa 1 UDP 2130706432 10.17.0.102 10002 typ host#015#012a=candidate:pMoXfVtH0dDfxpoa 2 UDP 2130706431 10.17.0.102 10003 typ host#015#0126:result2

Re: [SR-Users] tag column on address table

2014-01-06 Thread Kelvin Chua
LM_ERR("setting of tag_avp failed\n"); + return -1; + } + } return table[i].grp; + } i++; } Kelvin Chua On Tue, Jan 7, 2

Re: [SR-Users] tag column on address table

2014-01-06 Thread Kelvin Chua
LM_ERR("failed to set of tag_avp failed\n"); + return -1; + } + } return np->grp; } } Kelvin Chua On Mon, Jan 6, 2014 at 7:59 PM, Kelvin Chua wrote: > checking the source code, looks li

Re: [SR-Users] tag column on address table

2014-01-06 Thread Kelvin Chua
checking the source code, looks like, it's not being set at all on any of those functions Kelvin Chua On Mon, Jan 6, 2014 at 7:37 PM, Daniel-Constantin Mierla wrote: > Hello, > > > On 04/01/14 21:47, Juha Heinanen wrote: > >> Kelvin Chua writes: >>

Re: [SR-Users] tag column on address table

2014-01-06 Thread Kelvin Chua
amp;np->addr, addr)) { + if ( np->tag.s != NULL ) { + avp_val.s.s = (char *)np->tag.s; + avp_val.s.len = strlen(avp_val.s.s); + if (add_avp(tag_avp_type|AVP_VAL_STR, tag_avp, avp_val) != 0) { + LM_ERR("failed to set of tag_avp failed\n"); + return -1; + } + } return np->grp;

Re: [SR-Users] tag column on address table

2014-01-05 Thread Kelvin Chua
is given as argument to allow_address and allow_source_address functions. As a side effect of matching the address, non-NULL tag (see tag_col module parameter) is added as value to peer_tag AVP if peer_tag_avp module parameter has been defined. Kelvin Chua On Sun, Jan 5, 2014 at 4:47 AM

[SR-Users] tag column on address table

2014-01-04 Thread Kelvin Chua
is the peer_tag_avp used on allow_source_address_group? Kelvin Chua ___ 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] ingress timer

2014-01-02 Thread Kelvin Chua
ok noted. thanks alex. Kelvin Chua On Thu, Jan 2, 2014 at 3:51 PM, Alex Balashov wrote: > On 01/02/2014 02:47 AM, Kelvin Chua wrote: > >> agreed. the design of the db and queries are all properly tested, with >> only milliseconds of query time even for tables as large as mill

Re: [SR-Users] ingress timer

2014-01-01 Thread Kelvin Chua
- do you think this is worthy of a feature request? something like timer_enable(timer_id, enable_disable, timeout) Kelvin Chua On Thu, Jan 2, 2014 at 2:46 PM, Alex Balashov wrote: > On 01/02/2014 01:39 AM, Kelvin Chua wrote: > > those timers are for INVITES sent by kamailio r

Re: [SR-Users] ingress timer

2014-01-01 Thread Kelvin Chua
be unforeseen delays which might cause a very high PDD for my callers, i don't want them to wait. Kelvin Chua On Thu, Jan 2, 2014 at 2:21 PM, Alex Balashov wrote: > Not only that, but there is also the t_set_fr() module function that lets > one change the values of fr_timer and f

[SR-Users] ingress timer

2014-01-01 Thread Kelvin Chua
caller. problem is, the timeout value for module is static. i need the timeout to be dynamic for different callers. are there any other methods on achieving this? Kelvin Chua ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr

Re: [SR-Users] t_reply in failure route with dialog module

2013-12-28 Thread Kelvin Chua
rror WARNING: tm [t_lookup.c:1564]: t_unref(): WARNING: script writer didn't release transaction no i do not have CRITICAL: dialog [dlg_hash.c:794]: log_next_state_dlg(): bogus event 4 in state 5 for dlg ... in my logs Kelvin Chua On Sat, Dec 28, 2013 at 6:22 AM, Daniel-Constantin

Re: [SR-Users] XAVP question

2013-12-27 Thread Kelvin Chua
ok got it, a lil bit counter intuitive but works. Kelvin Chua On Fri, Dec 27, 2013 at 5:22 PM, Daniel-Constantin Mierla wrote: > Hello, > > whenever you want to add one xavp, you must not provide the index. Try: > > $xavp(arr=>foo1) = 'bar1'; > $xavp(arr[0]=>

[SR-Users] XAVP question

2013-12-27 Thread Kelvin Chua
i'm trying to create an array (similar to sql_xquery result) using xavp, i tried the ff: $xavp(arr[0]=>foo1) = 'bar1'; $xavp(arr[0]=>foo2) = 'bar2'; $xavp(arr[1]=>foo1) = 'bar3'; $xavp(arr[1]=>foo2) = 'bar4'; this does not work. Kelvin

Re: [SR-Users] t_reply in failure route with dialog module

2013-12-25 Thread Kelvin Chua
Hi guys, was this issue resolved? I encountered this issue also (4.0.5), in failure_route, i used t_reply("404","not found") never sent out, instead i get this in logs, WARNING: tm [t_lookup.c:1564]: t_unref(): WARNING: script writer didn't release transaction Kelvin Ch

  1   2   >