[OpenSIPS-Users] Firewall + OpenSIPS + FreeSWITCH

2015-01-15 Thread Henry Estrada Juárez
Hello,

I need help! I have installed OpenSIPS in my firewall, that has a public
IP. I installed it because I want to use the load balancer module for my
FreeSWITCH servers. To configure OpenSIPS I followed the tutorial posted in
the FreeSWITCH wiki:
https://wiki.freeswitch.org/wiki/Enterprise_deployment_OpenSIPS, and my
opensips.cfg file is exactly the same.

The issue that I'm facing is that OpenSIPS doesn't send the ACK to the
FreeSWITCH servers, but send it to itself, and it looks like a ACK loop.
Then, after approximately 32 seconds, the call hangs up, because FreeSWITCH
sends a BYE after doesn't receive any ACK.

I don't know what to do, and I will really appreciate some kind of help. Of
course, thanks.
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] [opensips] [control panel]: change of admin password irgnores by cp - and strange error messages

2015-01-15 Thread Markus Klaus Schäffauer
Hi,

when I change the password using the interface (Admin - List Admins -
Edit Info), nothing changes. The desired password still is correct in
the password field in the database, but when trying to login with it, it
doesn't work. I still have to put the official one  - and the secret one
is not working.

So I decided to create a new admin2 with the same secret password in the
interface (as described above, but in Add Admins). Voilà, now I can
enter with admin2 and the secret password.

But now comes the super strange thing: When looking in the database,
there is an admin2-user, but no (!) password in the password-field...
wow! What is this?

I am really confused...  It seems to be that the password is not stored
in the table of the new admin user, but in some other place. If it was
just vanishing in the air, the login would'nt work. There must be
another place where the system puts the password and reads it to grant
access to the interface.

Do you have some idea what might be gone wrong?

Regards,
Markus

Am 15.01.2015 um 15:30 schrieb Alex Ionescu:
 Hi,

 Why don't you try changing the password using the interface (Admin -
 List Admins - Edit Info).
 For the MI tool you need to configure the proper path to your fifo
 file - I guess the default one is not the good one.
 For the callcenter module you need to deploy the necessary DB tables
 but if you don't need that module you can always disable that module
 (or any module) in CP by editing
 /var/www/opensips-cp/config/modules.inc.php file - you will find out
 it is very intuitive.

 If you have any other questions please let me know.

 Regards,
 Alex

 On 01/15/2015 11:12 AM, Markus Klaus Schäffauer wrote:
 Hello,

 when I change the admin password (in the database), this is ignored
 completely by the control panel.

 But I cannot work seriously with a openly known password... so why my
 control panel is ignoring that in the database I made a password change?

 And another thing: In the control panel, section system, I get (for
 example) the following errors:

 Dialog:
 Array ( [0] = Cannot connect to OpenSIPS Server via Management
 Interface (/tmp/opensips_proxy_fifo) )

 Callcenter:
 Failed to issue query, error message : MDB2 Error: no such table[select
 id,agentid,location,logstate,skills from cc_agents where 1 = 1 order by
 id LIMIT 5 OFFSET 0]

 There seem to be still some errors, although I am able to register
 clients correctly.

 Sounds really strange.

 Regards,
 Markus


 ___
 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] Is it possible to have a reliable channel between OpenSIPS and RTPProxy?

2015-01-15 Thread microx
Hi all,

I'm encountering a low cps (call per second) issue. In my test, it is not
guaranteed that rtpproxy_offer() won't fail when the cps is 40. I know that
the control channel (commands from the OpenSIPS server to RTPProxy) is
udp-based and thus is inherently unreliable. However, is there any approach
to increase the cps? Or 40 cps is a reasonable number for call setup. Any
comments are greatly appreciated.

Best wishes,
Chen-Che 



--
View this message in context: 
http://opensips-open-sip-server.1449251.n2.nabble.com/Is-it-possible-to-have-a-reliable-channel-between-OpenSIPS-and-RTPProxy-tp7594956.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


[OpenSIPS-Users] Custom header parsing in failure route

2015-01-15 Thread John Nash
I am testing a setup where opensips sending call to freeswitch and if call
is rejected by freswitch a custom  header X-internal-hangup. In opensips
failure_route I am trying to check it using is_present_hf() function but it
never reaches inside conditions. In wireshark I see this header.

is_present_hf is working fine when used in main request block.
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Custom header parsing in failure route

2015-01-15 Thread Răzvan Crainea

Hi, John!

If the call is rejected, than the X-internal-hangup header is in the 
reply. failure_route is ran in the request context. Therefore, you have 
to use the is_present_hf() function in the onreply_route.
Alternatively, you can check for the header existing using the hdr 
pseudo-variable in the reply context (i.e if 
($(replyhdr(X-internal-hangup)) != NULL)).


Best regards,

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

On 01/15/2015 12:40 PM, John Nash wrote:
I am testing a setup where opensips sending call to freeswitch and if 
call is rejected by freswitch a custom header X-internal-hangup. In 
opensips failure_route I am trying to check it using is_present_hf() 
function but it never reaches inside conditions. In wireshark I see 
this header.


is_present_hf is working fine when used in main request block.


___
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] [opensips] [control panel]: change of admin password irgnores by cp - and strange error messages

2015-01-15 Thread Markus Klaus Schäffauer
Hello,

when I change the admin password (in the database), this is ignored
completely by the control panel.

But I cannot work seriously with a openly known password... so why my
control panel is ignoring that in the database I made a password change?

And another thing: In the control panel, section system, I get (for
example) the following errors:

Dialog:
Array ( [0] = Cannot connect to OpenSIPS Server via Management
Interface (/tmp/opensips_proxy_fifo) )

Callcenter:
Failed to issue query, error message : MDB2 Error: no such table[select
id,agentid,location,logstate,skills from cc_agents where 1 = 1 order by
id LIMIT 5 OFFSET 0]

There seem to be still some errors, although I am able to register
clients correctly.

Sounds really strange.

Regards,
Markus


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


Re: [OpenSIPS-Users] PAID header issue

2015-01-15 Thread Bogdan-Andrei Iancu

Hi Stuart,

Indeed, the PAI hdr makes no sense in the replies. Nevertheless, their 
presence there is harmless and it should not affect the traffic or 
interoperability at all (at least not according to RFC3261).


Regards,

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

On 14.01.2015 18:10, Stuart Mills, Invosys wrote:


Hi,

I’m being told by my carrier that they are seeing this info in replies 
back from opensips and I’ve been asked to stop it.


P-Asserted-Identity: +3532108511205 sip:+3532108511205@x.x.x.x

Quote from engineer working for the carrier –

“With my Egress you are sending us PAID in the PROGRESS and OK message 
which is not required,  let me know once you have sorted out the PAID 
issue and will retest.”


Does anyone know if this is correct what they are saying?

Kind Regards

Stuart Mills



___
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] PAID header issue

2015-01-15 Thread Stuart Mills, Invosys
Hi Bogdan,

 

Thanks for this, it should help a lot.

 

Regards,

 

Stuart

 

From: Bogdan-Andrei Iancu [mailto:bog...@opensips.org] 
Sent: 15 January 2015 11:59
To: OpenSIPS users mailling list; stuart.mi...@invosys.com
Subject: Re: [OpenSIPS-Users] PAID header issue

 

Hi Stuart,

Indeed, the PAI hdr makes no sense in the replies. Nevertheless, their
presence there is harmless and it should not affect the traffic or
interoperability at all (at least not according to RFC3261).

Regards,



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

On 14.01.2015 18:10, Stuart Mills, Invosys wrote:

Hi,

 

I'm being told by my carrier that they are seeing this info in replies back
from opensips and I've been asked to stop it.

 

P-Asserted-Identity: +3532108511205 sip:+3532108511205@x.x.x.x

 

Quote from engineer working for the carrier - 

 

With my Egress you are sending us PAID in the PROGRESS and OK message which
is not required,  let me know once you have sorted out the PAID issue and
will retest.

 

Does anyone know if this is correct what they are saying?

 

Kind Regards

 

Stuart Mills

 






___
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] Enum modul

2015-01-15 Thread Bogdan-Andrei Iancu

Hi Miha,

In OpenSIPS, for any DNS lookup, the res_search() frunction from glib is 
used, function that uses the /etc/resolv.conf file for fetching the 
default DNS server.
I guess this function does not have the ability to figure out what's the 
direct DNS server and go directly there.


Best regards,

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

On 14.01.2015 08:17, Miha wrote:

Hi,

I am using enum module for ported numbers. Everything works fine just 
one thing is that is bothering me.


If I use dig to see who is authoritative dns server for one enum zone 
I can see that this not not dns server which is set in resolve.conf, 
so opensips should be doing this dns request for enum to authoritative 
dns server.


I have exactly the same config on nextone sbc and it is sending 
request to authoritative dns server for this zone.


How to fix this as now opensips sends request to non authoritative 
server for this zone, dns server send it to enum server and then in 
oposite direction for resonses which is not ok.


Thx
Miha

trace:

 7.476490 opensips - DNS SERVER DNS 102 Standard query 0x0687 NAPTR 
0.5.1.3.0.3.8.1.6.8.3.enumzone.domain.com
  7.478184 DNS SERVER - opensips DNS 143 Standard query response 
0x0687 No such name


[root@sip2 ~]# dig enumzone.domain.com NS

;  DiG 9.8.2rc1-RedHat-9.8.2-0.17.rc1.el6_4.6  
enumzone.domain.com NS

;; global options: +cmd
;; Got answer:
;; -HEADER- opcode: QUERY, status: NOERROR, id: 42310
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; QUESTION SECTION:
;enumzone.domain.com.IN  NS

;; ANSWER SECTION:
enumzone.domain.com. 239 IN  NS ns1.enum.domain.com.

;; ADDITIONAL SECTION:
ns1.enum.domain.com.251 IN  A   ENUM_SERVER

;; Query time: 0 msec
;; SERVER: DNS SERVER#53(DNS SERVER)
;; WHEN: Wed Jan 14 07:05:28 2015
;; MSG SIZE  rcvd: 75



___
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] acc_evi_request firing to incorrect event interface

2015-01-15 Thread Bogdan-Andrei Iancu

Hi,

And if you do acc_log_request, do you see the message logged as ACC or 
MISSED call ?


Regards,

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

On 14.01.2015 20:36, Kneeoh wrote:

Per the acc module:

acc_evi_request(comment)

Like acc_log_request, acc_evi_request reports on a request. The report is 
packed as an event sent through the OpenSIPS Event Interface as E_ACC_EVENT if 
the reply code is a positive one (lower than 300), or E_ACC_MISSED_EVENT for 
negative or no codes.

I'm firing an event:

acc_evi_request(703 Admin Block);

But its being published to the
E_ACC_EVENT queue instead of the E_ACC_MISSED_EVENT queue

703  300 so it should be treated as a negative reply.

I'm running 1.11.3

___
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] Configure a phone number for a user?

2015-01-15 Thread Bogdan-Andrei Iancu

Hi Karl,

I will remove and later replace that link - thanks for pointing it out.

The drouting module is for routing to pstn number (prefix based 
routing). As I understand, you want the other way around, from a number 
to an account.


Regards,

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

On 14.01.2015 20:48, Karl Karpfen wrote:

Yes, I mean phone numbers pointing to an account.

Hm, is there a tutorial starting a bit earlier (means with some basics 
what this alias module is/where to configure things described in your 
link)? I found this one at 
http://www.opensips.org/Documentation/Tutorials#toc3 but the link is 
dead...


2015-01-13 19:47 GMT+01:00 Bogdan-Andrei Iancu bog...@opensips.org 
mailto:bog...@opensips.org:


Hi Karl,

If you mean how to set a phone number pointing to a SIP account,
you need to define aliases (number - user), so take a look at the
alias_db module :
http://www.opensips.org/html/docs/modules/1.11.x/alias_db.html

Regards,

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

On 13.01.2015 20:28, Karl Karpfen wrote:


Hi,

a hopefully last stupid question (because could not find a
related documentation for this): where/how can I specify an
(internal) phone number for one of my users?

Thanks!



___
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] Enum modul

2015-01-15 Thread Miha
Hi Bogdan,

Tnx for info. In future this future would be good to
implement;)

Ne
Miha

On Thu, 15 Jan 2015 14:30:59 +0200
 Bogdan-Andrei Iancu bog...@opensips.org wrote:
 Hi Miha,
 
 In OpenSIPS, for any DNS lookup, the res_search()
 frunction from glib is used, function that uses the
 /etc/resolv.conf file for fetching the default DNS
 server.
 I guess this function does not have the ability to figure
 out what's the direct DNS server and go directly there.
 
 Best regards,
 
 Bogdan-Andrei Iancu
 OpenSIPS Founder and Developer
 http://www.opensips-solutions.com
 
 On 14.01.2015 08:17, Miha wrote:
  Hi,
 
  I am using enum module for ported numbers. Everything
 works fine just one thing is that is bothering me.
 
  If I use dig to see who is authoritative dns server for
 one enum zone I can see that this not not dns server
 which is set in resolve.conf, so opensips should be doing
 this dns request for enum to authoritative dns server.
 
  I have exactly the same config on nextone sbc and it is
 sending request to authoritative dns server for this
 zone.
 
  How to fix this as now opensips sends request to non
 authoritative server for this zone, dns server send it to
 enum server and then in oposite direction for resonses
 which is not ok.
 
  Thx
  Miha
 
  trace:
 
   7.476490 opensips - DNS SERVER DNS 102 Standard query
 0x0687 NAPTR 0.5.1.3.0.3.8.1.6.8.3.enumzone.domain.com
7.478184 DNS SERVER - opensips DNS 143 Standard
 query response 0x0687 No such name
 
  [root@sip2 ~]# dig enumzone.domain.com NS
 
  ;  DiG 9.8.2rc1-RedHat-9.8.2-0.17.rc1.el6_4.6 
 enumzone.domain.com NS
  ;; global options: +cmd
  ;; Got answer:
  ;; -HEADER- opcode: QUERY, status: NOERROR, id:
 42310
  ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0,
 ADDITIONAL: 1
 
  ;; QUESTION SECTION:
  ;enumzone.domain.com.IN  NS
 
  ;; ANSWER SECTION:
  enumzone.domain.com. 239 IN  NS
 ns1.enum.domain.com.
 
  ;; ADDITIONAL SECTION:
  ns1.enum.domain.com.251 IN  A
   ENUM_SERVER
 
  ;; Query time: 0 msec
  ;; SERVER: DNS SERVER#53(DNS SERVER)
  ;; WHEN: Wed Jan 14 07:05:28 2015
  ;; MSG SIZE  rcvd: 75
 
 
 
  ___
  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] Custom header parsing in failure route

2015-01-15 Thread John Nash
Hello Razvan,

Thank you. I asked similar question few days back about status code ..sorry
about that.

Regards

John

On Thu, Jan 15, 2015 at 4:42 PM, Răzvan Crainea raz...@opensips.org wrote:

  Hi, John!

 If the call is rejected, than the X-internal-hangup header is in the
 reply. failure_route is ran in the request context. Therefore, you have to
 use the is_present_hf() function in the onreply_route.
 Alternatively, you can check for the header existing using the hdr
 pseudo-variable in the reply context (i.e if ($(replyhdr(X-internal-hangup))
 != NULL)).

 Best regards,

 Răzvan Crainea
 OpenSIPS Solutionswww.opensips-solutions.com

 On 01/15/2015 12:40 PM, John Nash wrote:

  I am testing a setup where opensips sending call to freeswitch and if
 call is rejected by freswitch a custom  header X-internal-hangup. In
 opensips failure_route I am trying to check it using is_present_hf()
 function but it never reaches inside conditions. In wireshark I see this
 header.

  is_present_hf is working fine when used in main request block.


 ___
 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] [opensips] [control panel]: change of admin password irgnores by cp - and strange error messages

2015-01-15 Thread Alex Ionescu

Hi,

Why don't you try changing the password using the interface (Admin - 
List Admins - Edit Info).
For the MI tool you need to configure the proper path to your fifo file 
- I guess the default one is not the good one.
For the callcenter module you need to deploy the necessary DB tables but 
if you don't need that module you can always disable that module (or any 
module) in CP by editing /var/www/opensips-cp/config/modules.inc.php 
file - you will find out it is very intuitive.


If you have any other questions please let me know.

Regards,
Alex

On 01/15/2015 11:12 AM, Markus Klaus Schäffauer wrote:

Hello,

when I change the admin password (in the database), this is ignored
completely by the control panel.

But I cannot work seriously with a openly known password... so why my
control panel is ignoring that in the database I made a password change?

And another thing: In the control panel, section system, I get (for
example) the following errors:

Dialog:
Array ( [0] = Cannot connect to OpenSIPS Server via Management
Interface (/tmp/opensips_proxy_fifo) )

Callcenter:
Failed to issue query, error message : MDB2 Error: no such table[select
id,agentid,location,logstate,skills from cc_agents where 1 = 1 order by
id LIMIT 5 OFFSET 0]

There seem to be still some errors, although I am able to register
clients correctly.

Sounds really strange.

Regards,
Markus


___
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