Re: [SR-Users] Via in locally generated PUBLISH (using different presence server address)

2016-08-15 Thread Asgaroth
5060 port. On 13/08/2016 09:36, Asgaroth wrote: I just looked at the pua table, and I dont have any records in the table, so I presume this error message occurs when reading the in-memory structure when pua module tries to update the database. Is there a way I can see what the in memory

Re: [SR-Users] Via in locally generated PUBLISH (using different presence server address)

2016-08-13 Thread Asgaroth
like? On 12/08/2016 13:22, Asgaroth wrote: Update: I've just noticed that the error's I'm seeing roughly appear every 20 seconds after an attempted locall generated publish is sent when rewriting the via header in the event-route. This seems to corrolate with my db update

Re: [SR-Users] Via in locally generated PUBLISH (using different presence server address)

2016-08-12 Thread Asgaroth
nd_proxy parameter is set? I presume, then, the Via header would be generated correctly. Any thoughts on how I could work around this issue? Thanks On 09/08/2016 09:31, Asgaroth wrote: Hi Daniel, I've just sent the captures on to you privately. Thanks On 09/08/2016 08:34, Daniel-C

Re: [SR-Users] Via in locally generated PUBLISH (using different presence server address)

2016-08-09 Thread Asgaroth
18:51, Asgaroth wrote: Hi All, I have a configuration where we run a multi-homed proxy/loadbalancer and a seperate internal presence server. We then use pua/pua-dialoginfo on the proxies to publish dialog state to the internal presence server. The proxies listen on udp:external_ip:5062 and udp:interna

[SR-Users] Via in locally generated PUBLISH (using different presence server address)

2016-08-08 Thread Asgaroth
Hi All, I have a configuration where we run a multi-homed proxy/loadbalancer and a seperate internal presence server. We then use pua/pua-dialoginfo on the proxies to publish dialog state to the internal presence server. The proxies listen on udp:external_ip:5062 and udp:internal_ip1:5060. T

Re: [SR-Users] pua_dialoginfo publish sent without recieved etag (intermittent)

2015-10-21 Thread Asgaroth
llow up publish, just the effect on blf. Cheers, Daniel On 17/10/15 13:24, Asgaroth wrote: Hi All, I've come accross an intermittent issue where an initial publish is sent to our presence server, proxy recieves the subsequent 200 with etag, but the following publish sent does not conta

[SR-Users] pua_dialoginfo publish sent without recieved etag (intermittent)

2015-10-17 Thread Asgaroth
Hi All, I've come accross an intermittent issue where an initial publish is sent to our presence server, proxy recieves the subsequent 200 with etag, but the following publish sent does not contain the sip-if-match header of the recieved 200, which ends up causing trouble with BLF on our test

Re: [SR-Users] setflag and hash table variables

2015-10-14 Thread Asgaroth
(ds_setid)) ); Cheers, Daniel On 14/10/15 14:35, Asgaroth wrote: I originally sent this to sr-dev in error, I am resending to sr-users instead, thanks Hi All, Quick question, is it possible to use variables in the setflag function, I am trying to set a flag that is stored in a hash table

[SR-Users] setflag and hash table variables

2015-10-14 Thread Asgaroth
I originally sent this to sr-dev in error, I am resending to sr-users instead, thanks Hi All, Quick question, is it possible to use variables in the setflag function, I am trying to set a flag that is stored in a hash table using the setflag function, but I keep getting syntax errors. I am us

Re: [SR-Users] [pua] Question to DB Mode 0

2015-10-09 Thread Asgaroth
I can confirm I am seeing the same issue, I'm not setting db_mode parameter, but according to the docs it defaults to 0 (caching mode). I'm running kamailio v4.3.3 Log: Oct 9 11:06:27 kam_proxy01[20890]: ERROR: db_sqlite [dbase.c:489]: db_sqlite_commit(): sqlite commit failed: constraint fail

Re: [SR-Users] db_text and caching/reloading

2015-09-30 Thread Asgaroth
x27;, 1443600900] # kamctl domain show domain:: domain1.example.com did:: domain1.example.com # kamctl domain reload # kamctl domain show domain:: domain1.example.com did:: domain1.example.com # kamctl domain showdb [1, 'domain1.example.com', '', 1443435582] [2,

Re: [SR-Users] db_text and caching/reloading

2015-09-29 Thread Asgaroth
in-memory values, and reload says it completed, but dump shows nothing too: kamcmd> permissions.addressDump { } kamcmd> permissions.addressReload Reload OK kamcmd> permissions.addressDump { } Am I missing something with my configuration, or have I come accross a bug? Thanks for readin

Re: [SR-Users] db_text and caching/reloading

2015-09-29 Thread Asgaroth
Hi, Friendly "bump", any thoughts on this one? I'm using kamailio v4.3.2 Thanks On 28/09/2015 13:11, Asgaroth wrote: Hi, I am busy testing the db_text module for some modules who's configuration does not change that often. If I set the db_mode for db_text to 0 (cachi

Re: [SR-Users] Kazoo db_url required?

2015-09-29 Thread Asgaroth
oh, i forgot to mention I'm on version kamailio v4.3.2 On 29/09/2015 12:55, Asgaroth wrote: I ended up looking at the source for Kazoo, and there appears to be a "pua_mode" parameter which defaults to 1, I added modparam("kazoo", "pua_mode", 0) And I am

Re: [SR-Users] Kazoo db_url required?

2015-09-29 Thread Asgaroth
documented in the Kazoo module docs. Is this the correct way of disabling the presence db connection for the kazoo module? I am not a C developer by any stretch, so any tips would be appreciated. Thanks On 28/09/2015 13:20, Asgaroth wrote: Hi, I am doing some tests with the kazoo module, I

[SR-Users] Kazoo db_url required?

2015-09-28 Thread Asgaroth
Hi, I am doing some tests with the kazoo module, I only want to use it for some amqp related tasks. In our particular case, we do not require kazoo to hook into the presence tables, however, if I do *not* set the db_url parameter for kazoo, then kamailio fails to start with the following err

[SR-Users] db_text and caching/reloading

2015-09-28 Thread Asgaroth
Hi, I am busy testing the db_text module for some modules who's configuration does not change that often. If I set the db_mode for db_text to 0 (caching), it appears that if I modify the file directly (in this case the address dbtext file) and then issue a "kamctl address reload" the updated

[SR-Users] Topoh configuration question

2015-09-04 Thread Asgaroth
Hi all, I have a quick question with regards the topoh module, is it possible to have the topoh module only operate on a particular interface and direction. I have some edge proxies and I am trying out the topoh module, what I see happen is that messages originating from behind/inside the edg

Re: [SR-Users] Parser error when enabling siptrace functionality

2015-08-28 Thread Asgaroth
doh, forgot the lines in the previous email: modparam("siptrace", "hep_version", 2) modparam("siptrace", "hep_mode_on", 1) On 28/08/2015 14:24, Asgaroth wrote: Just to confirm, commenting out the following two lines gets rid of the parser errors, thanks

Re: [SR-Users] Parser error when enabling siptrace functionality

2015-08-28 Thread Asgaroth
Just to confirm, commenting out the following two lines gets rid of the parser errors, thanks for the pointer :) On 28/08/2015 14:21, Asgaroth wrote: Hi, Thanks for pointing that out (hep enabled), my module definitions are as follows: modparam("siptrace", &quo

Re: [SR-Users] Parser error when enabling siptrace functionality

2015-08-28 Thread Asgaroth
/2015 14:17, Daniel-Constantin Mierla wrote: Hello, are you mirroring the sip packets back to you? Because they might be HEP and you need sipcapture module to handle that. Iirc, you can have the mirroring node and sipcapture node on same kamailio instance. Anyhow, you can look on the net at po

Re: [SR-Users] kamailio_fifo

2015-08-28 Thread Asgaroth
Hi, I came across this issue yesterday, and it turned out that the /var/run/kamailio directory did not exist, once I created it, kamailio was able to create the fifo file. Hope that helps. On 28/08/2015 13:13, Sven Juhkam wrote: After updating kamailio I get: ERROR: Error opening Kamailio

[SR-Users] Parser error when enabling siptrace functionality

2015-08-28 Thread Asgaroth
Hi All, I have a strange issue occuring, when I enable the siptrace functionality within the routing logic, I begin to get a bunch of parser error as show below. Is this normal behaviour or, more than likely, am I doing something wrong? I enable siptrace as follows: request_route { route(

Re: [SR-Users] NatHelper ignoring force_socket module parameter

2015-08-28 Thread Asgaroth
by the local kamailio instance. I am running in memory mode only, I do not use the database for usrloc entries, I keep the location "database" in memory only, and I sync the database using the dmq_usrloc module, which works beautifully btw :) Any tips/suggestions would be great

Re: [SR-Users] XCap Server + Postgre

2015-08-12 Thread Asgaroth
er.org] On Behalf Of Igor Olhovskiy Sent: Wednesday 12 August 2015 18:11 To: Kamailio (SER) - Users Mailing List Subject: Re: [SR-Users] XCap Server + Postgre Sure I have. But no field 'extension' in it среда, 12 августа 2015 г. пользователь Asgaroth <00asgarot...@gmail.co

Re: [SR-Users] XCap Server + Postgre

2015-08-12 Thread Asgaroth
Hi Igor, I personally don’t use the xcap module, but looking at that error message, it seems to me that Kamailio cannot find the subscriber table which it will use to lookup the authentication details. Are you sure you have your Kamailio database and Kamailio database related settings setup

Re: [SR-Users] NatHelper ignoring force_socket module parameter

2015-08-10 Thread Asgaroth
. Cheers, Daniel On 23/07/15 15:19, Asgaroth wrote: > some more info on this one, it looks like this is only happening on > nodes that have been replicated to, for example, > > If a registration is processed on node 1, then the nathelper send the > locally generated options message out

Re: [SR-Users] dmq_usrloc

2015-08-07 Thread Asgaroth
populating. Kelvin Chua On Fri, Aug 7, 2015 at 6:22 PM, Asgaroth <00asgarot...@gmail.com <mailto:00asgarot...@gmail.com> > wrote: Hi, I’m a new user to the dmq subsystem in kamailio, but, once I had a properly configured dmq environment and loaded dmq_usrloc after dmq, all I h

Re: [SR-Users] dmq_usrloc

2015-08-07 Thread Asgaroth
Hi, I’m a new user to the dmq subsystem in kamailio, but, once I had a properly configured dmq environment and loaded dmq_usrloc after dmq, all I had to do was add the following to the module paramters: modparam("dmq_usrloc", "enable", 1) Then in the routing logic of the registrar’s y

Re: [SR-Users] double rr and $fs

2015-07-29 Thread Asgaroth
doing record_route(). Cheers, Daniel On 27/07/15 17:04, Asgaroth wrote: Hi All, I have kamailio setup and listening on logical interfaces (for failover purposes) and therefore need to force the sending socket on initial messages. We are testing sips+tls at the moment and what we are trying to achive

[SR-Users] double rr and $fs

2015-07-27 Thread Asgaroth
Hi All, I have kamailio setup and listening on logical interfaces (for failover purposes) and therefore need to force the sending socket on initial messages. We are testing sips+tls at the moment and what we are trying to achive is that the TLS connection occurs from the UAC to the edge proxy

Re: [SR-Users] dmq_usrloc replication and max_contacts

2015-07-24 Thread Asgaroth
eek when I have some time but in the meantime, you can send me the examples directly if you like. Cheers, Charles On 22 July 2015 at 11:41, Asgaroth <00asgarot...@gmail.com <mailto:00asgarot...@gmail.com>> wrote: Hi, Any thoughts on this, I can provide actual examples fo

Re: [SR-Users] "kamctl ul show"/xmlrpc ul.lookup AOR not found for valid registration

2015-07-24 Thread Asgaroth
FYI I open issue #264 on github for this oddity I'm experiencing. On 22/07/2015 11:41, Asgaroth wrote: Hi, Any thoughts on this, I can provide actual examples for this, however, I would rather not send valid subsciber info directly to the list. If anyone is available for looking into

Re: [SR-Users] NatHelper ignoring force_socket module parameter

2015-07-23 Thread Asgaroth
en it comes to multiple registrar's with registration replication? Myabe I am missing something here, any tips/tricks/suggestions/beatings most welcome Thanks On 23/07/2015 12:14, Asgaroth wrote: Hi All, I have a strange issue, I have set the module parameter for nathelper's force_sock

[SR-Users] NatHelper ignoring force_socket module parameter

2015-07-23 Thread Asgaroth
Hi All, I have a strange issue, I have set the module parameter for nathelper's force_socket to a specfic ip/port, however, when I perform a sip trace I can see that all locally generated options messages are not sent from the socket defined in the modules parameters. I am not setting $fs an

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

2015-07-23 Thread Asgaroth
Have a look here and see if it helps you: http://lists.sip-router.org/pipermail/sr-users/2012-October/075210.html On 23/07/2015 07:48, Ali Taher wrote: Any help regarding the below would be appreciated. BR, Ali *From:* Ali Taher [mailto:ata...@vanrise.com] *Sent:* Wednesday, July 22, 2015 1

Re: [SR-Users] dmq_is_from_node() issue

2015-07-22 Thread Asgaroth
t;) *modparam("dmq", "multi_notify", 1) * modparam("dmq", "num_workers", 4) Thanks On 22/07/2015 15:49, Robert Boisvert wrote: You might want to consider this function: http://kamailio.org/docs/modules/4.3.x/modules/dmq.html#dmq.p.multi_notify On Wed,

Re: [SR-Users] dmq_is_from_node() issue

2015-07-22 Thread Asgaroth
e looking to achieve? Cheers, Charles On 22 July 2015 at 15:22, Asgaroth <00asgarot...@gmail.com <mailto:00asgarot...@gmail.com>> wrote: Hi All, I have an issue with the dmq_is_from_node() function, whereby it does not detect a node is on the bus if it has been removed from

Re: [SR-Users] dmq_is_from_node() issue

2015-07-22 Thread Asgaroth
. id: f38e67 compiled on 18:15:23 Jul 20 2015 with gcc 4.4.7 Thanks On 22/07/2015 15:22, Asgaroth wrote: Hi All, I have an issue with the dmq_is_from_node() function, whereby it does not detect a node is on the bus if it has been removed from its "table" due to previously failed,

[SR-Users] dmq_is_from_node() issue

2015-07-22 Thread Asgaroth
Hi All, I have an issue with the dmq_is_from_node() function, whereby it does not detect a node is on the bus if it has been removed from its "table" due to previously failed, i presume, ping requests. I have the following snippet in my main routing block: if(is_method("KDMQ")) { if

Re: [SR-Users] dmq_usrloc replication and max_contacts

2015-07-22 Thread Asgaroth
is not intended behaviour. I plan to look later this week when I have some time but in the meantime, you can send me the examples directly if you like. Cheers, Charles On 22 July 2015 at 11:41, Asgaroth <00asgarot...@gmail.com <mailto:00asgarot...@gmail.com>> wrote: Hi,

Re: [SR-Users] "kamctl ul show"/xmlrpc ul.lookup AOR not found for valid registration

2015-07-22 Thread Asgaroth
Hi, Any thoughts on this, I can provide actual examples for this, however, I would rather not send valid subsciber info directly to the list. If anyone is available for looking into it I can send the relevent information/examples directly to them. Thanks On 21/07/2015 15:11, Asgaroth

Re: [SR-Users] dmq_usrloc replication and max_contacts

2015-07-22 Thread Asgaroth
Hi, Any thoughts on this, I can provide actual examples for this, however, I would rather not send valid subsciber info directly to the list. If anyone is available for looking into it I can send the relevent information/examples directly to them. Thanks On 21/07/2015 15:03, Asgaroth

Re: [SR-Users] dmq_usrloc replication and max_contacts

2015-07-21 Thread Asgaroth
: f38e67 compiled on 18:15:23 Jul 20 2015 with gcc 4.4.7 On 21/07/2015 15:03, Asgaroth wrote: Hi All, I have a situation where I have 2 devices registering with the same AOR, I have the registrar module's max_contacts parameter set to 1 and I use the 0x04 flag on the save function. When

Re: [SR-Users] "kamctl ul show"/xmlrpc ul.lookup AOR not found for valid registration

2015-07-21 Thread Asgaroth
. id: f38e67 compiled on 18:15:23 Jul 20 2015 with gcc 4.4.7 On 21/07/2015 15:11, Asgaroth wrote: Hi All, I have a situation where a device has successfully registered and its location saved/stored in memory. I can see all the stored information when I issue a "kamctl ul show" How

[SR-Users] "kamctl ul show"/xmlrpc ul.lookup AOR not found for valid registration

2015-07-21 Thread Asgaroth
Hi All, I have a situation where a device has successfully registered and its location saved/stored in memory. I can see all the stored information when I issue a "kamctl ul show" However, if I perform a kamctl ul show subscriber@domain, where the 'subscriber@domain' is copied/pasted from th

[SR-Users] dmq_usrloc replication and max_contacts

2015-07-21 Thread Asgaroth
Hi All, I have a situation where I have 2 devices registering with the same AOR, I have the registrar module's max_contacts parameter set to 1 and I use the 0x04 flag on the save function. When I use dmq_usrloc for replication, I can see 2 contacts registered for the AOR on the "client" node

Re: [SR-Users] pua_publish MWI message via xmlrpc

2015-07-10 Thread Asgaroth
Ahh, I see what I did wrong, my event-package was set to 'presence', it should be 'message-summary'. Now to figure out how to maint CRLF in XML... On 10/07/2015 17:42, Asgaroth wrote: Hi All, I am having difficulty getting pua_publish to issue a NOTIFY when I send

[SR-Users] pua_publish MWI message via xmlrpc

2015-07-10 Thread Asgaroth
Hi All, I am having difficulty getting pua_publish to issue a NOTIFY when I send an XMLRPC command to generate a PUBLISH into the presence server. I have been reading the pua_mi module docs, but I cannot see where I am going wrong with the following xmlrpc command, please would someone point

Re: [SR-Users] dmq/dmq_userloc crash on startup (kamailio 4.3.0)

2015-07-10 Thread Asgaroth
/commit/733fd5daf74963b152a2964f9eea1a6fff91858a.patch On 07/07/2015 11:51, Asgaroth wrote: Hi All, I created issue report #236 for this bug just to keep track of it :) Thanks On 02/07/2015 08:02, Asgaroth wrote: Thanks for the quick look Daniel. If anyone requires any further info, dont

Re: [SR-Users] dmq_replicate deserializing?

2015-07-07 Thread Asgaroth
I've created a new issue #237 on github to track this issue :) On 01/07/2015 20:48, Asgaroth wrote: Hi All, I am playing with the new dmq_replicate module and am banging my head against an issue I have come accross. I can see the kamailio registrars sending the replication messages t

Re: [SR-Users] dmq/dmq_userloc crash on startup (kamailio 4.3.0)

2015-07-07 Thread Asgaroth
Hi All, I created issue report #236 for this bug just to keep track of it :) Thanks On 02/07/2015 08:02, Asgaroth wrote: Thanks for the quick look Daniel. If anyone requires any further info, dont hesitate to ask, I still have the core file. On 02/07/2015 07:33, Daniel-Constantin Mierla

Re: [SR-Users] Dispatcher, Failure Route and fr_timeout

2015-07-07 Thread Asgaroth
send_reply("500", "No destination available"); exit; } } } On 07/07/2015 08:06, Daniel-Constantin Mierla wrote: Hello, you need to re-arm the failure route inside the failure_route, before relaying again. Failure routes are armed one time, when a fin

[SR-Users] Dispatcher, Failure Route and fr_timeout

2015-07-06 Thread Asgaroth
Hi All, I would like to reduce the time it takes for kamailio to timeout an initial message to a dispatcher destination so that it will select the next destination in the set, before, hopefully, a restransmission. In this case I am testing registration messages. I came accross the t_set_fr()

Re: [SR-Users] dmq/dmq_userloc crash on startup (kamailio 4.3.0)

2015-07-02 Thread Asgaroth
for a while, but I guess some other devs that use dmq can look at it. Cheers, Daniel On 01/07/15 23:33, Asgaroth wrote: Hi All, Another thing I noticed while playing with kamailio and dmq/dmq_usrloc is that 7 out of 10 times the kamailio process crashes when I initially start it up. Any tips

Re: [SR-Users] dmq_replicate deserializing?

2015-07-02 Thread Asgaroth
07:57, Charles Chance wrote: Hello, As with your other thread, I suspect dmq_usrloc is at fault here. I've not looked at this module before, but can take a look over the next day or so if no one else gets to it first. Cheers, On 1 Jul 2015 22:13, "Asgaroth" <00asgarot...@gmail

[SR-Users] dmq/dmq_userloc crash on startup (kamailio 4.3.0)

2015-07-01 Thread Asgaroth
Hi All, Another thing I noticed while playing with kamailio and dmq/dmq_usrloc is that 7 out of 10 times the kamailio process crashes when I initially start it up. Any tips/requests for further debugging would be greatly appreciated. Kamailio version: version: kamailio 4.3.0 (x86_64/linux)

Re: [SR-Users] dmq_replicate deserializing?

2015-07-01 Thread Asgaroth
On 01/07/2015 21:30, Charles Chance wrote: Hello, Should be no need to load any additional deserializer. The docs simply mean if you wish to send/receive your own messages from within a module or script, it's up to you to choose the best payload type and method of (de)serialization. Can

Re: [SR-Users] dmq_replicate deserializing?

2015-07-01 Thread Asgaroth
;:64,"q":-1,"last_modified":1435779753,"methods":5087,"reg_id":0} On 01/07/2015 21:30, Charles Chance wrote: Hello, Should be no need to load any additional deserializer. The docs simply mean if you wish to send/receive your own messages from within a mo

[SR-Users] dmq_replicate deserializing?

2015-07-01 Thread Asgaroth
Hi All, I am playing with the new dmq_replicate module and am banging my head against an issue I have come accross. I can see the kamailio registrars sending the replication messages to the other node(s) in the dmq bus, and the payload looks to be of type json. However, on the recieving nodes

Re: [SR-Users] Redirect Server Including Path/Recieved Information

2015-01-15 Thread Asgaroth
I just noticed a typo, the contacts should look like this: what I end up with: [a] Contact: what I am trying to achieve [b] Contact: *;received=sip:213.146.165.189:37891* Thanks On 15/01/2015 08:30, Asgaroth wrote: Hi All, Thanks for the responses thus far, I would be interrested in

Re: [SR-Users] Redirect Server Including Path/Recieved Information

2015-01-15 Thread Asgaroth
", "Moved Temporarily"); exit; } and end up with a contact header looking like below: [a] Contact: What I am trying to achieve is: [a] Contact: *;received=sip:213.146.165.189:37891* Are these two versions of the contact header interpretted the same way? Thanks O

Re: [SR-Users] Redirect Server Including Path/Recieved Information

2015-01-09 Thread Asgaroth
, where is the media server located and the signaling flow for it? Cheers, Daniel On 09/01/15 14:41, Asgaroth wrote: Hi, I am hoping to have the redirect server not be in the signalling path, so when a media server asterisk/freeswitch sends an invite over to the redirect server, I need to respond

Re: [SR-Users] Redirect Server Including Path/Recieved Information

2015-01-09 Thread Asgaroth
when forwarding requests. Can you give more details of how path and received from location should be used by the one receiving the 30x redirect? Cheers, Daniel On 08/01/15 22:09, Asgaroth wrote: Hi All, I am attempting to setup a standalone redirect server which will lookup contact info and

[SR-Users] Redirect Server Including Path/Recieved Information

2015-01-08 Thread Asgaroth
Hi All, I am attempting to setup a standalone redirect server which will lookup contact info and redirect to appropriate outbound proxy. The problem I am having is that the registrar is storing the path and recieved information, however, when I perform a lookup and reply with 302, the reciev

Re: [SR-Users] append_branch and t_replicate issue

2014-07-25 Thread Asgaroth
pushed a new patch for this case as well. Cheers, Daniel On 25/07/14 19:35, Asgaroth wrote: Hi, On 25/07/2014 13:49, Daniel-Constantin Mierla wrote: The second one is with the patch to the code and it is enough to pick only that one. OK, I tried 4.1.4 with this patch applied and I still get the

Re: [SR-Users] append_branch and t_replicate issue

2014-07-25 Thread Asgaroth
Hi, On 25/07/2014 13:49, Daniel-Constantin Mierla wrote: The second one is with the patch to the code and it is enough to pick only that one. OK, I tried 4.1.4 with this patch applied and I still get the following error message: /usr/sbin/kamailio[22158]: ERROR: tm [tm.c:1618]: t_replicate_

Re: [SR-Users] append_branch and t_replicate issue

2014-07-25 Thread Asgaroth
On 25/07/2014 12:04, Daniel-Constantin Mierla wrote: I read the condition on uri wrong -- it was only on a null pointer for the uri, not on length (in this case pointer is to a empty string). I pushed an enhanced check for length as well, but it is only in master for the moment. ok, I will tr

Re: [SR-Users] append_branch and t_replicate issue

2014-07-25 Thread Asgaroth
On 25/07/2014 11:33, Daniel-Constantin Mierla wrote: $ru = "sip:" + BACKUP_REGISTRAR_1 + ":5060"; append_branch("sip:" + BACKUP_REGISTRAR_2 + ":5060"); *t_replicate("");* Yes, and this should work on existing versions 4.1.x or older OK, trying to test this and I'm seeing an error with debug=2:

Re: [SR-Users] append_branch and t_replicate issue

2014-07-25 Thread Asgaroth
for building the rpms: kamailio-4.2.0-dev7_src.tar.gz Is the patch living in this branch or can I do a 'git checkout -b 4.1 origin/4.1' and expect the patch to be in there? Thanks Bruce On 25/07/2014 11:20, Asgaroth wrote: Hi, On 25/07/2014 11:03, Daniel-Constantin Mierla wrote

Re: [SR-Users] append_branch and t_replicate issue

2014-07-25 Thread Asgaroth
Hi, On 25/07/2014 11:03, Daniel-Constantin Mierla wrote: I pushed a patch to master branch that allows to use t_replicate() without any parameters. Apparently the same behaviour can be achieved using: t_replicate("") so the parameter is an empty string. Can you try it and see if works? Also

Re: [SR-Users] append_branch and t_replicate issue

2014-07-24 Thread Asgaroth
On 24/07/2014 17:26, Daniel-Constantin Mierla wrote: checking docs, it seems like that. I will have to look at the code and eventually make an option without parameter. Otherwise, like it is not, the parameter forces an outbound proxy to be used for forwarding. I guess that makes sense for set

Re: [SR-Users] append_branch and t_replicate issue

2014-07-24 Thread Asgaroth
, ok, I will look it up and investigate when I get the first chance. Cheers, Daniel On 22/07/14 16:43, Asgaroth wrote: Hi, On 22/07/2014 11:38, Daniel-Constantin Mierla wrote: Hello, looking a bit at the source code, append branch should still create a new destination point and message to be

Re: [SR-Users] append_branch and t_replicate issue

2014-07-22 Thread Asgaroth
Hi, On 22/07/2014 11:38, Daniel-Constantin Mierla wrote: Hello, looking a bit at the source code, append branch should still create a new destination point and message to be sent there. I would need the log messages printed with debug=3 in kamailio.cfg for the case when you use append branch

Re: [SR-Users] append_branch and t_replicate issue

2014-07-22 Thread Asgaroth
Hi, On 22/07/2014 09:13, Daniel-Constantin Mierla wrote: first some clarifications about the subject: - append_branch() adds a new destination for normal forwarding/relaying -- replies from these destinations are forwarded back to the initial sender - t_replicate() creates a special branch --

Re: [SR-Users] append_branch and t_replicate issue

2014-07-22 Thread Asgaroth
I ended up using two 'forward' statements in stead of t_replicate as it does not appear to work with 2+ servers to replicate to. On 21/07/2014 15:01, Asgaroth wrote: Further update, it looks like append_branch is over-writing the original request-uri, an ngrep shows the following

Re: [SR-Users] append_branch and t_replicate issue

2014-07-21 Thread Asgaroth
ke the append_branch is being added but its uri is set to BACKUP_REGISTRAR_3 (and not BACKUP_REGISTRAR_2 as requested int the append_branch section) On 21/07/2014 13:49, Asgaroth wrote: Hi All, I have an issue that I cant seem to get to the bottom of, I would appreciate if someone could point me in the

[SR-Users] append_branch and t_replicate issue

2014-07-21 Thread Asgaroth
Hi All, I have an issue that I cant seem to get to the bottom of, I would appreciate if someone could point me in the right direction. I have 3 registrar's and would like to replicate the registration regest from 1 to the other 2, I am trying this with t_replicate, the docs say that to send

Re: [SR-Users] dispatcher and call transfer

2012-04-27 Thread Asgaroth
Hi Charles, dialog module does have support of in memory support and multiple options for how it writes back into a database table (or disable database altogether and just use memory). However, I suspect, this would only be usefull again if a single loadbalancer is in use, as the second loadbalanc

Re: [SR-Users] dispatcher and call transfer

2012-04-27 Thread Asgaroth
Hi All, Just resending this as my previous message was too big (bigger than 60k) ---. Thanks all for the suggestions. @Charles Yes that is correct, that is the scenario that is occurring, we are using asterisk, when a call is initiated via asterisk 1, the second call then routes through to aste

[SR-Users] dispatcher and call transfer

2012-04-26 Thread Asgaroth
Hi All, Currently we are running kamailio in a loadbalanced fashion whereby calls come in via the loadbalancers and distribute calls accross 2 media servers. We have come accross and issue whereby call transfers may be distributed accross two media servers and when the REFER message comes along to

Re: [SR-Users] Accessing #!define "variables" from within lua

2012-03-23 Thread Asgaroth
local_ip) Or SER-style: @cfg_get.my project.local_ip You can evaluate those in Lua, right? -- Alex Balashov - Principal Evariste Systems LLC 235 E Ponce de Leon Ave Suite 106 Atlanta, GA 30030 Tel: +1-678-954-0671 Web: http://www.evaristesys.com/, http://www.alexbalashov.com Asgaroth<00asgarot...@gmai

[SR-Users] Accessing #!define "variables" from within lua

2012-03-23 Thread Asgaroth
Hi All, I am looking at writing a lua function that would really benefit from accessing "variables" that I would have defined by using the #!define statement. Is this at all possible? I've tried looking at the documentation surrounding lua and kamailio, but I cannot see how I would access it.

[SR-Users] Advice on placement of t_replicate (REGISTER)

2012-03-07 Thread Asgaroth
Hi Guru's, I'd just like some advice on t_replace and its placement in the routing script. A lot of examples show the following setup: save("location"); t_replicate("backup_server"); Would it not be wiser to have something like: if (save("location")) { t_replcate("backup_server"); } Woul

Re: [SR-Users] obtaining htable array index

2012-02-28 Thread Asgaroth
Thanks Alex, I'll go and do some reading up on avp's :) On 28/02/12 16:25, Alex Balashov wrote: I would just throw a serialised string into the hash table as a scalar entry, the components of which are separated by some delimiter, e.g. REGISTER-1;INVITE-2;3 Then, I'd deserialise it by iter

Re: [SR-Users] obtaining htable array index

2012-02-28 Thread Asgaroth
I was looking to implement a hash table to select a particular dispatcher destination set based on the sip request method. I was hoping to achieve it by using an array in the hash table for a particular domain. so for example have a htable as follows: domain[0]:: REGISTER-1 domain[1]:: INVITE-

[SR-Users] obtaining htable array index

2012-02-28 Thread Asgaroth
Hi All, Is it possible to asertain the array index of an htable entry based on its value? For example, say I have an htable called foo with the following entries: Entry:: 11 testing[0]:: hello-2 testing[1]:: 1 testing::size:: 2 is it possible to: [a] extract the array index base

Re: [SR-Users] set host as inactive and probing in dispatcher

2011-12-09 Thread Asgaroth
Hi On 07/12/2011 14:02, Uri Shacked wrote: > modparam("dispatcher", "ds_probing_mode", 1) Have you tried with ds_probing_mode = 2? >From my understanding, when the probing mode is set to 2, only gateways that are in "IP" state/mode will be tested. ___

Re: [SR-Users] Dispatcher Confusion (v3.2.0)

2011-11-03 Thread Asgaroth
> ok, thanks for testing! > No problemo, glad I could help in some way :) > I'll do the backporting to 3.2 branch soon. Thanks, appreciated :) ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org

Re: [SR-Users] Dispatcher Confusion (v3.2.0)

2011-11-03 Thread Asgaroth
Hi On 03/11/2011 10:53, Daniel-Constantin Mierla wrote: > > I discovered a copy&paste typo in previous commit for maintaining the > inactive state, try again with latest GIT master and let me know the > results. > That change works as expected now, thanks for all the work done to get this going :

Re: [SR-Users] Dispatcher Confusion (v3.2.0)

2011-11-03 Thread Asgaroth
Hi > can you fetch the latest master branch from git and try with: Trying with the following version: # ./kamailio -V version: kamailio 3.3.0-dev1 (i386/linux) 26364a flags: STATS: Off, USE_IPV6, USE_TCP, USE_TLS, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP,

Re: [SR-Users] Dispatcher Confusion (v3.2.0)

2011-11-02 Thread Asgaroth
Hi On 02/11/2011 10:06, Daniel-Constantin Mierla wrote: > Hello, > > can you fetch the latest master branch from git and try with: > > ds_probing_mode = 2 > > This should keep inactive gateways in probing mode, if you set the > probing mode when switching in trying/inactive state, until it gets >

Re: [SR-Users] Dispatcher Confusion (v3.2.0)

2011-10-28 Thread Asgaroth
IZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 4MB poll method support: poll, epoll_lt, epoll_et, sigio_rt, select. id: 0b8f2e compiled on 10:24:56 Oct 28 2011 with gcc 4.1.2 On 27/10/2011 17:49, Daniel-Constantin Mierla wrote: > Hello, > > On 10/27/11 5:30 PM, Asgaroth wrote: >> Hi Daniel

Re: [SR-Users] Dispatcher Confusion (v3.2.0)

2011-10-27 Thread Asgaroth
Hi Daniel, On 27/10/2011 15:57, Daniel-Constantin Mierla wrote: > Hello, > > I just pushed to remote GIT repository in master branch a bit of > refactoring about the states and ds_mark_dst(). Thanks, I will test the dev branch in a short while and get back to you. > > Since with 3.2 seemed that

Re: [SR-Users] Dispatcher Confusion (v3.2.0)

2011-10-26 Thread Asgaroth
Hi Daniel, On 26/10/2011 18:17, Daniel-Constantin Mierla wrote: > > if you tried with 3.2.x, it was the case, since I just backported from > master branch the commit I did to sort out better the behaviour based > on probing state. Try again now with latest 3.2 branch. > Thanks, the changes you ma

Re: [SR-Users] Dispatcher Confusion (v3.2.0)

2011-10-26 Thread Asgaroth
On 26/10/2011 10:47, Asgaroth wrote: > > Assuming ds_probing_mode = 0 (Only send "ping" requests when > destination is in probing state) > > IX (Inactive) > [*] Not used by ds_select_* in gateway selection > [*] No ping probes sent to destination > IP (In

Re: [SR-Users] Dispatcher Confusion (v3.2.0)

2011-10-26 Thread Asgaroth
> Assuming ds_probing_mode = 0 (Only send "ping" requests when > destination is in probing state) > > AP (Active-Probing) > [*] Used by ds_select_* in gateway selection > [*] Ping probes sent to destination > [*] When reply to ping probe is recieved, state for gateway chages > to AX (A

Re: [SR-Users] Dispatcher Confusion (v3.2.0)

2011-10-26 Thread Asgaroth
Hi Daniel, On 26/10/2011 04:44, Daniel-Constantin Mierla wrote: >> If I do a ds_mark_dst("i") and then right after ds_mark_dst("p"), a >> log is printed saying that you cannot put a destination into probing >> state when it is marked as inactive. > are you sure you run the devel version? There is

Re: [SR-Users] Dispatcher Confusion (v3.2.0)

2011-10-26 Thread Asgaroth
Hi Daniel, On 26/10/2011 04:47, Daniel-Constantin Mierla wrote: > the purpose with three states (active, inactive and disabled) was not > to relate probing to selection of gateways, as one may want to have > even active gateways in probing mode to detect when they go down. So, > in other words, if

Re: [SR-Users] Dispatcher Confusion (v3.2.0)

2011-10-25 Thread Asgaroth
AX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 4MB poll method support: poll, epoll_lt, epoll_et, sigio_rt, select. id: 25bedc compiled on 09:18:41 Oct 21 2011 with gcc 4.1.2 I hope I'm not going crazy here :/ Thanks On 25/10/2011 16:52, Asgar

  1   2   >