Re: [OpenSIPS-Users] Opensips switch from SQL to NoSQL

2016-07-14 Thread Eric Tamme
Not all cachedb backends have implementations that allow you to use all 
modules.   The db api exports specific functions that may not be 
implemented for a given cache db module.  You have found an example of 
one where a module requires a db api function implementation, and the 
cachedb module you are using does not implement it.

-Eric

On 07/14/2016 11:31 AM, feroze waris wrote:

Hi Daniel and Benajmin,

Thank you for reply and sharing link of mongodb basics. Yes there is a 
performance issue. I want that opensips writes and get information of 
dialog, location, subscriber etc from cachedb(mongodb). For this task 
i came across with the module named *db_cachedb *( 
http://www.opensips.org/html/docs/modules/2.1.x/db_cachedb.html ). *


*
 According to documentation what this module do is " *The db_cachedb 
module will expose the same front db api, however it will run on top 
of a NoSQL back-end, emulating the SQL calls to the back-end specific 
queries*."


I implemented this module and also created collections in mongodb 
according to mysql tables list. Now when i start opensips it gives me 
following error


Jul 14 17:27:45 localhost [23610]: ERROR:core:db_check_api: module 
db_mongodb does not export db_use_table function
Jul 14 17:27:45 localhost [23610]: ERROR:uri:mod_init: No database 
module found
Jul 14 17:27:45 localhost [23610]: ERROR:core:init_mod: failed to 
initialize module uri
Jul 14 17:27:45 localhost [23610]: ERROR:core:main: error while 
initializing modules


my opensips version is 2.1.3


On Wed, Jul 13, 2016 at 6:52 PM, Benjamin Cropley 
> wrote:


You don't have to explicitly define a schema when you insert a
document into MongoDB.

For example, you could create a MongoDB database, and then
immediately do an insert into an insert into a collection without
even creating it or a 'schema'.

Maybe you should do some reading about MongoDB and NoSQL in
general, as a basic understanding should have answered that
question :)

https://docs.mongodb.com/manual/faq/fundamentals/

On Wed, Jul 13, 2016 at 2:44 PM, feroze waris
> wrote:

Hi,

Can anyone tell me how to move opensips DB from SQL to NoSQL.
I have seen a module name db_cachedb which has a support for
mongodb but how to move mysql schema to mongodb schema.

Regards
Feroze

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




-- 
All the best,

Ben Cropley
07539 366 905

___
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] horizontal scaling / dimensioning

2016-07-13 Thread Eric Tamme
Short answer,  no.  There are many variables that will change what a 
system is capable of and without understanding all the pieces involved, 
you can not make any estimate at sizing.


On 07/13/2016 11:51 AM, Owais Ahmad wrote:

Hi all,

Is there a way I can theoretically determine the max number of dialogs 
and cps a system of known specifications can handle?


Also share useful tools for dimensioning, and your findings of max 
concurrent calls and cps on single opensips instances with specs.


Thanks,
Owais


___
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] Number validation

2016-07-08 Thread Eric Tamme

yes, https://www.itu.int/rec/T-REC-E.164-201011-I/en


On 07/08/2016 07:05 AM, Hristo Donev wrote:

Hello,

I thinking of performing number validation before I pass the request 
to the upstream provider in order to minimize capacity waste because 
of malformed numbers. Can this be something I can do in OpenSIPS?
Also, any idea of  good source for this validation for global 
(international) numbers?


Best regards,
Hristo



___
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] Weird behaviour when replying to an OPTIONS with a Cseq of 0

2016-07-06 Thread Eric Tamme
obscuring the ip/hostnames in this makes it difficult to troubleshoot - 
please dont do that in the future.


I am not certain the CSeq is the issue.  I believe that the contact is 
broken, aka it contains localhost, so when opensips tries to route it, 
it fails on udp_send: sendto.


Again, this is my guess, but since you have manipulated and obscured the 
complete sip trace it makes it difficult to confirm.


-Eric

On 07/06/2016 10:44 AM, Karolis Pabijanskas wrote:

Hi List,

We seem to be hitting a strange behaviour when we get an OPTIONS ping 
with a Cseq of 0. (latest 1.11 branch).


Our routing script contains this at the very beginning to decline 
OPTIONS messages:

route {
if (is_method("OPTIONS")) {
sl_send_reply("501", "Method not allowed");
exit;
};
   ## blah...
}

If we send this OPTIONS request:

2016-07-06 17:12:05 +0100 : CLIENT_IP:5061 -> OPENSIPS_IP:5060
OPTIONSsip:200@HOSTNAME:5060 SIP/2.0 Via: SIP/2.0/UDP 
127.0.0.1:5061;branch=z9hG4bK-895-1-0 From: sipp 
;tag=1To:  Call-ID: 
1-895@127.0.0.1CSeq: 0 OPTIONSContact: 
sip:100@127.0.0.1:5061Max-Forwards: 100 Content-Length: 0


There is no reply from OpenSIPS. Interestingly, siptrace module is 
also running and saving captures in Homer. Homer, actually, is getting 
a copy of the generated reply:

2016-07-06 17:12:05 +0100 : OPENSIPS_IP:5060 -> CLIENT_IP:5061
SIP/2.0 501 Method not allowed Via: SIP/2.0/UDP 
127.0.0.1:5061;received=*CLIENT_IP*;branch=z9hG4bK-895-1-0 From: sipp 
;tag=1To: 
;tag=06a366df8881a48001f15f72f7138d9f.7522 
Call-ID: 1-895@127.0.0.1CSeq: 0 OPTIONS Server: User Agent String 
Content-Length: 0
But running a tcpdump on the OpenSIPS host reveals that no actual 
packet is ever sent to the client. Debug shows:
Jul  6 17:40:25 HOSTNAME /sbin/opensips[48357]: ERROR:core:udp_send: 
sendto(sock,0x7f7867aee470,324,0,0x7fff77d00090,16): Operation not 
permitted(1)
Jul  6 17:40:25 HOSTNAME /sbin/opensips[48357]: ERROR:sl:msg_send: 
udp_send failed


OpenSIPS is running as root.

Switching Cseq to 1 in that original OPTIONS message works. But in 
this particular case we have no control over the Cseq of the host we 
are being pinged from, and need to reply. According to the RFC, Cseq 
should be a 32bit unsigned integer, so 0 should not be an issue.


Any ideas?

Thanks!
Karolis



___
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] Opensips + rtpengine + Sipml5 webrtc

2016-06-28 Thread Eric Tamme
And are you forcing RTPengine to act as an ice light client?  It looks 
like you are gettin a single ICE candidate in the answer back from 
freeswitch which would indicate that you are.


I'd check your chrome webrtc statistics to see if tis failed to do do 
ice/stun negotiation on the 183.  In general the signalling looks good.


I think you may have an error on your Freeswitch side - some thing that 
is trying to force it to use SRTP all the time, even though the 
signalling has requested plain RTP (to freeswitch).


I think you should ask in #freeswitch on freenode at this point.

-Eric

On 06/23/2016 01:42 PM, John Nash wrote:
Actually the issue is i hear no audio on either side and just after 
session progress (I guess when media starts coming from remote media 
server) i see error  "SRTP output wanted, but no crypto suite was 
negotiated"


I had also checked media logs i could see RTP packets being sent from 
freeswitch to RTPengine IP but there was no packet at all just after 
that. Ideally after RTP packet from freeswitch to rtpengine, Rtpengine 
should send that packet to browser using wss?


On Fri, Jun 24, 2016 at 1:05 AM, Eric Tamme <e...@uphreak.com 
<mailto:e...@uphreak.com>> wrote:


So - i dont see a problem here - Chrome is getting
UDP/TLS/RTP/SAVPF and Freeswitch is getting RTP/AVP.  Freeswitch
responded to the offer in the invite with an answer in the 183,
and in the 200.  What is the failure you are seeing, and where is
it happening (in freeswitch? in the browser?)

The only thing that looks bad is that you are retransmitting the
ACK which FS either ... doesnt like, or is never getting,  because
it keeps retransmitting the 200, which is why you get a 481 when
you send BYE.

-Eric


On 06/23/2016 01:24 PM, John Nash wrote:

OK here is the log
https://gist.github.com/johnnash13/0d2cb5238f3551cd3a8c6b4e638dd744

Sorry took me a while to convert wireshark trace to text file.

My freeswitch is running on private IP (127.0.0.1) and opensips I
run on both public and private so that for outside world opensips
is the only public IP they see. In proxy log I pasted Opensips
===> Freeswitch logs and back.






On Fri, Jun 24, 2016 at 12:43 AM, Eric Tamme <e...@uphreak.com
<mailto:e...@uphreak.com>> wrote:

No - it's annoying to look at a trace that's had information
removed and try and piece together whats happening.  Your
paranoid side is wrong, sorry.

-Eric


On 06/23/2016 01:06 PM, Patrick Wakano wrote:

my paranoic side would recommend to hide/change private
informations, specially any authentication line that might
appear... this is certainly a sort of social engineering
threat we should worry...
better be safe than sorry


On Thu, Jun 23, 2016 at 3:31 PM, Eric Tamme
<e...@uphreak.com <mailto:e...@uphreak.com>> wrote:

I mean you can use a private gist, but you will be
publishing the link in a public email list. In general I
personally dont believe revealing ip addresses etc. is
any problem - to put my money where my mouth is here is
a gist link to an unaltered SIP trace on my server :)

https://gist.github.com/etamme/b864010448a29007b7e0457682e81d52

-Eric


On 06/23/2016 12:23 PM, John Nash wrote:

Ok i am ready with logs. About gist may I use private
option as traces have our IPs, user

    On Thu, Jun 23, 2016 at 10:32 PM, Eric Tamme
<e...@uphreak.com <mailto:e...@uphreak.com>> wrote:

Hey John,

Please paste a full UNALTERED sip trace into a gist
(gist.github.com <http://gist.github.com>) from the
proxy servers perspective and provide a link so
that we can see what comes in, and what goes out
from both sides.

EG: ngrep -qtd any -W byline port 5060

This will show us the traffic that is leaving the
proxy destined for the Freeswitch box, and what the
freeswitch box sends back.

Also - you can look in your browsers console log
and provide the SIP trace from there in a seperate
gist, so that we can see what opensips sends back
up to your browser.

-Eric



Am I using correct sip.js example? I copied it to
my server and accessing it using https: (used
letsencrypt)

On Thu, Jun 23, 2016 at 7:58 PM, Eric Tamme
<e...@uphreak.com <mailto:e...@uphreak.com>> wrote:

1. I would suggest using SIP.js -
https://github.com/onsip/SIP.js it is a much

Re: [OpenSIPS-Users] Opensips + rtpengine + Sipml5 webrtc

2016-06-23 Thread Eric Tamme
So - i dont see a problem here - Chrome is getting UDP/TLS/RTP/SAVPF and 
Freeswitch is getting RTP/AVP.  Freeswitch responded to the offer in the 
invite with an answer in the 183, and in the 200.  What is the failure 
you are seeing, and where is it happening (in freeswitch? in the browser?)


The only thing that looks bad is that you are retransmitting the ACK 
which FS either ... doesnt like, or is never getting,  because it keeps 
retransmitting the 200, which is why you get a 481 when you send BYE.


-Eric

On 06/23/2016 01:24 PM, John Nash wrote:
OK here is the log 
https://gist.github.com/johnnash13/0d2cb5238f3551cd3a8c6b4e638dd744


Sorry took me a while to convert wireshark trace to text file.

My freeswitch is running on private IP (127.0.0.1) and opensips I run 
on both public and private so that for outside world opensips is the 
only public IP they see. In proxy log I pasted Opensips ===> 
Freeswitch logs and back.







On Fri, Jun 24, 2016 at 12:43 AM, Eric Tamme <e...@uphreak.com 
<mailto:e...@uphreak.com>> wrote:


No - it's annoying to look at a trace that's had information
removed and try and piece together whats happening.  Your paranoid
side is wrong, sorry.

-Eric


On 06/23/2016 01:06 PM, Patrick Wakano wrote:

my paranoic side would recommend to hide/change private
informations, specially any authentication line that might
appear... this is certainly a sort of social engineering threat
we should worry...
better be safe than sorry


On Thu, Jun 23, 2016 at 3:31 PM, Eric Tamme <e...@uphreak.com
<mailto:e...@uphreak.com>> wrote:

I mean you can use a private gist, but you will be publishing
the link in a public email list. In general I personally dont
believe revealing ip addresses etc. is any problem - to put
my money where my mouth is here is a gist link to an
unaltered SIP trace on my server :)

https://gist.github.com/etamme/b864010448a29007b7e0457682e81d52

-Eric


On 06/23/2016 12:23 PM, John Nash wrote:

Ok i am ready with logs. About gist may I use private option
as traces have our IPs, user

On Thu, Jun 23, 2016 at 10:32 PM, Eric Tamme
<e...@uphreak.com <mailto:e...@uphreak.com>> wrote:

Hey John,

Please paste a full UNALTERED sip trace into a gist
(gist.github.com <http://gist.github.com>) from the
proxy servers perspective and provide a link so that we
can see what comes in, and what goes out from both sides.

EG: ngrep -qtd any -W byline port 5060

This will show us the traffic that is leaving the proxy
destined for the Freeswitch box, and what the freeswitch
box sends back.

Also - you can look in your browsers console log and
provide the SIP trace from there in a seperate gist, so
that we can see what opensips sends back up to your browser.

-Eric



Am I using correct sip.js example? I copied it to my
server and accessing it using https: (used letsencrypt)

    On Thu, Jun 23, 2016 at 7:58 PM, Eric Tamme
<e...@uphreak.com <mailto:e...@uphreak.com>> wrote:

1. I would suggest using SIP.js -
https://github.com/onsip/SIP.js it is a much more
active project that sipml5.

2. Im guessing that you are not properly passing
flags to RTPEngine.  If you want to have DTLS-SRTP
between the browser, and plain RTP/AVP between
RTPEngine and freeswitch, you need to "offer"
rtp/avp to freeswitch, and "answer" dtls-srtp back
up to the browser.

the offer to freeswitch would be:

 $var(rtpengine_flags) = "RTP/AVP replace-session-connection 
replace-origin ICE=remove";

and the answer back up to the browswer would be:

 $var(rtpengine_flags) = "UDP/TLS/RTP/SAVPF ICE=force";


-Eric



On 06/23/2016 08:20 AM, John Nash wrote:

I am following
http://www.opensips.org/Documentation/Tutorials-WebSocket-2-2
and trying to test a call

sipml5 --->Opensips + rtpengine >
SIP end point (Freeswitch)

But I do not have any audio on both sides. I see
this error at rtpengine log "SRTP output wanted,
but no crypto suite was negotiated"

Anyone tested this scenario positive?


___
Users mailing list
Users@lists.opensips.org
 

Re: [OpenSIPS-Users] Opensips + rtpengine + Sipml5 webrtc

2016-06-23 Thread Eric Tamme
No - it's annoying to look at a trace that's had information removed and 
try and piece together whats happening.  Your paranoid side is wrong, sorry.


-Eric

On 06/23/2016 01:06 PM, Patrick Wakano wrote:
my paranoic side would recommend to hide/change private informations, 
specially any authentication line that might appear... this is 
certainly a sort of social engineering threat we should worry...

better be safe than sorry


On Thu, Jun 23, 2016 at 3:31 PM, Eric Tamme <e...@uphreak.com 
<mailto:e...@uphreak.com>> wrote:


I mean you can use a private gist, but you will be publishing the
link in a public email list.  In general I personally dont believe
revealing ip addresses etc. is any problem - to put my money where
my mouth is here is a gist link to an unaltered SIP trace on my
server :)

https://gist.github.com/etamme/b864010448a29007b7e0457682e81d52

-Eric


On 06/23/2016 12:23 PM, John Nash wrote:

Ok i am ready with logs. About gist may I use private option as
traces have our IPs, user

On Thu, Jun 23, 2016 at 10:32 PM, Eric Tamme <e...@uphreak.com
<mailto:e...@uphreak.com>> wrote:

Hey John,

Please paste a full UNALTERED sip trace into a gist
(gist.github.com <http://gist.github.com>) from the proxy
servers perspective and provide a link so that we can see
what comes in, and what goes out from both sides.

EG: ngrep -qtd any -W byline port 5060

This will show us the traffic that is leaving the proxy
destined for the Freeswitch box, and what the freeswitch box
sends back.

Also - you can look in your browsers console log and provide
the SIP trace from there in a seperate gist, so that we can
see what opensips sends back up to your browser.

-Eric



Am I using correct sip.js example? I copied it to my server
and accessing it using https: (used letsencrypt)

On Thu, Jun 23, 2016 at 7:58 PM, Eric Tamme
<e...@uphreak.com <mailto:e...@uphreak.com>> wrote:

1. I would suggest using SIP.js -
https://github.com/onsip/SIP.js it is a much more active
project that sipml5.

2. Im guessing that you are not properly passing flags
to RTPEngine.  If you want to have DTLS-SRTP between the
browser, and plain RTP/AVP between RTPEngine and
freeswitch, you need to "offer" rtp/avp to freeswitch,
and "answer" dtls-srtp back up to the browser.

the offer to freeswitch would be:

 $var(rtpengine_flags) = "RTP/AVP replace-session-connection 
replace-origin ICE=remove";

and the answer back up to the browswer would be:

 $var(rtpengine_flags) = "UDP/TLS/RTP/SAVPF ICE=force";


-Eric



On 06/23/2016 08:20 AM, John Nash wrote:

I am following
http://www.opensips.org/Documentation/Tutorials-WebSocket-2-2
and trying to test a call

sipml5 --->Opensips + rtpengine > SIP
end point (Freeswitch)

But I do not have any audio on both sides. I see this
error at rtpengine log "SRTP output wanted, but no
crypto suite was negotiated"

Anyone tested this scenario positive?


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



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




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



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




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



___
Users mailing list
Users@lists.opensips.org <mailto: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] Opensips + rtpengine + Sipml5 webrtc

2016-06-23 Thread Eric Tamme
I mean you can use a private gist, but you will be publishing the link 
in a public email list.  In general I personally dont believe revealing 
ip addresses etc. is any problem - to put my money where my mouth is 
here is a gist link to an unaltered SIP trace on my server :)


https://gist.github.com/etamme/b864010448a29007b7e0457682e81d52

-Eric

On 06/23/2016 12:23 PM, John Nash wrote:
Ok i am ready with logs. About gist may I use private option as traces 
have our IPs, user


On Thu, Jun 23, 2016 at 10:32 PM, Eric Tamme <e...@uphreak.com 
<mailto:e...@uphreak.com>> wrote:


Hey John,

Please paste a full UNALTERED sip trace into a gist
(gist.github.com <http://gist.github.com>) from the proxy servers
perspective and provide a link so that we can see what comes in,
and what goes out from both sides.

EG: ngrep -qtd any -W byline port 5060

This will show us the traffic that is leaving the proxy destined
for the Freeswitch box, and what the freeswitch box sends back.

Also - you can look in your browsers console log and provide the
SIP trace from there in a seperate gist, so that we can see what
opensips sends back up to your browser.

-Eric



Am I using correct sip.js example? I copied it to my server and
accessing it using https: (used letsencrypt)

On Thu, Jun 23, 2016 at 7:58 PM, Eric Tamme <e...@uphreak.com
<mailto:e...@uphreak.com>> wrote:

1. I would suggest using SIP.js -
https://github.com/onsip/SIP.js it is a much more active
project that sipml5.

2. Im guessing that you are not properly passing flags to
RTPEngine.  If you want to have DTLS-SRTP between the
browser, and plain RTP/AVP between RTPEngine and freeswitch,
you need to "offer" rtp/avp to freeswitch, and "answer"
dtls-srtp back up to the browser.

the offer to freeswitch would be:

 $var(rtpengine_flags) = "RTP/AVP replace-session-connection 
replace-origin ICE=remove";

and the answer back up to the browswer would be:

 $var(rtpengine_flags) = "UDP/TLS/RTP/SAVPF ICE=force";


-Eric



On 06/23/2016 08:20 AM, John Nash wrote:

I am following
http://www.opensips.org/Documentation/Tutorials-WebSocket-2-2 and
trying to test a call

sipml5 --->Opensips + rtpengine > SIP end
point (Freeswitch)

But I do not have any audio on both sides. I see this error
at rtpengine log "SRTP output wanted, but no crypto suite
was negotiated"

Anyone tested this scenario positive?


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



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




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



___
Users mailing list
Users@lists.opensips.org <mailto: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] Opensips + rtpengine + Sipml5 webrtc

2016-06-23 Thread Eric Tamme

Hey John,

Please paste a full UNALTERED sip trace into a gist (gist.github.com) 
from the proxy servers perspective and provide a link so that we can see 
what comes in, and what goes out from both sides.


EG: ngrep -qtd any -W byline port 5060

This will show us the traffic that is leaving the proxy destined for the 
Freeswitch box, and what the freeswitch box sends back.


Also - you can look in your browsers console log and provide the SIP 
trace from there in a seperate gist, so that we can see what opensips 
sends back up to your browser.


-Eric

Am I using correct sip.js example? I copied it to my server and 
accessing it using https: (used letsencrypt)


On Thu, Jun 23, 2016 at 7:58 PM, Eric Tamme <e...@uphreak.com 
<mailto:e...@uphreak.com>> wrote:


1. I would suggest using SIP.js - https://github.com/onsip/SIP.js
it is a much more active project that sipml5.

2. Im guessing that you are not properly passing flags to
RTPEngine.  If you want to have DTLS-SRTP between the browser, and
plain RTP/AVP between RTPEngine and freeswitch, you need to
"offer" rtp/avp to freeswitch, and "answer" dtls-srtp back up to
the browser.

the offer to freeswitch would be:

 $var(rtpengine_flags) = "RTP/AVP replace-session-connection 
replace-origin ICE=remove";

and the answer back up to the browswer would be:

 $var(rtpengine_flags) = "UDP/TLS/RTP/SAVPF ICE=force";


-Eric



On 06/23/2016 08:20 AM, John Nash wrote:

I am following
http://www.opensips.org/Documentation/Tutorials-WebSocket-2-2 and
trying to test a call

sipml5 --->Opensips + rtpengine > SIP end point
(Freeswitch)

But I do not have any audio on both sides. I see this error at
rtpengine log "SRTP output wanted, but no crypto suite was
negotiated"

Anyone tested this scenario positive?


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



___
Users mailing list
Users@lists.opensips.org <mailto: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] Opensips + rtpengine + Sipml5 webrtc

2016-06-23 Thread Eric Tamme
1. I would suggest using SIP.js - https://github.com/onsip/SIP.js it is 
a much more active project that sipml5.


2. Im guessing that you are not properly passing flags to RTPEngine.  If 
you want to have DTLS-SRTP between the browser, and plain RTP/AVP 
between RTPEngine and freeswitch, you need to "offer" rtp/avp to 
freeswitch, and "answer" dtls-srtp back up to the browser.


the offer to freeswitch would be:

$var(rtpengine_flags) = "RTP/AVP replace-session-connection replace-origin 
ICE=remove";

and the answer back up to the browswer would be:

$var(rtpengine_flags) = "UDP/TLS/RTP/SAVPF ICE=force";


-Eric


On 06/23/2016 08:20 AM, John Nash wrote:
I am following 
http://www.opensips.org/Documentation/Tutorials-WebSocket-2-2 and 
trying to test a call


sipml5 --->Opensips + rtpengine > SIP end point 
(Freeswitch)


But I do not have any audio on both sides. I see this error at 
rtpengine log "SRTP output wanted, but no crypto suite was negotiated"


Anyone tested this scenario positive?


___
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] What is the best SQLite version to be used with OpenSIPS 2.2? We investigate a memory leak.

2016-06-17 Thread Eric Tamme

Hey Rodrigo,

Are you running https://github.com/etamme/federated-sip by chance? Your 
use of the PCRE module made me think you might be.  I run federated-sip 
and I do use sqlite3 with opensips - my current sqlite version is:  
sqlite-3.7.17-4.el7.x86_64


I do not know that I have memory leaks outside of what I reported in the 
github issue.


-Eric

On 06/17/2016 11:08 AM, Rodrigo Pimenta Carvalho wrote:


Thank you Ionut.


We will try it so.


Today morning, we noticed that OpenSIPS 2.2 while running and using 
SQLite, without online clients, without registers and without calls, 
causes a memory leak. That is, OpenSIPS even without any SIP request 
causes a memory leak due to the use of SQLite.



After updating the SQLite to a new version, such memory leak was vanished.


However, even with the newest SQLite, we still get memory leaks again 
if the proxy receives SIP REGISTER messages. That is, we get the issue 
every time some client registers. In this case we saw the memory leak 
in : " modparam("db_sqlite", "load_extension", 
"/usr/lib/sqlite3/pcre.so")"



Let us try the new solution and see what happens.


Best regards!


RODRIGO PIMENTA CARVALHO
Inatel Competence Center
Software
Ph: +55 35 3471 9200 RAMAL 979



*De:* users-boun...@lists.opensips.org 
 em nome de Ionut Ionita 


*Enviado:* sexta-feira, 17 de junho de 2016 11:45
*Para:* OpenSIPS users mailling list
*Assunto:* Re: [OpenSIPS-Users] What is the best SQLite version to be 
used with OpenSIPS 2.2? We investigate a memory leak.

Hi Rodrigo,

Pushed a fix both into 2.2[0] and master[1] branches. If you still 
think sqlite leaks even with this fix,

please feel free to open an issue on github.

[0] 
https://github.com/OpenSIPS/opensips/commit/c1aa55e73f7c56ea4894997aeb7f25a03cb289cf 




[sqlite][bugfix] free column names when freeing the result · 
OpenSIPS/opensips@c1aa55e 


github.com
(cherry picked from commit cf380773cec9f91ad08e343c03261154dabc36a5)


[1] 
https://github.com/OpenSIPS/opensips/commit/c1aa55e73f7c56ea4894997aeb7f25a03cb289cf 


Regrads,
Ionut Ionita
OpenSIPS Developer
On 06/17/2016 05:19 PM, Rodrigo Pimenta Carvalho wrote:


Hi Liviu.


Very good.


We will see the resolution process.

Thank you very much!

Regards.


RODRIGO PIMENTA CARVALHO
Inatel Competence Center
Software
Ph: +55 35 3471 9200 RAMAL 979



*De:* users-boun...@lists.opensips.org 
 em nome de Liviu Chircu 


*Enviado:* sexta-feira, 17 de junho de 2016 11:14
*Para:* users@lists.opensips.org
*Assunto:* Re: [OpenSIPS-Users] What is the best SQLite version to be 
used with OpenSIPS 2.2? We investigate a memory leak.

Hi Rodrigo!

A GitHub issue [1] regarding this leak was just reported today by 
Eric, so you can track the resolution process over there! You can 
even subscribe to that ticket if you have an account, in order to 
receive emails.


[1]: https://github.com/OpenSIPS/opensips/issues/911


2.2 runs out of pkg_mem because of db/db_res.c memory leak · Issue 
#911 · OpenSIPS/opensips 


github.com
OpenSIPS 2.2 will run out of pkg_mem, i believe because of a leak in 
db/db_res.c Full memlog dump is available here: 
https://gist.github.com/etamme/7d42024ad684fe834b9fd514d2bd2412 I am 
using...



Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com
On 17.06.2016 17:02, Rodrigo Pimenta Carvalho wrote:


Hi.


People from my team is investigating a memory leak related to 
OpenSIPS 2.2.



As I had commented in another discussion in the past, it seems that 
the problem comes from SQLite we are using as the Registrar for our 
OpenSIPS 2.2.


For example, a script opensips.cfg that doesn't use SQLite didn't 
cause memory leak. But, a script that uses it and use another module 
that needs a database (EX: auth.so) causes memory leak.



We are still in the beginning of the investigation.

So, what is the best version of SQLite to be used with OpenSIPS 2.2? 
That is, what version of SQLite was very well tested with OpenSIPS 
2.2 and worked  without memory leaks or others issues?



Any suggestion will be very helpful!


Best regards.


RODRIGO PIMENTA CARVALHO
Inatel Competence Center
Software
Ph: +55 35 3471 9200 RAMAL 979


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




___
Users mailing list
Users@lists.opensips.org

Re: [OpenSIPS-Users] .Net Integartion To OpenSips

2016-03-07 Thread Eric Tamme
I mean, opensipsctl add just inserts to a database, so you could avoid 
using the opensipsctl command line client all together and just insert 
directly to the database.



On 03/01/2016 09:10 AM, Adrian Newell wrote:


My terminology was not good,  what I meant was is there any way that I 
can call the ‘opensisctl add’ command line function to create a user 
account remotely on the SIPS server, such as from a .Net application.


I need to interface into OpenSIPS to create the user accounts.   If 
the OpenSIPS Control Panel has this functionality I would be 
interested in knowing how it does it.


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


Re: [OpenSIPS-Users] wss support in opensips.

2016-03-05 Thread Eric Tamme
yes it is on master



On Mar 5, 2016, 3:25 AM, at 3:25 AM, johan  wrote:
>Dears,
>
>is wss support already there in opensips devel branch ?
>
>--
>
>
>
>
>
>___
>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] .Net Integartion To OpenSips

2016-03-01 Thread Eric Tamme

Use a .net SIP library.

On 02/26/2016 05:57 AM, Adrian Newell wrote:


Any suggestions about the best way to register a phone with OpenSIPS 
from a .Net client application ?   You don’t appear to have an API 
that can be used from .Net,  would it be easier to write directly into 
the database ?


I can only find one third party on the internet who do provide a .Net 
API but would prefer to understand your stance on this.


*Kind Regards*

*Adrian Newell *

.



___
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] What does exactally mean lots of warnings about timer_ticker in the log (OpenSIPS 2.1)?

2016-02-23 Thread Eric Tamme

Rodrigo,

I believe if you create partitions for your nathelper call backs see:

http://www.opensips.org/html/docs/modules/2.1.x/nathelper.html#id293468

You will not have this issue any more.  The nathelper callback is taking 
a long time to ping all the nat'd contacts most likely, so it doesnt 
finish its job before its time to run again.  If you break up the 
pinging into multiple partitions it will go faster, and prevent the 
overlap from happening.


-Eric

On 02/23/2016 02:22 PM, Eric Tamme wrote:

Hey again Rodrigo,

I had further discussions with Bogdan which I will summarize here in 
an attempt to clarify.


Because the new 2.x system is implemented as a reactor, the 
implementation of timer based callbacks has changed.  There is a 
single timer process who's only job is to keep track of jobs that are 
to be scheduled, when it decides a job/callback needs to happen 
because of the current time, it writes to a shared pipe which is read 
by ALL other processes of the reactor.  Any reactor process that is 
free, will take this callback off the pipe and run it.  In this way, 
there is no way to actually block the timer process.


However, what can happen, and what I believe you are seeing here is 
that the timer process has not finished going through the list of 
timer handlers and it should have started processing the list again 
already - so the timer list scan is overlapping.


I'm not 100% sure how this can happen, perhaps you have a very long 
timer list and it is causing the timer process to fail to complete 
before its next scheduled iteration - either than or it is not able to 
write to the shared pipe for some reason.


I would bring the question to either IRC, or to the devel list with as 
much detail as possible.


-Eric


On 02/23/2016 01:59 PM, Rodrigo Pimenta Carvalho wrote:


Ok Eric.


Thank you very much.

I will analyze my OpenSIPS configuration and try to discover what 
action is causing the block situation.



Best regards.


RODRIGO PIMENTA CARVALHO
Inatel Competence Center
Software
Ph: +55 35 3471 9200 RAMAL 979



*De:* users-boun...@lists.opensips.org 
<users-boun...@lists.opensips.org> em nome de Eric Tamme 
<e...@uphreak.com>

*Enviado:* terça-feira, 23 de fevereiro de 2016 17:51
*Para:* OpenSIPS users mailling list
*Assunto:* Re: [OpenSIPS-Users] What does exactally mean lots of 
warnings about timer_ticker in the log (OpenSIPS 2.1)?

I was just speaking with bogdan, apparently i am wrong.  he said:

"no, there is no way to do that, as right now any process (SIP 
worker) can execute (if free) the timer jobs, and the 
timer_partitions in TM has nothing to do with that change (in how 
timer jobs are executed)"


So ... i guess you need to prevent any type of blocking operations ...

-Eric

On 02/23/2016 01:34 PM, Rodrigo Pimenta Carvalho wrote:


Ok Eric.

Thank you. I will try  this and see what will be the result.

Thanks a lot.


RODRIGO PIMENTA CARVALHO
Inatel Competence Center
Software
Ph: +55 35 3471 9200 RAMAL 979



*De:* users-boun...@lists.opensips.org 
<users-boun...@lists.opensips.org> em nome de Eric Tamme 
<e...@uphreak.com>

*Enviado:* terça-feira, 23 de fevereiro de 2016 17:23
*Para:* OpenSIPS users mailling list
*Assunto:* Re: [OpenSIPS-Users] What does exactally mean lots of 
warnings about timer_ticker in the log (OpenSIPS 2.1)?
I believe this has been refactored under 2.X as a result ofthe async 
work.  I think the new settings are "timer partitions" here is the 
tm documentation discussing the timer partition setting: 
http://www.opensips.org/html/docs/modules/2.1.x/tm.html#id294483
tm Module - OpenSIPS 
<http://www.opensips.org/html/docs/modules/2.1.x/tm.html#id294483>

www.opensips.org
TM module enables stateful processing of SIP transactions. The main 
use of stateful logic, which is costly in terms of memory and CPU, 
is some services inherently ...




-Eric

On 02/23/2016 12:57 PM, Rodrigo Pimenta Carvalho wrote:


Hi Eric Tamme.


I have just searched about Timer in the module docs, but I didn't 
find any thing about how to manager Timers in OpenSIPS, as you 
commented.


Do you know what part of the documentation tells about "dedicated 
timer processes"?



BTW, my project is embedded.


Any hint will be very helpful!


Thanks a lot!


RODRIGO PIMENTA CARVALHO
Inatel Competence Center
Software
Ph: +55 35 3471 9200 RAMAL 979



*De:* users-boun...@lists.opensips.org 
<users-boun...@lists.opensips.org> em nome de Eric Tamme 
<e...@uphreak.com>

*Enviado:* segunda-feira, 22 de fevereiro de 2016 14:35
*Para:* OpenSIPS users mailling list
*Assunto:* Re: [OpenSIPS-Users] What does exactally mean lots of 
warnings about timer_ticker in the log (OpenSIPS 2.1)?
Many thing

Re: [OpenSIPS-Users] What does exactally mean lots of warnings about timer_ticker in the log (OpenSIPS 2.1)?

2016-02-23 Thread Eric Tamme

Hey again Rodrigo,

I had further discussions with Bogdan which I will summarize here in an 
attempt to clarify.


Because the new 2.x system is implemented as a reactor, the 
implementation of timer based callbacks has changed.  There is a single 
timer process who's only job is to keep track of jobs that are to be 
scheduled, when it decides a job/callback needs to happen because of the 
current time, it writes to a shared pipe which is read by ALL other 
processes of the reactor.  Any reactor process that is free, will take 
this callback off the pipe and run it.  In this way, there is no way to 
actually block the timer process.


However, what can happen, and what I believe you are seeing here is that 
the timer process has not finished going through the list of timer 
handlers and it should have started processing the list again already - 
so the timer list scan is overlapping.


I'm not 100% sure how this can happen, perhaps you have a very long 
timer list and it is causing the timer process to fail to complete 
before its next scheduled iteration - either than or it is not able to 
write to the shared pipe for some reason.


I would bring the question to either IRC, or to the devel list with as 
much detail as possible.


-Eric


On 02/23/2016 01:59 PM, Rodrigo Pimenta Carvalho wrote:


Ok Eric.


Thank you very much.

I will analyze my OpenSIPS configuration and try to discover what 
action is causing the block situation.



Best regards.


RODRIGO PIMENTA CARVALHO
Inatel Competence Center
Software
Ph: +55 35 3471 9200 RAMAL 979



*De:* users-boun...@lists.opensips.org 
<users-boun...@lists.opensips.org> em nome de Eric Tamme 
<e...@uphreak.com>

*Enviado:* terça-feira, 23 de fevereiro de 2016 17:51
*Para:* OpenSIPS users mailling list
*Assunto:* Re: [OpenSIPS-Users] What does exactally mean lots of 
warnings about timer_ticker in the log (OpenSIPS 2.1)?

I was just speaking with bogdan, apparently i am wrong. he said:

"no, there is no way to do that, as right now any process (SIP worker) 
can execute (if free) the timer jobs, and the timer_partitions in TM 
has nothing to do with that change (in how timer jobs are executed)"


So ... i guess you need to prevent any type of blocking operations ...

-Eric

On 02/23/2016 01:34 PM, Rodrigo Pimenta Carvalho wrote:


Ok Eric.

Thank you. I will try  this and see what will be the result.

Thanks a lot.


RODRIGO PIMENTA CARVALHO
Inatel Competence Center
Software
Ph: +55 35 3471 9200 RAMAL 979



*De:* users-boun...@lists.opensips.org 
<users-boun...@lists.opensips.org> em nome de Eric Tamme 
<e...@uphreak.com>

*Enviado:* terça-feira, 23 de fevereiro de 2016 17:23
*Para:* OpenSIPS users mailling list
*Assunto:* Re: [OpenSIPS-Users] What does exactally mean lots of 
warnings about timer_ticker in the log (OpenSIPS 2.1)?
I believe this has been refactored under 2.X as a result ofthe async 
work.  I think the new settings are "timer partitions" here is the tm 
documentation discussing the timer partition setting: 
http://www.opensips.org/html/docs/modules/2.1.x/tm.html#id294483
tm Module - OpenSIPS 
<http://www.opensips.org/html/docs/modules/2.1.x/tm.html#id294483>

www.opensips.org
TM module enables stateful processing of SIP transactions. The main 
use of stateful logic, which is costly in terms of memory and CPU, is 
some services inherently ...




-Eric

On 02/23/2016 12:57 PM, Rodrigo Pimenta Carvalho wrote:


Hi Eric Tamme.


I have just searched about Timer in the module docs, but I didn't 
find any thing about how to manager Timers in OpenSIPS, as you 
commented.


Do you know what part of the documentation tells about "dedicated 
timer processes"?



BTW, my project is embedded.


Any hint will be very helpful!


Thanks a lot!


RODRIGO PIMENTA CARVALHO
Inatel Competence Center
Software
Ph: +55 35 3471 9200 RAMAL 979



*De:* users-boun...@lists.opensips.org 
<users-boun...@lists.opensips.org> em nome de Eric Tamme 
<e...@uphreak.com>

*Enviado:* segunda-feira, 22 de fevereiro de 2016 14:35
*Para:* OpenSIPS users mailling list
*Assunto:* Re: [OpenSIPS-Users] What does exactally mean lots of 
warnings about timer_ticker in the log (OpenSIPS 2.1)?
Many things share the same timer, dialog expiration cleanup, 
userlocation cleanup, nathelper pings etc.  If one of the processes 
that is triggered by a timer route blocks for some period of time - 
aka a hung db query, it will cause the timer to "drift" and you will 
get logs indicating that a process that should have takeng X amount 
of time actually took Y amount of time - this is due to the blocking 
operation.


I would suggest that you use dedicated timer processes for as many 
things as you can - dia

Re: [OpenSIPS-Users] What does exactally mean lots of warnings about timer_ticker in the log (OpenSIPS 2.1)?

2016-02-23 Thread Eric Tamme

I was just speaking with bogdan, apparently i am wrong.  he said:

"no, there is no way to do that, as right now any process (SIP worker) 
can execute (if free) the timer jobs, and the timer_partitions in TM has 
nothing to do with that change (in how timer jobs are executed)"


So ... i guess you need to prevent any type of blocking operations ...

-Eric

On 02/23/2016 01:34 PM, Rodrigo Pimenta Carvalho wrote:


Ok Eric.

Thank you. I will try  this and see what will be the result.

Thanks a lot.


RODRIGO PIMENTA CARVALHO
Inatel Competence Center
Software
Ph: +55 35 3471 9200 RAMAL 979



*De:* users-boun...@lists.opensips.org 
<users-boun...@lists.opensips.org> em nome de Eric Tamme 
<e...@uphreak.com>

*Enviado:* terça-feira, 23 de fevereiro de 2016 17:23
*Para:* OpenSIPS users mailling list
*Assunto:* Re: [OpenSIPS-Users] What does exactally mean lots of 
warnings about timer_ticker in the log (OpenSIPS 2.1)?
I believe this has been refactored under 2.X as a result ofthe async 
work.  I think the new settings are "timer partitions" here is the tm 
documentation discussing the timer partition setting: 
http://www.opensips.org/html/docs/modules/2.1.x/tm.html#id294483
tm Module - OpenSIPS 
<http://www.opensips.org/html/docs/modules/2.1.x/tm.html#id294483>

www.opensips.org
TM module enables stateful processing of SIP transactions. The main 
use of stateful logic, which is costly in terms of memory and CPU, is 
some services inherently ...




-Eric

On 02/23/2016 12:57 PM, Rodrigo Pimenta Carvalho wrote:


Hi Eric Tamme.


I have just searched about Timer in the module docs, but I didn't 
find any thing about how to manager Timers in OpenSIPS, as you commented.


Do you know what part of the documentation tells about "dedicated 
timer processes"?



BTW, my project is embedded.


Any hint will be very helpful!


Thanks a lot!


RODRIGO PIMENTA CARVALHO
Inatel Competence Center
Software
Ph: +55 35 3471 9200 RAMAL 979



*De:* users-boun...@lists.opensips.org 
<users-boun...@lists.opensips.org> em nome de Eric Tamme 
<e...@uphreak.com>

*Enviado:* segunda-feira, 22 de fevereiro de 2016 14:35
*Para:* OpenSIPS users mailling list
*Assunto:* Re: [OpenSIPS-Users] What does exactally mean lots of 
warnings about timer_ticker in the log (OpenSIPS 2.1)?
Many things share the same timer, dialog expiration cleanup, 
userlocation cleanup, nathelper pings etc.  If one of the processes 
that is triggered by a timer route blocks for some period of time - 
aka a hung db query, it will cause the timer to "drift" and you will 
get logs indicating that a process that should have takeng X amount 
of time actually took Y amount of time - this is due to the blocking 
operation.


I would suggest that you use dedicated timer processes for as many 
things as you can - dialog, tm etc. see the module docs for how to do 
this.


-Eric

On 02/22/2016 10:28 AM, Rodrigo Pimenta Carvalho wrote:



Hi.

The log of my OpenSIPS began to present thousands of warnings 
similar to:




"WARNING:core:timer_ticker: timer task  already schedualed 
for 93991120 ms (now 248157560 ms), it may ove rlap.."



What does exactly means it?

Some discussions from the past said something about increasing the 
number in the global variable "children".



Should I change the number for children? Before trying it i would 
like to hear something about, just to know better what I'm going to do.



Any hint will be very helpful!


Thanks a lot.



RODRIGO PIMENTA CARVALHO
Inatel Competence Center
Software
Ph: +55 35 3471 9200 RAMAL 979


___
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


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


Re: [OpenSIPS-Users] What does exactally mean lots of warnings about timer_ticker in the log (OpenSIPS 2.1)?

2016-02-23 Thread Eric Tamme
I believe this has been refactored under 2.X as a result ofthe async 
work.  I think the new settings are "timer partitions" here is the tm 
documentation discussing the timer partition setting: 
http://www.opensips.org/html/docs/modules/2.1.x/tm.html#id294483


-Eric

On 02/23/2016 12:57 PM, Rodrigo Pimenta Carvalho wrote:


Hi Eric Tamme.


I have just searched about Timer in the module docs, but I didn't find 
any thing about how to manager Timers in OpenSIPS, as you commented.


Do you know what part of the documentation tells about "dedicated 
timer processes"?



BTW, my project is embedded.


Any hint will be very helpful!


Thanks a lot!


RODRIGO PIMENTA CARVALHO
Inatel Competence Center
Software
Ph: +55 35 3471 9200 RAMAL 979



*De:* users-boun...@lists.opensips.org 
<users-boun...@lists.opensips.org> em nome de Eric Tamme 
<e...@uphreak.com>

*Enviado:* segunda-feira, 22 de fevereiro de 2016 14:35
*Para:* OpenSIPS users mailling list
*Assunto:* Re: [OpenSIPS-Users] What does exactally mean lots of 
warnings about timer_ticker in the log (OpenSIPS 2.1)?
Many things share the same timer, dialog expiration cleanup, 
userlocation cleanup, nathelper pings etc.  If one of the processes 
that is triggered by a timer route blocks for some period of time - 
aka a hung db query, it will cause the timer to "drift" and you will 
get logs indicating that a process that should have takeng X amount of 
time actually took Y amount of time - this is due to the blocking 
operation.


I would suggest that you use dedicated timer processes for as many 
things as you can - dialog, tm etc. see the module docs for how to do 
this.


-Eric

On 02/22/2016 10:28 AM, Rodrigo Pimenta Carvalho wrote:



Hi.

The log of my OpenSIPS began to present thousands of warnings similar to:



"WARNING:core:timer_ticker: timer task  already schedualed 
for 93991120 ms (now 248157560 ms), it may ove rlap.."



What does exactly means it?

Some discussions from the past said something about increasing the 
number in the global variable "children".



Should I change the number for children?  Before trying it i would 
like to hear something about, just to know better what I'm going to do.



Any hint will be very helpful!


Thanks a lot.



RODRIGO PIMENTA CARVALHO
Inatel Competence Center
Software
Ph: +55 35 3471 9200 RAMAL 979


___
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] What does exactally mean lots of warnings about timer_ticker in the log (OpenSIPS 2.1)?

2016-02-22 Thread Eric Tamme
Many things share the same timer, dialog expiration cleanup, 
userlocation cleanup, nathelper pings etc.  If one of the processes that 
is triggered by a timer route blocks for some period of time - aka a 
hung db query, it will cause the timer to "drift" and you will get logs 
indicating that a process that should have takeng X amount of time 
actually took Y amount of time - this is due to the blocking operation.


I would suggest that you use dedicated timer processes for as many 
things as you can - dialog, tm etc. see the module docs for how to do this.


-Eric

On 02/22/2016 10:28 AM, Rodrigo Pimenta Carvalho wrote:



Hi.

The log of my OpenSIPS began to present thousands of warnings similar to:



"WARNING:core:timer_ticker: timer task  already schedualed 
for 93991120 ms (now 248157560 ms), it may ove rlap.."



What does exactly means it?

Some discussions from the past said something about increasing the 
number in the global variable "children".



Should I change the number for children?  Before trying it i would 
like to hear something about, just to know better what I'm going to do.



Any hint will be very helpful!


Thanks a lot.



RODRIGO PIMENTA CARVALHO
Inatel Competence Center
Software
Ph: +55 35 3471 9200 RAMAL 979


___
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] Engage rtpengine if destination resigstered client is ipv6

2016-02-08 Thread Eric Tamme
The proper way to do this is to check when the user registers if they 
are ipv4 or ipv6 and set a branch flag that will be saved with the 
registration.  When you call lookup, it will restore the branch flag, 
allowing you access to the information about the UAS ipv4, ipv6, behind 
a not or not etc.


-Eric

On 02/08/2016 09:52 AM, Jonathan Hunter wrote:

Hi Eric,


 
Thanks for the response on this.

The main issue was with identifying if the
   Registered user I was sending the INVITE request to
   was over IPv6 or IPv4, and it looks like your config
   should give me an indication.
Many thanks


 
Jon



 
Message: 5


   Date: Mon, 8 Feb 2016 07:44:18 -0700

   From: Eric Tamme <e...@uphreak.com>

   Subject: Re: [OpenSIPS-Users] Engage rtpengine if
   destination

   resigstered client is ipv6

   To: OpenSIPS users mailling list
   <users@lists.opensips.org>

   Message-ID: <56b8a9c2.6090...@uphreak.com>

   Content-Type: text/plain; charset="windows-1252";
   Format="flowed"

   


   You can see an example of setting the flags in my
   federated-sip project

   
https://github.com/etamme/federated-sip/blob/master/core/opensips.cfg.erb#L558

   


   -Eric


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


Re: [OpenSIPS-Users] Engage rtpengine if destination resigstered client is ipv6

2016-02-08 Thread Eric Tamme
yes it is possible to bridge ip4 to ip6 using the "address family" key 
in the offer/answer to specify ipv4 or ipv6.  See the RTPEngine docs for 
more info https://github.com/sipwise/rtpengine/


-Eric

On 02/08/2016 07:38 AM, Jonathan Hunter wrote:

Hi All,

Doe's anyone know if its possible to set for examaple rtpengine to 
bridge between IPv4 and IPv6 only if the target request is destined 
for a subscriber who is registered over IPv6?


I am aware of the address family function, to  determine which 
interface/IP version a SIP request comes from, but is there a similar 
one for destination after a location lookup has been completed?


I am setting a flag when an IPv6 user registers, and was thinking I 
could possibly use an onsend route but just wondered if there is a 
better/easier solution?


This is in an environment with IPv4 and IPv6 users and equipment so I 
only want to engage rtpengine when I need to bridge between IPv4 and v6.


Thanks

Jon


___
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] Engage rtpengine if destination resigstered client is ipv6

2016-02-08 Thread Eric Tamme
You can see an example of setting the flags in my federated-sip project 
https://github.com/etamme/federated-sip/blob/master/core/opensips.cfg.erb#L558


-Eric

On 02/08/2016 07:38 AM, Jonathan Hunter wrote:

Hi All,

Doe's anyone know if its possible to set for examaple rtpengine to 
bridge between IPv4 and IPv6 only if the target request is destined 
for a subscriber who is registered over IPv6?


I am aware of the address family function, to  determine which 
interface/IP version a SIP request comes from, but is there a similar 
one for destination after a location lookup has been completed?


I am setting a flag when an IPv6 user registers, and was thinking I 
could possibly use an onsend route but just wondered if there is a 
better/easier solution?


This is in an environment with IPv4 and IPv6 users and equipment so I 
only want to engage rtpengine when I need to bridge between IPv4 and v6.


Thanks

Jon


___
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] Error on idle WSS

2016-01-28 Thread Eric Tamme
This basically happens once the websocket has closed, but opensips still 
thinks there is an active client.  it tries to write some data to the 
socket and it fails.  Its not a "error" really .. but it does make the 
logs dirty.


-Eric

On 01/28/2016 02:59 PM, Sebastian Sastre wrote:

Hey guys,

i’m seeing something in the logs im not quite sure how to interpret. 
Im using sip.js and im able to register and make calls without a problem.


But on the logs, even when i only have one extension registered. i see 
this log randomly.


Jan 28 16:58:37 Proxy01 /sbin/opensips[3394]: 
ERROR:proto_wss:ls_write: TLS connection to xxx.xxx.xxx.xxx:53257 
write failed
Jan 28 16:58:37 CallCenterProxy01 /sbin/opensips[3394]: 
ERROR:proto_wss:tls_write: TLS write error:
Jan 28 16:58:37 Proxy01 /sbin/opensips[3394]: 
ERROR:proto_wss:ls_blocking_write: TLS failed to send data


i can still make calls and everything seems to flow fine. Not sure 
where the error comes from…



any ideas?



___
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] How to take control of Record-Routes header fields? Need remove one of two.

2016-01-14 Thread Eric Tamme
Perhaps you should try to find out why there are now more RR headers - 
it is likely that the request is spiraling through the proxy itself.  
Generally speaking you should not remove the record route headers.


-Eric

On 01/14/2016 02:16 PM, Rodrigo Pimenta Carvalho wrote:


Dear OpenSIPS-Users;


Suddenly my opensips started to add 2 Record-Routes header fields to 
messages it is handling. Ex: when forward a simple SIP-INVITE.



One header field has a private IP and another has a public IP.


I would like to take control of Record-Routes and then avoid opensips 
adding that one with private IP.



Is it possible?


If yes, when a SIP-OK arrives in a callee, the callee will send 
SIP-ACK to the public IP and then the OpenSIPS will receive it. If I 
let the header field with private IP there, it causes problem when 
opensips is behind a NAT, with callee, but the caller is outside the 
local network.



Can I proceed removing one Record-Route or it is a bad idea?


Any hint will be very helpful!


Best regards.


RODRIGO PIMENTA CARVALHO
Inatel Competence Center
Software
Ph: +55 35 3471 9200 RAMAL 979


___
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] opensips wss support

2016-01-12 Thread Eric Tamme
For wss to work, your site must be https, and your sip server must be 
wss.  You can not downgrade the connection anywhere.  Also if you are 
linking to sip.js, the url MUST ALSO BE https e.g:


src="https://cdn.rawgit.com/onsip/SIP.js/0.7.2/dist/sip-0.7.2.min.js 
https://cdn.rawgit.com/onsip/SIP.js/0.7.2/dist/sip-0.7.2.min.js>">



For 2.X you must use the new tls_mgm module as the cert management is 
now shared between tls and wss.


for example:

listen=wss:123.456.789.987:443
listen=tls:123.456.789.987:5061

loadmodule "tls_mgm.so"
loadmodule "proto_tls.so"
loadmodule "proto_wss.so"


modparam("tls_mgm", "certificate","/etc/letsencrypt/live/acme.com/cert.pem")
modparam("tls_mgm", 
"private_key","/etc/letsencrypt/live/acme.com/privkey.pem")



I am using sip.js 0.7.2 with latest master from opensips and doing full 
https + wss


-Eric


On 01/12/2016 02:54 PM, Tito Cumpen wrote:

Do Nguyen Ha,

I was getting errors about the ws destination being unencrypted when 
using sip.js.



Razvan or community,

What cert configuration does it utilize? does it take it from the tls 
configuration?


http://www.opensips.org/Documentation/Tutorials-TLS-2-1

In this tutorial I see the protocol being defined. Would these 
settings apply or would a respective proto_wss have to be provided in 
the config?



Thanks,
Tito

On Tue, Jan 5, 2016 at 7:17 AM, Do Nguyen Ha > wrote:


hi Tito

i did test the webrtc with chrome version 47. we only need to
setup web server with HTTPS only that point to jssip source code.
the jssip should works properly

there is no need wss on opensips server - just use ws on opensips

thank you

On Jan 5, 2016 5:53 PM, "Tito Cumpen" > wrote:

Hey Razvan,

Any updates on wss?

On Dec 7, 2015 12:35 PM, "Tito Cumpen" > wrote:

Hey Răzvan,

Any updates on this? Getuser media has been disabled when
using http and using https enforces wss on chrome.

Thanks,
Tito


On Fri, Nov 20, 2015 at 4:44 AM, Răzvan Crainea
> wrote:

Hi, Tito!

I am working on it. I have already started a local
branch and started coding, hopefully it will be public
by the end of the month.

Best regards,

Răzvan Crainea
OpenSIPS Solutions
www.opensips-solutions.com


On 11/19/2015 07:35 PM, Tito Cumpen wrote:

Razvan,


Is there currently a timeline for wss as of now? I
can aid in testing if needed.




On Wed, Nov 4, 2015 at 1:25 PM, Tito Cumpen
> wrote:

Razvan,


Thanks for the reply. Can't wait to try this
feature out.

On Tue, Nov 3, 2015 at 3:32 AM, Răzvan Crainea
> wrote:

Hi, Tito!

Yes, we have WSS support on top of our
priorities, and most likely will be released
with the next OpenSIPS 2.2.

Best regards,

Răzvan Crainea
OpenSIPS Solutions
www.opensips-solutions.com


On 10/16/2015 01:41 AM, Tito Cumpen wrote:

To opensips devs.


Are there any plans to support wss?
Currently chrome will not allow for an
unsecure websocket to be initiated when
using https. They also threaten to remove
getusermedia when using ws.


https://sites.google.com/a/chromium.org/dev/Home/chromium-security/deprecating-powerful-features-on-insecure-origins

Please advise. I am working on a project
that depends on this.

Thanks,
Tito


___
Users mailing list
Users@lists.opensips.org


Re: [OpenSIPS-Users] Can I use RTPEngine only for ICE(STUN/TURN) and DTLS only and not for relaying (bypassing) the media

If the conference bridge does not support DLTS-SRTP, as well as ICE and 
STUN, then you MUST relay the media through RTPEngine and convert it to 
plain RTP and relay to the conference bridge.


Also - I would suggest you try SIP.js isntead of JSSIP.  SIP.js is much 
more developed than JSSIP.


http://sipjs.com/

http://sipjs.com/guides/

https://github.com/onsip/sip.js

-Eric

On 01/05/2016 03:46 AM, suganthi karthick wrote:

Hi all,

We need to develop a WebRTC gateway with ICE,DTLS support and merge it 
to an existing SIP based conference bridge.


So, we decided to use openSIPS with RTPEngine for this purpose.

Here, we need to relay the SDP to the conference bridge manager and 
need to relay the media to the conference bridge through UDP sockets.


So we have a doubt whether we can use the RTPEngine just for ICE and 
DTLS only (because the existing conference bridge does not have 
support for ICE and DTLS) and bypass the media to the conference bridge?


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


Re: [OpenSIPS-Users] Does Opensips support secure websocket


WSS is currently in development

On 12/21/2015 08:29 PM, Do Nguyen Ha wrote:

Hi List


As now, the latest chrome version is only working on secure websocket

https://sites.google.com/a/chromium.org/dev/Home/chromium-security/deprecating-powerful-features-on-insecure-origins

Does the Opensips server support secure websocket??

If Opensips does support secure websocket, where do i find tutorial/Docs

Thank you


___
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] How to identify a 4xx, or 5xx, or 6xx SIP response in OpenSIPS script?


https://www.google.com/?gws_rd=ssl#q=opensips+response+status
...

http://www.opensips.org/Documentation/Script-CoreVar-2-2#toc73

...

if($rs~="20[0-9]")



On 11/06/2015 07:07 AM, Rodrigo Pimenta Carvalho wrote:



Hi OpenSIPS-users,


In the OpenSIPS script I can identify SIP requests, like 
is_method("INVITE") or is_method("BYE").



How to identify SIP responses, based on its codes that can be 4xx, or 
5xx, or 6xx?


For example, how to identify that occurred a SIP response with code 483?


I just need to know that a SIP INVITE didn't succeeded.


What could be a elegant way to detect that a SIP INVITE was not answered?



Best regards.


RODRIGO PIMENTA CARVALHO
Inatel Competence Center
Software
Ph: +55 35 3471 9200 RAMAL 979


___
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] What choise? MediaProxy module or RTPProxy module?

Mediaproxy and rtpproxy serve identical purposes.  They both can act as 
a relay to help relay media between clients on different NAT's. If you 
dont want to relay media when clients are behind the same nat - you must 
inspect the SDP on your proxy and chose not to use a media relay.


If you have clients behind 2 different NAT's it is generally not 
possible to pass media without using a relay server.


-Eric

On 10/15/2015 11:36 AM, Rodrigo Pimenta Carvalho wrote:



Hi.


Today I'm searching for a solution that allows me to use OpenSIPS, SIP 
over TCP, end-nodes behind NATs and direct media.



As someone pointed, I'm reading now about MediaProxy module.


However, if I'm right, by using MediaProxy I will get only media 
relay. That is, MediaProxy does only provide media relay. Am I right?



I need an way to implement direct media between the end-nodes, behind 
NATs. I want to avoid pass the media through the MediaProxy, due to 
performance reasons.



Should I give up using MediaProxy and move to RTPProxy? Would it be a 
good decision?



When it is better to use MediaProxy, and when it is better to use 
RTPProxy?



Any hint will be very helpful!


Best regards.



RODRIGO PIMENTA CARVALHO
Inatel Competence Center
Software
Ph: +55 35 3471 9200 RAMAL 979


___
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] What choise? MediaProxy module or RTPProxy module?

Mediaproxy does implement modern ICE/STUN however the number of clients 
that do this are very few.



On 10/15/2015 11:49 AM, Nabeel wrote:


Rtpproxy is only able to relay media (indirectly) through the server, 
so this can't achieve what you want.


Some users have said Mediaproxy has ICE capability. If that is so, 
then ICE should be able to negotiate direct communication between some 
clients.


On 15 Oct 2015 18:36, "Rodrigo Pimenta Carvalho" > wrote:



Hi.


Today I'm searching for a solution that allows me to use OpenSIPS,
SIP over TCP, end-nodes behind NATs and direct media.


As someone pointed, I'm reading now about MediaProxy module.


However, if I'm right, by using MediaProxy I will get only media
relay. That is, MediaProxy does only provide media relay. Am I right?


I need an way to implement direct media between the end-nodes,
behind NATs. I want to avoid pass the media through the
MediaProxy, due to performance reasons.


Should I give up using MediaProxy and move to RTPProxy? Would it
be a good decision?


When it is better to use MediaProxy, and when it is better to use
RTPProxy?


Any hint will be very helpful!


Best regards.



RODRIGO PIMENTA CARVALHO
Inatel Competence Center
Software
Ph: +55 35 3471 9200  RAMAL 979

___
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] What database table keeps the online users?


the location table

On 09/25/2015 08:27 AM, Rodrigo Pimenta Carvalho wrote:


Hi.


The command 'opensipsctl online' gives me who is online.

What is the database table that keeps the information about who is online?

I'm using SQLite and OpenSIPS 2.2.


Best regards.


RODRIGO PIMENTA CARVALHO
Inatel Competence Center
Software
Ph: +55 35 3471 9200 RAMAL 979


___
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] rtpproxy and parallel forking


Hi Pete,

To the best of my knowledge no rtp proxy: mediarelay, rtpengine, 
rtpproxy deals with forking and early media "well".  I believe this is 
more a failing of the 183 draft than anything else.  For example If I 
parallel fork a call to A and B, A sends 183 with an IVR but then B 
sends a 200 it is not clear what should be done - send a CANCEL to A and 
terminate any IVR?


RTPEngine does have ... sort of a work around in that it will allow you 
to specify whether or not to automatically "train" to a rtp source - 
this allows you to set up a call with early media to A, but then if B 
starts sending RTP to the same allotted ports RTPEngine will simply 
switch to those ports.  This has several security implications - 
Freeswitch has a similar feature which allows the rtp source to change 
within a given allotted "buffer".


To answer your question directly - no, I do not know of a way to do 
parallel forking with rtpproxy where one leg may send early media. We 
have experienced this as well when our customers put multiple pstn phone 
numbers in a ring group and have advised them that it will not work 
should one of those numbers provide early media.


Hope all is well,
-Eric



On 09/23/2015 02:44 AM, Pete Kelly wrote:
I am using rtpproxy with parallel fork and noticed some interesting 
behaviour (by rtpproxy).


If the INVITE is forked to 2 destinations (A and B), one of them (A) 
may send a 183 with media, meaning there is media being sent to the 
rtpproxy.


However if it is B that answers, rtpproxy will still only be set up to 
send and receive media to A, and will continue to do so which means 
there is no media on the call.


Reading the rtpproxy docs I think it is because of this:

"After the session has been created, the proxy listens on the port it 
has allocated for that session and waits for receiving at least one 
UDP packet from each of two parties participating in the call. Once 
such packet is received, the proxy fills one of two ip:port structures 
associated with each call with source ip:port of that packet"


Is there a known way round this issue, other than stopping A from 
sending media to rtpproxy or using late offer INVITEs?



___
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] reinviting to a recording server


Hi Tito,

I am curious about your situation because I am in the early stages of 
doing call recording as well.  I have some questions if you do not mind.


Are you doing DTLS-SRTP and or SDES-SRTP, or are you simply using ICE 
and rtpengine is a turn relay?  If you are not doing DTLS or ICE, 
perhaps you should look into rtpproxy which does have a recording 
feature.  If you are doing DTLS, is your recording server DTLS capable - 
and if so would you mind telling me what you are using for a recording 
server?


I am also curious how you are detecting a recording request - is it via 
DTMF, or some external signalling mechanism like clicking record on a 
web interface?  If you are doing DTMF detection, I'd like to know how 
you are doing it.


-Eric

What are you using as the recording server - also are you doing DTLS 
with rtpengine or just ICE, I would also like to know how you plan to 
trigger the detection of a recording request - are you


On 09/08/2015 12:27 PM, Tito Cumpen wrote:

Bogdan,

Thanks for your reply and questions. Currently call flows are using 
ICE and rtpengine as a turn relay and so there's nothing in between . 
In the case I get a request to begin recording I'd like to move the 
active call to a media server that bridges the call making it appear 
seamless for the caller and callee. If I trigger a RE-INVITE to both A 
and B with the media server address this should work but I am not sure 
how I can use opensips to send a blank invite on behalf of both A and 
B utilizing the same call id to media server then utilizing the reply 
as the RE-INVITE to A and B. In essence putting the media server in 
between without forcing a hang up.


Thanks,
Tito

On Mon, Sep 7, 2015 at 6:20 AM, Bogdan-Andrei Iancu 
> wrote:


Hi Tito,

Do you want to move on the call legs to the call recording server
(like to a VM or so) or while A talks to B, you want to have
something in the middle to record the call between those two parties ?

Best regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 03.09.2015 01:13, Tito Cumpen wrote:

Group,

Has anyone had experience reinviting an ongoing session between
two sip clients to a sip capable media server for call recording
purposes without dropping the ongoing call? Is the best practice
to use XML_RPCNG/fifo command and have opensips interact as 3rd
party call control. Or would the 3rd party entity need to hijack
the ongoing session  as pose as the remote party. I have a
requirement to record video and audio legs. The media server is
capable for recording these streams just need to find a way to do
this without dropping the call.


Thanks,
Tito


___
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] webrtc support

OpenSIPS can do webrtc (websockets)/standalone and no longer requires oversip. 

For a client library that supports websockets I recommend sip.js ( not jssip ).

-Eric



On Sep 5, 2015, 8:09 PM, at 8:09 PM, Terrance Devor  wrote:
>Hello Everyone,
>
>As the the server side is stable and far end nat is implemented, we are
>now
>looking to include the webrtc stack on top. From what I can see there
>will
>be:
>
>* OpenSIPS+OverSIP on the server side
>
>On the client side I am unclear on a few things. Is it best to go with
>jssip + sipml5 or pjsip with webrtc component (ie, csimple). What is
>your
>experience with attempting this stack. Anything proven to work and
>stable?
>
>Thanks in Advance,
>
>Nick.
>
>
>
>
>___
>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] webrtc support

Websockets support is only available in 2.X releases.

See my federated sip projection github, along with my kwickyconf project for an 
example webrtc implementation.

https://github.com/etamme/federated-sip

-Eric



On Sep 6, 2015, 8:33 AM, at 8:33 AM, Terrance Devor  wrote:
>Eric!
>
>That is great news! I did not really want oversip... Is this available
>on
>1.9 flavours or only in the 2.x
>revisions?
>
>I will now uninstall ruby and oversip from the ​server as I did not
>feel
>right having it there
>
>
>Terrance.
>
>
>
>
>___
>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] webrtc support

As i said Sip.js



On Sep 6, 2015, 9:00 AM, at 9:00 AM, Terrance Devor  wrote:
>I never felt right installing oversip... There is just not room for two
>SIP
>proxies in my world... ;)
>Thanks Eric!
>On the client side, anything proven for webrtc? Not too concerned with
>video but audio is what
>I am looking at.
>
>N
>
>​
>
>
>
>
>___
>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] webrtc support

That's the idea - Clone the repo and run with it!



On Sep 6, 2015, 9:36 AM, at 9:36 AM, Terrance Devor  wrote:
>Ooops sorry, I overlooked that you said that... If you don't mind, i'll
>pull parts of the conf
>from federated to get things up and going ;)​
>
>
>
>
>___
>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] 408 Request Timeout with UDP


http://www.opensips.org/html/docs/modules/devel/rr.html#id293868

On 08/25/2015 10:20 AM, Nabeel wrote:
Please show me an example of where / how to use record_route_preset() 
to add the FQDN.


On 25 August 2015 at 16:54, Bogdan-Andrei Iancu bog...@opensips.org 
mailto:bog...@opensips.org wrote:


Hi,

According to the RFC, in RR header can be IP or FQDN (any kind of
SIP URI). Even more, the best practice is to actually use IPs in
RR to be 100% sure that the following requests to hit exactly the
same box (if using FQDN, subject to DNS resolving, a different IP
may be lookup up later).

If you really want to put an IP there, use the
record_route_preset() function:
http://www.opensips.org/html/docs/modules/1.11.x/rr.html#id293864

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 25.08.2015 16:47, Nabeel wrote:

Currently, OpenSIPS is using the actual IP address in the
record-route URI, but I believe my SIP client needs the domain
name in the record-route instead.


For example, it should be:

Record-Route: sip:sipdomain.com
http://sipdomain.com;lr;nat=yes;did=29.3daff1f4


NOT:

Record-Route: sip:162.242.153.259;lr;nat=yes;did=29.3daff1f4



How can I make this change in the OpenSIPS config?

This should solve the problem because in a working setup
(different SIP server), the logs state /Resolving host address
'sipdomain.com http://sipdomain.com'/ and the record route URI
includes the domain name, but in the OpenSIPS setup the logs
state /Resolving host address '162.242.153.259'/ and the record
route URI contains the IP address.


On 24 August 2015 at 18:37, Nabeel nabeelshik...@gmail.com
mailto:nabeelshik...@gmail.com wrote:

Hi,

I see the cause now on the UAC side; I know it seems simple
to just add some DNS records to the server IP,  but I'm still
pondering on the best way to solve this and where exactly to
add the SRV records because:

1) I already have the SRV records set up on the actual
hostname / domain, hosted by a DNS service third party, which
is easier for me to maintain.  However the UAC seems to be
ignoring this.

2) I have used the same UAC with another server and did not
have to set up SRV on the actual server machine IP.

I'm not sure if this has anything to do with the OpenSIPS
config but I'll let you know if I solve it.

On 24 Aug 2015 17:56, Bogdan-Andrei Iancu
bog...@opensips.org mailto:bog...@opensips.org wrote:

Hi ,

So, is the problem solved (by your findings in the UAS
side) ?

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 24.08.2015 18:25, Nabeel wrote:

I just discovered that the SIP client logs show an error
message only on the recipient side, not on the caller's
side.  I missed this previously because the caller's
side log does not show any error:

java.lang.Exception: No DNS SRV or A results found
for: 162.242.153.259  (IP address of OpenSIPS server).


I have the SRV records set on the actual
hostname/domain, but it seems to be looking for SRV at
the actual IP address itself.

On 21 August 2015 at 17:57, Nabeel
nabeelshik...@gmail.com
mailto:nabeelshik...@gmail.com wrote:

The log doesn't show any errors when the Timeout
occurs, it only shows this:

opensips[1842]: ACC: call missed:

timestamp=1440174643;method=INVITE;from_tag=z9hG4bK04147190;to_tag=;call_id=424618310389@10.137.181.237
mailto:424618310389@10.137.181.237;code=408;reason=Request
Timeout 



This seems to occur sporadically; some calls connect
without problem but others don't; so perhaps it is a
genuine timeout... maybe it simply longer to connect
on some calls?


On 21 August 2015 at 17:46, Nabeel
nabeelshik...@gmail.com
mailto:nabeelshik...@gmail.com wrote:

Sorry to bring this up again, but I still get
the 408 Request Timeout on some calls.

Isn't there just a way to increase the request
timeout limit?

Here is the trace:

http://pastebin.com/jvCPGYDu

There is even an ACK in the trace after the
request timeout message, but the call doesn't
connect.

On 7 August 2015 at 18:10, Bogdan-Andrei Iancu

Re: [OpenSIPS-Users] [OpenSIPS-Devel] [RELEASE] OpenSIPS 2.1.1 is now available

Loading protocol modules is required,  It is not temporary.  As long as 
it is covered in the migration documentation I think that is reasonable.


I have updated the migration documentation to make it clearer that you 
must load proto_udp if you want to use UDP listeners.


see: http://www.opensips.org/Documentation/Migration-1-11-0-to-2-1-0

-Eric

On 08/24/2015 01:02 PM, Maxim Sobolev wrote:
No, we have not loaded it yet. Is it now always required? As I said my 
point here is not so much how to fix it, but the fact that Liviu 
Chircu said that loading such module is just a workaround and the 
proper fix would be applied before the 2.1 x release goes out. If it 
was decided that loading module is now the official way to go, then 
it should be reflected in the relnotes IMHO.


-Maxim

On Sat, Aug 22, 2015 at 11:18 AM, Bogdan-Andrei Iancu 
bog...@opensips.org mailto:bog...@opensips.org wrote:


Hi Maxim,

Do you load the proto_udp module ?

Regards,
Bogdan


Sent from Samsung Mobile


 Original message 
From: Maxim Sobolev
Date:22/08/2015 18:48 (GMT+02:00)
To: OpenSIPS devel mailling list
Cc: n...@lists.opensips.org
mailto:n...@lists.opensips.org,users@lists.opensips.org
mailto:users@lists.opensips.org, busin...@lists.opensips.org
mailto:busin...@lists.opensips.org
Subject: Re: [OpenSIPS-Devel] [RELEASE] OpenSIPS 2.1.1 is now
available

Hi Bogdan,

For some reason 2.1.x is still failing our voiptests travis run
with the following error when trying to run in the UDP-only mode:

Aug 22 15:32:00 [10854] ERROR:core:fix_all_socket_lists: listeners
found for protocol udp, but no module can handle it

Aug 22 15:32:00 [10854] ERROR:core:main: failed to initialize list
addresses

It was told on the mailing list before that it would be fixed
before the release:


http://opensips-open-sip-server.1449251.n2.nabble.com/Unable-to-start-opensips-2-1-1dev-in-UDP-only-mode-td7595563.html

So I guess that never happened. Could you guys look into it or at
least add some kind of errata or relnotes entry?

Thanks!

-Maxim


On Wed, Aug 19, 2015 at 11:03 AM, Bogdan-Andrei Iancu
bog...@opensips.org mailto:bog...@opensips.org wrote:

Hello everyone,

Minor version 2.1.1 is now available on branch 2.1. This is a
release bringing multiple and valuable fixes, a result of the
continues work of testing and fixing the revolutionary 2.1
version.

Please update as soon as possible as it worth it ! Download
the tarball with sources from :
http://opensips.org/pub/opensips/2.1.1/

RPM and DEB packages will be shortly available on the official
repositories, after the nightly builts.

There are hundreds of reports, tens of fixes and maybe several
hundreds of commits - all these are the result of the entire
OpenSIPS community - people testing, reporting and fixes. And
I want to thanks to all these people, to these OpenSIPS'ers !

Enjoy 2.1.1 !!

-- 
Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
http://www.opensips-solutions.com


___
Devel mailing list
de...@lists.opensips.org mailto:de...@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel




-- 
Maksym Sobolyev

Sippy Software, Inc.
Internet Telephony (VoIP) Experts
Tel (Canada): +1-778-783-0474 tel:%2B1-778-783-0474
Tel (Toll-Free): +1-855-747-7779 tel:%2B1-855-747-7779
Fax: +1-866-857-6942 tel:%2B1-866-857-6942
Web: http://www.sippysoft.com
MSN: sa...@sippysoft.com mailto:sa...@sippysoft.com
Skype: SippySoft




--
Maksym Sobolyev
Sippy Software, Inc.
Internet Telephony (VoIP) Experts
Tel (Canada): +1-778-783-0474
Tel (Toll-Free): +1-855-747-7779
Fax: +1-866-857-6942
Web: http://www.sippysoft.com
MSN: sa...@sippysoft.com mailto:sa...@sippysoft.com
Skype: SippySoft


___
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] 408 Request Timeout with UDP



http://www.opensips.org/html/docs/modules/devel/rr.html#id293868

On 08/25/2015 10:20 AM, Nabeel wrote:
Please show me an example of where / how to use record_route_preset() 
to add the FQDN.
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] extension status monitoring


Hey Sammy,

I would suggest you use a standard sip client :D

We at OnSIP maintain sip.js http://sipjs.com/, a javascript sip 
signaling library which happens to have full RFC6665 support for 
subscriptions.  So you can simply create a UA in the browser and 
subscriber for the presence of as many aor's as you want.


Hope that helps.

-Eric

On 08/17/2015 09:22 AM, SamyGo wrote:

So Eric,

Time and over again, while looking for best way for this, my eyes keep 
getting stuck at PUA_MI module 
[http://www.opensips.org/html/docs/modules/2.1.x/pua_mi.html]


The module you mentioned I used this for regular presence scenario for 
phones to know which other extension is online/offline.


PUA_MI module on the other hand seems to say exactly what we're 
talking about here, that is, have an external application possibly 
web-server/perl-script/java web applet SUBSCRIBE to user extensions 
and be notified when it is On/Off-line.


Question:
1- Any example on how to use this ? if anyone be generous to share.

Thanks,
Sammy



On Mon, Aug 17, 2015 at 11:12 AM, Eric Tamme e...@uphreak.com 
mailto:e...@uphreak.com wrote:


I would suggest using a presence based option and utilizing the
pua_usrloc module for pushing state updates into the presence server.

http://www.opensips.org/html/docs/modules/2.1.x/pua_usrloc.html

-Eric


On 08/17/2015 09:10 AM, SamyGo wrote:

Hi Bogdan,

Can you recommend this approach for a huge number of ul records ?
Is there any better approach in your opinion ?

I Push Registering Users into Redis from cfg file, and on
un-registering delete them from redis List of online users. This
wont give me accurate results but I believe much less load on
OpenSIPS.

Then for accurate results I created script utilizing the mi_http
module to reconcile with Redis and purge any dead entries, this
is done after 5~10 minutes interval.

I just want to know if there is any other approach to this ?

Best Regards,
Sammy




On Mon, Aug 17, 2015 at 5:42 AM, Bogdan-Andrei Iancu
bog...@opensips.org mailto:bog...@opensips.org wrote:

Hi Julian,

The MI command ul_dump gives you the registration status
for all users:
http://www.opensips.org/html/docs/modules/1.11.x/usrloc.html#id294959

You can trigger this command via the MI interface :
http://www.opensips.org/Documentation/Interface-MI-1-11
where you have several protocols/backends to communicate with
OpenSIPS.

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 17.08.2015 08:14, Julian Kay wrote:


Hi;

I'm looking for information on monitoring extension status
on phones registered with OpenSIPS.

I'm looking into interfacing a java web applet to OpenSIPS.

If anyone knows where I may find helpful info I would
appreciate it.

Thx!

JK



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



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




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



___
Users mailing list
Users@lists.opensips.org mailto: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] extension status monitoring

I would suggest using a presence based option and utilizing the 
pua_usrloc module for pushing state updates into the presence server.


http://www.opensips.org/html/docs/modules/2.1.x/pua_usrloc.html

-Eric

On 08/17/2015 09:10 AM, SamyGo wrote:

Hi Bogdan,

Can you recommend this approach for a huge number of ul records ? Is 
there any better approach in your opinion ?


I Push Registering Users into Redis from cfg file, and on 
un-registering delete them from redis List of online users. This wont 
give me accurate results but I believe much less load on OpenSIPS.


Then for accurate results I created script utilizing the mi_http 
module to reconcile with Redis and purge any dead entries, this is 
done after 5~10 minutes interval.


I just want to know if there is any other approach to this ?

Best Regards,
Sammy




On Mon, Aug 17, 2015 at 5:42 AM, Bogdan-Andrei Iancu 
bog...@opensips.org mailto:bog...@opensips.org wrote:


Hi Julian,

The MI command ul_dump gives you the registration status for all
users:
http://www.opensips.org/html/docs/modules/1.11.x/usrloc.html#id294959

You can trigger this command via the MI interface :
http://www.opensips.org/Documentation/Interface-MI-1-11
where you have several protocols/backends to communicate with
OpenSIPS.

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 17.08.2015 08:14, Julian Kay wrote:


Hi;

I'm looking for information on monitoring extension status on
phones registered with OpenSIPS.

I'm looking into interfacing a java web applet to OpenSIPS.

If anyone knows where I may find helpful info I would appreciate it.

Thx!

JK



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



___
Users mailing list
Users@lists.opensips.org mailto: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] Where can I find an introductory manual/tutorial/guide showing how to replace MySQL by SQLite?

I know of no guide - but its pretty strait forward.  There are schema 
files for sqlite in the scripts folder.  Then just pass an sqlite 
modparam to your modules vs. mysql.


You can see my config for an example

https://github.com/etamme/federated-sip/blob/master/core/opensips.cfg.erb

-Eric


On 07/16/2015 08:52 AM, Rodrigo Pimenta Carvalho wrote:


Hi.


Where can I find an introductory manual/tutorial/guide showing how to 
replace MySQL by SQLite, in OpenSIPS?



Regards.


RODRIGO PIMENTA CARVALHO
Inatel Competence Center
Software
Ph: +55 35 3471 9200 RAMAL 979   (Brasil)


___
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] SQLIte in stable releases?

SQLite is only available as of 2.1 to the best of my knowledge - it is 
not available in any 1.X release.  I am running on master (2.2)


-Eric

On 07/16/2015 11:08 AM, Rodrigo Pimenta Carvalho wrote:


Hi Eric.


Are you using SQLite in development version or in a previous version 
(stable release)?



Thanks.


RODRIGO PIMENTA CARVALHO
Inatel Competence Center
Software
Ph: +55 35 3471 9300 (Brasil)

*De:* users-boun...@lists.opensips.org 
users-boun...@lists.opensips.org em nome de Eric Tamme 
e...@uphreak.com

*Enviado:* quinta-feira, 16 de julho de 2015 12:01
*Para:* OpenSIPS users mailling list
*Assunto:* Re: [OpenSIPS-Users] Where can I find an introductory 
manual/tutorial/guide showing how to replace MySQL by SQLite?
I know of no guide - but its pretty strait forward.  There are schema 
files for sqlite in the scripts folder.  Then just pass an sqlite 
modparam to your modules vs. mysql.


You can see my config for an example

https://github.com/etamme/federated-sip/blob/master/core/opensips.cfg.erb

-Eric


On 07/16/2015 08:52 AM, Rodrigo Pimenta Carvalho wrote:


Hi.


Where can I find an introductory manual/tutorial/guide showing how to 
replace MySQL by SQLite, in OpenSIPS?



Regards.


RODRIGO PIMENTA CARVALHO
Inatel Competence Center
Software
Ph: +55 35 3471 9200 RAMAL 979   (Brasil)


___
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] OpenSIPS and MySQL embedded. Is it good?


I use sqlite specifically to avoid the memory overhead of MySQL

On 07/16/2015 11:57 AM, Rodrigo Pimenta Carvalho wrote:


Hi.


I'm following the video tutorial about OpenSIPS kick start.

The database considered is MySQL.


What about embed OpenSIPS + its MySQL in a ARM Cortex A9 (256 MByte of 
RAM)? What about use of memory?



P.S.: I'm not worried about performance, because my project will be a 
video door bell with only 5 users registered.



Any hint about memory use will be very helpful!


Thanks a lot!


RODRIGO PIMENTA CARVALHO
Inatel Competence Center
Software
Ph: +55 35 3471 9200 RAMAL 979 (Brasil)


___
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] Is there a planned date to release version 2.2 as stable?


2.1 is stable and has sqlite support - no need to use 2.2 right now.

On 07/16/2015 12:23 PM, Rodrigo Pimenta Carvalho wrote:



Hi.


Is there already a schedule date to release version 2.2 as stable release?

Maybe it will occur before the ending of my current project with 
OpenSIPS and in this case I could use the HEAD from now on.



Thanks.



RODRIGO PIMENTA CARVALHO
Inatel Competence Center
Software
Ph: +55 35 3471 9200 RAMAL 979(Brasil)


___
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] Transparent Auth with WebRTC

just t_relay the request to your other server... OpenSIPS wont 
automatically challenge anything


On 06/24/2015 07:22 AM, Satish Patel wrote:

All,


I have special requirement which is little odd,  I want to use WebRTC 
with Opensips but all REGISTER process will done by other SIP server,


Example:

[UA][WebRTC-Opensips]---[Asterisk/Freeswitch] 




UA will use WebRTC of Opensips but opensips forward all REGISTER 
request to Asterisk/Freeswitch and user will authenticate their... In 
short Opensips will just Proxy Auth request.


How it will be possible?


___
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] OpenSIPS resolving DNS SRV records

Follow up to the group:   the domain he is trying to reach only has SRV 
records for TLS and TCP, so he has to append ;transport=tcp to his 
request URI to force a TCP SRV lookup in opensips.


On 05/22/2015 01:34 PM, Eric Tamme wrote:
OpenSIPS follows RFC3263, see sip_resolvehost() in resolve.c for more 
details.  If you send a a request that is not a sips uri, to a plain 
domain with no transport parameter or port, opensips will do a udp SRV 
lookup on the domain.


Can you provide the actual domain please? If you cant - do a srv 
lookup on it to verify it actually has an SRV.


dig _sip._udp.blabla.webex.com SRV


On 05/22/2015 01:27 PM, Duane Larson wrote:
OpenSIPS does not appear to be resolving the SIP address of a domain 
that is provided by WebEx.com.  When I dial 
dlar...@blahblah.webex.com mailto:dlar...@blahblah.webex.com the 
call gets forwarded to the IP address of the webserver but it really 
should be going to the IP address from an SRV record.  I believe the 
OpenSIPS default is to resolve DNS and also SRV records correct?  I 
wasn't sure if the issue might be because the domain is 
BlahBlah.webex.com http://BlahBlah.webex.com but I don't have any 
compare since all the test domains I call (200...@login.zipdx.com 
mailto:200...@login.zipdx.com, telephr...@voip.telephreak.org 
mailto:telephr...@voip.telephreak.org) have the same IP for the web 
as it does for the sip.





debug=3
log_stderror=no
log_facility=LOG_LOCAL0

fork=yes
children=4

/* uncomment the following lines to enable debugging */
#debug=6
#fork=no
#log_stderror=yes

/* uncomment the next line to enable the auto temporary blacklisting of
   not available destinations (default disabled) */
#disable_dns_blacklist=no

/* uncomment the next line to enable IPv6 lookup after IPv4 dns
   lookup failures (default disabled) */
#dns_try_ipv6=yes

/* comment the next line to enable the auto discovery of local aliases
   based on revers DNS on IPs */
auto_aliases=no


listen=udp:eth0:5060   # CUSTOMIZE ME


disable_tcp=yes

#disable_tls=yes


___
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] OpenSIPS resolving DNS SRV records

OpenSIPS follows RFC3263, see sip_resolvehost() in resolve.c for more 
details.  If you send a a request that is not a sips uri, to a plain 
domain with no transport parameter or port, opensips will do a udp SRV 
lookup on the domain.


Can you provide the actual domain please? If you cant - do a srv lookup 
on it to verify it actually has an SRV.


dig _sip._udp.blabla.webex.com SRV


On 05/22/2015 01:27 PM, Duane Larson wrote:
OpenSIPS does not appear to be resolving the SIP address of a domain 
that is provided by WebEx.com.  When I dial dlar...@blahblah.webex.com 
mailto:dlar...@blahblah.webex.com the call gets forwarded to the IP 
address of the webserver but it really should be going to the IP 
address from an SRV record. I believe the OpenSIPS default is to 
resolve DNS and also SRV records correct?  I wasn't sure if the issue 
might be because the domain is BlahBlah.webex.com 
http://BlahBlah.webex.com but I don't have any compare since all the 
test domains I call (200...@login.zipdx.com 
mailto:200...@login.zipdx.com, telephr...@voip.telephreak.org 
mailto:telephr...@voip.telephreak.org) have the same IP for the web 
as it does for the sip.





debug=3
log_stderror=no
log_facility=LOG_LOCAL0

fork=yes
children=4

/* uncomment the following lines to enable debugging */
#debug=6
#fork=no
#log_stderror=yes

/* uncomment the next line to enable the auto temporary blacklisting of
   not available destinations (default disabled) */
#disable_dns_blacklist=no

/* uncomment the next line to enable IPv6 lookup after IPv4 dns
   lookup failures (default disabled) */
#dns_try_ipv6=yes

/* comment the next line to enable the auto discovery of local aliases
   based on revers DNS on IPs */
auto_aliases=no


listen=udp:eth0:5060   # CUSTOMIZE ME


disable_tcp=yes

#disable_tls=yes


___
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] In dialog failure route

As I said, failure route is transaction based, so any transaction 
failure will trigger it.  see 
http://www.opensips.org/Documentation/Script-Routes-2-2#toc3


On 04/24/2015 11:57 AM, Podrigal, Aron wrote:
The problem is that there is no response coming back, media server 1 
crashed.


On Fri, Apr 24, 2015 at 1:54 PM, Eric Tamme e...@uphreak.com 
mailto:e...@uphreak.com wrote:


failure_route is called based on a transaction failure - so even
if the request was in dialog, as long as you t_relay() it and it
gets a response code =300 failure route will be called on receipt
of the response.

-Eric


On 04/24/2015 11:22 AM, Podrigal, Aron wrote:

Hi,

What is the right way to handle failures for sequential requests.
So if Media Server #1 hangs, I wanna create a new transaction
route to Media Server #2.

-- 
Aron Podrigal

-
//Be happy :-)


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



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




--
Aron Podrigal
-
//Be happy :-)


___
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] In dialog failure route

failure_route is called based on a transaction failure - so even if the 
request was in dialog, as long as you t_relay() it and it gets a 
response code =300 failure route will be called on receipt of the response.


-Eric

On 04/24/2015 11:22 AM, Podrigal, Aron wrote:

Hi,

What is the right way to handle failures for sequential requests. So 
if Media Server #1 hangs, I wanna create a new transaction route to 
Media Server #2.


--
Aron Podrigal
-
//Be happy :-)


___
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] [OpenSIPS-Devel] Contest and prices - OpenSIPS 2.1 testing

the person who reports the ugliest bug will get an official OpenSIPS 
T-shirt 
http://farm4.staticflickr.com/3947/15725260732_826db90980_z.jpg along 
with our gratitude


On 03/24/2015 11:19 AM, Satish Patel wrote:
Wow! so every person will get T-shirt who reported bug or one person 
among all bug reporter?




On Tue, Mar 24, 2015 at 1:06 PM, Răzvan Crainea raz...@opensips.org 
mailto:raz...@opensips.org wrote:


Hi, All!

Hurry up, we already have three bugs reported[1] :).

[1] http://www.opensips.org/Community/BugHuntContest

Cheers,

Răzvan Crainea
OpenSIPS Solutions
www.opensips-solutions.com http://www.opensips-solutions.com

On 03/23/2015 08:38 PM, Bogdan-Andrei Iancu wrote:

Hi all,

Starting this week and all the way to the date of 2.1 stable
release (from RC to GA), we will open a weekly contest that
will help with the testing :).

What is the contest for ? For the best bug found :). Whoever
finds the uglies bug in 2.1-rc will get an official OpenSIPS
T-shirt, like these guys did :) :
http://farm4.staticflickr.com/3947/15725260732_826db90980_z.jpg

So, we pay you for for finding the best bug in OpenSIPS -
attractive job ??

CONTEST IS ON ! And we already have a strong candidate for
this week.

Best Regards,



___
Users mailing list
Users@lists.opensips.org mailto: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] How to handle Event: dialog


Use the presence module along with the dialog event module.

On 03/20/2015 08:43 AM, Игорь Павлов wrote:

Hi, list.

I have a problem with presence module: most devices, that we uses, 
sends Event: dialog for subscribe to BLF, but opensips answer for 
this like:


192.168.1.122.5062   192.168.1.7.5060: SIP, length: 427
SUBSCRIBE sip:1002@ 192.168.1.7 SIP/2.0
.
Accept: application/dialog-info+xml
User-: Yealink SIP-T20P 7.72.14.6
*Event: dialog*

192.168.1.7.5060  192.168.1.122.5062: SIP, length: 377
SIP/2.0 489 Bad Event

CSeq: 1 SUBSCRIBE
Allow-Events: message-summary, *dialog;sla*, presence.winfo, 
presence




--

С уважением,
Павлов Игорь
RingCloud


___
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] 500 Server error in REGISTER message


Ah - nm, i see it in an sl callback

Mar 17 22:19:01 sip2 /usr/local/opensips-2-head/sbin/opensips[31285]: 
DBG:sl:sl_reply_error: error text is Server error occurred (1/SL)

... so are you doing anything statless in your config?  This looks like it 
might be siptrace related.



On 03/17/2015 11:11 AM, Eric Tamme wrote:

I do not see the 500 from opensips in this log.

On 03/17/2015 11:07 AM, Satish Patel wrote:

Here is the debug 4 logs http://pastebin.com/CdPxFrNp

173.48.111.111  - UA
188.79.242.164  - OpenSIPs

On Tue, Mar 17, 2015 at 12:45 PM, Eric Tamme e...@uphreak.com 
mailto:e...@uphreak.com wrote:


This is a ladder diagram, not a sip trace.  A ladder diagram is
not useful in this case.

Turn your debug up to 4, capture the log of the register/500
happening and submit a link to the pastebin. DO NOT paste the
contents into an email.


___
Users mailing list
Users@lists.opensips.org mailto: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


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


Re: [OpenSIPS-Users] 500 Server error in REGISTER message

You are missing the left curly brace after your if statment im 
suprised your script runs at all


On 03/17/2015 11:48 AM, Satish Patel wrote:

Eric,

I found what was the issue, I sent you REGISTER method snippet before, 
if you look at it, If remove/comment out sl_reply_error();  line in 
following code, it stopped sending 500 Error. Very interesting..  Do 
you think i need to put that in curly braces { } ?


 if (!save(location))
xlog(L_ERR, Saving contact failed - M=$rm 
RURI=$ru F=$fu T=$tu IP=$si ID=$ci\n);

sl_reply_error();

exit;
}


On Tue, Mar 17, 2015 at 1:27 PM, Satish Patel satish@gmail.com 
mailto:satish@gmail.com wrote:


Even after disabled siptrace it is happening. no luck :(

On Tue, Mar 17, 2015 at 1:20 PM, Eric Tamme e...@uphreak.com
mailto:e...@uphreak.com wrote:

Turn of your sip tracing and see if the issue occurs. Its
running some sl_callbacks (which i assume are realated to
siptrace).



On 03/17/2015 11:19 AM, Satish Patel wrote:

I haven't done anything related stateless.  also in my
config, i haven't manually specify that 500 error anywhere
where i can doubt.  I don't know from where it is coming.
must be internally from opensips.

On Tue, Mar 17, 2015 at 1:14 PM, Eric Tamme e...@uphreak.com
mailto:e...@uphreak.com wrote:

Ah - nm, i see it in an sl callback

Mar 17 22:19:01 sip2 
/usr/local/opensips-2-head/sbin/opensips[31285]: DBG:sl:sl_reply_error: error 
text is Server error occurred (1/SL)

... so are you doing anything statless in your config?  This looks 
like it might be siptrace related.



On 03/17/2015 11:11 AM, Eric Tamme wrote:

I do not see the 500 from opensips in this log.

On 03/17/2015 11:07 AM, Satish Patel wrote:

Here is the debug 4 logs http://pastebin.com/CdPxFrNp

173.48.111.111  - UA
188.79.242.164  - OpenSIPs

On Tue, Mar 17, 2015 at 12:45 PM, Eric Tamme
e...@uphreak.com mailto:e...@uphreak.com wrote:

This is a ladder diagram, not a sip trace.  A
ladder diagram is not useful in this case.

Turn your debug up to 4, capture the log of the
register/500 happening and submit a link to the
pastebin.  DO NOT paste the contents into an email.


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




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




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



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




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



___
Users mailing list
Users@lists.opensips.org mailto: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] 500 Server error in REGISTER message

Turn of your sip tracing and see if the issue occurs.  Its running some 
sl_callbacks (which i assume are realated to siptrace).



On 03/17/2015 11:19 AM, Satish Patel wrote:
I haven't done anything related stateless.  also in my config, i 
haven't manually specify that 500 error anywhere where i can doubt.  I 
don't know from where it is coming. must be internally from opensips.


On Tue, Mar 17, 2015 at 1:14 PM, Eric Tamme e...@uphreak.com 
mailto:e...@uphreak.com wrote:


Ah - nm, i see it in an sl callback

Mar 17 22:19:01 sip2 /usr/local/opensips-2-head/sbin/opensips[31285]: 
DBG:sl:sl_reply_error: error text is Server error occurred (1/SL)

... so are you doing anything statless in your config?  This looks like it 
might be siptrace related.



On 03/17/2015 11:11 AM, Eric Tamme wrote:

I do not see the 500 from opensips in this log.

On 03/17/2015 11:07 AM, Satish Patel wrote:

Here is the debug 4 logs http://pastebin.com/CdPxFrNp

173.48.111.111  - UA
188.79.242.164  - OpenSIPs

On Tue, Mar 17, 2015 at 12:45 PM, Eric Tamme e...@uphreak.com
mailto:e...@uphreak.com wrote:

This is a ladder diagram, not a sip trace.  A ladder diagram
is not useful in this case.

Turn your debug up to 4, capture the log of the register/500
happening and submit a link to the pastebin.  DO NOT paste
the contents into an email.


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




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




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



___
Users mailing list
Users@lists.opensips.org mailto: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] 500 Server error in REGISTER message

because the if statment does not evailuate true, so it skips the line 
immediately after it.  This is how unbraced functions work.  it then 
continues executing after and sends the error.


On 03/17/2015 12:10 PM, Satish Patel wrote:
Sorry forgot to post link 
http://lists.opensips.org/pipermail/users/2012-August/022705.html


also interesting thing, I am not seeing xlog in opensips.log, why?


 if ( 0 ) setflag(TCP_PERSISTENT);

if (!save(location))
xlog(Saving contact failed - M=$rm RURI=$ru 
F=$fu T=$tu IP=$si ID=$ci\n);

sl_reply_error();

exit;
}



On Tue, Mar 17, 2015 at 2:09 PM, Satish Patel satish@gmail.com 
mailto:satish@gmail.com wrote:


I have check on book example and it doesn't have any brace also.
just wonder!

Look at this link, someone posted link here, even they don't have
curly brace


On Tue, Mar 17, 2015 at 1:54 PM, Eric Tamme e...@uphreak.com
mailto:e...@uphreak.com wrote:

You are missing the left curly brace after your if
statment im suprised your script runs at all


On 03/17/2015 11:48 AM, Satish Patel wrote:

Eric,

I found what was the issue, I sent you REGISTER method
snippet before, if you look at it, If remove/comment out
sl_reply_error();  line in following code, it stopped
sending 500 Error. Very interesting..  Do you think i need to
put that in curly braces { } ?

 if (!save(location))
xlog(L_ERR, Saving contact failed - M=$rm RURI=$ru F=$fu
T=$tu IP=$si ID=$ci\n);
sl_reply_error();

exit;
}


On Tue, Mar 17, 2015 at 1:27 PM, Satish Patel
satish@gmail.com mailto:satish@gmail.com wrote:

Even after disabled siptrace it is happening. no luck :(

On Tue, Mar 17, 2015 at 1:20 PM, Eric Tamme
e...@uphreak.com mailto:e...@uphreak.com wrote:

Turn of your sip tracing and see if the issue
occurs.  Its running some sl_callbacks (which i
assume are realated to siptrace).



On 03/17/2015 11:19 AM, Satish Patel wrote:

I haven't done anything related stateless.  also
in my config, i haven't manually specify that 500
error anywhere where i can doubt.  I don't know from
where it is coming. must be internally from opensips.

On Tue, Mar 17, 2015 at 1:14 PM, Eric Tamme
e...@uphreak.com mailto:e...@uphreak.com wrote:

Ah - nm, i see it in an sl callback

Mar 17 22:19:01 sip2 
/usr/local/opensips-2-head/sbin/opensips[31285]: DBG:sl:sl_reply_error: error 
text is Server error occurred (1/SL)

... so are you doing anything statless in your config?  
This looks like it might be siptrace related.



On 03/17/2015 11:11 AM, Eric Tamme wrote:

I do not see the 500 from opensips in this log.

On 03/17/2015 11:07 AM, Satish Patel wrote:

Here is the debug 4 logs
http://pastebin.com/CdPxFrNp

173.48.111.111  - UA
188.79.242.164  - OpenSIPs

On Tue, Mar 17, 2015 at 12:45 PM, Eric Tamme
e...@uphreak.com mailto:e...@uphreak.com
wrote:

This is a ladder diagram, not a sip
trace.  A ladder diagram is not useful in
this case.

Turn your debug up to 4, capture the log
of the register/500 happening and submit a
link to the pastebin.  DO NOT paste the
contents into an email.


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




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




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



___
Users mailing list
Users@lists.opensips.org
mailto:Users@lists.opensips.org

Re: [OpenSIPS-Users] 500 Server error in REGISTER message

This is a ladder diagram, not a sip trace.  A ladder diagram is not 
useful in this case.


Turn your debug up to 4, capture the log of the register/500 happening 
and submit a link to the pastebin.  DO NOT paste the contents into an email.


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


Re: [OpenSIPS-Users] 500 Server error in REGISTER message


I do not see the 500 from opensips in this log.

On 03/17/2015 11:07 AM, Satish Patel wrote:

Here is the debug 4 logs http://pastebin.com/CdPxFrNp

173.48.111.111  - UA
188.79.242.164  - OpenSIPs

On Tue, Mar 17, 2015 at 12:45 PM, Eric Tamme e...@uphreak.com 
mailto:e...@uphreak.com wrote:


This is a ladder diagram, not a sip trace.  A ladder diagram is
not useful in this case.

Turn your debug up to 4, capture the log of the register/500
happening and submit a link to the pastebin.  DO NOT paste the
contents into an email.


___
Users mailing list
Users@lists.opensips.org mailto: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] SBC for Kamailio or Metaswitch


This is not a mailing list for Kamailio.


On 03/16/2015 10:47 AM, malik sherif wrote:


Hello,
I have configured Kamailio server and sisp on the same machine. Is 
their a link as to how to configure sips as SBC for Kamailio serer or 
Metaswitch?

Thanks for you help






___
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] orchestration.

There are many ways of building scalable signaling networks with 
OpenSIPS, how you do it depends on your needs, and your capability.


-Eric

On 03/16/2015 10:53 AM, Tito Cumpen wrote:

Terrance,


Thanks for your two cents . The reason I ask is because I am hearing 
of aware of standards being drafted in this emerging need. I also need 
to weight the capabilities of opensips over sippservlets which by the 
way has some pretty effective ways of auto scaling :


https://www.youtube.com/watch?v=Tsa0QgffZ28

On Thu, Mar 12, 2015 at 6:00 PM, Terrance Devor ter.de...@gmail.com 
mailto:ter.de...@gmail.com wrote:


1) What is the best way?
- Finite number of ways to cook a potato
2) Is there a way?
If there is a will... :)

Terrance.
​

___
Users mailing list
Users@lists.opensips.org mailto: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] Planning OpenSIPS 2.1 release - heads up

Im not sure what you mean by supports ICE.  RTPEngine can inject 
itself as ice relay, or host, candidate for all streams, regardless of 
the number of streams in the SDP.


I am working on a tutorial on how to use rtpengine with webrtc and 
non-webrtc clients.  In the mean time you can check my github wiki for info


https://github.com/etamme/federated-sip/wiki

Or look at the rtpengine github https://github.com/sipwise/rtpengine for 
documentation.



-Eric

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


Re: [OpenSIPS-Users] OpenSIPS and Apple Push Notification

I would forget about push notifications.  Just set a short expiration so 
that the device will renew its registration frequently.  If you are 
using tcp then you should look at RFC5626 for SIP outbound information.


On 03/04/2015 09:45 AM, leo wrote:

I just need the last help:
- considering that the UAC has an unlimited expiry (so the lookup will
return 1)
- my actual configuration is trying to send the INVITE to the contact in the
DB but it will timeout (because the UAC is not connected anymore but it has
unlimited expiry).
- after this time out i should send the PN and wait for the UAC to
re-register and then establish a new INVITE with this new info.

Could you give me a couple of ideas on how to implement this?

Thanks a lot!

Leo



--
View this message in context: 
http://opensips-open-sip-server.1449251.n2.nabble.com/OpenSIPS-and-Apple-Push-Notification-tp7591783p7595598.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.

___
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] Pike question about flood attack

The automatic mode is much more efficient.  It triggers in pre-recieve 
callbacks before any message parsing is even done.  In automatic mode 
you would simply say if(ip==trusted){drop;} in your pike route block.


Automatic mode will also trigger on replies.

Basically - you should use automatic mode and not be concerned about the 
performance as it is definitely faster than manual mode.


-Eric


On 02/19/2015 01:49 AM, John Nash wrote:
As per documentation pike module can be implemented manual as well as 
automatic. The way I understand it manual mode will not monitor (Not 
even queue) packets for which pike_check_req() is not called and it 
gives performance advantage as we can skip this call for trusted IPs.


First of all is my understanding correct? Or each request packet will 
be queued but we will know if a source IP exceeds threshold only when 
we call pike_check_req()?



Second thing is what about replies, is there any way to monitor in 
manual mode?


I really like automatic mode but only am trying  to avoid it because I 
do not want trusted sources to be monitored.





___
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] Opensips + RtpProxy: media stream timed out while starting

It sounds like your ACK is possible not matching the transaction and 
never routing, then the stream is shutdown based on timeout.


Check your signaling to see if it looks like your ACK/200 are being 
retransmitted.


rtpproxy is ... pretty dumb it ... all it does is forward packets.  It 
doesnt care if they are encrypted or not.


-Eric

On 02/13/2015 11:27 AM, Semen Golubcov wrote:

Hello! I'm using the latest opensips with latest rtpproxy :

Basic version: 20040107
Extension 20050322: Support for multiple RTP streams and MOH
Extension 20060704: Support for extra parameter in the V command
Extension 20071116: Support for RTP re-packetization
Extension 20071218: Support for forking (copying) RTP stream
Extension 20080403: Support for RTP statistics querying
Extension 20081102: Support for setting codecs in the update/lookup 
command

Extension 20081224: Support for session timeout notifications
Extension 20090810: Support for automatic bridging

i did setup the secure tls connection between clients in the opensips, 
it uses the client certificate verification. But the interaction with 
rtpproxy is getting messed up somehow. I'm using the blink softphone 
to test on. So i have 2 accounts: bob and alex. When i do *call* *bob* 
*from* *alex* i get this kind of behaviour in the *bob's softphone*:


​So it hangs on starting media, but in the same time the actual 
connection is established, me and my partner can hear each other and 
we can talk perfectly, so i assume the actual stream is allright. It 
hangs for exactly 15 seconds then we get:


​

*media stream timed out while starting in the bob's softphone*.

*On the alex softphone side*:


​

 call ended by remote.

The icon indicating that rtp stream is encrypted is not shown on bob's 
side, but the stream is working. I tried to disable tls, and use plain 
tcp, and it's working fine without tls, call is not getting stuck and 
automatically terminate.


My rtpproxy is running like so:

rtpproxy -u rtpproxy -s udp:localhost:12221

And my opensips config is generated by osipconfig utility (i didn't 
modify the routes at all)  see attached opensips.cfg


I looked up the syslog for rtpproxy entries, apparently there is no 
entries from rtpproxy or opensips with any error, other than


Feb 13 04:00:24 user /usr/local/sbin/opensips[17535]: 
ERROR:rtpproxy:force_rtp_proxy: Unable to parse body


Feb 13 04:00:22 user /usr/local/sbin/opensips[17535]: 
DBG:tm:matching_3261: RFC3261 transaction matching failed


I hope someone can help me to solve this problem, i'am hanging on this 
for  a week. If necessary i can post the syslog and blink softphone 
sip traces, of our test conversation. Maybe the problem is with ACK?



___
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] Opensips + RtpProxy: media stream timed out while starting

The message about late back means it is probably not routing.

Install ngrep and run

ngrep -qtd any -W byline port 5060

On OpenSIPS during the call.  Paste the output to a gist on gist.github.com and 
include the link in your next reply.

-Eric



On Feb 13, 2015, 6:19 PM, at 6:19 PM, Semen Golubcov thegol...@gmail.com 
wrote:
Hello. Should i answer you here or send my replies to the user list?

I looked up the sip trace and syslog, apparently there are no
retransmissions i think and there is no messages about no matching
transaction exists.

Feb 14 01:19:43 martin /usr/local/sbin/opensips[14061]:
DBG:core:parse_msg:  method:  ACK
Feb 14 01:19:43 martin /usr/local/sbin/opensips[14061]:
DBG:core:parse_msg:  uri: sip:53049...@92.xx.xx.xx(my_Public_ip
(client) ):49190;transport=tls
Feb 14 01:19:43 martin /usr/local/sbin/opensips[14061]:
DBG:core:parse_msg:  version: SIP/2.0
Feb 14 01:19:43 martin /usr/local/sbin/opensips[14061]:
DBG:core:parse_headers: flags=2
Feb 14 01:19:43 martin /usr/local/sbin/opensips[14061]:
DBG:core:parse_via_param: found param type 235, rport = n/a;
state=6
Feb 14 01:19:43 martin /usr/local/sbin/opensips[14061]:
DBG:core:parse_via_param: found param type 232, branch =
z9hG4bKPjb29aaf78cf594541aeb97e0b801a4075; state=6
Feb 14 01:19:43 martin /usr/local/sbin/opensips[14061]:
DBG:core:parse_via_param: found param type 237, alias = n/a;
state=16
Feb 14 01:19:43 martin /usr/local/sbin/opensips[14061]:
DBG:core:parse_via:
end of header reached, state=5
Feb 14 01:19:43 martin /usr/local/sbin/opensips[14061]:
DBG:core:parse_headers: via found, flags=2
Feb 14 01:19:43 martin /usr/local/sbin/opensips[14061]:
DBG:core:parse_headers: this is the first via
Feb 14 01:19:43 martin /usr/local/sbin/opensips[14061]:
DBG:core:receive_msg: After parse_msg...
Feb 14 01:19:43 martin /usr/local/sbin/opensips[14061]:
DBG:core:receive_msg: preparing to run routing scripts...
Feb 14 01:19:43 martin /usr/local/sbin/opensips[14061]:
DBG:sl:sl_filter_ACK: to late to be a local ACK!

In this example i was calling calling from one user to another on my
machine (so the ip will always be the same for both clients). I guess
here:
Feb 14 01:19:43 martin /usr/local/sbin/opensips[14061]:
DBG:core:parse_msg:  method:  ACK
Feb 14 01:19:43 martin /usr/local/sbin/opensips[14061]:
DBG:core:parse_msg:  uri: sip:53049...@92.xx.xx.xx(my_Public_ip
(client) ):49190;transport=tls
Feb 14 01:19:43 martin /usr/local/sbin/opensips[14061]:
DBG:core:parse_msg:  version: SIP/2.0
Feb 14 01:19:43 martin /usr/local/sbin/opensips[14061]:
DBG:core:parse_headers: flags=2

The server get's the ack from my client, and than opensips says:

Apr  5 23:06:22 ser /usr/local/sbin/ser[6282]: DEBUG : sl_filter_ACK:
to
late to be a local ACK!

Does this mean that ACK is getting lost? I'll attach the syslog just in
case.
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Fwd: Opensips + RtpProxy: media stream timed out while starting

Or you could uh... Use UDP 5060/till you get your signalling sorted.  ;)



On Feb 13, 2015, 7:23 PM, at 7:23 PM, Semen Golubcov thegol...@gmail.com 
wrote:
You mean 5061? The packets are encrypted, i will try to capture them
with
ngrep and decrypt with the private key using wireshark and post the
decrypted data to
gist.

-- Forwarded message --
From: Eric Tamme e...@uphreak.com
Date: 2015-02-14 3:47 GMT+02:00
Subject: Re: [OpenSIPS-Users] Opensips + RtpProxy: media stream timed
out
while starting
To: OpenSIPS users mailling list users@lists.opensips.org


The message about late back means it is probably not routing.

Install ngrep and run

ngrep -qtd any -W byline port 5060

On OpenSIPS during the call.  Paste the output to a gist on
gist.github.com
and include the link in your next reply.

-Eric
On Feb 13, 2015, at 6:19 PM, Semen Golubcov thegol...@gmail.com
wrote:

 Hello. Should i answer you here or send my replies to the user list?

 I looked up the sip trace and syslog, apparently there are no
 retransmissions i think and there is no messages about no matching
 transaction exists.

 Feb 14 01:19:43 martin /usr/local/sbin/opensips[14061]:
 DBG:core:parse_msg:  method:  ACK
 Feb 14 01:19:43 martin /usr/local/sbin/opensips[14061]:
 DBG:core:parse_msg:  uri: sip:53049...@92.xx.xx.xx(my_Public_ip
 (client) ):49190;transport=tls
 Feb 14 01:19:43 martin /usr/local/sbin/opensips[14061]:
 DBG:core:parse_msg:  version: SIP/2.0
 Feb 14 01:19:43 martin /usr/local/sbin/opensips[14061]:
 DBG:core:parse_headers: flags=2
 Feb 14 01:19:43 martin /usr/local/sbin/opensips[14061]:
 DBG:core:parse_via_param: found param type 235, rport = n/a;
state=6
 Feb 14 01:19:43 martin /usr/local/sbin/opensips[14061]:
 DBG:core:parse_via_param: found param type 232, branch =
 z9hG4bKPjb29aaf78cf594541aeb97e0b801a4075; state=6
 Feb 14 01:19:43 martin /usr/local/sbin/opensips[14061]:
 DBG:core:parse_via_param: found param type 237, alias = n/a;
state=16
 Feb 14 01:19:43 martin /usr/local/sbin/opensips[14061]:
 DBG:core:parse_via: end of header reached, state=5
 Feb 14 01:19:43 martin /usr/local/sbin/opensips[14061]:
 DBG:core:parse_headers: via found, flags=2
 Feb 14 01:19:43 martin /usr/local/sbin/opensips[14061]:
 DBG:core:parse_headers: this is the first via
 Feb 14 01:19:43 martin /usr/local/sbin/opensips[14061]:
 DBG:core:receive_msg: After parse_msg...
 Feb 14 01:19:43 martin /usr/local/sbin/opensips[14061]:
 DBG:core:receive_msg: preparing to run routing scripts...
 Feb 14 01:19:43 martin /usr/local/sbin/opensips[14061]:
 DBG:sl:sl_filter_ACK: to late to be a local ACK!

 In this example i was calling calling from one user to another on my
 machine (so the ip will always be the same for both clients). I guess
here:
 Feb 14 01:19:43 martin /usr/local/sbin/opensips[14061]:
 DBG:core:parse_msg:  method:  ACK
 Feb 14 01:19:43 martin /usr/local/sbin/opensips[14061]:
 DBG:core:parse_msg:  uri: sip:53049...@92.xx.xx.xx(my_Public_ip
 (client) ):49190;transport=tls
 Feb 14 01:19:43 martin /usr/local/sbin/opensips[14061]:
 DBG:core:parse_msg:  version: SIP/2.0
 Feb 14 01:19:43 martin /usr/local/sbin/opensips[14061]:
 DBG:core:parse_headers: flags=2

 The server get's the ack from my client, and than opensips says:

 Apr  5 23:06:22 ser /usr/local/sbin/ser[6282]: DEBUG :
sl_filter_ACK: to
 late to be a local ACK!

 Does this mean that ACK is getting lost? I'll attach the syslog just
in
 case.


___
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] Ghost

Unless you have statically linked ... then the libraries are dynamically 
linked on runtime, so simply restart opensips. Generally speaking static 
linking is a dumb thing to do unless you have a good reason to do so.



On 01/30/2015 08:33 AM, symack wrote:
On Fri, Jan 30, 2015 at 10:22 AM, Eric Tamme e...@uphreak.com 
mailto:e...@uphreak.com wrote:


... no

On 01/30/2015 08:14 AM, symack wrote:

After updating glibc, is a recompile needed of OpenSIPS?

N
​



Are you sure? As we compiled against the effected version of glibc.

N.


___
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] Ghost


... no

On 01/30/2015 08:14 AM, symack wrote:

After updating glibc, is a recompile needed of OpenSIPS?

N
​


___
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] Ghost

If you use a glibc version that is affected ... yes.  See resolve.c, 
opensips makes use of gethostbyname().


-Eric

On 01/29/2015 07:28 AM, John Quick wrote:

Will OpenSIPS be susceptible to the GHOST vulnerability (recently found in
glibc)?

John Quick
Smartvox Limited






___
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] opensips remote db

Hey Ricky, the error is pretty strait forward.  You have an incorrect, or
mismatched version of the dialog table in your remote database.

You need to drop the remote version, and recreate it to match the version
your dialog modules is expecting to have.

Jul 28 16:22:40 dalc1-db01-osip01 /usr/local/sbin/opensips[8340]:
ERROR:core:db_check_table_version: invalid version 0 for table dialog
found, expected 7

This is the error line that tells you this.  You can use the create scripts
in the scripts folder of the version you built.

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


[OpenSIPS-Users] mediaproxy bug with offer answer in different transaction


Hi Saúl, and others,

We have discovered a bug in mediaproxy where it does not recognize an 
answer that is part of a different transaction, this is caused by how 
mediaproxy tracks offer/answer based on cseq.  Here is the example offer 
answer scenario from RFC3262 that does not work.


UAC  INVITE Cseq: 1 (no SDP offer) -

- 183 with SDP offer

PRACK CSeq: 2, Rseq: 1  with SDP answer-

Because the PRACK is a different transaction, and has a different CSeq 
than the offer, mediaproxy assumes it is a new offer, rather than an answer.


Can you offer any thoughts on what might be the best way to fix this 
issue?  We are happy to work on a patch as well - but would like to have 
input from the maintainers so that we can be sure it would be accepted 
upstream.


Thanks,

-Eric





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