[OpenSIPS-Users] Opensips TLS

2015-08-21 Thread Matt Hamilton

We are using Opensips as a dispatcher to Asterisk servers. The call flow for 
incoming calls to UAC is below (outbound is reversed).


telco -> opensips1 -> asterisk -> opensips1 -> UAC (SIP phones)


We are at the planning stages of implementing TLS. Asterisk (1.8.x), Opensips 
(1.7.1 TLS) and the phones are TLS-capable. Is it possible to have TLS just 
between Opensips and the phones, and not touch the traffic between Asterisk and 
Opensips? If TLS on Asterisk is not enabled, will traffic flow between Opensips 
and Asterisk (unencrypted)? Both Opensips server and Asterisk servers are at 
the same location, so it's not really necessary to secure that leg.


Also, do you recommend upgrading Opensips to 2.1 first and then enabling TLS? I 
know our version (1.7.1) is pretty old, but it's been very stable for us 
without TLS. I'm wondering if the TLS module has improved (performance, etc.) 
since then?  (We will do the upgrade this year - just trying to time it).

Thanks,
Matt

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


Re: [OpenSIPS-Users] is it possible to drop non-provisional reply?

2015-08-21 Thread Peter Lemenkov
Thanks for the tip!
It seems that you're reading my mind - because that's exactly what's needed!

2015-08-21 19:02 GMT+03:00 Bogdan-Andrei Iancu :
> Hi Peter,
>
> Well, you do not want to drop the reply, but to replace it guess, right ?
>
> If so, you can use a failure route and do:
>
> failure_route[bla] {
> if (t_check_status([3][0-9][0-9]) {
> t_reply("404","Not found");
> exit;
> }
> }
>
> This will replace all 3xx you get with a 404 Not Found reply.
>
> Regards,
>
> Bogdan-Andrei Iancu
> OpenSIPS Founder and Developer
> http://www.opensips-solutions.com
>
>
> On 21.08.2015 18:16, Peter Lemenkov wrote:
>>
>> Hello All!
>> Sorry for the dumb question. I'm aware that it's possible to drop
>> provisional replies using drop() in onreply_route. Is there a way to
>> drop non-provisional ones?
>>
>> I'm trying to block some 3xx and 4xx replies completely. I could do it
>> with my custom B2BUA but maybe OpenSIPS could do this as well?
>>
>



-- 
With best regards, Peter Lemenkov.

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


Re: [OpenSIPS-Users] fifo t_uac_dlg syntax

2015-08-21 Thread Ralf_Neumann_hgw
Yes, it works until the character <=> because it does not contains the <">

The body should looks like...


-Ursprüngliche Nachricht-
Von: users-boun...@lists.opensips.org [mailto:users-boun...@lists.opensips.org] 
Im Auftrag von Bogdan-Andrei Iancu
Gesendet: Freitag, 21. August 2015 16:36
An: OpenSIPS users mailling list; ralf_neumann_...@web.de
Betreff: Re: [OpenSIPS-Users] fifo t_uac_dlg syntax

Ralf,

You have a trailing <"> at the end of the command:

try
/usr/local/opensips_proxy/sbin/opensipsctl fifo t_uac_dlg NOTIFY 
"sip:3003@193.144.1.112" . . "\"From: sip:3001@192.180.1.107\r\nTo: 
sip:3003@193.144.1.112\r\nContent-Type: application/simservs+xml\r\n"\" 
'http://www.opensips-solutions.com

On 21.08.2015 16:36, Ralf Neumann wrote:
> /usr/local/opensips_proxy/sbin/opensipsctl fifo t_uac_dlg NOTIFY 
> "sip:3003@193.144.1.112" . . "\"From: sip:3001@192.180.1.107\r\nTo: 
> sip:3003@193.144.1.112\r\nContent-Type: application/simservs+xml\r\n"\" 
> ' 400 parse error in command 't_uac_dlg'
>
>
> Gesendet: Freitag, 21. August 2015 um 13:59 Uhr
> Von: "Bogdan-Andrei Iancu" 
> An: "OpenSIPS users mailling list" , 
> ralf_neumann_...@web.de
> Betreff: Re: [OpenSIPS-Users] fifo t_uac_dlg syntax Hi Ralf,
>
> Could you post the exact command (from shell) you send together with 
> the opensips error log please.
>
> Regards,
>
> Bogdan-Andrei Iancu
> OpenSIPS Founder and Developer
> http://www.opensips-solutions.com
>
> On 21.08.2015 09:59, Ralf Neumann wrote:
>> not caused by the syntax. The command accept the following syntax:
>> '> modification to '> command 't_uac_dlg'
>> It seems the character " was not accepted.
>>
>> Gesendet: Donnerstag, 20. August 2015 um 17:37 Uhr
>> Von: "Podrigal, Aron" 
>> An: "OpenSIPS users mailling list" 
>> Betreff: Re: [OpenSIPS-Users] fifo t_uac_dlg syntax are u sure about 
>> the syntax errors not caused by your shell?
>>
>> On Aug 20, 2015 11:10 AM, "Ralf_Neumann_hgw" 
>>  wrote:Hi Bogdan,
>>
>> the NOTIFY is used to switch on/off different services 
>> (warmline/hotline) on the SIP client.
>> I get syntax errors if i use the characters like <;>;";?
>>
>> What is your recommendation?
>>
>> Ralf
>>
>> -Ursprüngliche Nachricht-
>> Von: 
>> users-boun...@lists.opensips.org[users-boun...@lists.opensips.org]
>> [mailto:users-boun...@lists.opensips.org[users-bounces@lists.opensips
>> .org]] Im Auftrag von Bogdan-Andrei Iancu
>> Gesendet: Donnerstag, 20. August 2015 16:45
>> An: OpenSIPS users mailling list; 
>> ralf_neumann_...@web.de[ralf_neumann_...@web.de]
>> Betreff: Re: [OpenSIPS-Users] fifo t_uac_dlg syntax
>>
>> Hi Ralf,
>>
>> Body can be anything. The question is what you want to use the NOTIFY for ?
>>
>> Regards,
>>
>> Bogdan-Andrei Iancu
>> OpenSIPS Founder and Developer
>> http://www.opensips-solutions.com[http://www.opensips-solutions.com][
>> http://www.opensips-solutions.com[http://www.opensips-solutions.com]]
>>
>> On 20.08.2015 16:01, Ralf Neumann wrote:
>>> The command "opensipsctl fifo t_uac_dlg ..." send the NOTIFY to the 
>>> client
>> as expected. I need support regarding the implementation of the body 
>> in the NOTIFY packet based on xml. Is here anybody with knowledge of 
>> the needed syntax or workaround.
>>> opensipsctl fifo t_uac_dlg NOTIFY 
>>> "sip:3003@193.144.1.112[sip%3A3003@193.144.1.112]" . .
>>> "\"From: sip:3001@192.180.1.107[sip%3A3001@192.180.1.107]\r\nTo:
>>> sip:3003@193.144.1.112[sip%3A3003@193.144.1.112]\r\nContent-Type:
>>> application/simservs+xml\r\n"\" thebody
>>>
>>> Body of SIP NOTIFY:
>>>
>>>  
>>>
>>> Thanks
>>> Ralf
>>>
>>> ___
>>> Users mailing list
>>> Users@lists.opensips.org[Users@lists.opensips.org]
>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users[http://list
>>> s.opensips.org/cgi-bin/mailman/listinfo/users][http://lists.opensips
>>> .org/cgi-bin/mailman/listinfo/users[http://lists.opensips.org/cgi-bi
>>> n/mailman/listinfo/users]]
>>>
>>>
>> ___
>> Users mailing list
>> Users@lists.opensips.org[Users@lists.opensips.org]
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users[http://lists
>> .opensips.org/cgi-bin/mailman/listinfo/users]
>>
>>
>> ___
>> Users mailing list
>> Users@lists.opensips.org[Users@lists.opensips.org]
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users_
>> __[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[http://lists
>> .opensips.org/cgi-bin/mailman/listinfo/users][http://lists.opensips.o
>> rg/cgi-bin/mailman/listinfo/users[http://lists.opensips.org/cgi-bin/m
>> ailman/listinfo/users]]
>>
>> ___
>> Users mailing list
>> Users@lists.opensips.org
>> http://lists.opensips.org

Re: [OpenSIPS-Users] 408 Request Timeout with UDP

2015-08-21 Thread Nabeel
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;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  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 
> wrote:
>
>> Indeed,
>>
>> Bogdan-Andrei Iancu
>> OpenSIPS Founder and Developerhttp://www.opensips-solutions.com
>>
>> On 07.08.2015 20:08, Nabeel wrote:
>>
>> You mean like this, right?
>>
>> if (is_method("REGISTER"))
>>
>> {
>> if (   0 ) setflag(TCP_PERSISTENT);
>>
>> setbflag(SIP_PING_FLAG);
>>
>> if (!save("location"))
>> sl_reply_error();
>>
>> exit;
>> }
>>
>>
>>
>> On 7 August 2015 at 17:52, Bogdan-Andrei Iancu 
>> wrote:
>>
>>> Hi Nabeel,
>>>
>>> Bogdan-Andrei Iancu
>>> OpenSIPS Founder and Developerhttp://www.opensips-solutions.com
>>>
>>> On 07.08.2015 19:39, Nabeel wrote:
>>>
>>> []
>>> Bogdan,
>>>
>>> Regarding UDP, I realised that the UDP port could not be in LISTEN state
>>> and this was probably preventing my server from fully opening that port.
>>> Running nmap on that port showed result "open|filtered", unlike with TCP
>>> which showed fully open.  I am not running any firewalls on my server, so
>>> this seems to be the default behaviour of my network.
>>>
>>> A bidirectional traffic through the NAT will keep the NAT pinhole open,
>>> while a unidirectional one may not. This is the advantage of the SIP
>>> pinging versus simple UDP pinging.
>>>
>>>
>>> I would like to clarify one thing.  You mentioned adding
>>> setbflag(SIP_PING_FLAG) before doing save(), but in my config file I don't
>>> see save() anywhere, there is only this line: "if (!save("location"))".
>>> Where exactly do I add this line?
>>>
>>> exactly.
>>>
>>> Regards,
>>> Bogdan
>>>
>>>
>>
>>
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] 408 Request Timeout with UDP

2015-08-21 Thread Nabeel
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  wrote:

> Indeed,
>
> Bogdan-Andrei Iancu
> OpenSIPS Founder and Developerhttp://www.opensips-solutions.com
>
> On 07.08.2015 20:08, Nabeel wrote:
>
> You mean like this, right?
>
> if (is_method("REGISTER"))
>
> {
> if (   0 ) setflag(TCP_PERSISTENT);
>
> setbflag(SIP_PING_FLAG);
>
> if (!save("location"))
> sl_reply_error();
>
> exit;
> }
>
>
>
> On 7 August 2015 at 17:52, Bogdan-Andrei Iancu 
> wrote:
>
>> Hi Nabeel,
>>
>> Bogdan-Andrei Iancu
>> OpenSIPS Founder and Developerhttp://www.opensips-solutions.com
>>
>> On 07.08.2015 19:39, Nabeel wrote:
>>
>> []
>> Bogdan,
>>
>> Regarding UDP, I realised that the UDP port could not be in LISTEN state
>> and this was probably preventing my server from fully opening that port.
>> Running nmap on that port showed result "open|filtered", unlike with TCP
>> which showed fully open.  I am not running any firewalls on my server, so
>> this seems to be the default behaviour of my network.
>>
>> A bidirectional traffic through the NAT will keep the NAT pinhole open,
>> while a unidirectional one may not. This is the advantage of the SIP
>> pinging versus simple UDP pinging.
>>
>>
>> I would like to clarify one thing.  You mentioned adding
>> setbflag(SIP_PING_FLAG) before doing save(), but in my config file I don't
>> see save() anywhere, there is only this line: "if (!save("location"))".
>> Where exactly do I add this line?
>>
>> exactly.
>>
>> Regards,
>> Bogdan
>>
>>
>
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] is it possible to drop non-provisional reply?

2015-08-21 Thread Bogdan-Andrei Iancu

Hi Peter,

Well, you do not want to drop the reply, but to replace it guess, right ?

If so, you can use a failure route and do:

failure_route[bla] {
if (t_check_status([3][0-9][0-9]) {
t_reply("404","Not found");
exit;
}
}

This will replace all 3xx you get with a 404 Not Found reply.

Regards,

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

On 21.08.2015 18:16, Peter Lemenkov wrote:

Hello All!
Sorry for the dumb question. I'm aware that it's possible to drop
provisional replies using drop() in onreply_route. Is there a way to
drop non-provisional ones?

I'm trying to block some 3xx and 4xx replies completely. I could do it
with my custom B2BUA but maybe OpenSIPS could do this as well?




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


[OpenSIPS-Users] is it possible to drop non-provisional reply?

2015-08-21 Thread Peter Lemenkov
Hello All!
Sorry for the dumb question. I'm aware that it's possible to drop
provisional replies using drop() in onreply_route. Is there a way to
drop non-provisional ones?

I'm trying to block some 3xx and 4xx replies completely. I could do it
with my custom B2BUA but maybe OpenSIPS could do this as well?

-- 
With best regards, Peter Lemenkov.

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


Re: [OpenSIPS-Users] fifo t_uac_dlg syntax

2015-08-21 Thread Bogdan-Andrei Iancu

Ralf,

You have a trailing <"> at the end of the command:

try
/usr/local/opensips_proxy/sbin/opensipsctl fifo t_uac_dlg NOTIFY 
"sip:3003@193.144.1.112" . . "\"From: sip:3001@192.180.1.107\r\nTo: 
sip:3003@193.144.1.112\r\nContent-Type: application/simservs+xml\r\n"\" 
'

Instead of:
/usr/local/opensips_proxy/sbin/opensipsctl fifo t_uac_dlg NOTIFY 
"sip:3003@193.144.1.112" . . "\"From: sip:3001@192.180.1.107\r\nTo: 
sip:3003@193.144.1.112\r\nContent-Type: application/simservs+xml\r\n"\" 
'

In this case, the body you set is "http://www.opensips-solutions.com

On 21.08.2015 16:36, Ralf Neumann wrote:

/usr/local/opensips_proxy/sbin/opensipsctl fifo t_uac_dlg NOTIFY "sip:3003@193.144.1.112" . . 
"\"From: sip:3001@192.180.1.107\r\nTo: sip:3003@193.144.1.112\r\nContent-Type: 
application/simservs+xml\r\n"\" '
An: "OpenSIPS users mailling list" , 
ralf_neumann_...@web.de
Betreff: Re: [OpenSIPS-Users] fifo t_uac_dlg syntax
Hi Ralf,

Could you post the exact command (from shell) you send together with the
opensips error log please.

Regards,

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

On 21.08.2015 09:59, Ralf Neumann wrote:

not caused by the syntax. The command accept the following syntax:
'
An: "OpenSIPS users mailling list" 
Betreff: Re: [OpenSIPS-Users] fifo t_uac_dlg syntax
are u sure about the syntax errors not caused by your shell?

On Aug 20, 2015 11:10 AM, "Ralf_Neumann_hgw"  wrote:Hi 
Bogdan,

the NOTIFY is used to switch on/off different services (warmline/hotline) on
the SIP client.
I get syntax errors if i use the characters like <;>;";?

What is your recommendation?

Ralf

-Ursprüngliche Nachricht-
Von: users-boun...@lists.opensips.org[users-boun...@lists.opensips.org]
[mailto:users-boun...@lists.opensips.org[users-boun...@lists.opensips.org]] Im 
Auftrag von Bogdan-Andrei Iancu
Gesendet: Donnerstag, 20. August 2015 16:45
An: OpenSIPS users mailling list; 
ralf_neumann_...@web.de[ralf_neumann_...@web.de]
Betreff: Re: [OpenSIPS-Users] fifo t_uac_dlg syntax

Hi Ralf,

Body can be anything. The question is what you want to use the NOTIFY for ?

Regards,

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

On 20.08.2015 16:01, Ralf Neumann wrote:

The command "opensipsctl fifo t_uac_dlg ..." send the NOTIFY to the client

as expected. I need support regarding the implementation of the body in the
NOTIFY packet based on xml. Is here anybody with knowledge of the needed
syntax or workaround.

opensipsctl fifo t_uac_dlg NOTIFY 
"sip:3003@193.144.1.112[sip%3A3003@193.144.1.112]" . .
"\"From: sip:3001@192.180.1.107[sip%3A3001@192.180.1.107]\r\nTo:
sip:3003@193.144.1.112[sip%3A3003@193.144.1.112]\r\nContent-Type:
application/simservs+xml\r\n"\" thebody

Body of SIP NOTIFY:
  
 

Thanks
Ralf

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



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


___
Users mailing list
Users@lists.opensips.org[Users@lists.opensips.org]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users___[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[http://lists.opensips.org/cgi-bin/mailman/listinfo/users][http://lists.opensips.org/cgi-bin/mailman/listinfo/users[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[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[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] fifo t_uac_dlg syntax

2015-08-21 Thread Ralf Neumann
/usr/local/opensips_proxy/sbin/opensipsctl fifo t_uac_dlg NOTIFY 
"sip:3003@193.144.1.112" . . "\"From: sip:3001@192.180.1.107\r\nTo: 
sip:3003@193.144.1.112\r\nContent-Type: application/simservs+xml\r\n"\" '
An: "OpenSIPS users mailling list" , 
ralf_neumann_...@web.de
Betreff: Re: [OpenSIPS-Users] fifo t_uac_dlg syntax
Hi Ralf,

Could you post the exact command (from shell) you send together with the
opensips error log please.

Regards,

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

On 21.08.2015 09:59, Ralf Neumann wrote:
> not caused by the syntax. The command accept the following syntax:
> ' After modification to ' in command 't_uac_dlg'
> It seems the character " was not accepted.
>
> Gesendet: Donnerstag, 20. August 2015 um 17:37 Uhr
> Von: "Podrigal, Aron" 
> An: "OpenSIPS users mailling list" 
> Betreff: Re: [OpenSIPS-Users] fifo t_uac_dlg syntax
> are u sure about the syntax errors not caused by your shell?
>
> On Aug 20, 2015 11:10 AM, "Ralf_Neumann_hgw"  
> wrote:Hi Bogdan,
>
> the NOTIFY is used to switch on/off different services (warmline/hotline) on
> the SIP client.
> I get syntax errors if i use the characters like <;>;";?
>
> What is your recommendation?
>
> Ralf
>
> -Ursprüngliche Nachricht-
> Von: users-boun...@lists.opensips.org[users-boun...@lists.opensips.org]
> [mailto:users-boun...@lists.opensips.org[users-boun...@lists.opensips.org]] 
> Im Auftrag von Bogdan-Andrei Iancu
> Gesendet: Donnerstag, 20. August 2015 16:45
> An: OpenSIPS users mailling list; 
> ralf_neumann_...@web.de[ralf_neumann_...@web.de]
> Betreff: Re: [OpenSIPS-Users] fifo t_uac_dlg syntax
>
> Hi Ralf,
>
> Body can be anything. The question is what you want to use the NOTIFY for ?
>
> Regards,
>
> Bogdan-Andrei Iancu
> OpenSIPS Founder and Developer
> http://www.opensips-solutions.com[http://www.opensips-solutions.com][http://www.opensips-solutions.com[http://www.opensips-solutions.com]]
>
> On 20.08.2015 16:01, Ralf Neumann wrote:
>> The command "opensipsctl fifo t_uac_dlg ..." send the NOTIFY to the client
> as expected. I need support regarding the implementation of the body in the
> NOTIFY packet based on xml. Is here anybody with knowledge of the needed
> syntax or workaround.
>> opensipsctl fifo t_uac_dlg NOTIFY 
>> "sip:3003@193.144.1.112[sip%3A3003@193.144.1.112]" . .
>> "\"From: sip:3001@192.180.1.107[sip%3A3001@192.180.1.107]\r\nTo:
>> sip:3003@193.144.1.112[sip%3A3003@193.144.1.112]\r\nContent-Type:
>> application/simservs+xml\r\n"\" thebody
>>
>> Body of SIP NOTIFY:
>>   
>>  
>>
>> Thanks
>> Ralf
>>
>> ___
>> Users mailing list
>> Users@lists.opensips.org[Users@lists.opensips.org]
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users[http://lists.opensips.org/cgi-bin/mailman/listinfo/users][http://lists.opensips.org/cgi-bin/mailman/listinfo/users[http://lists.opensips.org/cgi-bin/mailman/listinfo/users]]
>>
>>
>
> ___
> Users mailing list
> Users@lists.opensips.org[Users@lists.opensips.org]
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users[http://lists.opensips.org/cgi-bin/mailman/listinfo/users]
>
>
> ___
> Users mailing list
> Users@lists.opensips.org[Users@lists.opensips.org]
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users___[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[http://lists.opensips.org/cgi-bin/mailman/listinfo/users][http://lists.opensips.org/cgi-bin/mailman/listinfo/users[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[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[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] opensips1.11 dr_routing

2015-08-21 Thread Bogdan-Andrei Iancu

Denis,

Sowhat you want to do is to be able to serial and parallel (combined) 
having carriers as elements in the list (and not GWs).


With the solution I gave you cannot do it as you cannot usecarriers in 
the definition of another carrier(when doing the parallel group), right ?


Regards,

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

On 21.08.2015 16:14, dpa wrote:


No, Bogdan, everything fine. You wright understand my question.

I wanted “do a combination between serial and parallel selection” but 
method you suggest doesn`t fit to me.


The main reason I have many providers and using carrier for “sharing” 
doesn`t convenient, because I must have all possible combination of 
carriers and using (remember) it for making routing table (contents of 
routing table formed by another system, and I do not want complicate it).


Thank you.

*From:*Bogdan-Andrei Iancu [mailto:bog...@opensips.org]
*Sent:* Friday, August 21, 2015 3:52 PM
*To:* dpa; 'OpenSIPS users mailling list'
*Subject:* Re: [OpenSIPS-Users] opensips1.11 dr_routing

Denis,

I had the impression that I haven't managed to answer to your 
question. Maybe because I do not fully understand the question. Could 
you detail why the solution I gave does not fit you?


Regards,

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

On 21.08.2015 15:35, dpa wrote:

Hello Bogdan!

I understand and I thought about it before. But it doesn`t fit to
me, because I have many prefix which can “sharing” different carriers.

Anyway, thank you for help.

*From:*Bogdan-Andrei Iancu [mailto:bog...@opensips.org]
*Sent:* Friday, August 21, 2015 3:29 PM
*To:* OpenSIPS users mailling list; denis7...@mail.ru

*Subject:* Re: [OpenSIPS-Users] opensips1.11 dr_routing

Hi Denis,

If you use weights alg and the GW has no weight, a 0 weight will
be assumed, so it will never match (unless after a failover).

Using weights, the selection is over all the GW in the set.

If you want do a combination between serial and parallel selection
, you need to use carriers:

Make carrier X with wights flags and set for it destinations
34=50,35=50
and in the rule have the destination set "14,#X" (and do not use
the W flag anymore)

Regards,


Bogdan-Andrei Iancu

OpenSIPS Founder and Developer

http://www.opensips-solutions.com

On 21.08.2015 12:16, dpa wrote:

Hello!

There is one question about dr_routing module.

Example 1.

I have such gw_list “#14,#34=50,#35=50,#2881”

Example 2.

I have such gw_list “#14,#34,#35,#2881”

I am using d_routing() with W flag.

In Example 1 a call first had been sent to sharing between #34
and #35 and only then to #14.

In Example 2 a call first had been sent to #14, then #34, then
#35 and #2881.

Is there any way to tell Opensips in Example 1 first sends
calls to #14 and only then to sharing between #34 and #35?

Thank you for any 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] opensips1.11 dr_routing

2015-08-21 Thread dpa
No, Bogdan, everything fine. You wright understand my question.

I wanted "do a combination between serial and parallel selection" but method
you suggest doesn`t fit to me.

The main reason I have many providers and using carrier for "sharing"
doesn`t convenient, because I must have all possible combination of carriers
and using (remember) it for making routing table (contents of routing table
formed by another system, and I do not want complicate it).

 

Thank you.

 

 

From: Bogdan-Andrei Iancu [mailto:bog...@opensips.org] 
Sent: Friday, August 21, 2015 3:52 PM
To: dpa; 'OpenSIPS users mailling list'
Subject: Re: [OpenSIPS-Users] opensips1.11 dr_routing

 

Denis,

I had the impression that I haven't managed to answer to your question.
Maybe because I do not fully understand the question. Could you detail why
the solution I gave does not fit you?

Regards,



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

On 21.08.2015 15:35, dpa wrote:

Hello Bogdan!

 

I understand and I thought about it before. But it doesn`t fit to me,
because I have many prefix which can "sharing" different carriers.

Anyway, thank you for help.

 

 

From: Bogdan-Andrei Iancu [mailto:bog...@opensips.org] 
Sent: Friday, August 21, 2015 3:29 PM
To: OpenSIPS users mailling list; denis7...@mail.ru
Subject: Re: [OpenSIPS-Users] opensips1.11 dr_routing

 

Hi Denis,

If you use weights alg and the GW has no weight, a 0 weight will be assumed,
so it will never match (unless after a failover).

Using weights, the selection is over all the GW in the set. 

If you want do a combination between serial and parallel selection , you
need to use carriers:

Make carrier X with wights flags and set for it destinations 34=50,35=50
and in the rule have the destination set "14,#X" (and do not use the W flag
anymore)

Regards,




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

On 21.08.2015 12:16, dpa wrote:



Hello!

 

There is one question about dr_routing module.

 

Example 1.

I have such gw_list "#14,#34=50,#35=50,#2881"

Example 2.

I have such gw_list "#14,#34,#35,#2881"

 

I am using d_routing() with W flag.

 

In Example 1 a call first had been sent to sharing between #34 and #35 and
only then to #14.

In Example 2 a call first had been sent to #14, then #34, then #35 and
#2881.

 

Is there any way to tell Opensips in Example 1 first sends calls to #14 and
only then to sharing between #34 and #35?

 

Thank you for any 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] opensips1.11 dr_routing

2015-08-21 Thread Bogdan-Andrei Iancu

Denis,

I had the impression that I haven't managed to answer to your question. 
Maybe because I do not fully understand the question. Could you detail 
why the solutionI gave doesnot fit you?


Regards,

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

On 21.08.2015 15:35, dpa wrote:


Hello Bogdan!

I understand and I thought about it before. But it doesn`t fit to me, 
because I have many prefix which can “sharing” different carriers.


Anyway, thank you for help.

*From:*Bogdan-Andrei Iancu [mailto:bog...@opensips.org]
*Sent:* Friday, August 21, 2015 3:29 PM
*To:* OpenSIPS users mailling list; denis7...@mail.ru
*Subject:* Re: [OpenSIPS-Users] opensips1.11 dr_routing

Hi Denis,

If you use weights alg and the GW has no weight, a 0 weight will be 
assumed, so it will never match (unless after a failover).


Using weights, the selection is over all the GW in the set.

If you want do a combination between serial and parallel selection , 
you need to use carriers:


Make carrier X with wights flags and set for it destinations 34=50,35=50
and in the rule have the destination set "14,#X" (and do not use the W 
flag anymore)


Regards,

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

On 21.08.2015 12:16, dpa wrote:

Hello!

There is one question about dr_routing module.

Example 1.

I have such gw_list “#14,#34=50,#35=50,#2881”

Example 2.

I have such gw_list “#14,#34,#35,#2881”

I am using d_routing() with W flag.

In Example 1 a call first had been sent to sharing between #34 and
#35 and only then to #14.

In Example 2 a call first had been sent to #14, then #34, then #35
and #2881.

Is there any way to tell Opensips in Example 1 first sends calls
to #14 and only then to sharing between #34 and #35?

Thank you for any 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] extension status monitoring

2015-08-21 Thread Julian Kay
Just a quick thank you for the  great points on  extension status monitoring.

 

JK

 

From: users-boun...@lists.opensips.org 
[mailto:users-boun...@lists.opensips.org] On Behalf Of SamyGo
Sent: Monday, August 17, 2015 11:58 AM
To: Bogdan-Andrei Iancu
Cc: OpenSIPS users mailling list
Subject: Re: [OpenSIPS-Users] extension status monitoring

 

Thanks Bogdan,

That makes everything easy. :)

 

Best Regards,

Sammy

 

On Mon, Aug 17, 2015 at 11:52 AM, Bogdan-Andrei Iancu  
wrote:

Hi Sammy,

If you use the "brief" option just to get the list of AORs, is quite ok. But 
depends on how often you need this info.

If you want to keep into into a parallel DB, better use the AOR inserted 
/deleted events:
http://www.opensips.org/html/docs/modules/2.1.x/usrloc.html#id295255
And keep your REDIS in sync from there.

Regards,



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

On 17.08.2015 18:10, 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  
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
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] opensips1.11 dr_routing

2015-08-21 Thread dpa
Hello Bogdan!

 

I understand and I thought about it before. But it doesn`t fit to me,
because I have many prefix which can "sharing" different carriers.

Anyway, thank you for help.

 

 

From: Bogdan-Andrei Iancu [mailto:bog...@opensips.org] 
Sent: Friday, August 21, 2015 3:29 PM
To: OpenSIPS users mailling list; denis7...@mail.ru
Subject: Re: [OpenSIPS-Users] opensips1.11 dr_routing

 

Hi Denis,

If you use weights alg and the GW has no weight, a 0 weight will be assumed,
so it will never match (unless after a failover).

Using weights, the selection is over all the GW in the set. 

If you want do a combination between serial and parallel selection , you
need to use carriers:

Make carrier X with wights flags and set for it destinations 34=50,35=50
and in the rule have the destination set "14,#X" (and do not use the W flag
anymore)

Regards,



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

On 21.08.2015 12:16, dpa wrote:



Hello!

 

There is one question about dr_routing module.

 

Example 1.

I have such gw_list "#14,#34=50,#35=50,#2881"

Example 2.

I have such gw_list "#14,#34,#35,#2881"

 

I am using d_routing() with W flag.

 

In Example 1 a call first had been sent to sharing between #34 and #35 and
only then to #14.

In Example 2 a call first had been sent to #14, then #34, then #35 and
#2881.

 

Is there any way to tell Opensips in Example 1 first sends calls to #14 and
only then to sharing between #34 and #35?

 

Thank you for any 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] opensips1.11 dr_routing

2015-08-21 Thread Bogdan-Andrei Iancu

Hi Denis,

If you use weights alg and the GW has no weight, a 0 weight will be 
assumed, so it will never match (unless after a failover).


Using weights, the selection is over all the GW in the set.

If you want do a combination between serial and parallel selection , you 
need to use carriers:


Make carrier X with wights flags and set for it destinations 34=50,35=50
and in the rule have the destination set "14,#X" (and do not use the W 
flag anymore)


Regards,

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

On 21.08.2015 12:16, dpa wrote:


Hello!

There is one question about dr_routing module.

Example 1.

I have such gw_list “#14,#34=50,#35=50,#2881”

Example 2.

I have such gw_list “#14,#34,#35,#2881”

I am using d_routing() with W flag.

In Example 1 a call first had been sent to sharing between #34 and #35 
and only then to #14.


In Example 2 a call first had been sent to #14, then #34, then #35 and 
#2881.


Is there any way to tell Opensips in Example 1 first sends calls to 
#14 and only then to sharing between #34 and #35?


Thank you for any 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] fifo t_uac_dlg syntax

2015-08-21 Thread Bogdan-Andrei Iancu

Hi Ralf,

Could you post the exact command (from shell) you send together with the 
opensips error log please.


Regards,

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

On 21.08.2015 09:59, Ralf Neumann wrote:

not caused by the syntax. The command accept the following syntax:
'
An: "OpenSIPS users mailling list" 
Betreff: Re: [OpenSIPS-Users] fifo t_uac_dlg syntax
are u sure about the syntax errors not caused by your shell?

On Aug 20, 2015 11:10 AM, "Ralf_Neumann_hgw"  wrote:Hi 
Bogdan,

the NOTIFY is used to switch on/off different services (warmline/hotline) on
the SIP client.
I get syntax errors if i use the characters like <;>;";?

What is your recommendation?

Ralf

-Ursprüngliche Nachricht-
Von: users-boun...@lists.opensips.org[users-boun...@lists.opensips.org]
[mailto:users-boun...@lists.opensips.org[users-boun...@lists.opensips.org]] Im 
Auftrag von Bogdan-Andrei Iancu
Gesendet: Donnerstag, 20. August 2015 16:45
An: OpenSIPS users mailling list; 
ralf_neumann_...@web.de[ralf_neumann_...@web.de]
Betreff: Re: [OpenSIPS-Users] fifo t_uac_dlg syntax

Hi Ralf,

Body can be anything. The question is what you want to use the NOTIFY for ?

Regards,

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

On 20.08.2015 16:01, Ralf Neumann wrote:

The command "opensipsctl fifo t_uac_dlg ..." send the NOTIFY to the client

as expected. I need support regarding the implementation of the body in the
NOTIFY packet based on xml. Is here anybody with knowledge of the needed
syntax or workaround.

opensipsctl fifo t_uac_dlg NOTIFY 
"sip:3003@193.144.1.112[sip%3A3003@193.144.1.112]" . .
"\"From: sip:3001@192.180.1.107[sip%3A3001@192.180.1.107]\r\nTo:
sip:3003@193.144.1.112[sip%3A3003@193.144.1.112]\r\nContent-Type:
application/simservs+xml\r\n"\" thebody

Body of SIP NOTIFY:
  
 

Thanks
Ralf

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




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


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


[OpenSIPS-Users] opensips1.11 dr_routing

2015-08-21 Thread dpa


Hello!

 

There is one question about dr_routing module.

 

Example 1.

I have such gw_list "#14,#34=50,#35=50,#2881"

Example 2.

I have such gw_list "#14,#34,#35,#2881"

 

I am using d_routing() with W flag.

 

In Example 1 a call first had been sent to sharing between #34 and #35 and
only then to #14.

In Example 2 a call first had been sent to #14, then #34, then #35 and
#2881.

 

Is there any way to tell Opensips in Example 1 first sends calls to #14 and
only then to sharing between #34 and #35?

 

Thank you for any help.

 

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


Re: [OpenSIPS-Users] fifo t_uac_dlg syntax

2015-08-21 Thread Ralf Neumann
not caused by the syntax. The command accept the following syntax:
'
An: "OpenSIPS users mailling list" 
Betreff: Re: [OpenSIPS-Users] fifo t_uac_dlg syntax
are u sure about the syntax errors not caused by your shell?

On Aug 20, 2015 11:10 AM, "Ralf_Neumann_hgw"  wrote:Hi 
Bogdan,

the NOTIFY is used to switch on/off different services (warmline/hotline) on
the SIP client.
I get syntax errors if i use the characters like <;>;";?

What is your recommendation?

Ralf

-Ursprüngliche Nachricht-
Von: users-boun...@lists.opensips.org[users-boun...@lists.opensips.org]
[mailto:users-boun...@lists.opensips.org[users-boun...@lists.opensips.org]] Im 
Auftrag von Bogdan-Andrei Iancu
Gesendet: Donnerstag, 20. August 2015 16:45
An: OpenSIPS users mailling list; 
ralf_neumann_...@web.de[ralf_neumann_...@web.de]
Betreff: Re: [OpenSIPS-Users] fifo t_uac_dlg syntax

Hi Ralf,

Body can be anything. The question is what you want to use the NOTIFY for ?

Regards,

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

On 20.08.2015 16:01, Ralf Neumann wrote:
> The command "opensipsctl fifo t_uac_dlg ..." send the NOTIFY to the client
as expected. I need support regarding the implementation of the body in the
NOTIFY packet based on xml. Is here anybody with knowledge of the needed
syntax or workaround.
>
> opensipsctl fifo t_uac_dlg NOTIFY 
> "sip:3003@193.144.1.112[sip%3A3003@193.144.1.112]" . .
> "\"From: sip:3001@192.180.1.107[sip%3A3001@192.180.1.107]\r\nTo:
> sip:3003@193.144.1.112[sip%3A3003@193.144.1.112]\r\nContent-Type:
> application/simservs+xml\r\n"\" thebody
>
> Body of SIP NOTIFY:
>   
>  
>
> Thanks
> Ralf
>
> ___
> Users mailing list
> Users@lists.opensips.org[Users@lists.opensips.org]
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users[http://lists.opensips.org/cgi-bin/mailman/listinfo/users]
>
>


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


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