Re: [SR-Users] 477 Unfortunately error on sending to next hop occurred

2013-08-23 Thread Daniel-Constantin Mierla
Hello, On 8/23/13 8:33 PM, Steve Davies wrote: On 23 August 2013 19:42, Daniel-Constantin Mierla > wrote: Can you try the new patch attached? I overlooked that the code where to skip sending the reply was in between some #ifdef ... #else ... #endif and I

Re: [SR-Users] 477 Unfortunately error on sending to next hop occurred

2013-08-23 Thread Steve Davies
On 23 August 2013 19:42, Daniel-Constantin Mierla wrote: > Can you try the new patch attached? > > I overlooked that the code where to skip sending the reply was in between > some #ifdef ... #else ... #endif and I did it only for the #else branch, > but actually the #ifdef was enabled by compile

Re: [SR-Users] 477 Unfortunately error on sending to next hop occurred

2013-08-23 Thread Daniel-Constantin Mierla
Can you try the new patch attached? I overlooked that the code where to skip sending the reply was in between some #ifdef ... #else ... #endif and I did it only for the #else branch, but actually the #ifdef was enabled by compile. You have to apply the patch on clean sources. Daniel On 8/23

[SR-Users] Kamailio Presence module

2013-08-23 Thread Kethzer Docteur
I'm using kamailio 4.1 Im having problem to see witch user is online, I have the module presence.so and presence_xml.so load into the config file of Kamailio.cfg. #!ifdef WITH_PRESENCE # - presence params - modparam("presence", "db_url", DBURL) modparam("presence", "presentity_table", "pre

Re: [SR-Users] 477 Unfortunately error on sending to next hop occurred

2013-08-23 Thread Juha Heinanen
Steve Davies writes: > Trying to find a way to detect the case where t_relay fails but doesn't > call the failure block. daniel did some work on this recently when i brought the issue up regarding dead tcp destinations. it is now possible to set t_on_branch_failure("something"); and if t_relay

Re: [SR-Users] Error message installing kamailio websocket

2013-08-23 Thread Kethzer Docteur
I have install this version in Ubuntu 10.04 libunistring-dev 0.9.1-1 libunistring0 0.9.1-1 On Fri, Aug 23, 2013 at 9:50 AM, Peter Dunkley < peter.dunk...@crocodilertc.net> wrote: > Hello, > > What version of libunistring does Ubuntu 10.04 come with? > > How far away is that from the latest vers

Re: [SR-Users] Error message installing kamailio websocket

2013-08-23 Thread Kethzer Docteur
I will check for a early version On Fri, Aug 23, 2013 at 10:56 AM, Kethzer Docteur wrote: > I have install this version in Ubuntu 10.04 libunistring-dev > 0.9.1-1 libunistring0 0.9.1-1 > > > On Fri, Aug 23, 2013 at 9:50 AM, Peter Dunkley < > peter.dunk...@crocodilertc.net> wrote: > >> Hello, >>

Re: [SR-Users] 477 Unfortunately error on sending to next hop occurred

2013-08-23 Thread Olle E. Johansson
23 aug 2013 kl. 12:13 skrev Steve Davies : > > > > On 23 August 2013 11:18, Steve Davies wrote: > Here's what I put in RELAY route block: > > $var(rr) = t_relay(); > xlog("L_NOTICE","SLD: in RELAY, t_relay returned $var(rr)\n"); > if (!$var(rr)) { > sl

Re: [SR-Users] Error message installing kamailio websocket

2013-08-23 Thread Peter Dunkley
Hello, What version of libunistring does Ubuntu 10.04 come with? How far away is that from the latest version of libunistring (or even just the versions that are available on other platforms like CentOS, Fedora, or Ubuntu 13.04)? It could just be that you need a later version of libunistring tha

Re: [SR-Users] hanging active dialog...

2013-08-23 Thread Gertjan Wolzak
I have tried with kamctl... But because I found the documentation not very clear, I think I am doing it wrong. Let’s take the 8.6: :profile_list_dlgs:_reply_fifo_file_ inbound_calls _empty_line_ Where the parameters are profile and

Re: [SR-Users] Error message installing kamailio websocket

2013-08-23 Thread Kethzer Docteur
I got this error message while installing kamailio with websocket CC (gcc) [M websocket.so] ws_frame.o In file included from ws_frame.c:25: /usr/include/unistr.h:189: error: expected ‘;’, ‘,’ or ‘)’ before ‘_UNUSED_PARAMETER_’ /usr/include/unistr.h:259: error: expected ‘;’, ‘,’ or ‘)’ before ‘_UNUS

Re: [SR-Users] Error message installing kamailio websocket

2013-08-23 Thread Kethzer Docteur
DISTRIB_ID=Ubuntu DISTRIB_RELEASE=10.04 DISTRIB_CODENAME=lucid DISTRIB_DESCRIPTION="Ubuntu 10.04.2 LTS" On Fri, Aug 23, 2013 at 9:29 AM, Kethzer Docteur wrote: > > CC (gcc) [M websocket.so] ws_frame.o > In file included from ws_frame.c:25: > /usr/include/unistr.h:189: error: expected ‘;’, ‘,’ or

[SR-Users] Error message installing kamailio websocket

2013-08-23 Thread Kethzer Docteur
CC (gcc) [M websocket.so] ws_frame.o In file included from ws_frame.c:25: /usr/include/unistr.h:189: error: expected ‘;’, ‘,’ or ‘)’ before ‘_UNUSED_PARAMETER_’ /usr/include/unistr.h:259: error: expected ‘;’, ‘,’ or ‘)’ before ‘_UNUSED_PARAMETER_’ make[1]: *** [ws_frame.o] Error 1 make: *** [module

Re: [SR-Users] hanging active dialog...

2013-08-23 Thread Daniel-Constantin Mierla
Have you listed the profile via kamctl or kamcmd? The commands are in the readme: http://kamailio.org/docs/modules/stable/modules/dialog.html#idp3737432 Is the afferent profile listing any dialog? Cheers, Daniel On 8/23/13 2:50 PM, Gertjan Wolzak wrote: Hello Carlos, I have been looking at

Re: [SR-Users] 477 Unfortunately error on sending to next hop occurred

2013-08-23 Thread Steve Davies
On 23 August 2013 14:56, Daniel-Constantin Mierla wrote: > I'll check the logs and most probably have to do some test myself, but > it's going to take a bit. > No prob, I'll come back to it later. Steve ___ SIP Express Router (SER) and Kamailio (Open

Re: [SR-Users] 477 Unfortunately error on sending to next hop occurred

2013-08-23 Thread Daniel-Constantin Mierla
I'll check the logs and most probably have to do some test myself, but it's going to take a bit. Daniel On 8/23/13 2:50 PM, Steve Davies wrote: On 23 August 2013 14:24, Daniel-Constantin Mierla > wrote: Oh, I forgot that the group of t_set_* functions have on

Re: [SR-Users] hanging active dialog...

2013-08-23 Thread Gertjan Wolzak
Hello Carlos, I have been looking at your module, can’t wait to work with it, especially the prepaid part. But as this system is in production, can’t just start experimenting, want to…. But cant. So just have to wait for some tips on the cli…. But thanks. Rgds, Gertjan

Re: [SR-Users] hanging active dialog...

2013-08-23 Thread Carlos Ruiz Díaz
I don't know what exactly happened in your case but if you don't have time to investigate you can try cnxcc module [1] channel control to achieve the same goal. Take a look at the sample configuration file located in [2] xlog("L_INFO", "Setting up channel based credit control"); $var(max

Re: [SR-Users] 477 Unfortunately error on sending to next hop occurred

2013-08-23 Thread Daniel-Constantin Mierla
Oh, I forgot that the group of t_set_* functions have one parameter, to allow set/unset the flag. Use: t_set_disable_internal_reply(1); Daniel On 8/23/13 1:34 PM, Steve Davies wrote: On 23 August 2013 12:22, Daniel-Constantin Mierla > wrote: correction for t

[SR-Users] add "port" field in the "via" header

2013-08-23 Thread Robert R
Hi, I was wondering how to force Kamailio to add "port" field in the "via" header. Thanks, Rob, ___ 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/listinf

Re: [SR-Users] mediaproxy-ng one-way audio (but not all the time)

2013-08-23 Thread Richard Fuchs
(Posting the follow-up of our off-list discussion for completeness) On 08/22/13 10:36, Peter Dunkley wrote: I think (but I need to do more testing) the one way audio was related to early media and some issues with the media gateway I am using (which was generating the early media). Removing th

Re: [SR-Users] 477 Unfortunately error on sending to next hop occurred

2013-08-23 Thread Steve Davies
On 23 August 2013 12:22, Daniel-Constantin Mierla wrote: > correction for the above line, the function name is: > > t_set_disable_internal_reply(); > I can't get the parser to agree its valid: 0(29626) DEBUG: [sr_module.c:680]: find_mod_export_record(): find_export_record: not found 0(29626

Re: [SR-Users] 477 Unfortunately error on sending to next hop occurred

2013-08-23 Thread Daniel-Constantin Mierla
On 8/23/13 12:20 PM, Daniel-Constantin Mierla wrote: Hello, it seems that the flag not to generate the internal reply was lost when adopting the new ser tm module. Can you try the attached patch on 4.0.x? Once applied and kamailio reinstalled, before t_relay() use: t_disable_internal_reply

Re: [SR-Users] 477 Unfortunately error on sending to next hop occurred

2013-08-23 Thread Daniel-Constantin Mierla
Hello, it seems that the flag not to generate the internal reply was lost when adopting the new ser tm module. Can you try the attached patch on 4.0.x? Once applied and kamailio reinstalled, before t_relay() use: t_disable_internal_reply(); An the return code should be -4 in this case. Let

Re: [SR-Users] 477 Unfortunately error on sending to next hop occurred

2013-08-23 Thread Steve Davies
On 23 August 2013 11:18, Steve Davies wrote: > Here's what I put in RELAY route block: > > $var(rr) = t_relay(); > > xlog("L_NOTICE","SLD: in RELAY, t_relay returned $var(rr)\n"); > > if (!$var(rr)) { > > sl_reply_error(); > > } > > > > In 4.0.3, t_

Re: [SR-Users] 477 Unfortunately error on sending to next hop occurred

2013-08-23 Thread Steve Davies
On 23 August 2013 08:13, Steve Davies wrote: > Here's all that is said about return codes from t_relay in the 4.0.x > module documentation ( > http://kamailio.org/docs/modules/4.0.x/modules/tm.html#t_relay). Looks > like there are docs that I didn't find? > > "Returns a negative value on fail

[SR-Users] hanging active dialog...

2013-08-23 Thread Gertjan Wolzak
Goodmorning All, I use the following route to check for concurrent calls by the same user, if a concurrent call is tried it is not allowed. route[CONCURRENT] { xlog("SCRIPT: Conccurrent call check"); if(!get_profile_size("caller","$fu","$avp(nrcalls)")) {

Re: [SR-Users] Kamailio Admin Book

2013-08-23 Thread Adnan
Hi Daniel, Here is some feedback based on my 5 min TOC overview: 1. Although the book refers to a particular version of kamailio but as we know from 4.0.3, sercmd has been replaced by kamcmd and this could potentially become a cause for confusion for some readers since the chapter titled Kamailio

Re: [SR-Users] Subscribe to a common resource list

2013-08-23 Thread Yufei Tao
Now I've got round this by calling rls_handle_subscribe($tu), if $tu is detected as a group uri. So $tu will be used as watcher_username to compare with the RL's user. Seems to work but not sure if this is the right way, i.e. is there a way of putting the group's RL under a special URL so that e