Re: [SR-Users] Absorbing ack's

2012-03-15 Thread Daniel-Constantin Mierla
Hello, On 3/15/12 9:48 AM, Egbert Groot wrote: Hi all, I'm having an issue with ACK's being proxied. When an INVITE first comes in (new transaction, new dialog), I do a 'www_challenge(...)'. This makes the proxy send a '401 Unauthorized' reply. The client acknowledges this reply with "ACK". T

Re: [SR-Users] Request-URI in fail route

2012-03-15 Thread Daniel-Constantin Mierla
Hello, On 3/15/12 7:05 PM, Jan Klepal wrote: Hello Daniel, On Thursday 15 of March 2012 11:59:32 you wrote: First problem I encountered is that I can't check $rU in failure_route (it is always set to original Request-URI - bob). Is this normal behavior or am I missing something? Because of tha

Re: [SR-Users] define-check for dlg_var doesn't work

2012-03-15 Thread Daniel-Constantin Mierla
Hello, from the code, I see that if the value does not exists, the get-function for dlg_var is just returning 0. Probably it should return PV null value. Try again after changing return 0 in return pv_get_null(...) inside function pv_get_dlg_variable(...) from dlg_var.c If works, you can co

Re: [SR-Users] Presence in Kamailio

2012-03-15 Thread Daniel-Constantin Mierla
Hello, I think you were misled somehow, Kamailio is a SIP server, not XMPP. It has a module that can act as a gateway between SIP and XMPP protocols, but it cannot act as a full, stand along XMPP server. Cheers, Daniel On 3/15/12 8:16 PM, Faisal Rehman wrote: Hi, I am building Kamailio as

[SR-Users] Presence in Kamailio

2012-03-15 Thread Faisal Rehman
Hi, I am building Kamailio as a Stand-alone XMPP server so that XMPP clients can IM each other; but I also want the below functionality: The XMPP clients should all be able to see each others presence    So do I need to look out the Kamailio presence module and will it fulfill my above require

Re: [SR-Users] Request-URI in fail route

2012-03-15 Thread Jan Klepal
Hello Daniel, On Thursday 15 of March 2012 11:59:32 you wrote: > > > > First problem I encountered is that I can't check $rU in failure_route (it > > is always set to original Request-URI - bob). Is this normal behavior or > > am I missing something? Because of that I have to set divert destinati

[SR-Users] define-check for dlg_var doesn't work

2012-03-15 Thread Sven Knoblich
sip-router:master Hi all, i want to use the define-check also for dlg_var. But after testing a bit it seems to me, that define does not work with dlg_var's. I am always getting a true. Did i miss something? # $dlg_var(test) is not defined if( defined $dlg_var(test)) { xlo

[SR-Users] message offline store questions...

2012-03-15 Thread Krishna Kurapati
Hi, I am using msilo module to store offline message. I am sending back "202 pending" when the message is stored (m_store) However, when I message delivered (m_dump), how do I inform the sender that the message is successfully delivered? Also, how do I handle if the sender if offline when I try to

Re: [SR-Users] [nube] Simple TCP/TLS proxy?

2012-03-15 Thread Klaus Darilion
The briding to TLS is not the problem, the problem is the brdiging itself as it introduces an intermediate hop which has to take care of NAT traversal and rewriting REGISTER requests to allow proper routing. There is no receipt to implement this as it also depends on yopur setup and how your s

[SR-Users] Memory Question

2012-03-15 Thread Klaus Darilion
Hi! Started kamailio with "-m 100 -M 30". Thus I would suspect that every process needs 30MB, and one of the processes needs 30+100Mb as it allocates the shared memory. The further would conclude that the memory will be allocated only once during startup. Can this be somehow verified? Normal

[SR-Users] [nube] Simple TCP/TLS proxy?

2012-03-15 Thread Matthew Roderick
Hi All, I've been googling for a little while now and although I found others asking the question and answers says "yes it's possible" I haven't managed to find out *how* to do it! I have a relatively simple scenario where I'd like to use Kamailio (or something else?) to take TCP or UDP connectio

Re: [SR-Users] collecting statistics

2012-03-15 Thread Daniel-Constantin Mierla
On 3/15/12 12:02 PM, Klaus Darilion wrote: On 15.03.2012 11:49, Daniel-Constantin Mierla wrote: Hello, On 3/15/12 9:23 AM, Klaus Darilion wrote: Hi! I want to collect statistics on a load-balancer, e.g. how many NOTIFYs, SUBSCRIBEs, ... and the respective response codes, e.g. NOTIFYs-200, N

Re: [SR-Users] MI Command in Script

2012-03-15 Thread Reda Aouad
Thank you Daniel I was discovering the exec module while you replied, and just thought it would be useful for running mi commands ! I am using the exec module to send emails. Is there another way to do it? Thanks Reda On Thu, Mar 15, 2012 at 12:05, Daniel-Constantin Mierla wrote: > Hello, >

Re: [SR-Users] MI Command in Script

2012-03-15 Thread Daniel-Constantin Mierla
Hello, On 3/13/12 7:08 PM, Reda Aouad wrote: Hi, Can we call MI commands from the script ? I'm thinking about reloading dispatcher or hash table from database for example.. you can use exec module to run kamctl commands. Also, there is a new module that allow to trigger RPC commands from co

Re: [SR-Users] collecting statistics

2012-03-15 Thread Klaus Darilion
On 15.03.2012 11:49, Daniel-Constantin Mierla wrote: Hello, On 3/15/12 9:23 AM, Klaus Darilion wrote: Hi! I want to collect statistics on a load-balancer, e.g. how many NOTIFYs, SUBSCRIBEs, ... and the respective response codes, e.g. NOTIFYs-200, NOTIFYs-408,, response time from the backen

Re: [SR-Users] Request-URI in fail route

2012-03-15 Thread Daniel-Constantin Mierla
Hello, On 3/13/12 7:23 PM, Jan Klepal wrote: Hello, I am trying to set simple no-answer forward scenario: Alice calls Bob and after timeout 5s forward to Carol (and additionally Carol timeout forward to Dave). I am using Kamailio 3.2.2 default config. There is part of routing logic for no-answ

Re: [SR-Users] Kamailio consumes memory

2012-03-15 Thread Klaus Darilion
If you have more details please post them. If a malformed SIP message can cause a memory leak it needs to be fixed. thanks Klaus On 15.03.2012 11:26, Martin Tichatschek wrote: Thanks for your suggestions, I finally found my problem. I used a xml file for the SIPp were no branch parameter was

Re: [SR-Users] collecting statistics

2012-03-15 Thread Daniel-Constantin Mierla
Hello, On 3/15/12 9:23 AM, Klaus Darilion wrote: Hi! I want to collect statistics on a load-balancer, e.g. how many NOTIFYs, SUBSCRIBEs, ... and the respective response codes, e.g. NOTIFYs-200, NOTIFYs-408,, response time from the backend-servers, ... Further I want to do this separate

[SR-Users] Absorbing ack's

2012-03-15 Thread Egbert Groot
Hi all, I'm having an issue with ACK's being proxied. When an INVITE first comes in (new transaction, new dialog), I do a 'www_challenge(...)'. This makes the proxy send a '401 Unauthorized' reply. The client acknowledges this reply with "ACK". This ACK is 'absorbed' by the proxy. When during

[SR-Users] collecting statistics

2012-03-15 Thread Klaus Darilion
Hi! I want to collect statistics on a load-balancer, e.g. how many NOTIFYs, SUBSCRIBEs, ... and the respective response codes, e.g. NOTIFYs-200, NOTIFYs-408,, response time from the backend-servers, ... Further I want to do this separately for each backend-server in the cluster, i.e. for