[OpenSIPS-Users] Detecting zombie registrations

2017-03-15 Thread John Quick
At the last OpenSIPS Summit, I thought they announced in the keynote speech
that a mechanism was being introduced in v2.2 to detect and discard zombie
registrations.
I cannot find anything about this in the documentation (or in documentation
for v2.3).
Did this happen?  Is there a description somewhere please?

John Quick
Smartvox Limited


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] OpenSIPS debug logging SIP packets it deems non-local

2017-03-15 Thread Jock McKechnie
We have an existing call flow layout that effectively runs:
"SBC" -> "OpenSIPS LB" -> "FreeSWITCH"

and have recently added a middleman for completely abstract reasons so
it now goes:
"SBC" -> "OpenSIPS A" -> "OpenSIPS LB" -> "FreeSWITCH"

And all of a sudden the LB OpenSIPS is unable to see replies from the
FreeSWITCH. My thinking at this time is that the LB has decided the
200 OKs coming back from FreeSWITCH are not actually destined for it,
so it's ignoring them, as if were a stray packet on a different
dialogue that it's not able to understand mid-stream and dumps.

The LB OpenSIPS is running a reasonably old version of OpenSIPS at
present, pending a mass corporate upgrade - 1.8.5.

I have the 'debug' level set to '9' and I'm not seeing any hints that
OpenSIPS is seeing the discarded/ignored SIP packets in the log at
all. Is this action _not_ logged, or am I barking up the wrong tree
and OpenSIPS isn't even seeing this packet at all?

Apologies for long-winded lead up to a simple question, but I wanted
to be thorough.

As always, many thanks;

 - Jock

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Monitoring Mediaproxy

2017-03-15 Thread Mundkowsky, Robert
SIP Options is used as a “SIP ping”. You likely can have an time event trigger 
route that can send one and then based on that disable/enable accordingly.  
Hopefully mediaproxy will not respond to the “SIP ping” if frozen.

Robert

From: Users [mailto:users-boun...@lists.opensips.org] On Behalf Of Daniel 
Zanutti
Sent: Wednesday, March 15, 2017 4:55 PM
To: OpenSIPS users mailling list 
Subject: Re: [OpenSIPS-Users] Monitoring Mediaproxy

How can this be done?

Or do you mean SIP options?

On Wed, Mar 15, 2017 at 5:45 PM, Johan De Clercq 
> wrote:
Send options.

On 15 Mar 2017 11:48 PM, "Daniel Zanutti" 
> wrote:
Hi

What's the best way to check if a mediaproxy is running fine? Monit is 
monitoring PID but how can I check the process has is not frozen?

Thanks

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users




This e-mail and any files transmitted with it may contain privileged or 
confidential information. It is solely for use by the individual for whom it is 
intended, even if addressed incorrectly. If you received this e-mail in error, 
please notify the sender; do not disclose, copy, distribute, or take any action 
in reliance on the contents of this information; and delete it from your 
system. Any other use of this e-mail is prohibited.


Thank you for your compliance.


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Monitoring Mediaproxy

2017-03-15 Thread Daniel Zanutti
How can this be done?

Or do you mean SIP options?

On Wed, Mar 15, 2017 at 5:45 PM, Johan De Clercq  wrote:

> Send options.
>
> On 15 Mar 2017 11:48 PM, "Daniel Zanutti" 
> wrote:
>
>> Hi
>>
>> What's the best way to check if a mediaproxy is running fine? Monit is
>> monitoring PID but how can I check the process has is not frozen?
>>
>> Thanks
>>
>> ___
>> Users mailing list
>> Users@lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>>
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Monitoring Mediaproxy

2017-03-15 Thread Johan De Clercq
Send options.

On 15 Mar 2017 11:48 PM, "Daniel Zanutti"  wrote:

> Hi
>
> What's the best way to check if a mediaproxy is running fine? Monit is
> monitoring PID but how can I check the process has is not frozen?
>
> Thanks
>
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] Monitoring Mediaproxy

2017-03-15 Thread Daniel Zanutti
Hi

What's the best way to check if a mediaproxy is running fine? Monit is
monitoring PID but how can I check the process has is not frozen?

Thanks
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] forwarding custom variables

2017-03-15 Thread Roberto Cantalapiedra
Hi,

I would like to know if it is possible this scenario:


- Caller initialize the call and sending specific variable to opensips.
- opensips match one of those variable and route the call to a provider.
- if the call is answered the call is forwarded to an asterisk server with
all the variables that the caller sent in the initialization request to the
proxy.

Thanks in advance,
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] forwarding custom variables

2017-03-15 Thread Stefano Pisani

Yes. It's possible.
The "variable" must be in a custom header.

Ciao
s


Il 15/03/2017 19:41, Roberto Cantalapiedra ha scritto:

Hi,

I would like to know if it is possible this scenario:


- Caller initialize the call and sending specific variable to opensips.
- opensips match one of those variable and route the call to a provider.
- if the call is answered the call is forwarded to an asterisk server 
with all the variables that the caller sent in the initialization 
request to the proxy.


Thanks in advance,






___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users



___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] received param is not added to the Via header in cases when host IP in Via1 header is a substring of src_ip

2017-03-15 Thread Kuzmenok, Vladimir
Hello All,

We have an issue with the opensips 1.11.5-tls. Received header is not added to 
the Via header even when src IP and IP in the Via1 header are different.

Here is an example

Src IP is 192.168.1.121
IP in Via is 192.168.1.12

Looking into the code of 
opensips/msg_translator.c
 I can see that check_ip_address function  from 
opensips/resolve.c
 is used. It looks like there is a bug in the function, which returns 0 for the 
cases like above, because comparison is done only up to the Via host length and 
length of IP is not taken into consideration

=
int check_ip_address(struct ip_addr* ip, str *name,
unsigned short 
port, unsigned short proto, int resolver)
{
struct hostent* he;
int i, len;
char* s;

/* maybe we are lucky and name it's an ip */
s=ip_addr2a(ip);
if (s){
LM_DBG("params %s, %.*s, %d\n", s, name->len, 
name->s, resolver);
len=strlen(s);

/* check if name->s is an ipv6 address or an 
ipv6 address ref. */
if ((ip->af==AF_INET6) &&
(  
((len==name->len)&&(strncasecmp(name->s, s, name->len)==0))

||

((len==(name->len-2))&&(name->s[0]=='[')&&

(name->s[name->len-1]==']')&&

(strncasecmp(name->s+1, s, len)==0))
)
   )
return 0;
else

if (strncmp(name->s, s, 
name->len)==0)
return 0;
}else{
LM_CRIT("could not convert ip address\n");
return -1;
}

==

The easies fix would be just add (len == name->len) as a first condition with 
&&  conjunction to the highlighted if statement .

Could you please check and issue a patch for this?


Thanks,
Vladimir

IPC ranks #33 in IDC's Top 100 FinTech 

DISCLAIMER: This e-mail may contain information that is confidential, 
privileged or otherwise protected from disclosure. 
If you are not an intended recipient of this e-mail, do not duplicate or 
redistribute it by any means. 
Please delete it and any attachments and notify the sender that you have 
received it in error. 
Unintended recipients are prohibited from taking action on the basis of 
information in this e-mail. 
E-mail messages may contain computer viruses or other defects, may not be 
accurately replicated on other systems, or may be intercepted, 
deleted or interfered with without the knowledge of the sender or the intended 
recipient. 
If you are not comfortable with the risks associated with e-mail messages, 
you may decide not to use e-mail to communicate with IPC. IPC reserves the 
right, 
to the extent and under circumstances permitted by applicable law, 
to retain, monitor and intercept e-mail messages to and from its systems.
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] Store Connection address from SDP to a variable

2017-03-15 Thread John Nash
I can get C line using  {sdp.line} but how can I separate "Connection
address" and store in some variable? csv transformation is a cool option
but that requires coma separated string.
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users