[OpenSIPS-Users] opensips 2.3 and rtpengine module

2017-11-27 Thread Kirill Galinurov
Hi all. I use latest stable opensips 2.3.2 and rtpengine module. In 2.4
devel branch rtpengine module i can use *in-iface=..., out-iface=. *parmeters.
But what about rtpengine  module in 2.3.2 ?
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Debug Assistance (All the gateways are disabled)

2017-11-27 Thread Bogdan-Andrei Iancu

Hi Callum,

That message means that all the gateways provisioned under the selected 
carrier are marked as disabled. So, how do you disable the gws ? do you 
do dr_disable() from script ?


Regards,

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

On 11/27/2017 03:34 PM, Callum Guy wrote:

Hi All,

This morning one of our OpenSIPs instances (2.1.4 (x86_64/linux)) had 
an issue that lasted around a minute, I'm trying to establish cause 
and wondered if anyone would be able to offer suggestions based on our 
log output. At the time of the issue the server was receiving around 
genuine 80 calls per second however some did not get timely responses 
(took ~2.5 seconds) which caused the requests to fail.


The following log messages represent the start and end of the failure 
period:


2017-11-27 08:00:21 ERROR:drouting:route2_carrier: All the gateways 
are disabled
2017-11-27 08:00:21 ERROR:drouting:route2_carrier: All the gateways 
are disabled
2017-11-27 08:00:21 ERROR:drouting:route2_carrier: All the gateways 
are disabled
2017-11-27 08:00:21 CRITICAL:core:mk_proxy: could not resolve 
hostname: "internal.address"
2017-11-27 08:00:21 ERROR:tm:uri2proxy: bad host name in URI 


2017-11-27 08:00:21 ERROR:tm:t_forward_nonack: failure to add branches
2017-11-27 08:00:21 ERROR:rtpproxy:force_rtp_proxy_body: incorrect 
port 0 in reply from rtp proxy
2017-11-27 08:00:21 CRITICAL:core:mk_proxy: could not resolve 
hostname: "internal.address"
2017-11-27 08:00:21 ERROR:tm:uri2proxy: bad host name in URI 


...
2017-11-27 08:01:17 CRITICAL:core:mk_proxy: could not resolve 
hostname: "internal.address"
2017-11-27 08:01:17 ERROR:tm:uri2proxy: bad host name in URI 


2017-11-27 08:01:17 ERROR:tm:t_forward_nonack: failure to add branches

Where the logs state internal.address these are normal and correct 
domains which have been redacted.


Is anyone able to offer any advice on how to interpret those messages? 
In particular the initial messages "All the gateways are disabled" 
seem like a good lead however I am unclear how to interpret these.


Any advice would be greatly appreciated.

Many thanks,

Callum
--
Callum Guy
Head of Information Security
X-on


*^0333 332   | www.x-on.co.uk   | 
_**_^ 
  *
X-on is a trading name of Storacall Technology Ltd a limited company 
registered in England and Wales.
Registered Office : Avaland House, 110 London Road, Apsley, Hemel 
Hempstead, Herts, HP3 9SD. Company Registration No. 2578478.
The information in this e-mail is confidential and for use by the 
addressee(s) only. If you are not the intended recipient, please 
notify X-on immediately on +44(0)333 332  and delete the
message from your computer. If you are not a named addressee you must 
not use, disclose, disseminate, distribute, copy, print or reply to 
this email. Views or opinions expressed by an individual
within this email may not necessarily reflect the views of X-on or its 
associated companies. Although X-on routinely screens for viruses, 
addressees should scan this email and any attachments
for viruses. X-on makes no representation or warranty as to the 
absence of viruses in this email or any attachments.




___
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] get expires from REGISTER

2017-11-27 Thread Bogdan-Andrei Iancu
$hdr(Contact) return the whole Contact header which is a name-addr spec 
(according to the RFC3261 grammar).


You should try: $(hdr(Contact){nameaddr.param,expires})

See : http://www.opensips.org/Documentation/Script-Tran-2-3#toc68

Regards,

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

On 11/27/2017 02:56 PM, Dragomir Haralambiev wrote:

I try this:
xlog("Expires= $(hdr(Contact){uri.param,expires}) \n");

Here is ERRORS:
Nov 27 14:53:07 /usr/local/sbin/opensips[28413]: ERROR:core:parse_uri: 
bad uri, state 0 parsed: < (4) / 
<>;audio;expires=120> (57)
Nov 27 14:53:07 /usr/local/sbin/opensips[28413]: 
ERROR:core:tr_eval_uri: invalid uri 
[>;audio;expires=120]



2017-11-27 14:14 GMT+02:00 Liviu Chircu >:


Hi Dragomir,

There is no "Expires" in REGISTER, so $hdr(expires) prints
"". Try $(hdr(Contact){uri.param,expires}).

Regards,

Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com 

On 27.11.2017 13:46, Dragomir Haralambiev wrote:

Hello,

I try to get expires from REGISTER.
xlog("Expires=$hdr(expires)\n");

I receive this:
Expires=

Here is REGISTER

Session Initiation Protocol (SIP as raw text)
REGISTER sip:sip-server.com:5060 
SIP/2.0\r\n
Accept: application/reginfo+xml, application/sdp,
application/simple-message-summary, message/sipfrag,
multipart/mixed, multipart/related\r\n
Via: SIP/2.0/UDP
10.152.220.38:5062;branch=z9hG4bKde569c7a0f7678fe1;rport\r\n
Max-Forwards: 70\r\n
From: "" >;tag=026b9b8a13\r\n
To: "" >\r\n
Call-ID: de52071eacc30295\r\n
CSeq: 448743846 REGISTER\r\n
Allow: ACK, BYE, CANCEL, INVITE, MESSAGE, NOTIFY, OPTIONS,
REFER, SUBSCRIBE, UPDATE\r\n
Contact: >;audio;expires=120\r\n
User-Agent: Media5-fone/4.25.4.13060 Android/8.0.0\r\n
Content-Length: 0\r\n
\r\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





___
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] Debug Assistance (All the gateways are disabled)

2017-11-27 Thread Callum Guy
Hi All,

This morning one of our OpenSIPs instances (2.1.4 (x86_64/linux)) had an
issue that lasted around a minute, I'm trying to establish cause and
wondered if anyone would be able to offer suggestions based on our log
output. At the time of the issue the server was receiving around genuine 80
calls per second however some did not get timely responses (took ~2.5
seconds) which caused the requests to fail.

The following log messages represent the start and end of the failure
period:

2017-11-27 08:00:21  ERROR:drouting:route2_carrier: All the gateways are
disabled
2017-11-27 08:00:21  ERROR:drouting:route2_carrier: All the gateways are
disabled
2017-11-27 08:00:21  ERROR:drouting:route2_carrier: All the gateways are
disabled
2017-11-27 08:00:21  CRITICAL:core:mk_proxy: could not resolve hostname:
"internal.address"
2017-11-27 08:00:21  ERROR:tm:uri2proxy: bad host name in URI

2017-11-27 08:00:21  ERROR:tm:t_forward_nonack: failure to add branches
2017-11-27 08:00:21  ERROR:rtpproxy:force_rtp_proxy_body: incorrect port 0
in reply from rtp proxy
2017-11-27 08:00:21  CRITICAL:core:mk_proxy: could not resolve hostname:
"internal.address"
2017-11-27 08:00:21  ERROR:tm:uri2proxy: bad host name in URI

...
2017-11-27 08:01:17  CRITICAL:core:mk_proxy: could not resolve hostname:
"internal.address"
2017-11-27 08:01:17  ERROR:tm:uri2proxy: bad host name in URI

2017-11-27 08:01:17  ERROR:tm:t_forward_nonack: failure to add branches

Where the logs state internal.address these are normal and correct domains
which have been redacted.

Is anyone able to offer any advice on how to interpret those messages? In
particular the initial messages "All the gateways are disabled" seem like a
good lead however I am unclear how to interpret these.

Any advice would be greatly appreciated.

Many thanks,

Callum
-- 
Callum Guy
Head of Information Security
X-on

-- 



*0333 332   |  www.x-on.co.uk   |   ** 
    
   * 
X-on is a trading name of Storacall Technology Ltd a limited company 
registered in England and Wales.
Registered Office : Avaland House, 110 London Road, Apsley, Hemel 
Hempstead, Herts, HP3 9SD. Company Registration No. 2578478.
The information in this e-mail is confidential and for use by the 
addressee(s) only. If you are not the intended recipient, please notify 
X-on immediately on +44(0)333 332  and delete the
message from your computer. If you are not a named addressee you must not 
use, disclose, disseminate, distribute, copy, print or reply to this email. 
Views 
or opinions expressed by an individual
within this email may not necessarily reflect the views of X-on or its 
associated companies. Although X-on routinely screens for viruses, 
addressees should scan this email and any attachments
for viruses. X-on makes no representation or warranty as to the absence of 
viruses in this email or any attachments.

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


Re: [OpenSIPS-Users] get expires from REGISTER

2017-11-27 Thread Dragomir Haralambiev
I try this:
xlog("Expires= $(hdr(Contact){uri.param,expires}) \n");

Here is ERRORS:
Nov 27 14:53:07 /usr/local/sbin/opensips[28413]: ERROR:core:parse_uri: bad
uri, state 0 parsed: < (4) /
<;audio;expires=120>
(57)
Nov 27 14:53:07 /usr/local/sbin/opensips[28413]: ERROR:core:tr_eval_uri:
invalid uri [;audio;expires=120]


2017-11-27 14:14 GMT+02:00 Liviu Chircu :

> Hi Dragomir,
>
> There is no "Expires" in REGISTER, so $hdr(expires) prints "". Try
> $(hdr(Contact){uri.param,expires}).
>
> Regards,
>
> Liviu Chircu
> OpenSIPS Developerhttp://www.opensips-solutions.com
>
> On 27.11.2017 13:46, Dragomir Haralambiev wrote:
>
> Hello,
>
> I try to get expires from REGISTER.
> xlog("Expires=$hdr(expires)\n");
>
> I receive this:
> Expires=
>
> Here is REGISTER
>
> Session Initiation Protocol (SIP as raw text)
> REGISTER sip:sip-server.com:5060 SIP/2.0\r\n
> Accept: application/reginfo+xml, application/sdp,
> application/simple-message-summary, message/sipfrag, multipart/mixed,
> multipart/related\r\n
> Via: SIP/2.0/UDP 10.152.220.38:5062;branch=z9hG4bKde569c7a0f7678fe1;
> rport\r\n
> Max-Forwards: 70\r\n
> From: "" ;tag=026b9b8a13\r\n
> To: "" \r\n
> Call-ID: de52071eacc30295\r\n
> CSeq: 448743846 REGISTER\r\n
> Allow: ACK, BYE, CANCEL, INVITE, MESSAGE, NOTIFY, OPTIONS, REFER,
> SUBSCRIBE, UPDATE\r\n
> Contact: ;audio;expires=120\r\n
> User-Agent: Media5-fone/4.25.4.13060 Android/8.0.0\r\n
> Content-Length: 0\r\n
> \r\n
>
>
> ___
> Users mailing 
> listUsers@lists.opensips.orghttp://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] get expires from REGISTER

2017-11-27 Thread Liviu Chircu

Hi Dragomir,

There is no "Expires" in REGISTER, so $hdr(expires) prints "". Try 
$(hdr(Contact){uri.param,expires}).


Regards,

Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com

On 27.11.2017 13:46, Dragomir Haralambiev wrote:

Hello,

I try to get expires from REGISTER.
xlog("Expires=$hdr(expires)\n");

I receive this:
Expires=

Here is REGISTER

Session Initiation Protocol (SIP as raw text)
    REGISTER sip:sip-server.com:5060  
SIP/2.0\r\n
    Accept: application/reginfo+xml, application/sdp, 
application/simple-message-summary, message/sipfrag, multipart/mixed, 
multipart/related\r\n
    Via: SIP/2.0/UDP 
10.152.220.38:5062;branch=z9hG4bKde569c7a0f7678fe1;rport\r\n

    Max-Forwards: 70\r\n
    From: "" >;tag=026b9b8a13\r\n
    To: "" >\r\n

    Call-ID: de52071eacc30295\r\n
    CSeq: 448743846 REGISTER\r\n
    Allow: ACK, BYE, CANCEL, INVITE, MESSAGE, NOTIFY, OPTIONS, REFER, 
SUBSCRIBE, UPDATE\r\n
    Contact: >;audio;expires=120\r\n

    User-Agent: Media5-fone/4.25.4.13060 Android/8.0.0\r\n
    Content-Length: 0\r\n
    \r\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


[OpenSIPS-Users] get expires from REGISTER

2017-11-27 Thread Dragomir Haralambiev
Hello,

I try to get expires from REGISTER.
xlog("Expires=$hdr(expires)\n");

I receive this:
Expires=

Here is REGISTER

Session Initiation Protocol (SIP as raw text)
REGISTER sip:sip-server.com:5060 SIP/2.0\r\n
Accept: application/reginfo+xml, application/sdp,
application/simple-message-summary, message/sipfrag, multipart/mixed,
multipart/related\r\n
Via: SIP/2.0/UDP 10.152.220.38:5062
;branch=z9hG4bKde569c7a0f7678fe1;rport\r\n
Max-Forwards: 70\r\n
From: "" ;tag=026b9b8a13\r\n
To: "" \r\n
Call-ID: de52071eacc30295\r\n
CSeq: 448743846 REGISTER\r\n
Allow: ACK, BYE, CANCEL, INVITE, MESSAGE, NOTIFY, OPTIONS, REFER,
SUBSCRIBE, UPDATE\r\n
Contact: ;audio;expires=120\r\n
User-Agent: Media5-fone/4.25.4.13060 Android/8.0.0\r\n
Content-Length: 0\r\n
\r\n
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] Pn-uri - Push Notification with SIP

2017-11-27 Thread Jonathan Hunter
Hi Guys,

We use opensips in the core of our network and are looking to implement Push 
Notification with the Session Initiation Protocol (SIP), as per this spec;

https://tools.ietf.org/id/draft-holmberg-sipcore-sip-push-02.html

Can anyone recommend a push server software that can be used in the scenario, 
that opensips can integrate with?

I can see there are plenty of open source options out there, just wondered if 
anyone else had implemented?

Thanks

Jon

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


Re: [OpenSIPS-Users] Regarding avp_db_query

2017-11-27 Thread Vishal Pai
Thanks i got that


On Mon, Nov 27, 2017 at 2:03 PM, Răzvan Crainea  wrote:

> Hi, Vishal!
>
> You can find the answer to your question in the function's documentation[1]:
> If the result gives many rows, then multiple AVPs with corresponding name
> will be added.
>
> Consider the following query:
> avp_db_query("select group where username='$tu'", "$avp(group)");
>
> The first line of the result can be accessed using $avp(group) (or
> $(avp(group)[0])), the second line $(avp(group)[1]), and so on.
>
> [1] http://www.opensips.org/html/docs/modules/2.4.x/avpops.html#idp3469424
>
> Best regards,
>
> Răzvan Crainea
> OpenSIPS Developerwww.opensips-solutions.com
>
> On 11/24/2017 08:56 PM, Vishal Pai wrote:
>
> Hi Everyone
>
> I just want to know what is correct to fetch all the row from database
> using avp_db_query. Currently I am getting only first row in result.
>
> One more think I want to know is it possible to get array of for variable
> in Opensips configuration file.
>
>
> Thanks
>
> Vishal Pai
>
>
> ___
> Users mailing 
> listUsers@lists.opensips.orghttp://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] Regarding avp_db_query

2017-11-27 Thread Răzvan Crainea

Hi, Vishal!

You can find the answer to your question in the function's 
documentation[1]: If the result gives many rows, then multiple AVPs with 
corresponding name will be added.


Consider the following query:
avp_db_query("select group where username='$tu'", "$avp(group)");

The first line of the result can be accessed using $avp(group) (or 
$(avp(group)[0])), the second line $(avp(group)[1]), and so on.


[1] http://www.opensips.org/html/docs/modules/2.4.x/avpops.html#idp3469424

Best regards,

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

On 11/24/2017 08:56 PM, Vishal Pai wrote:

Hi Everyone

I just want to know what is correct to fetch all the row from database 
using avp_db_query. Currently I am getting only first row in result.


One more think I want to know is it possible to get array of for 
variable in Opensips configuration file.



Thanks

Vishal Pai


___
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