Re: [OpenSIPS-Users] rtpengine database support

2017-04-04 Thread Kirill Galinurov
Hi Bogdan. I think Alex means rtpengine redis support. Rtpengine store
mediasession related info in REDIS DB. We can use 2 rtpengine instance to
HA and failover.
https://github.com/sipwise/rtpengine/wiki/Redis-data-structure
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] set environment variables for system - opensipsctl?

2017-04-04 Thread Mundkowsky, Robert
Well, seems to work now. I think I had something wrong in the opensipsctlrc 
file.

Might have been that PID_FILE needed to be explicitly set, because I am not 
running as root and using a "prefix" install location.

BTW, is it reasonable to set PYTHONPATH in the opensipsctlrc file?




Robert Mundkowsky

-Original Message-
From: Mundkowsky, Robert
Sent: Tuesday, April 4, 2017 2:16 PM
To: 'Bogdan-Andrei Iancu' ; OpenSIPS users mailling list 

Subject: RE: [OpenSIPS-Users] set environment variables for system - 
opensipsctl?

I am using opensips python module.  I am using PYTHONPATH env variable.

System starts without errors via "opensips start", but fails via " opensipsctl 
start" and it complains about the python module. Error messages are:

Apr  4 18:14:32 ip-10-61-81-170 
/export/Apps/opensips/2.2.3/sbin/opensips[25723]: ERROR:python:mod_init: cannot 
import callbackFromOpenSIPS Apr  4 18:14:32 ip-10-61-81-170 
/export/Apps/opensips/2.2.3/sbin/opensips[25723]: ERROR:core:init_mod: failed 
to initialize module python Apr  4 18:14:32 ip-10-61-81-170 
/export/Apps/opensips/2.2.3/sbin/opensips[25723]: ERROR:core:main: error while 
initializing modules


Robert Mundkowsky

-Original Message-
From: Bogdan-Andrei Iancu [mailto:bog...@opensips.org]
Sent: Tuesday, April 4, 2017 1:52 PM
To: OpenSIPS users mailling list ; Mundkowsky, Robert 

Subject: Re: [OpenSIPS-Users] set environment variables for system - 
opensipsctl?

Hi Robert,

The opensipsctl tool starts OpenSIPS directly by using the opensips binary - 
nothing special.

What are the env vars you have problems with ?

Regards,

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

OpenSIPS Summit May 2017 Amsterdam
   http://www.opensips.org/events/Summit-2017Amsterdam.html

On 04/04/2017 08:14 PM, robert wrote:
> If I start opensips via:
>
> opensips start
>
> It seems to pickup the environment variables from current session
> correctly, but if use:
>
> opensipsctl start
>
> It does not pickup the environment variables from current session.
>
> Is there some configuration file where I can set environment variables
> for the system regardless of the way I start opensips?
>
>
>
>
>
>
>
> --
> View this message in context:
> http://opensips-open-sip-server.1449251.n2.nabble.com/set-environment-
> variables-for-system-opensipsctl-tp7606807.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




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


Thank you for your compliance.


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


Re: [OpenSIPS-Users] Possible Drouting bug

2017-04-04 Thread Bogdan-Andrei Iancu

John, do you use partitions in DR ?

Regards,

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

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html

On 04/04/2017 11:00 PM, John Nash wrote:
Yes I tried that but still same issue. I call goes_to_gw and after 
that attributes are filled.


On Tue, Mar 28, 2017 at 3:25 PM, Bogdan-Andrei Iancu 
> wrote:


Hello John,

Do you use partitions ? Is the use_partition enabled ? If not, the
use_next_gw() should be used like:
use_next_gw( "$avp(rules_attributes)","$avp(gw_attributes)")

(the first param, the partition, is not to be provided)

Could you check if this solves the problem ?

Best regards,

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

OpenSIPS Summit May 2017 Amsterdam
   http://www.opensips.org/events/Summit-2017Amsterdam.html


On 03/23/2017 09:19 AM, John Nash wrote:

I am using drouting and recently tried to use gateway attribute.
I call ...
do_routing("$avp(int_grp_id)","WF","$avp(gw_whitelist)" ,
"$avp(rules_attributes)","$avp(gw_attributes)"))
After this call I can see $avp(gw_attributes) is populated frp,
attr column of dr_gateways table.
but when i call following ...
use_next_gw(,"$avp(rules_attributes)","$avp(gw_attributes)")
$avp(gw_attributes) becomes empty
If i call next_routing() instead of use_next_gw then
$avp(gw_attributes) retains old value but does not populate new value

___
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] Possible Drouting bug

2017-04-04 Thread John Nash
Yes I tried that but still same issue. I call goes_to_gw and after that
attributes are filled.

On Tue, Mar 28, 2017 at 3:25 PM, Bogdan-Andrei Iancu 
wrote:

> Hello John,
>
> Do you use partitions ? Is the use_partition enabled ? If not, the
> use_next_gw() should be used like:
> use_next_gw( "$avp(rules_attributes)","$avp(gw_attributes)")
>
> (the first param, the partition, is not to be provided)
>
> Could you check if this solves the problem ?
>
> Best regards,
>
> Bogdan-Andrei Iancu
>   OpenSIPS Founder and Developer
>   http://www.opensips-solutions.com
>
> OpenSIPS Summit May 2017 Amsterdam
>   http://www.opensips.org/events/Summit-2017Amsterdam.html
>
> On 03/23/2017 09:19 AM, John Nash wrote:
>
> I am using drouting and recently tried to use gateway attribute. I call
> ...
>
> do_routing("$avp(int_grp_id)","WF","$avp(gw_whitelist)" ,
> "$avp(rules_attributes)","$avp(gw_attributes)"))
>
> After this call I can see $avp(gw_attributes) is populated frp, attr
> column of dr_gateways table.
>
> but when i call following ...
> use_next_gw(,"$avp(rules_attributes)","$avp(gw_attributes)")
>
> $avp(gw_attributes) becomes empty
>
>
> If i call next_routing() instead of use_next_gw then $avp(gw_attributes)
> retains old value but does not populate new value
>
>
>
>
>
>
> ___
> 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


Re: [OpenSIPS-Users] FW: Problem with outbound calls

2017-04-04 Thread Bogdan-Andrei Iancu

Hi Brian,

Could you describe your call flow ? Or maybe posting somewhere the sip 
capture (ngrep) of the call taken from OpenSIPS machine.


Regards,

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

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html

On 04/04/2017 06:17 PM, brian southworth wrote:


Hi All,

I seem to have an issue when using forward() my cisco phone says loop 
detected.


If I used t_relay() my phone will say invalid destination both result 
in a bye signal being sent by open sips, however the call is still 
passed to the carrier


Regards,

Brian Southworth

Communications Developer

cid:image001.png@01D19A6C.C5BF7760

111 Wilmslow Road

Handforth

Wilmslow

SK9 3ER

T: 0 446677

W: _www.clocom.uk  _









cid:image002.png@01CDDC62.D8483910 





Like us on Facebook



cid:image003.png@01CDDC62.D8483910



Follow us on Twitter



cid:image004.png@01CDDC62.D8483910 









Clocom is a *green* company. Think, do you need to print this email?

This message contains confidential information and is intended only 
for the individual named. If you are not the named addressee you 
should not disseminate, distribute or copy this e-mail. Please notify 
the sender immediately by e-mail if you have received this e-mail by 
mistake and delete this e-mail from your system. E-mail transmission 
cannot be guaranteed to be secure or error-free as information could 
be intercepted, corrupted, lost, destroyed, arrive late or incomplete, 
or contain viruses. The sender therefore does not accept liability for 
any errors or omissions in the contents of this message, which arise 
as a result of e-mail transmission. If verification is required please 
request a hard-copy version. Clocom UK Ltd, 111 Wilmslow Road, 
Handforth, Cheshire, SK9 3ER _www.clocom.uk _




___
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 1.10.1 crash randomly

2017-04-04 Thread Bogdan-Andrei Iancu

Hi Pasan,

The 1.10 is not supported/maintained for some almost 2 years 
(http://www.opensips.org/About/AvailableVersions).


Better upgrade to 1.11 or 2.2 (1.11 is much closer to 1.10 and easier to 
migrate to)


Regards,

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

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html

On 04/04/2017 07:20 PM, Pasan Meemaduma via Users wrote:

Hi Guys,

my opensips server started to crash recently. It happens after I did a 
restart to opensips and some times it happens after its being up for a 
while. I have attached the full bt. I know this version has no longer 
bug fixes, But wanted to know if this is common known bug or hardware 
issue. Tried going through git hub issue tracker but didn't help. :/


Looks like it crashes when a dialog timeout and trying to insert the 
BYE into acc table ?


Reading symbols from /usr/sbin/opensips...Reading symbols from 
/usr/lib/debug/usr/sbin/opensips...done.

done.
[New LWP 32351]

warning: Can't read pathname for load map: Input/output error.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `/usr/sbin/opensips -P 
/var/run/opensips/opensips.pid -m 812 -M 64 -u opensips -'.

Program terminated with signal 11, Segmentation fault.
#0  0x7f4405a21507 in db_mysql_val2bind (v=v@entry=0x7f440669d7c0, 
binds=binds@entry=0x7f4406ba3288, i=i@entry=13) at val.c:297

297val.c: No such file or directory.
(gdb) bt full
#0  0x7f4405a21507 in db_mysql_val2bind (v=v@entry=0x7f440669d7c0, 
binds=binds@entry=0x7f4406ba3288, i=i@entry=13) at val.c:297

t = 
mt = 
__FUNCTION__ = "db_mysql_val2bind"
#1  0x7f4405a19317 in db_mysql_do_prepared_query 
(conn=conn@entry=0x7f4406b9e7c0, v=v@entry=0x7f440669d620, n=n@entry=14,

uv=uv@entry=0x0, un=un@entry=0, query=0x7f4405c24aa0) at dbase.c:651
i = 
j = 
code = 32579
cols = 
pq_ptr = 0x7f4406ba3248
ctx = 0x7f4406ba2b78
mysql_bind = 0x7f4406ba3288
start = {tv_sec = 1024, tv_usec = 139930128972470}
buffered_rows = 0x0
#2  0x7f4405a1daec in db_mysql_insert (_h=0x7f4406b9e7c0, 
_k=0x7f440669d340, _v=0x7f440669d620, _n=14) at dbase.c:1096

ret = 
#3  0x7f440646b78a in acc_db_cdrs (dlg=dlg@entry=0x7f43d0046ce0, 
msg=0x0) at acc.c:662

total = 14
nr_vals = 0
i = 
ret = 10
res = -1
nr_bye_vals = 0
j = 
created = 
start_time = 
core_s = {s = 0x7f4406ba31c8 "\006", len = 97}
leg_s = {s = 0x7f4406ba1568 "", len = 4}
extra_s = {s = 0x7f4406ba40f8 "\004", len = 107}
table = {s = 0x7f4406b8a848 "accX", len = 3}
---Type  to continue, or q  to quit---
nr_legs = 
my_ps = 0x7f4406ba3248
ins_list = 0x0
__FUNCTION__ = "acc_db_cdrs"
#4  0x7f44064732e7 in acc_dlg_callback (dlg=0x7f43d0046ce0, 
type=, _params=0x7f44028457c0) at acc_logic.c:651

flags = 1155
__FUNCTION__ = "acc_dlg_callback"
#5  0x7f440260169f in run_dlg_callbacks (type=type@entry=64, 
dlg=dlg@entry=0x7f43d0046ce0, msg=msg@entry=0x0, dir=dir@entry=0,

dlg_data=dlg_data@entry=0x0) at dlg_cb.c:253
cb = 
__FUNCTION__ = "run_dlg_callbacks"
#6  0x7f440261628d in dlg_ontimeout (tl=0x7f43d0046d20) at 
dlg_handlers.c:1457

dlg = 0x7f43d0046ce0
new_state = 5
old_state = 3
unref = 
__FUNCTION__ = "dlg_ontimeout"
#7  0x7f44026321f7 in dlg_timer_routine (ticks=, 
attr=) at dlg_timer.c:462

tl = 0x
ctl = 
__FUNCTION__ = "dlg_timer_routine"
#8  0x0049d4ba in timer_ticker (drift=, 
timer_list=) at timer.c:384

t = 0x7f4406b8a680
j = 62755
ij = 6275577
ij_marker = 6275577
#9  run_timer_process (tpl=) at timer.c:500
drift = 0
wait = 
o_tv = {tv_sec = 0, tv_usec = 10}
multiple = 10
---Type  to continue, or q  to quit---
cnt = 
tv = {tv_sec = 0, tv_usec = 0}
uinterval = 10
#10 start_timer_processes () at timer.c:610
tpl = 0x7f4406b88788
pid = 
__FUNCTION__ = "start_timer_processes"
#11 0x0041881b in main_loop () at main.c:991
i = 
pid = 
si = 0x0
startup_done = 0x0
chd_rank = 4
rc = 
load_p = 0x7f43d007d718
#12 main (argc=, argv=) at main.c:1598
cfg_log_stderr = 
cfg_stream = 0xd0b010
c = 
r = 
tmp = 0x7fffdf056c05 ""
tmp_len = 
port = 
proto = 
options = 0x525870 "f:cCm:M:b:l:n:N:rRvdDFETSVhw:t:u:g:P:G:W:o:"
ret = -1
seed = 3768095467
rfd = 
__FUNCTION__ = "main"


Regards
Pasan




Re: [OpenSIPS-Users] set environment variables for system - opensipsctl?

2017-04-04 Thread Bogdan-Andrei Iancu

Hi Robert,

The opensipsctl tool starts OpenSIPS directly by using the opensips 
binary - nothing special.


What are the env vars you have problems with ?

Regards,

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

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html

On 04/04/2017 08:14 PM, robert wrote:

If I start opensips via:

opensips start

It seems to pickup the environment variables from current session correctly,
but if use:

opensipsctl start

It does not pickup the environment variables from current session.

Is there some configuration file where I can set environment variables for
the system regardless of the way I start opensips?







--
View this message in context: 
http://opensips-open-sip-server.1449251.n2.nabble.com/set-environment-variables-for-system-opensipsctl-tp7606807.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] AVP + rest_post with utf-8 values

2017-04-04 Thread SamyGo
Hi Liviu,

I confirm that the same happening on my side as well. but take a look at
the last two lines of your tcpdump the characters are converted to
*SIP...XXX...SIP.*
In my case the remove web server in URL receives the data just as is with
dots, like SIP...XXX..SIP , thats the problem as I stated. !

A bit confused, do you mean that conversion of Chinese characters to "..."
is the right behavior ?

Looking for some details.

Thanks,
Sammy


On Tue, Apr 4, 2017 at 9:49 AM, Liviu Chircu  wrote:

> Hi SamyGo,
>
> The rest_post() function seems to properly put _any_ given bytes on the
> wire:
>
> $var(body) = "SIP璎XXX璎SIP";
> $var(ctype) = "text/plain";
> rest_post("http://127.0.0.1; , "$var(body)",
> "$var(ctype)", "$var(retcode)");
>
> produces:
>
> 0x:  4500 00a2 67cc 4000 4006 d487 7f00 0001  E...g.@.@...
> 0x0010:  7f00 0001 8e1d 0050 febf 3131 bf5f d711  ...P..11._..
> 0x0020:  8018 0156 fe96  0101 080a 0142 56fa  ...V.BV.
> 0x0030:  0142 56fa 504f 5354 202f 2048 5454 502f  .BV.POST./.HTTP/
> 0x0040:  312e 310d 0a48 6f73 743a 2031 3237 2e30  1.1..Host:.127.0
> 0x0050:  2e30 2e31 0d0a 4163 6365 7074 3a20 2a2f  .0.1..Accept:.*/
> 0x0060:  2a0d 0a43 6f6e 7465 6e74 2d54 7970 653a  *..Content-Type:
> 0x0070:  2074 6578 742f 706c 6169 6e0d 0a43 6f6e  .text/plain..Con
> 0x0080:  7465 6e74 2d4c 656e 6774 683a 2031 350d  tent-Length:.15.
> 0x0090:  0a0d 0a53 4950 e792 8e58 5858 e792 8e53  ...SIP...XXX...S
> 0x00a0:  4950 IP
>
> The command I used for capturing is:
>
> tcpdump -nnvvXSs 1514 -i any port 80
>
> Please let me know if behavior differs on your platform.
>
> Regards,
>
> Liviu Chircu
> OpenSIPS Developerhttp://www.opensips-solutions.com
>
> OpenSIPS Summit May 2017 Amsterdam
>   http://www.opensips.org/events/Summit-2017Amsterdam.html
>
> On 28.03.2017 19:55, SamyGo wrote:
>
> Hi,
>
> I've a specific problem with avps containing values in language other than
> English. For example an avp(test) holding a Chinese character gets
> converted to ? while passing to some rest_post URL.
>
> *code:*
>
> $avp(test) = $fn;
> xlog("L_INFO","Got Display Name: $avp(test) \n");
> rest_post("$avp(url)","$avp(test)" );
>
>
> The output in x-log line stays correct but the webserver gets the value of
> $avp(test) converted in "...??.."
>
> I've tried to add the charset=utf-8 in the content-type header but it
> doesn't help.
>
> Looking forward to get some hints/help on this.
>
> Thanks,
> Sammy
>
>
>
> ___
> 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-1.11 storing data in memory issue .

2017-04-04 Thread Bogdan-Andrei Iancu

Are the 2 instances sharing the same database ?

Regards,

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

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html

On 04/04/2017 06:59 PM, Sasmita Panda wrote:
I am running two different configuration file in a machine with differ 
port.


  In one configuration file,  use_domain is disable and in another 
it's enable.


  In this case,  I am not able to see those contacts in memory 
which are getting saved without domain.
  Is that can be a reason? I have tried a lot to know the exact 
reason.  But every time I am seeing different behaviour.


   The system in which a single configuration is running,  that's 
working absolutely fine.


  I am stuck in this issue.

On Apr 4, 2017 4:49 PM, "Bogdan-Andrei Iancu" > wrote:


Well, if the "use_domain" is enabled for usrloc, OpenSIPS expects
to find a domain set for all the records in the "location" table,
otherwise it will ignore/discard them at loading time.

The primary storage for registered contacts in the memory cache -
OpenSIPS will perform lookups only in memory cache (and not it DB)
- of course, unless you use the DB ONLY mode.

You can check the in-memory registrations by "opensipsctl ul dump"

Regards,

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

OpenSIPS Summit May 2017 Amsterdam
   http://www.opensips.org/events/Summit-2017Amsterdam.html


On 04/04/2017 01:39 PM, Sasmita Panda wrote:

Hi Bogdan ,
   Yes , the domain corresponding to this username is empty .
But the domain for all the contact is not empty .
When the domain for a contact is not empty and its
present in the DB , I am not getting that in the memory . What
could be the reason for this .
   Another strange thing happening . When I am setting
db_mode :2 , even if a contact is not present in the memory (but
present in db)
the call get connected . I was assuming when there is no contact
in the memory it should send  "404 Not Found" .
   When I am running opensips in AWS linux , everything works
fine . I am not seeing any issue regarding updating memory .
But when I am running this in centos 7 , there is problem in
updating memory in every refresh  .
 So where was the problem . opensips is version is same every
where . My config file is same everywhere . But still there is
difference . Why this is happening ?
*/Thanks & Regards/*
/Sasmita Panda/
/Network Testing and Software Engineer/
/3CLogic , ph:07827611765/
On Tue, Apr 4, 2017 at 3:22 PM, Bogdan-Andrei Iancu
> wrote:

Hello Sasmita, The error means that at startup time
(preloading the usrloc content from DB into memory), OpenSIPS
finds a record (in the "location" table) with an empty domain
field (username '') - could you confirm this by checking
your DB ? Best regards,

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


OpenSIPS Summit May 2017 Amsterdam
   http://www.opensips.org/events/Summit-2017Amsterdam.html


On 03/31/2017 01:06 PM, Sasmita Panda wrote:

Hi  All ,
I am using opensips-1.11 from long time . But today i
faced some issue .
when a username det rigistered , it givind some error in the
logs like bellow .
*CRITICAL:usrloc:preload_udomain: empty domain for user
...skipping *
**
*I am getting that entry in the DB but I am not getting
anything in the memory . Every call to this number failing
with error 404 Not found .*
**
**
*loadmodule "usrloc.so"*
*modparam("usrloc", "db_url",
"mysql://:@localhost/opensips")*
*modparam("usrloc", "db_mode", 1)*
**
*Other default modules are loaded also . It not giving
any error when starting . But while register its throughing
such error . *
**
*  What the problem i am not getting it . This is
happening in one machine . In other machine the same config
with same code is runnign fine .*
**
*Please help me if I am doing anything wrong .*
**
*/Thanks & Regards/*
/Sasmita Panda/
/Network Testing and Software Engineer/
/3CLogic , ph:07827611765/

___
Users 

[OpenSIPS-Users] OpenSIPS Summit 2017: sponsors and more speakers

2017-04-04 Thread Bogdan-Andrei Iancu


Since thelast week announcement 
, 
the list of presenters for theOpenSIPS 2017 Summit 
 got even 
larger, adding new valuable speakers like /David Duffett/(Digium Inc.), 
/Norman Brandinger/(Vonage) , /David Casem and Jason Craft/(Telnyx) 
and/Peter Kelly/(Sourcevox Ltd). Let’s give them warm welcomes 
to OpenSIPS 2017 Summit, May 2-5 at the Radisson Blu Hotel in Amsterdam, 
The Netherlands!


Still, this Summit became possible thanks to our generous sponsors, who 
believe in Open Source, inOpenSIPS and its ability 
to be provide trust and progress in the VoIP world:



   *Platinum Sponsors*

logo_telnyx 



   *Silver Sponsors*

voipgrid


voicetel_logo 

mottonl 



   *Media Sponsors and Partners*

didx 

voicenter 



   *Organizers*

opensips 

qxip_logo 

logo_main


More details and the full list of Speakers and presentations is 
available on the event website:opensips.org/events 



See you all in Amsterdam !!!

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

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html

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


[OpenSIPS-Users] set environment variables for system - opensipsctl?

2017-04-04 Thread robert
If I start opensips via:

opensips start

It seems to pickup the environment variables from current session correctly,
but if use:

opensipsctl start

It does not pickup the environment variables from current session.

Is there some configuration file where I can set environment variables for
the system regardless of the way I start opensips?







--
View this message in context: 
http://opensips-open-sip-server.1449251.n2.nabble.com/set-environment-variables-for-system-opensipsctl-tp7606807.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


Re: [OpenSIPS-Users] mid_registrar

2017-04-04 Thread Slava Bendersky

Hello Liviu,
Here are full trace of RIGISTRAR, but I don't see not in request not in 
reply regid.


https://paste.fedoraproject.org/paste/o2EcKdTbJcXTY9oX6lFfRV5M1UNdIGYhyRLivL9gydE=

Thank you.

volga629

On Tue, 4 Apr, 2017 at 5:13 AM, Liviu Chircu  wrote:

Hi, Volga!

The errors are pretty straightforward, and suggest that the "regid" 
Contact header field parameter has been stripped when the 200 OK 
reply contact set was constructed. To confirm or infirm this, 
however, we need a full SIP packet trace.


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

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html
On 04.04.2017 04:24, volga...@networklab.ca wrote:

Hello Everyone,
Trying implement mid_registrar but module throwing error.


Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: 
ERROR:mid_registrar:fix_rpl_contact_by_ct: failed to get match token
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: 
ERROR:mid_registrar:mid_reg_resp_in: failed to overwrite Contact 
header field domain
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: 
ERROR:mid_registrar:get_match_token: a Contact from main registrar 
(sip:4310@99.245.176.196:46639;rinstance=cc4a62e9cf84e6cf;transport=udp) 
is missing the 'regid' hf parameter
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: 
ERROR:mid_registrar:fix_rpl_contact_by_ct: failed to get match token
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: 
ERROR:mid_registrar:mid_reg_resp_in: failed to overwrite Contact 
header field domain
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: 
ERROR:mid_registrar:get_match_token: a Contact from main registrar 
(sip:4310@99.245.176.196:46639;rinstance=cc4a62e9cf84e6cf;transport=udp) 
is missing the 'regid' hf parameter
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: 
ERROR:mid_registrar:match_contact: failed to get match token
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: 
ERROR:mid_registrar:insert_rpl_contacts: Contact 
'sip:4310@99.245.176.196:46639;rinstance=cc4a62e9cf84e6cf;transport=tcp' 
not found in reply from main registrar!



My setup

UDP transport   |   TCP transport
 freeswitch ( LAN) --- opensips  --- (WAN)  UA (soft client)

Any help thank you, volga629




___
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-1.11 storing data in memory issue .

2017-04-04 Thread Sasmita Panda
I am running two different configuration file in a machine with differ
port.

  In one configuration file,  use_domain is disable and in another it's
enable.

  In this case,  I am not able to see those contacts in memory which
are getting saved without domain.

  Is that can be a reason? I have tried a lot to know the exact
reason.  But every time I am seeing different behaviour.

   The system in which a single configuration is running,  that's
working absolutely fine.

  I am stuck in this issue.

On Apr 4, 2017 4:49 PM, "Bogdan-Andrei Iancu"  wrote:

> Well, if the "use_domain" is enabled for usrloc, OpenSIPS expects to find
> a domain set for all the records in the "location" table, otherwise it will
> ignore/discard them at loading time.
>
> The primary storage for registered contacts in the memory cache - OpenSIPS
> will perform lookups only in memory cache (and not it DB) - of course,
> unless you use the DB ONLY mode.
>
> You can check the in-memory registrations by "opensipsctl ul dump"
>
> Regards,
>
> Bogdan-Andrei Iancu
>   OpenSIPS Founder and Developer
>   http://www.opensips-solutions.com
>
> OpenSIPS Summit May 2017 Amsterdam
>   http://www.opensips.org/events/Summit-2017Amsterdam.html
>
> On 04/04/2017 01:39 PM, Sasmita Panda wrote:
>
> Hi Bogdan ,
>
>Yes , the domain corresponding to this username is empty . But the
> domain for all the contact is not empty .
>
>
> When the domain for a contact is not empty and its present in the
> DB , I am not getting that in the memory . What could be the reason for
> this .
>
>Another strange thing happening . When I am setting db_mode :2 ,
> even if a contact is not present in the memory (but present in db)
> the call get connected . I was assuming when there is no contact in the
> memory it should send  "404 Not Found" .
>
>When I am running opensips in AWS linux , everything works fine . I
> am not seeing any issue regarding updating memory .
> But when I am running this in centos 7 , there is problem in updating
> memory in every refresh  .
>
>
>  So where was the problem . opensips is version is same every where .
> My config file is same everywhere . But still there is difference . Why
> this is happening ?
>
>
>
> *Thanks & Regards*
> *Sasmita Panda*
> *Network Testing and Software Engineer*
> *3CLogic , ph:07827611765*
>
> On Tue, Apr 4, 2017 at 3:22 PM, Bogdan-Andrei Iancu 
> wrote:
>
>> Hello Sasmita,
>>
>> The error means that at startup time (preloading the usrloc content from
>> DB into memory), OpenSIPS finds a record (in the "location" table) with an
>> empty domain field (username '') - could you confirm this by checking
>> your DB ?
>>
>> Best regards,
>>
>> Bogdan-Andrei Iancu
>>   OpenSIPS Founder and Developer
>>   http://www.opensips-solutions.com
>>
>> OpenSIPS Summit May 2017 Amsterdam
>>   http://www.opensips.org/events/Summit-2017Amsterdam.html
>>
>> On 03/31/2017 01:06 PM, Sasmita Panda wrote:
>>
>> Hi  All ,
>> I am using opensips-1.11 from long time . But today i faced some
>> issue .
>> when a username det rigistered , it givind some error in the logs like
>> bellow .
>> *CRITICAL:usrloc:preload_udomain: empty domain for user ...skipping *
>> *I am getting that entry in the DB but I am not getting anything in
>> the memory . Every call to this number failing with error 404 Not found .*
>>
>> *loadmodule "usrloc.so"*
>> *modparam("usrloc", "db_url", "mysql://:@localhost/opensips")*
>> *modparam("usrloc", "db_mode", 1)*
>> *Other default modules are loaded also . It not giving any error when
>> starting . But while register its throughing such error . *
>> *  What the problem i am not getting it . This is happening in one
>> machine . In other machine the same config with same code is runnign fine .*
>> *Please help me if I am doing anything wrong .*
>> *Thanks & Regards*
>> *Sasmita Panda*
>> *Network Testing and Software Engineer*
>> *3CLogic , ph:07827611765*
>>
>> ___
>> 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


Re: [OpenSIPS-Users] mid_registrar

2017-04-04 Thread volga629

Hello Liviu,
Here are mod params

 REGISTRAR module
loadmodule "mid_registrar.so"
modparam("mid_registrar", "mode", 1)
modparam("mid_registrar", "insertion_mode", 0)
modparam("mid_registrar", "received_avp", "$avp(rcv)")
modparam("mid_registrar", "max_contacts", 4)
modparam("mid_registrar", "tcp_persistent_flag", 10)
modparam("mid_registrar", "contact_match_param", "regid")

volga629

On Tue, 4 Apr, 2017 at 12:25 PM, Liviu Chircu  
wrote:
Speaking of help, could you also dump all your mid_registrar 
modparams? This should speed up debugging a bit.

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

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html
On 04.04.2017 18:22, volga...@networklab.ca wrote:

Hello Liviu,
Thank you for all help.

On Tue, 4 Apr, 2017 at 12:05 PM, Liviu Chircu  
wrote:
Ok, so it looks like there is a bug with Contact expirations, with 
some chunk of memory being freed twice. I will reply as soon as I 
have more info.

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

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html
On 04.04.2017 17:40, volga...@networklab.ca wrote:

Hello Liviu,

I modified script and I see regid, but module crash again

Apr 4 10:35:57 casbc00 audit: ANOM_ABEND auid=4294967295 uid=992 
gid=992 ses=4294967295 pid=3154 comm="opensips" 
exe="/usr/sbin/opensips" sig=11
Apr 4 10:35:57 casbc00 kernel: opensips[3154]: segfault at 98 ip 
556b953bcdb0 sp 7ffe5dc47e40 error 4 in 
opensips[556b9538b000+219000]
Apr 4 10:35:57 casbc00 abrt-hook-ccpp: Process 3154 (opensips) of 
user 992 killed by SIGSEGV - dumping core
Apr 4 10:35:57 casbc00 audit: ANOM_ABEND auid=4294967295 uid=992 
gid=992 ses=4294967295 pid=3149 comm="opensips" 
exe="/usr/sbin/opensips" sig=11
Apr 4 10:35:57 casbc00 kernel: opensips[3149]: segfault at 98 ip 
556b953bcdb0 sp 7ffe5dc47e70 error 4 in 
opensips[556b9538b000+219000]
Apr 4 10:35:57 casbc00 abrt-hook-ccpp: Process 3149 (opensips) of 
user 992 killed by SIGSEGV - ignoring (repeated crash)
Apr 4 10:35:57 casbc00 systemd: opensips.service: Main process 
exited, code=dumped, status=11/SEGV



https://paste.fedoraproject.org/paste/GGfquSgHeN0ezjXHPqQzk15M1UNdIGYhyRLivL9gydE=

volga629


On Tue, 4 Apr, 2017 at 10:07 AM, Liviu Chircu  
wrote:
Are you sure mid_registrar_save() is called at all? Please either 
provide some DBG logs of this scenario, or relevant part of the 
script.


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

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html
On 04.04.2017 15:37, volga...@networklab.ca wrote:

Hello Liviu,
Here are full trace of RIGISTRAR, but I don't see not in request 
not in reply regid.


https://paste.fedoraproject.org/paste/o2EcKdTbJcXTY9oX6lFfRV5M1UNdIGYhyRLivL9gydE=

Thank you.

volga629

On Tue, 4 Apr, 2017 at 5:13 AM, Liviu Chircu 
 wrote:

Hi, Volga!

The errors are pretty straightforward, and suggest that the 
"regid" Contact header field parameter has been stripped when 
the 200 OK reply contact set was constructed. To confirm or 
infirm this, however, we need a full SIP packet trace.


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

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html
On 04.04.2017 04:24, volga...@networklab.ca wrote:

Hello Everyone,
Trying implement mid_registrar but module throwing error.


Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: 
ERROR:mid_registrar:fix_rpl_contact_by_ct: failed to get match 
token
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: 
ERROR:mid_registrar:mid_reg_resp_in: failed to overwrite 
Contact header field domain
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: 
ERROR:mid_registrar:get_match_token: a Contact from main 
registrar 
(sip:4310@99.245.176.196:46639;rinstance=cc4a62e9cf84e6cf;transport=udp) 
is missing the 'regid' hf parameter
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: 
ERROR:mid_registrar:fix_rpl_contact_by_ct: failed to get match 
token
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: 
ERROR:mid_registrar:mid_reg_resp_in: failed to overwrite 
Contact header field domain
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: 
ERROR:mid_registrar:get_match_token: a Contact from main 
registrar 
(sip:4310@99.245.176.196:46639;rinstance=cc4a62e9cf84e6cf;transport=udp) 
is missing the 'regid' hf parameter
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: 
ERROR:mid_registrar:match_contact: failed to get match token
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: 
ERROR:mid_registrar:insert_rpl_contacts: Contact 
'sip:4310@99.245.176.196:46639;rinstance=cc4a62e9cf84e6cf;transport=tcp' 
not found in reply from main registrar!



My setup

UDP transport   |   

Re: [OpenSIPS-Users] mid_registrar

2017-04-04 Thread Liviu Chircu
Speaking of help, could you also dump all your mid_registrar modparams? 
This should speed up debugging a bit.


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

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html

On 04.04.2017 18:22, volga...@networklab.ca wrote:

Hello Liviu,
Thank you for all help.

On Tue, 4 Apr, 2017 at 12:05 PM, Liviu Chircu  wrote:


Ok, so it looks like there is a bug with Contact expirations, with 
some chunk of memory being freed twice. I will reply as soon as I 
have more info.


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

OpenSIPS Summit May 2017 Amsterdam
   http://www.opensips.org/events/Summit-2017Amsterdam.html
On 04.04.2017 17:40, volga...@networklab.ca wrote:

Hello Liviu,

I modified script and I see regid, but module crash again

Apr 4 10:35:57 casbc00 audit: ANOM_ABEND auid=4294967295 uid=992 
gid=992 ses=4294967295 pid=3154 comm="opensips" 
exe="/usr/sbin/opensips" sig=11
Apr 4 10:35:57 casbc00 kernel: opensips[3154]: segfault at 98 ip 
556b953bcdb0 sp 7ffe5dc47e40 error 4 in 
opensips[556b9538b000+219000]
Apr 4 10:35:57 casbc00 abrt-hook-ccpp: Process 3154 (opensips) of 
user 992 killed by SIGSEGV - dumping core
Apr 4 10:35:57 casbc00 audit: ANOM_ABEND auid=4294967295 uid=992 
gid=992 ses=4294967295 pid=3149 comm="opensips" 
exe="/usr/sbin/opensips" sig=11
Apr 4 10:35:57 casbc00 kernel: opensips[3149]: segfault at 98 ip 
556b953bcdb0 sp 7ffe5dc47e70 error 4 in 
opensips[556b9538b000+219000]
Apr 4 10:35:57 casbc00 abrt-hook-ccpp: Process 3149 (opensips) of 
user 992 killed by SIGSEGV - ignoring (repeated crash)
Apr 4 10:35:57 casbc00 systemd: opensips.service: Main process 
exited, code=dumped, status=11/SEGV



https://paste.fedoraproject.org/paste/GGfquSgHeN0ezjXHPqQzk15M1UNdIGYhyRLivL9gydE=

volga629


On Tue, 4 Apr, 2017 at 10:07 AM, Liviu Chircu  
wrote:


Are you sure mid_registrar_save() is called at all? Please either 
provide some DBG logs of this scenario, or relevant part of the script.


Regards,

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

OpenSIPS Summit May 2017 Amsterdam
   http://www.opensips.org/events/Summit-2017Amsterdam.html
On 04.04.2017 15:37, volga...@networklab.ca wrote:

Hello Liviu,
Here are full trace of RIGISTRAR, but I don't see not in request 
not in reply regid.


https://paste.fedoraproject.org/paste/o2EcKdTbJcXTY9oX6lFfRV5M1UNdIGYhyRLivL9gydE=

Thank you.

volga629

On Tue, 4 Apr, 2017 at 5:13 AM, Liviu Chircu  
wrote:


Hi, Volga!

The errors are pretty straightforward, and suggest that the 
"regid" Contact header field parameter has been stripped when the 
200 OK reply contact set was constructed. To confirm or infirm 
this, however, we need a full SIP packet trace.


Best regards,

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

OpenSIPS Summit May 2017 Amsterdam
   http://www.opensips.org/events/Summit-2017Amsterdam.html
On 04.04.2017 04:24, volga...@networklab.ca wrote:

Hello Everyone,
Trying implement mid_registrar but module throwing error.


Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: 
ERROR:mid_registrar:fix_rpl_contact_by_ct: failed to get match token
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: 
ERROR:mid_registrar:mid_reg_resp_in: failed to overwrite Contact 
header field domain
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: 
ERROR:mid_registrar:get_match_token: a Contact from main 
registrar 
(sip:4310@99.245.176.196:46639;rinstance=cc4a62e9cf84e6cf;transport=udp) 
is missing the 'regid' hf parameter
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: 
ERROR:mid_registrar:fix_rpl_contact_by_ct: failed to get match token
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: 
ERROR:mid_registrar:mid_reg_resp_in: failed to overwrite Contact 
header field domain
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: 
ERROR:mid_registrar:get_match_token: a Contact from main 
registrar 
(sip:4310@99.245.176.196:46639;rinstance=cc4a62e9cf84e6cf;transport=udp) 
is missing the 'regid' hf parameter
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: 
ERROR:mid_registrar:match_contact: failed to get match token
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: 
ERROR:mid_registrar:insert_rpl_contacts: Contact 
'sip:4310@99.245.176.196:46639;rinstance=cc4a62e9cf84e6cf;transport=tcp' 
not found in reply from main registrar!



My setup

UDP transport   | TCP transport
 freeswitch ( LAN) --- opensips  --- (WAN)  UA (soft 
client)


Any help thank you, volga629




___
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] mid_registrar

2017-04-04 Thread volga629

Hello Liviu,
Thank you for all help.

On Tue, 4 Apr, 2017 at 12:05 PM, Liviu Chircu  
wrote:
Ok, so it looks like there is a bug with Contact expirations, with 
some chunk of memory being freed twice. I will reply as soon as I 
have more info.

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

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html
On 04.04.2017 17:40, volga...@networklab.ca wrote:

Hello Liviu,

I modified script and I see regid, but module crash again

Apr 4 10:35:57 casbc00 audit: ANOM_ABEND auid=4294967295 uid=992 
gid=992 ses=4294967295 pid=3154 comm="opensips" 
exe="/usr/sbin/opensips" sig=11
Apr 4 10:35:57 casbc00 kernel: opensips[3154]: segfault at 98 ip 
556b953bcdb0 sp 7ffe5dc47e40 error 4 in 
opensips[556b9538b000+219000]
Apr 4 10:35:57 casbc00 abrt-hook-ccpp: Process 3154 (opensips) of 
user 992 killed by SIGSEGV - dumping core
Apr 4 10:35:57 casbc00 audit: ANOM_ABEND auid=4294967295 uid=992 
gid=992 ses=4294967295 pid=3149 comm="opensips" 
exe="/usr/sbin/opensips" sig=11
Apr 4 10:35:57 casbc00 kernel: opensips[3149]: segfault at 98 ip 
556b953bcdb0 sp 7ffe5dc47e70 error 4 in 
opensips[556b9538b000+219000]
Apr 4 10:35:57 casbc00 abrt-hook-ccpp: Process 3149 (opensips) of 
user 992 killed by SIGSEGV - ignoring (repeated crash)
Apr 4 10:35:57 casbc00 systemd: opensips.service: Main process 
exited, code=dumped, status=11/SEGV



https://paste.fedoraproject.org/paste/GGfquSgHeN0ezjXHPqQzk15M1UNdIGYhyRLivL9gydE=

volga629


On Tue, 4 Apr, 2017 at 10:07 AM, Liviu Chircu  
wrote:
Are you sure mid_registrar_save() is called at all? Please either 
provide some DBG logs of this scenario, or relevant part of the 
script.


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

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html
On 04.04.2017 15:37, volga...@networklab.ca wrote:

Hello Liviu,
Here are full trace of RIGISTRAR, but I don't see not in request 
not in reply regid.


https://paste.fedoraproject.org/paste/o2EcKdTbJcXTY9oX6lFfRV5M1UNdIGYhyRLivL9gydE=

Thank you.

volga629

On Tue, 4 Apr, 2017 at 5:13 AM, Liviu Chircu  
wrote:

Hi, Volga!

The errors are pretty straightforward, and suggest that the 
"regid" Contact header field parameter has been stripped when the 
200 OK reply contact set was constructed. To confirm or infirm 
this, however, we need a full SIP packet trace.


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

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html
On 04.04.2017 04:24, volga...@networklab.ca wrote:

Hello Everyone,
Trying implement mid_registrar but module throwing error.


Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: 
ERROR:mid_registrar:fix_rpl_contact_by_ct: failed to get match 
token
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: 
ERROR:mid_registrar:mid_reg_resp_in: failed to overwrite Contact 
header field domain
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: 
ERROR:mid_registrar:get_match_token: a Contact from main 
registrar 
(sip:4310@99.245.176.196:46639;rinstance=cc4a62e9cf84e6cf;transport=udp) 
is missing the 'regid' hf parameter
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: 
ERROR:mid_registrar:fix_rpl_contact_by_ct: failed to get match 
token
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: 
ERROR:mid_registrar:mid_reg_resp_in: failed to overwrite Contact 
header field domain
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: 
ERROR:mid_registrar:get_match_token: a Contact from main 
registrar 
(sip:4310@99.245.176.196:46639;rinstance=cc4a62e9cf84e6cf;transport=udp) 
is missing the 'regid' hf parameter
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: 
ERROR:mid_registrar:match_contact: failed to get match token
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: 
ERROR:mid_registrar:insert_rpl_contacts: Contact 
'sip:4310@99.245.176.196:46639;rinstance=cc4a62e9cf84e6cf;transport=tcp' 
not found in reply from main registrar!



My setup

UDP transport   |   TCP transport
 freeswitch ( LAN) --- opensips  --- (WAN)  UA (soft 
client)


Any help thank you, volga629




___
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] FW: Problem with outbound calls

2017-04-04 Thread brian southworth
Hi All,

 

I seem to have an issue when using forward() my cisco phone says loop
detected.

If I used t_relay() my phone will say invalid destination both result in a
bye signal being sent by open sips, however the call is still passed to the
carrier 

 

Regards,

 

Brian Southworth

Communications Developer



111 Wilmslow Road

Handforth

Wilmslow

SK9 3ER

 

T: 0 446677

W: www.clocom.uk   


 

 

 

 

 


  

Like us on Facebook



Follow us on Twitter

  


 

 

 

 

 

Clocom is a green company. Think, do you need to print this email?

 

This message contains confidential information and is intended only for the
individual named. If you are not the named addressee you should not
disseminate, distribute or copy this e-mail. Please notify the sender
immediately by e-mail if you have received this e-mail by mistake and delete
this e-mail from your system. E-mail transmission cannot be guaranteed to be
secure or error-free as information could be intercepted, corrupted, lost,
destroyed, arrive late or incomplete, or contain viruses. The sender
therefore does not accept liability for any errors or omissions in the
contents of this message, which arise as a result of e-mail transmission. If
verification is required please request a hard-copy version. Clocom UK Ltd,
111 Wilmslow Road, Handforth, Cheshire, SK9 3ER www.clocom.uk
 

 

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


Re: [OpenSIPS-Users] Opensips drouting probing

2017-04-04 Thread Denis via Users
Yes, without routeid Opensips returns 404 code! -- С уважением, Денис.Best regards, Denis   04.04.2017, 17:59, "Bogdan-Andrei Iancu" :And if you remove the routeid (in the rule definition), does the routing works ok ?Regards,Bogdan-Andrei Iancu
  OpenSIPS Founder and Developer
  http://www.opensips-solutions.com

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html
On 04/04/2017 05:56 PM, Denis wrote:No, i don`t -- С уважением, Денис.Best regards, Denis   04.04.2017, 16:22, "Bogdan-Andrei Iancu" :Do you do an "drop" or "exit" in that routeid ??Bogdan-Andrei Iancu
  OpenSIPS Founder and Developer
  http://www.opensips-solutions.com

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html
On 04/04/2017 03:16 PM, Denis wrote:Bogdan, Ok, dr_rules has filled 'routeid' column.In routeid i, using dialplan, verify dialed prefix for some reason. If dialed prefix verified i make some action, if not, returns to the parent route.In my example, dialed prefix does not verified. So, route with do_routing951: xlog ("Prepare routing");
952: if (!do_routing("$avp(5)",,,"$avp(300)","$avp(3)",)) {  
953: send_reply("404", "Not found");
954: exit;
955: }route [routeid] {   
1848: if (dp_translate("20004", "$rU/$rU", "$avp(999)")) {

  
} else {
   ..
}  
1867: } The last strings for the call flow in syslog: :951][me][core xlog]:952][me][module do_routing]:1867][me][core if]:1848][me][module dp_translate]INFO:drouting:do_routing: All the gateways are disabled That is all. After that only my CANCEL from the caller, because there is no provisioning message after 100 Trying from Opensips. -- С уважением, Денис.Best regards, Denis   04.04.2017, 14:14, "Bogdan-Andrei Iancu" :Hi Denis,Again, as drouting is not doing any signalling action, it CANNOT block/freeze your OpenSIPS.Use script_trace() function to see how your INVITE is handled :    http://www.opensips.org/Documentation/Script-CoreFunctions-2-2#toc43Regards,Bogdan-Andrei Iancu
  OpenSIPS Founder and Developer
  http://www.opensips-solutions.com

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html
On 03/28/2017 04:46 PM, Denis via Users wrote:In additional,a part of the opensips.cfg xlog ("Prepare routing");
if (!do_routing("$avp(5)","W",,"$avp(300)","$avp(3)",)) {
send_reply("404", "Not found");
 exit;
} a part of the log Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: Prepare routingMar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:drouting:do_routing_1: using weights in GW selectionMar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:drouting:do_routing: using dr group 2, rule_idx 0, username 88123364021Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:drouting:internal_check_rt: found rgid 2 (rule list 0x7f77f0f63188)Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialplan:dp_translate_f: dpid is 20004 partition is defaultMar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialplan:dp_get_svalue: searching 15Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialplan:dp_translate_f: input is 88123364021Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialplan:dp_translate_f: Checking with dpid 20004Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialplan:translate: Regex operator testing. Got result: -1Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialplan:translate: No matching rule for input 88123364021Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialplan:dp_translate_f: could not translate 88123364021 with dpid 20004Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: INFO:drouting:do_routing: All the gateways are disabledMar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialog:next_state_dlg: unref dlg 0x7f77f3c8bc70 with 1 -> 2 in entry 0x7f77ef003548Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:core:evi_param_set: adding string paramMar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:core:evi_param_set: adding string paramMar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:core:evi_param_set: adding int paramMar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:core:evi_param_set: adding int paramMar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:core:destroy_avp_list: destroying list (nil)Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialog:next_state_dlg: dialog 0x7f77f3c8bc70 changed from state 1 to state 5, due event 1Mar 28 09:38:28 ubuntu-amd64 

Re: [OpenSIPS-Users] Opensips drouting probing

2017-04-04 Thread Denis via Users
I will check it and tell the result -- С уважением, Денис.Best regards, Denis   04.04.2017, 17:59, "Bogdan-Andrei Iancu" :And if you remove the routeid (in the rule definition), does the routing works ok ?Regards,Bogdan-Andrei Iancu
  OpenSIPS Founder and Developer
  http://www.opensips-solutions.com

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html
On 04/04/2017 05:56 PM, Denis wrote:No, i don`t -- С уважением, Денис.Best regards, Denis   04.04.2017, 16:22, "Bogdan-Andrei Iancu" :Do you do an "drop" or "exit" in that routeid ??Bogdan-Andrei Iancu
  OpenSIPS Founder and Developer
  http://www.opensips-solutions.com

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html
On 04/04/2017 03:16 PM, Denis wrote:Bogdan, Ok, dr_rules has filled 'routeid' column.In routeid i, using dialplan, verify dialed prefix for some reason. If dialed prefix verified i make some action, if not, returns to the parent route.In my example, dialed prefix does not verified. So, route with do_routing951: xlog ("Prepare routing");
952: if (!do_routing("$avp(5)",,,"$avp(300)","$avp(3)",)) {  
953: send_reply("404", "Not found");
954: exit;
955: }route [routeid] {   
1848: if (dp_translate("20004", "$rU/$rU", "$avp(999)")) {

  
} else {
   ..
}  
1867: } The last strings for the call flow in syslog: :951][me][core xlog]:952][me][module do_routing]:1867][me][core if]:1848][me][module dp_translate]INFO:drouting:do_routing: All the gateways are disabled That is all. After that only my CANCEL from the caller, because there is no provisioning message after 100 Trying from Opensips. -- С уважением, Денис.Best regards, Denis   04.04.2017, 14:14, "Bogdan-Andrei Iancu" :Hi Denis,Again, as drouting is not doing any signalling action, it CANNOT block/freeze your OpenSIPS.Use script_trace() function to see how your INVITE is handled :    http://www.opensips.org/Documentation/Script-CoreFunctions-2-2#toc43Regards,Bogdan-Andrei Iancu
  OpenSIPS Founder and Developer
  http://www.opensips-solutions.com

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html
On 03/28/2017 04:46 PM, Denis via Users wrote:In additional,a part of the opensips.cfg xlog ("Prepare routing");
if (!do_routing("$avp(5)","W",,"$avp(300)","$avp(3)",)) {
send_reply("404", "Not found");
 exit;
} a part of the log Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: Prepare routingMar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:drouting:do_routing_1: using weights in GW selectionMar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:drouting:do_routing: using dr group 2, rule_idx 0, username 88123364021Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:drouting:internal_check_rt: found rgid 2 (rule list 0x7f77f0f63188)Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialplan:dp_translate_f: dpid is 20004 partition is defaultMar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialplan:dp_get_svalue: searching 15Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialplan:dp_translate_f: input is 88123364021Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialplan:dp_translate_f: Checking with dpid 20004Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialplan:translate: Regex operator testing. Got result: -1Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialplan:translate: No matching rule for input 88123364021Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialplan:dp_translate_f: could not translate 88123364021 with dpid 20004Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: INFO:drouting:do_routing: All the gateways are disabledMar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialog:next_state_dlg: unref dlg 0x7f77f3c8bc70 with 1 -> 2 in entry 0x7f77ef003548Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:core:evi_param_set: adding string paramMar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:core:evi_param_set: adding string paramMar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:core:evi_param_set: adding int paramMar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:core:evi_param_set: adding int paramMar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:core:destroy_avp_list: destroying list (nil)Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialog:next_state_dlg: dialog 0x7f77f3c8bc70 changed from state 1 to state 5, due event 1Mar 28 09:38:28 ubuntu-amd64 

Re: [OpenSIPS-Users] Opensips crash

2017-04-04 Thread Денис Путято via Users
Sorry, Bogdan, i missed that I found such CRITICAL message"CRITICAL:core:qm_free: freeing already freed pointer, first free: acc_logic.c: dlg_free_acc_mask(211) - aborting" And after that and till crash only "WARNING:core:utimer_ticker:" reports in syslog. (gdb)f 2#2  0x00515592 in qm_free (qm=, p=p@entry=0x7fdf83c9f340, file=file@entry=0x7fdf6753ad62 "acc_logic.c",    func=func@entry=0x7fdf6753af90 <__FUNCTION__.12529> "dlg_free_acc_mask", line=line@entry=211) at mem/q_malloc.c:483483                     abort();  p *((struct qm_frag*) ((char*)p-sizeof(struct qm_frag)))$1 = {size = 8, u = {nxt_free = 0x7fdf71a8c6b0, is_free = 140597661320880}, file = 0x7fdf6753ad62 "acc_logic.c", func = 0x7fdf6753af90 <__FUNCTION__.12529> "dlg_free_acc_mask", line = 211,  check = 17361641481138401520} -- С уважением, Денис.Best regards, Denis   04.04.2017, 17:58, "Bogdan-Andrei Iancu" :The RADIUS part is not relevant.Still you didn;t answer to my question on the CRITICAL error - according to the backtrace, you should have a CRITICAL message in the opensips log, just before the crash.In GDB, do:    f 2    p *((struct qm_frag*) ((char*)p-sizeof(struct qm_frag)))  Regards,Bogdan-Andrei Iancu
  OpenSIPS Founder and Developer
  http://www.opensips-solutions.com

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html
On 04/04/2017 05:55 PM, Denis wrote:During crash there was another problem with LAN network.Because of this problem Opensips could not connect to radius server.rc_ip_hostname: couldn't look up host by addr: xxrc_send_server: no reply from RADIUS server unknown:1812 No more critical messages. Bogdan, i am sorry, but"in frame 2". What does it mean?  -- С уважением, Денис.Best regards, Denis   04.04.2017, 16:35, "Bogdan-Andrei Iancu" :Any CRITICAL message into the log before the crash ?also, in gdb in frame 2, please print:    p *((struct qm_frag*) ((char*)p-sizeof(struct qm_frag)))   Thanks,Bogdan-Andrei Iancu
  OpenSIPS Founder and Developer
  http://www.opensips-solutions.com

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html
On 04/04/2017 03:19 PM, Denis wrote:p shm_block->first_frag$1 = (struct qm_frag *) 0x7fdf6b9d44f8 p shm_block->last_frag_end$2 = (struct qm_frag_end *) 0x7fe02899efd0  p mem_block->first_frag$3 = (struct qm_frag *) 0x7fe029214508 p mem_block->last_frag_end$4 = (struct qm_frag_end *) 0x7fe0691defe0  -- С уважением, Денис.Best regards, Denis   04.04.2017, 14:51, "Bogdan-Andrei Iancu" :OK,please enter gdb and print:    p shm_block->first_frag    p shm_block->last_frag_end    p mem_block->first_frag    p mem_block->last_frag_endThanks,Bogdan-Andrei Iancu
  OpenSIPS Founder and Developer
  http://www.opensips-solutions.com

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html
On 04/04/2017 01:42 PM, Denis wrote:Hello, Bogdan! No, i cannot see in the log any messages you mentioned it your letter.The situation dealing with crash had such stage. 1. I prepared to migrate to 2.2.3 from 2.2.2. But do not have a time to restart Opensips2. As a result "i waited" when Opensips have crashed. During crash of 2.2.2 no core file has been generated, but Opensips has been restarted using cron.3. After 2) Opensips became 2.2.3. It was working about 1 minute and crashed again, but in that time, core file has been generated and i attached information from it.So, between 2) and 3) , as i mentioned above, there were no messages about memory, but i see many messages like'WARNING:core:utimer_ticker: utimer task  already scheduled for 71500 msWARNING:core:timer_ticker: timer task  already scheduled for 72400 msWARNING:core:timer_ticker: timer task  already scheduled for 72400 msWARNING:core:timer_ticker: timer task  already scheduled for 72400 msWARNING:core:timer_ticker: timer task  already scheduled for 72400 ms'and so on As for about version version: opensips 2.2.3 (x86_64/linux)flags: STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP, PKG_MALLOC, QM_MALLOC, DBG_MALLOC, FAST_LOCK-ADAPTIVE_WAITADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.git revision: 7922417main.c compiled on 06:29:28 Mar 23 2017 with gcc 5.4.0 -- С уважением, Денис.Best regards, Denis   04.04.2017, 12:43, "Bogdan-Andrei Iancu" :Hello Denis,Thank you for the report. Do you see any CRITICAL log just before the crash, something like:    "bad pointer 0 (out of memory block!) - aborting"?If yes, please post here the exact line.Also, do you use the latest OpenSIPS 2.2 from GIT repo ? (run "opensips -v")Regards,Bogdan-Andrei Iancu
  OpenSIPS Founder and Developer
  http://www.opensips-solutions.com

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html
On 04/04/2017 10:58 

Re: [OpenSIPS-Users] mid_registrar

2017-04-04 Thread Liviu Chircu
Ok, so it looks like there is a bug with Contact expirations, with some 
chunk of memory being freed twice. I will reply as soon as I have more info.


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

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html

On 04.04.2017 17:40, volga...@networklab.ca wrote:

Hello Liviu,

I modified script and I see regid, but module crash again

Apr 4 10:35:57 casbc00 audit: ANOM_ABEND auid=4294967295 uid=992 
gid=992 ses=4294967295 pid=3154 comm="opensips" 
exe="/usr/sbin/opensips" sig=11
Apr 4 10:35:57 casbc00 kernel: opensips[3154]: segfault at 98 ip 
556b953bcdb0 sp 7ffe5dc47e40 error 4 in 
opensips[556b9538b000+219000]
Apr 4 10:35:57 casbc00 abrt-hook-ccpp: Process 3154 (opensips) of user 
992 killed by SIGSEGV - dumping core
Apr 4 10:35:57 casbc00 audit: ANOM_ABEND auid=4294967295 uid=992 
gid=992 ses=4294967295 pid=3149 comm="opensips" 
exe="/usr/sbin/opensips" sig=11
Apr 4 10:35:57 casbc00 kernel: opensips[3149]: segfault at 98 ip 
556b953bcdb0 sp 7ffe5dc47e70 error 4 in 
opensips[556b9538b000+219000]
Apr 4 10:35:57 casbc00 abrt-hook-ccpp: Process 3149 (opensips) of user 
992 killed by SIGSEGV - ignoring (repeated crash)
Apr 4 10:35:57 casbc00 systemd: opensips.service: Main process exited, 
code=dumped, status=11/SEGV



https://paste.fedoraproject.org/paste/GGfquSgHeN0ezjXHPqQzk15M1UNdIGYhyRLivL9gydE=

volga629


On Tue, 4 Apr, 2017 at 10:07 AM, Liviu Chircu  wrote:


Are you sure mid_registrar_save() is called at all? Please either 
provide some DBG logs of this scenario, or relevant part of the script.


Regards,

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

OpenSIPS Summit May 2017 Amsterdam
   http://www.opensips.org/events/Summit-2017Amsterdam.html
On 04.04.2017 15:37, volga...@networklab.ca wrote:

Hello Liviu,
Here are full trace of RIGISTRAR, but I don't see not in request not 
in reply regid.


https://paste.fedoraproject.org/paste/o2EcKdTbJcXTY9oX6lFfRV5M1UNdIGYhyRLivL9gydE=

Thank you.

volga629

On Tue, 4 Apr, 2017 at 5:13 AM, Liviu Chircu  wrote:


Hi, Volga!

The errors are pretty straightforward, and suggest that the "regid" 
Contact header field parameter has been stripped when the 200 OK 
reply contact set was constructed. To confirm or infirm this, 
however, we need a full SIP packet trace.


Best regards,

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

OpenSIPS Summit May 2017 Amsterdam
   http://www.opensips.org/events/Summit-2017Amsterdam.html
On 04.04.2017 04:24, volga...@networklab.ca wrote:

Hello Everyone,
Trying implement mid_registrar but module throwing error.


Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: 
ERROR:mid_registrar:fix_rpl_contact_by_ct: failed to get match token
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: 
ERROR:mid_registrar:mid_reg_resp_in: failed to overwrite Contact 
header field domain
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: 
ERROR:mid_registrar:get_match_token: a Contact from main registrar 
(sip:4310@99.245.176.196:46639;rinstance=cc4a62e9cf84e6cf;transport=udp) 
is missing the 'regid' hf parameter
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: 
ERROR:mid_registrar:fix_rpl_contact_by_ct: failed to get match token
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: 
ERROR:mid_registrar:mid_reg_resp_in: failed to overwrite Contact 
header field domain
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: 
ERROR:mid_registrar:get_match_token: a Contact from main registrar 
(sip:4310@99.245.176.196:46639;rinstance=cc4a62e9cf84e6cf;transport=udp) 
is missing the 'regid' hf parameter
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: 
ERROR:mid_registrar:match_contact: failed to get match token
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: 
ERROR:mid_registrar:insert_rpl_contacts: Contact 
'sip:4310@99.245.176.196:46639;rinstance=cc4a62e9cf84e6cf;transport=tcp' 
not found in reply from main registrar!



My setup

UDP transport   |   TCP transport
 freeswitch ( LAN) --- opensips  --- (WAN)  UA (soft client)

Any help thank you, volga629




___
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] Configure OpenSIPS to use USER based gateway

2017-04-04 Thread Bogdan-Andrei Iancu
Could you please send me (off list) the script ? There is something 
really weird going on.


Thanks,

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

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html

On 04/04/2017 04:36 PM, sagar malam wrote:

Hello Bogdan,

I disabled Dialog and TH module but result is same.

Please find attached file

On Tue, Apr 4, 2017 at 6:42 PM Bogdan-Andrei Iancu 
> wrote:


Thank you Sagar,

I see you use topology hiding - could you please disabled the
dialog and TH support for the call and try it again ?

Regards,

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

OpenSIPS Summit May 2017 Amsterdam
   http://www.opensips.org/events/Summit-2017Amsterdam.html

On 04/04/2017 03:39 PM, sagar malam wrote:


Yes.

Please find attached file.

On Tue, Apr 4, 2017 at 5:06 PM Bogdan-Andrei Iancu
> wrote:

Whatever headers are added in failure route are visible only
to that particular branch, they are are not inherited by any
future branch. So, if you do uac_auth() from failure route
only, I do not see how the Auth hdr may propagate to other
branch.

Do you have a pcap or txt capture for the call flow ?

Regards,

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

OpenSIPS Summit May 2017 Amsterdam
   http://www.opensips.org/events/Summit-2017Amsterdam.html

On 04/04/2017 01:54 PM, sagar malam wrote:

Hello Bodgan,

Thanks for reply.

Do you use the uac_auth() (which add the Auth hdr) only from
failure route, right ?
Yes exactly.

Also , does your INVITE have any already populated Auth hdr
(when received by OpenSIPS) ?
No,we are adding it using uac_auth function.


On Tue, Apr 4, 2017 at 4:18 PM Bogdan-Andrei Iancu
> wrote:

Hello,

Do you use the uac_auth() (which add the Auth hdr) only
from failure route, right ?

Also , does your INVITE have any already populated Auth
hdr (when received by OpenSIPS) ?

Best regards,

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

OpenSIPS Summit May 2017 Amsterdam
   http://www.opensips.org/events/Summit-2017Amsterdam.html

On 04/03/2017 11:26 AM, sagar malam wrote:

Hello,

I am trying to configure OpenSIPS to support
Username-password based authentication Gateway.

Hence i am using uac_auth function to generated
Authorization header before relaying INVITE packet to
gateway.

I am facing issue in removing old Authorization header
and append new Authorization header in Failure route
before trying next gateway.

OpenSIPs is not detecting old Authorization headers but
when i see sip trace ,headers are present.


Script flow is something like this :
request_route{
 select_gateway
  relay_route
}
relay_route{
t_relay
}

failure_route{
Remove old Authirization header
 on,407 or 401,Add Authorization header using uac_auth
select_next gateway
relay_route
}

In Users mailing list i read that headers added in
request route cannot be removed later,hence i need to
add headers during branch route but uac_auth function
works only in failure route.

Please help me on this.

Thanks in advance



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








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


Re: [OpenSIPS-Users] Opensips drouting probing

2017-04-04 Thread Bogdan-Andrei Iancu
And if you remove the routeid (in the rule definition), does the routing 
works ok ?


Regards,

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

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html

On 04/04/2017 05:56 PM, Denis wrote:

No, i don`t
--
С уважением, Денис.
Best regards, Denis
04.04.2017, 16:22, "Bogdan-Andrei Iancu" :

Do you do an "drop" or "exit" in that routeid ??
Bogdan-Andrei Iancu
   OpenSIPS Founder and Developer
   http://www.opensips-solutions.com 

OpenSIPS Summit May 2017 Amsterdam
   http://www.opensips.org/events/Summit-2017Amsterdam.html
On 04/04/2017 03:16 PM, Denis wrote:

Bogdan,
Ok, dr_rules has filled 'routeid' column.
In routeid i, using dialplan, verify dialed prefix for some reason. 
If dialed prefix verified i make some action, if not, returns to the 
parent route.

In my example, dialed prefix does not verified.
So, route with do_routing
951: xlog ("Prepare routing");
952: if (!do_routing("$avp(5)",,,"$avp(300)","$avp(3)",)) {
953: send_reply("404", "Not found");
954: exit;
955: }
route [routeid] {
1848: if (dp_translate("20004", "$rU/$rU", "$avp(999)")) {

   
} else {
..
}
1867: }
The last strings for the call flow in syslog:
:951][me][core xlog]
:952][me][module do_routing]
:1867][me][core if]
:1848][me][module dp_translate]
INFO:drouting:do_routing: All the gateways are disabled
That is all. After that only my CANCEL from the caller, because 
there is no provisioning message after 100 Trying from Opensips.

--
С уважением, Денис.
Best regards, Denis
04.04.2017, 14:14, "Bogdan-Andrei Iancu"  
:

Hi Denis,

Again, as drouting is not doing any signalling action, it CANNOT 
block/freeze your OpenSIPS.


Use script_trace() function to see how your INVITE is handled :
http://www.opensips.org/Documentation/Script-CoreFunctions-2-2#toc43

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

OpenSIPS Summit May 2017 Amsterdam
   http://www.opensips.org/events/Summit-2017Amsterdam.html
On 03/28/2017 04:46 PM, Denis via Users wrote:

In additional,
a part of the opensips.cfg
xlog ("Prepare routing");
if (!do_routing("$avp(5)","W",,"$avp(300)","$avp(3)",)) {
 send_reply("404", "Not found");
  exit;
}
a part of the log
Mar 28 09:38:28 ubuntu-amd64 
/usr/local/opensips2.2/sbin/opensips[7170]: Prepare routing
Mar 28 09:38:28 ubuntu-amd64 
/usr/local/opensips2.2/sbin/opensips[7170]: 
DBG:drouting:do_routing_1: using weights in GW selection
Mar 28 09:38:28 ubuntu-amd64 
/usr/local/opensips2.2/sbin/opensips[7170]: 
DBG:drouting:do_routing: using dr group 2, rule_idx 0, username 
88123364021
Mar 28 09:38:28 ubuntu-amd64 
/usr/local/opensips2.2/sbin/opensips[7170]: 
DBG:drouting:internal_check_rt: found rgid 2 (rule list 
0x7f77f0f63188)
Mar 28 09:38:28 ubuntu-amd64 
/usr/local/opensips2.2/sbin/opensips[7170]: 
DBG:dialplan:dp_translate_f: dpid is 20004 partition is default
Mar 28 09:38:28 ubuntu-amd64 
/usr/local/opensips2.2/sbin/opensips[7170]: 
DBG:dialplan:dp_get_svalue: searching 15
Mar 28 09:38:28 ubuntu-amd64 
/usr/local/opensips2.2/sbin/opensips[7170]: 
DBG:dialplan:dp_translate_f: input is 88123364021
Mar 28 09:38:28 ubuntu-amd64 
/usr/local/opensips2.2/sbin/opensips[7170]: 
DBG:dialplan:dp_translate_f: Checking with dpid 20004
Mar 28 09:38:28 ubuntu-amd64 
/usr/local/opensips2.2/sbin/opensips[7170]: 
DBG:dialplan:translate: Regex operator testing. Got result: -1
Mar 28 09:38:28 ubuntu-amd64 
/usr/local/opensips2.2/sbin/opensips[7170]: 
DBG:dialplan:translate: No matching rule for input 88123364021
Mar 28 09:38:28 ubuntu-amd64 
/usr/local/opensips2.2/sbin/opensips[7170]: 
DBG:dialplan:dp_translate_f: could not translate 88123364021 with 
dpid 20004
Mar 28 09:38:28 ubuntu-amd64 
/usr/local/opensips2.2/sbin/opensips[7170]: 
INFO:drouting:do_routing: All the gateways are disabled
Mar 28 09:38:28 ubuntu-amd64 
/usr/local/opensips2.2/sbin/opensips[7170]: 
DBG:dialog:next_state_dlg: unref dlg 0x7f77f3c8bc70 with 1 -> 2 in 
entry 0x7f77ef003548
Mar 28 09:38:28 ubuntu-amd64 
/usr/local/opensips2.2/sbin/opensips[7170]: 
DBG:core:evi_param_set: adding string param
Mar 28 09:38:28 ubuntu-amd64 
/usr/local/opensips2.2/sbin/opensips[7170]: 
DBG:core:evi_param_set: adding string param
Mar 28 09:38:28 ubuntu-amd64 
/usr/local/opensips2.2/sbin/opensips[7170]: 
DBG:core:evi_param_set: adding int param
Mar 28 09:38:28 ubuntu-amd64 
/usr/local/opensips2.2/sbin/opensips[7170]: 
DBG:core:evi_param_set: adding int param
Mar 28 09:38:28 ubuntu-amd64 
/usr/local/opensips2.2/sbin/opensips[7170]: 
DBG:core:destroy_avp_list: destroying list (nil)
Mar 28 09:38:28 ubuntu-amd64 
/usr/local/opensips2.2/sbin/opensips[7170]: 
DBG:dialog:next_state_dlg: dialog 0x7f77f3c8bc70 changed from 
state 1 to state 

Re: [OpenSIPS-Users] Opensips crash

2017-04-04 Thread Bogdan-Andrei Iancu

The RADIUS part is not relevant.

Still you didn;t answer to my question on the CRITICAL error - according 
to the backtrace, you should have a CRITICAL message in the opensips 
log, just before the crash.


In GDB, do:
f 2
p *((struct qm_frag*) ((char*)p-sizeof(struct qm_frag)))

Regards,

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

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html

On 04/04/2017 05:55 PM, Denis wrote:

During crash there was another problem with LAN network.
Because of this problem Opensips could not connect to radius server.
rc_ip_hostname: couldn't look up host by addr: xx
rc_send_server: no reply from RADIUS server unknown:1812
No more critical messages.
Bogdan, i am sorry, but
"in frame 2". What does it mean?
--
С уважением, Денис.
Best regards, Denis
04.04.2017, 16:35, "Bogdan-Andrei Iancu" :

Any CRITICAL message into the log before the crash ?

also, in gdb in frame 2, please print:
p *((struct qm_frag*) ((char*)p-sizeof(struct qm_frag)))


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

OpenSIPS Summit May 2017 Amsterdam
   http://www.opensips.org/events/Summit-2017Amsterdam.html
On 04/04/2017 03:19 PM, Denis wrote:

p shm_block->first_frag
$1 = (struct qm_frag *) 0x7fdf6b9d44f8
p shm_block->last_frag_end
$2 = (struct qm_frag_end *) 0x7fe02899efd0
 p mem_block->first_frag
$3 = (struct qm_frag *) 0x7fe029214508
p mem_block->last_frag_end
$4 = (struct qm_frag_end *) 0x7fe0691defe0
--
С уважением, Денис.
Best regards, Denis
04.04.2017, 14:51, "Bogdan-Andrei Iancu"  
:

OK,please enter gdb and print:
p shm_block->first_frag
p shm_block->last_frag_end

p mem_block->first_frag
p mem_block->last_frag_end

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

OpenSIPS Summit May 2017 Amsterdam
   http://www.opensips.org/events/Summit-2017Amsterdam.html
On 04/04/2017 01:42 PM, Denis wrote:

Hello, Bogdan!
No, i cannot see in the log any messages you mentioned it your letter.
The situation dealing with crash had such stage.
1. I prepared to migrate to 2.2.3 from 2.2.2. But do not have a 
time to restart Opensips
2. As a result "i waited" when Opensips have crashed. During crash 
of 2.2.2 no core file has been generated, but Opensips has been 
restarted using cron.
3. After 2) Opensips became 2.2.3. It was working about 1 minute 
and crashed again, but in that time, core file has been generated 
and i attached information from it.
So, between 2) and 3) , as i mentioned above, there were no 
messages about memory, but i see many messages like
'WARNING:core:utimer_ticker: utimer task  already 
scheduled for 71500 ms
WARNING:core:timer_ticker: timer task  already 
scheduled for 72400 ms
WARNING:core:timer_ticker: timer task  already scheduled 
for 72400 ms
WARNING:core:timer_ticker: timer task  already 
scheduled for 72400 ms
WARNING:core:timer_ticker: timer task  already 
scheduled for 72400 ms'

and so on
As for about version
version: opensips 2.2.3 (x86_64/linux)
flags: STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP, PKG_MALLOC, 
QM_MALLOC, DBG_MALLOC, FAST_LOCK-ADAPTIVE_WAIT
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 
16, MAX_URI_SIZE 1024, BUF_SIZE 65535

poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
git revision: 7922417
main.c compiled on 06:29:28 Mar 23 2017 with gcc 5.4.0
--
С уважением, Денис.
Best regards, Denis
04.04.2017, 12:43, "Bogdan-Andrei Iancu"  
:

Hello Denis,

Thank you for the report. Do you see any CRITICAL log just before 
the crash, something like:

"bad pointer 0 (out of memory block!) - aborting"
?
If yes, please post here the exact line.

Also, do you use the latest OpenSIPS 2.2 from GIT repo ? (run 
"opensips -v")


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



OpenSIPS Summit May 2017 Amsterdam
   http://www.opensips.org/events/Summit-2017Amsterdam.html
On 04/04/2017 10:58 AM, Denis via Users wrote:

Hello!
Server:: OpenSIPS (2.2.3 (x86_64/linux))
Thank you for any help.
P.S. Opensips has been compiled with QM_MALLOC and DBG_MALLOC flags
--
С уважением, Денис.
Best regards, Denis
___
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 crash

2017-04-04 Thread Denis via Users
During crash there was another problem with LAN network.Because of this problem Opensips could not connect to radius server.rc_ip_hostname: couldn't look up host by addr: xxrc_send_server: no reply from RADIUS server unknown:1812 No more critical messages. Bogdan, i am sorry, but"in frame 2". What does it mean?  -- С уважением, Денис.Best regards, Denis   04.04.2017, 16:35, "Bogdan-Andrei Iancu" :Any CRITICAL message into the log before the crash ?also, in gdb in frame 2, please print:    p *((struct qm_frag*) ((char*)p-sizeof(struct qm_frag)))   Thanks,Bogdan-Andrei Iancu
  OpenSIPS Founder and Developer
  http://www.opensips-solutions.com

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html
On 04/04/2017 03:19 PM, Denis wrote:p shm_block->first_frag$1 = (struct qm_frag *) 0x7fdf6b9d44f8 p shm_block->last_frag_end$2 = (struct qm_frag_end *) 0x7fe02899efd0  p mem_block->first_frag$3 = (struct qm_frag *) 0x7fe029214508 p mem_block->last_frag_end$4 = (struct qm_frag_end *) 0x7fe0691defe0  -- С уважением, Денис.Best regards, Denis   04.04.2017, 14:51, "Bogdan-Andrei Iancu" :OK,please enter gdb and print:    p shm_block->first_frag    p shm_block->last_frag_end    p mem_block->first_frag    p mem_block->last_frag_endThanks,Bogdan-Andrei Iancu
  OpenSIPS Founder and Developer
  http://www.opensips-solutions.com

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html
On 04/04/2017 01:42 PM, Denis wrote:Hello, Bogdan! No, i cannot see in the log any messages you mentioned it your letter.The situation dealing with crash had such stage. 1. I prepared to migrate to 2.2.3 from 2.2.2. But do not have a time to restart Opensips2. As a result "i waited" when Opensips have crashed. During crash of 2.2.2 no core file has been generated, but Opensips has been restarted using cron.3. After 2) Opensips became 2.2.3. It was working about 1 minute and crashed again, but in that time, core file has been generated and i attached information from it.So, between 2) and 3) , as i mentioned above, there were no messages about memory, but i see many messages like'WARNING:core:utimer_ticker: utimer task  already scheduled for 71500 msWARNING:core:timer_ticker: timer task  already scheduled for 72400 msWARNING:core:timer_ticker: timer task  already scheduled for 72400 msWARNING:core:timer_ticker: timer task  already scheduled for 72400 msWARNING:core:timer_ticker: timer task  already scheduled for 72400 ms'and so on As for about version version: opensips 2.2.3 (x86_64/linux)flags: STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP, PKG_MALLOC, QM_MALLOC, DBG_MALLOC, FAST_LOCK-ADAPTIVE_WAITADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.git revision: 7922417main.c compiled on 06:29:28 Mar 23 2017 with gcc 5.4.0 -- С уважением, Денис.Best regards, Denis   04.04.2017, 12:43, "Bogdan-Andrei Iancu" :Hello Denis,Thank you for the report. Do you see any CRITICAL log just before the crash, something like:    "bad pointer 0 (out of memory block!) - aborting"?If yes, please post here the exact line.Also, do you use the latest OpenSIPS 2.2 from GIT repo ? (run "opensips -v")Regards,Bogdan-Andrei Iancu
  OpenSIPS Founder and Developer
  http://www.opensips-solutions.com

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html
On 04/04/2017 10:58 AM, Denis via Users wrote:Hello! Server:: OpenSIPS (2.2.3 (x86_64/linux)) Thank you for any help. P.S. Opensips has been compiled with QM_MALLOC and DBG_MALLOC flags -- С уважением, Денис.Best regards, Denis___
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 drouting probing

2017-04-04 Thread Denis via Users
No, i don`t -- С уважением, Денис.Best regards, Denis   04.04.2017, 16:22, "Bogdan-Andrei Iancu" :Do you do an "drop" or "exit" in that routeid ??Bogdan-Andrei Iancu
  OpenSIPS Founder and Developer
  http://www.opensips-solutions.com

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html
On 04/04/2017 03:16 PM, Denis wrote:Bogdan, Ok, dr_rules has filled 'routeid' column.In routeid i, using dialplan, verify dialed prefix for some reason. If dialed prefix verified i make some action, if not, returns to the parent route.In my example, dialed prefix does not verified. So, route with do_routing951: xlog ("Prepare routing");
952: if (!do_routing("$avp(5)",,,"$avp(300)","$avp(3)",)) {  
953: send_reply("404", "Not found");
954: exit;
955: }route [routeid] {   
1848: if (dp_translate("20004", "$rU/$rU", "$avp(999)")) {

  
} else {
   ..
}  
1867: } The last strings for the call flow in syslog: :951][me][core xlog]:952][me][module do_routing]:1867][me][core if]:1848][me][module dp_translate]INFO:drouting:do_routing: All the gateways are disabled That is all. After that only my CANCEL from the caller, because there is no provisioning message after 100 Trying from Opensips. -- С уважением, Денис.Best regards, Denis   04.04.2017, 14:14, "Bogdan-Andrei Iancu" :Hi Denis,Again, as drouting is not doing any signalling action, it CANNOT block/freeze your OpenSIPS.Use script_trace() function to see how your INVITE is handled :    http://www.opensips.org/Documentation/Script-CoreFunctions-2-2#toc43Regards,Bogdan-Andrei Iancu
  OpenSIPS Founder and Developer
  http://www.opensips-solutions.com

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html
On 03/28/2017 04:46 PM, Denis via Users wrote:In additional,a part of the opensips.cfg xlog ("Prepare routing");
if (!do_routing("$avp(5)","W",,"$avp(300)","$avp(3)",)) {
send_reply("404", "Not found");
 exit;
} a part of the log Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: Prepare routingMar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:drouting:do_routing_1: using weights in GW selectionMar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:drouting:do_routing: using dr group 2, rule_idx 0, username 88123364021Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:drouting:internal_check_rt: found rgid 2 (rule list 0x7f77f0f63188)Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialplan:dp_translate_f: dpid is 20004 partition is defaultMar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialplan:dp_get_svalue: searching 15Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialplan:dp_translate_f: input is 88123364021Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialplan:dp_translate_f: Checking with dpid 20004Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialplan:translate: Regex operator testing. Got result: -1Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialplan:translate: No matching rule for input 88123364021Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialplan:dp_translate_f: could not translate 88123364021 with dpid 20004Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: INFO:drouting:do_routing: All the gateways are disabledMar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialog:next_state_dlg: unref dlg 0x7f77f3c8bc70 with 1 -> 2 in entry 0x7f77ef003548Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:core:evi_param_set: adding string paramMar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:core:evi_param_set: adding string paramMar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:core:evi_param_set: adding int paramMar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:core:evi_param_set: adding int paramMar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:core:destroy_avp_list: destroying list (nil)Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialog:next_state_dlg: dialog 0x7f77f3c8bc70 changed from state 1 to state 5, due event 1Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialog:dlg_onreply: dialog 0x7f77f3c8bc70 failed (negative reply)Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialog:unref_dlg: unref dlg 0x7f77f3c8bc70 with 1 -> 1 in entry 0x7f77ef003548Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialog:unref_dlg: unref dlg 0x7f77f3c8bc70 with 1 -> 0 in entry 0x7f77ef003548Mar 28 09:38:28 ubuntu-amd64 

Re: [OpenSIPS-Users] mid_registrar

2017-04-04 Thread volga629

Hello Liviu,
Here are script which I am use.


route {
   route(REQINIT);

   if (is_method("CANCEL")) {
   if (t_check_trans()) {
   t_relay();
   }
   exit;
   }

   route(CHECK_SOURCE_IP);

   if (is_method("REGISTER")) {
   mid_registrar_save("location");
   xlog("L_INFO", "Forwarding REGISTER to main registrar 
($ci=$ci)\n");

   }

   route(RTP_MANAGE);

   # handle requests within SIP dialogs
   route(WITHINDLG);

   remove_hf("Route");
   if(is_method("INVITE|REFER|SUBSCRIBE")) {
   record_route();
   }

   route(DISPATCH);

   route(relay);
}

volga629


On Tue, 4 Apr, 2017 at 10:07 AM, Liviu Chircu  
wrote:
Are you sure mid_registrar_save() is called at all? Please either 
provide some DBG logs of this scenario, or relevant part of the 
script.


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

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html
On 04.04.2017 15:37, volga...@networklab.ca wrote:

Hello Liviu,
Here are full trace of RIGISTRAR, but I don't see not in request not 
in reply regid.


https://paste.fedoraproject.org/paste/o2EcKdTbJcXTY9oX6lFfRV5M1UNdIGYhyRLivL9gydE=

Thank you.

volga629

On Tue, 4 Apr, 2017 at 5:13 AM, Liviu Chircu  
wrote:

Hi, Volga!

The errors are pretty straightforward, and suggest that the "regid" 
Contact header field parameter has been stripped when the 200 OK 
reply contact set was constructed. To confirm or infirm this, 
however, we need a full SIP packet trace.


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

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html
On 04.04.2017 04:24, volga...@networklab.ca wrote:

Hello Everyone,
Trying implement mid_registrar but module throwing error.


Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: 
ERROR:mid_registrar:fix_rpl_contact_by_ct: failed to get match 
token
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: 
ERROR:mid_registrar:mid_reg_resp_in: failed to overwrite Contact 
header field domain
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: 
ERROR:mid_registrar:get_match_token: a Contact from main registrar 
(sip:4310@99.245.176.196:46639;rinstance=cc4a62e9cf84e6cf;transport=udp) 
is missing the 'regid' hf parameter
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: 
ERROR:mid_registrar:fix_rpl_contact_by_ct: failed to get match 
token
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: 
ERROR:mid_registrar:mid_reg_resp_in: failed to overwrite Contact 
header field domain
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: 
ERROR:mid_registrar:get_match_token: a Contact from main registrar 
(sip:4310@99.245.176.196:46639;rinstance=cc4a62e9cf84e6cf;transport=udp) 
is missing the 'regid' hf parameter
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: 
ERROR:mid_registrar:match_contact: failed to get match token
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: 
ERROR:mid_registrar:insert_rpl_contacts: Contact 
'sip:4310@99.245.176.196:46639;rinstance=cc4a62e9cf84e6cf;transport=tcp' 
not found in reply from main registrar!



My setup

UDP transport   |   TCP transport
 freeswitch ( LAN) --- opensips  --- (WAN)  UA (soft 
client)


Any help thank you, volga629




___
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] mid_registrar

2017-04-04 Thread volga629

Hello Liviu,

I modified script and I see regid, but module crash again

Apr 4 10:35:57 casbc00 audit: ANOM_ABEND auid=4294967295 uid=992 
gid=992 ses=4294967295 pid=3154 comm="opensips" 
exe="/usr/sbin/opensips" sig=11
Apr 4 10:35:57 casbc00 kernel: opensips[3154]: segfault at 98 ip 
556b953bcdb0 sp 7ffe5dc47e40 error 4 in 
opensips[556b9538b000+219000]
Apr 4 10:35:57 casbc00 abrt-hook-ccpp: Process 3154 (opensips) of user 
992 killed by SIGSEGV - dumping core
Apr 4 10:35:57 casbc00 audit: ANOM_ABEND auid=4294967295 uid=992 
gid=992 ses=4294967295 pid=3149 comm="opensips" 
exe="/usr/sbin/opensips" sig=11
Apr 4 10:35:57 casbc00 kernel: opensips[3149]: segfault at 98 ip 
556b953bcdb0 sp 7ffe5dc47e70 error 4 in 
opensips[556b9538b000+219000]
Apr 4 10:35:57 casbc00 abrt-hook-ccpp: Process 3149 (opensips) of user 
992 killed by SIGSEGV - ignoring (repeated crash)
Apr 4 10:35:57 casbc00 systemd: opensips.service: Main process exited, 
code=dumped, status=11/SEGV



https://paste.fedoraproject.org/paste/GGfquSgHeN0ezjXHPqQzk15M1UNdIGYhyRLivL9gydE=

volga629


On Tue, 4 Apr, 2017 at 10:07 AM, Liviu Chircu  
wrote:
Are you sure mid_registrar_save() is called at all? Please either 
provide some DBG logs of this scenario, or relevant part of the 
script.


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

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html
On 04.04.2017 15:37, volga...@networklab.ca wrote:

Hello Liviu,
Here are full trace of RIGISTRAR, but I don't see not in request not 
in reply regid.


https://paste.fedoraproject.org/paste/o2EcKdTbJcXTY9oX6lFfRV5M1UNdIGYhyRLivL9gydE=

Thank you.

volga629

On Tue, 4 Apr, 2017 at 5:13 AM, Liviu Chircu  
wrote:

Hi, Volga!

The errors are pretty straightforward, and suggest that the "regid" 
Contact header field parameter has been stripped when the 200 OK 
reply contact set was constructed. To confirm or infirm this, 
however, we need a full SIP packet trace.


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

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html
On 04.04.2017 04:24, volga...@networklab.ca wrote:

Hello Everyone,
Trying implement mid_registrar but module throwing error.


Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: 
ERROR:mid_registrar:fix_rpl_contact_by_ct: failed to get match 
token
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: 
ERROR:mid_registrar:mid_reg_resp_in: failed to overwrite Contact 
header field domain
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: 
ERROR:mid_registrar:get_match_token: a Contact from main registrar 
(sip:4310@99.245.176.196:46639;rinstance=cc4a62e9cf84e6cf;transport=udp) 
is missing the 'regid' hf parameter
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: 
ERROR:mid_registrar:fix_rpl_contact_by_ct: failed to get match 
token
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: 
ERROR:mid_registrar:mid_reg_resp_in: failed to overwrite Contact 
header field domain
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: 
ERROR:mid_registrar:get_match_token: a Contact from main registrar 
(sip:4310@99.245.176.196:46639;rinstance=cc4a62e9cf84e6cf;transport=udp) 
is missing the 'regid' hf parameter
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: 
ERROR:mid_registrar:match_contact: failed to get match token
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: 
ERROR:mid_registrar:insert_rpl_contacts: Contact 
'sip:4310@99.245.176.196:46639;rinstance=cc4a62e9cf84e6cf;transport=tcp' 
not found in reply from main registrar!



My setup

UDP transport   |   TCP transport
 freeswitch ( LAN) --- opensips  --- (WAN)  UA (soft 
client)


Any help thank you, volga629




___
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 2.2.2 memory issue?

2017-04-04 Thread Vasilios Tzanoudakis
Dear Team,

We faced the same problem again today after 5 days of heavy traffic.

Opensips Had exact the same behaviour like the first time above.
All Opensips processes were running but had no response. I have pasted
debugs from all listeners and rtpproxy daemons.

Here are all the gdb traces from opensips : https://pastebin.com/ix1puaqt

and here are the rtpproxy 2.0.0 debugs : https://pastebin.com/x9sdb5df

Thank you in advance


*Vasilios Tzanoudakis* | Technology Director
t. +30-212-222-8003  |  f. +30-212-222-8001
2, Klisthenous Str., Metamorfosi, 144 52, Attica, Greece
vasilios.tzanouda...@voiceland.gr  |  www.voiceland.gr


On Wed, Mar 29, 2017 at 12:25 PM, Vasilios Tzanoudakis <
vasilios.tzanouda...@voiceland.gr> wrote:

> Dear all,
>
> After 11 days os usage Opensips process was not responding at all.
>
> This is the second time I am facing this kind of issue.
> I am sending you all the information below:
>
> System has 4 CPU Cores / 4 GB Ram
>
> Opensips version 2.2.2
>
> *Run parameters : *
> S_MEMORY=2048
> P_MEMORY=1024
>
> *uname -a*
> Linux 4.4.0-62-generic #83~14.04.1-Ubuntu SMP Wed Jan 18 18:10:30 UTC 2017
> x86_64 x86_64 x86_64 GNU/Linux
>
> *Compiled with the following flags:*
>
> PKG_MALLOC
> SHM_MMAP
> USE_MCAST
> DISABLE_NAGLE
> STATISTICS
> HAVE_RESOLV_RES
> F_MALLOC
> F_MALLOC_OPTIMIZATIONS
> NO_DEBUG
>
> *and with the following extra modules : *
>
> db_mysql
> dialplan
> regex
> snmpstats
>
> *Loaded modules in opensips.cfg*
>
> loadmodule "proto_udp.so"
> loadmodule "mi_datagram.so"
> loadmodule "signaling.so"
> loadmodule "sl.so"
> loadmodule "tm.so"
> loadmodule "rr.so"
> loadmodule "maxfwd.so"
> loadmodule "sipmsgops.so"
> loadmodule "mi_fifo.so"
> loadmodule "uri.so"
> loadmodule "db_mysql.so"
> loadmodule "usrloc.so"
> loadmodule "registrar.so"
> loadmodule "auth.so"
> loadmodule "auth_db.so"
> loadmodule "dialog.so"
> loadmodule "nathelper.so"
> loadmodule "rtpproxy.so"
> loadmodule "drouting.so"
> loadmodule "uac.so"
>
> */usr/local/opensips2/sbin/opensipsctl fifo ps*
>
> Process::  ID=0 PID=1843 Type=attendant
> Process::  ID=1 PID=1845 Type=MI FIFO
> Process::  ID=2 PID=1846 Type=MI Datagram
> Process::  ID=3 PID=1847 Type=time_keeper
> Process::  ID=4 PID=1849 Type=timer
> Process::  ID=5 PID=1850 Type=SIP receiver udp:X.X.X.X:65100
> Process::  ID=6 PID=1851 Type=SIP receiver udp:X.X.X.X:65100
> Process::  ID=7 PID=1852 Type=SIP receiver udp:X.X.X.X:65100
> Process::  ID=8 PID=1853 Type=SIP receiver udp:X.X.X.X:65100
> Process::  ID=9 PID=1854 Type=SIP receiver udp:X.X.X.X:65100
> Process::  ID=10 PID=1855 Type=SIP receiver udp:X.X.X.X:65100
> Process::  ID=11 PID=1856 Type=SIP receiver udp:X.X.X.X:65100
> Process::  ID=12 PID=1857 Type=SIP receiver udp:X.X.X.X:65100
> Process::  ID=13 PID=1859 Type=Timer handler
>
> *gdb /usr/local/opensips2/sbin/opensips 1851*
>
> Reading symbols from /lib/x86_64-linux-gnu/libgcc_s.so.1...(no debugging
> symbols found)...done.
> Loaded symbols for /lib/x86_64-linux-gnu/libgcc_s.so.1
> Reading symbols from /lib/x86_64-linux-gnu/libnss_dns.so.2...Reading
> symbols from /usr/lib/debug//lib/x86_64-linux-gnu/libnss_dns-2.19.so..
> .done.
> done.
> Loaded symbols for /lib/x86_64-linux-gnu/libnss_dns.so.2
> 0x7faee52c36cd in parse_backslash (offset=0x7ffc,
> words=, max_length=0x7ffc32c06040, word_length=0xd,
> word=0x636f732e3379786f) at wordexp.c:222
> 222 wordexp.c: No such file or directory.
>
>
> *(gdb) bt*
> #0  0x7faee52c36cd in parse_backslash (offset=0x7ffc,
> words=, max_length=0x7ffc32c06040, word_length=0xd,
> word=0x636f732e3379786f) at wordexp.c:222
> #1  parse_backtick (ifs_white=0x722f7261762f0001  memory at address* 0x722f7261762f0001>, ifs=0x7fae24ccc960 "",
> pwordexp=0x838fd4 , flags=0, offset=0x7ffc,
> words=, max_length=0x1, word_length=0x7ffc32c06060,
> word=0x7ffc32c060c0) at wordexp.c:2147
> #2  wordexp (words=, pwordexp=, flags=0) at
> wordexp.c:2359
> #3  0x7ffc32c06220 in ?? ()
> #4  0x in ?? ()
>
>
> *(gdb) bt full*
> #0  0x7faee52c36cd in parse_backslash (offset=0x7ffc,
> words=, max_length=0x7ffc32c06040, word_length=0xd,
> word=0x636f732e3379786f) at wordexp.c:222
> No locals.
> #1  parse_backtick (ifs_white=0x722f7261762f0001  memory at address *0x722f7261762f0001>, ifs=0x7fae24ccc960 "",
> pwordexp=0x838fd4 , flags=0, offset=0x7ffc,
> words=, max_length=0x1, word_length=0x7ffc32c06060,
> word=0x7ffc32c060c0) at wordexp.c:2147
> squoting = 
> comm_length = 8622050
> *comm = 0x6 *
> error = 
> comm_maxlen = 8700952
> #2  wordexp (words=, pwordexp=, flags=0) at
> wordexp.c:2359
> words_offset = 0
> word_length = 0
> max_length = 140388071391744
> word = 0x7ffc32c065c8 ""
> error = 
> ifs = 0x7fae24ccc960 ""
> ifs_white = "\000\000\000"
> old_word = {we_wordc = 0, we_wordv = 0x0, we_offs = 0}
> #3  

Re: [OpenSIPS-Users] AVP + rest_post with utf-8 values

2017-04-04 Thread Liviu Chircu

Hi SamyGo,

The rest_post() function seems to properly put _any_ given bytes on the 
wire:


$var(body) = "SIP璎XXX璎SIP";
$var(ctype) = "text/plain";
rest_post("http://127.0.0.1;, "$var(body)", "$var(ctype)", "$var(retcode)");

produces:

0x:  4500 00a2 67cc 4000 4006 d487 7f00 0001 E...g.@.@...
0x0010:  7f00 0001 8e1d 0050 febf 3131 bf5f d711 ...P..11._..
0x0020:  8018 0156 fe96  0101 080a 0142 56fa ...V.BV.
0x0030:  0142 56fa 504f 5354 202f 2048 5454 502f .BV.POST./.HTTP/
0x0040:  312e 310d 0a48 6f73 743a 2031 3237 2e30 1.1..Host:.127.0
0x0050:  2e30 2e31 0d0a 4163 6365 7074 3a20 2a2f .0.1..Accept:.*/
0x0060:  2a0d 0a43 6f6e 7465 6e74 2d54 7970 653a *..Content-Type:
0x0070:  2074 6578 742f 706c 6169 6e0d 0a43 6f6e .text/plain..Con
0x0080:  7465 6e74 2d4c 656e 6774 683a 2031 350d tent-Length:.15.
0x0090:  0a0d 0a53 4950 e792 8e58 5858 e792 8e53 ...SIP...XXX...S
0x00a0:  4950 IP

The command I used for capturing is:

tcpdump -nnvvXSs 1514 -i any port 80

Please let me know if behavior differs on your platform.

Regards,

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

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html

On 28.03.2017 19:55, SamyGo wrote:

Hi,

I've a specific problem with avps containing values in language other 
than English. For example an avp(test) holding a Chinese character 
gets converted to ? while passing to some rest_post URL.


_code:_

$avp(test) = $fn;
xlog("L_INFO","Got Display Name: $avp(test) \n");
rest_post("$avp(url)","$avp(test)" );


The output in x-log line stays correct but the webserver gets the 
value of $avp(test) converted in "...??.."


I've tried to add the charset=utf-8 in the content-type header but it 
doesn't help.


Looking forward to get some hints/help on this.

Thanks,
Sammy



___
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 OpenSIPS to use USER based gateway

2017-04-04 Thread sagar malam
Hello Bogdan,

I disabled Dialog and TH module but result is same.

Please find attached file

On Tue, Apr 4, 2017 at 6:42 PM Bogdan-Andrei Iancu 
wrote:

> Thank you Sagar,
>
> I see you use topology hiding - could you please disabled the dialog and
> TH support for the call and try it again ?
>
> Regards,
>
> Bogdan-Andrei Iancu
>   OpenSIPS Founder and Developer
>   http://www.opensips-solutions.com
>
> OpenSIPS Summit May 2017 Amsterdam
>   http://www.opensips.org/events/Summit-2017Amsterdam.html
>
> On 04/04/2017 03:39 PM, sagar malam wrote:
>
>
> Yes.
>
> Please find attached file.
>
> On Tue, Apr 4, 2017 at 5:06 PM Bogdan-Andrei Iancu 
> wrote:
>
> Whatever headers are added in failure route are visible only to that
> particular branch, they are are not inherited by any future branch. So, if
> you do uac_auth() from failure route only, I do not see how the Auth hdr
> may propagate to other branch.
>
> Do you have a pcap or txt capture for the call flow ?
>
> Regards,
>
> Bogdan-Andrei Iancu
>   OpenSIPS Founder and Developer
>   http://www.opensips-solutions.com
>
> OpenSIPS Summit May 2017 Amsterdam
>   http://www.opensips.org/events/Summit-2017Amsterdam.html
>
> On 04/04/2017 01:54 PM, sagar malam wrote:
>
> Hello Bodgan,
>
> Thanks for reply.
>
> Do you use the uac_auth() (which add the Auth hdr) only from failure
> route, right ?
> Yes exactly.
>
> Also , does your INVITE have any already populated Auth hdr (when received
> by OpenSIPS) ?
> No,we are adding it using uac_auth function.
>
>
> On Tue, Apr 4, 2017 at 4:18 PM Bogdan-Andrei Iancu < 
> bog...@opensips.org> wrote:
>
> Hello,
>
> Do you use the uac_auth() (which add the Auth hdr) only from failure
> route, right ?
>
> Also , does your INVITE have any already populated Auth hdr (when received
> by OpenSIPS) ?
>
> Best regards,
>
> Bogdan-Andrei Iancu
>   OpenSIPS Founder and Developer
>   http://www.opensips-solutions.com
>
> OpenSIPS Summit May 2017 Amsterdam
>   http://www.opensips.org/events/Summit-2017Amsterdam.html
>
> On 04/03/2017 11:26 AM, sagar malam wrote:
>
> Hello,
>
> I am trying to configure OpenSIPS to support Username-password based
> authentication Gateway.
>
> Hence i am using uac_auth function to generated Authorization header
> before relaying INVITE packet to gateway.
>
> I am facing issue in removing old Authorization header and append new
> Authorization header in Failure route before trying next gateway.
>
> OpenSIPs is not detecting old Authorization headers but when i see sip
> trace ,headers are present.
>
>
> Script flow is something like this :
> request_route{
>select_gateway
>   relay_route
> }
> relay_route{
> t_relay
> }
>
> failure_route{
> Remove old Authirization header
>  on,407 or 401,Add Authorization header using uac_auth
> select_next gateway
> relay_route
> }
>
> In Users mailing list i read that headers added in request route cannot be
> removed later,hence i need to add headers during branch route but uac_auth
> function works only in failure route.
>
> Please help me on this.
>
> Thanks in advance
>
>
>
>
> ___
> Users mailing 
> listUsers@lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>
>
>
U 192.168.1.123:5060 -> 192.168.1.123:5065
INVITE sip:1234@192.168.1.123:5065;transport=UDP SIP/2.0.
Via: SIP/2.0/UDP 192.168.1.123:5060;branch=z9hG4bK-d8754z-698e970868af1716-1---d8754z-.
Max-Forwards: 70.
Contact: .
To: .
From: ;tag=5a616a5c.
Call-ID: ZGY4MDNmNTNkOWRhMGQ0NWNhOGQ5NTRlYjY0ZmZmZGI..
CSeq: 1 INVITE.
Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, MESSAGE, OPTIONS, INFO, SUBSCRIBE.
Content-Type: application/sdp.
Supported: replaces, norefersub, extended-refer, timer, X-cisco-serviceuri.
User-Agent: Z 3.3.25608 r25552.
Allow-Events: presence, kpml.
Content-Length: 241.
.
v=0.
o=Z 0 0 IN IP4 192.168.1.123.
s=Z.
c=IN IP4 192.168.1.123.
t=0 0.
m=audio 8000 RTP/AVP 3 110 8 0 98 101.
a=rtpmap:110 speex/8000.
a=rtpmap:98 iLBC/8000.
a=fmtp:98 mode=20.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-15.
a=sendrecv.


U 192.168.1.123:5065 -> 192.168.1.123:5060
SIP/2.0 100 Trying.
Via: SIP/2.0/UDP 192.168.1.123:5060;received=192.168.1.123;rport=5060;branch=z9hG4bK-d8754z-698e970868af1716-1---d8754z-.
To: .
From: ;tag=5a616a5c.
Call-ID: ZGY4MDNmNTNkOWRhMGQ0NWNhOGQ5NTRlYjY0ZmZmZGI..
CSeq: 1 INVITE.
Content-Length: 0.
.


U 192.168.1.123:5065 -> 192.168.1.123:5060
SIP/2.0 100 Giving a try.
Via: SIP/2.0/UDP 192.168.1.123:5060;received=192.168.1.123;rport=5060;branch=z9hG4bK-d8754z-698e970868af1716-1---d8754z-.
To: .
From: ;tag=5a616a5c.
Call-ID: 

Re: [OpenSIPS-Users] Opensips crash

2017-04-04 Thread Bogdan-Andrei Iancu

Any CRITICAL message into the log before the crash ?

also, in gdb in frame 2, please print:
p *((struct qm_frag*) ((char*)p-sizeof(struct qm_frag)))


Thanks,

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

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html

On 04/04/2017 03:19 PM, Denis wrote:

p shm_block->first_frag
$1 = (struct qm_frag *) 0x7fdf6b9d44f8
p shm_block->last_frag_end
$2 = (struct qm_frag_end *) 0x7fe02899efd0
 p mem_block->first_frag
$3 = (struct qm_frag *) 0x7fe029214508
p mem_block->last_frag_end
$4 = (struct qm_frag_end *) 0x7fe0691defe0
--
С уважением, Денис.
Best regards, Denis
04.04.2017, 14:51, "Bogdan-Andrei Iancu" :

OK,please enter gdb and print:
p shm_block->first_frag
p shm_block->last_frag_end

p mem_block->first_frag
p mem_block->last_frag_end

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

OpenSIPS Summit May 2017 Amsterdam
   http://www.opensips.org/events/Summit-2017Amsterdam.html
On 04/04/2017 01:42 PM, Denis wrote:

Hello, Bogdan!
No, i cannot see in the log any messages you mentioned it your letter.
The situation dealing with crash had such stage.
1. I prepared to migrate to 2.2.3 from 2.2.2. But do not have a time 
to restart Opensips
2. As a result "i waited" when Opensips have crashed. During crash 
of 2.2.2 no core file has been generated, but Opensips has been 
restarted using cron.
3. After 2) Opensips became 2.2.3. It was working about 1 minute and 
crashed again, but in that time, core file has been generated and i 
attached information from it.
So, between 2) and 3) , as i mentioned above, there were no messages 
about memory, but i see many messages like
'WARNING:core:utimer_ticker: utimer task  already 
scheduled for 71500 ms
WARNING:core:timer_ticker: timer task  already scheduled 
for 72400 ms
WARNING:core:timer_ticker: timer task  already scheduled 
for 72400 ms
WARNING:core:timer_ticker: timer task  already scheduled 
for 72400 ms
WARNING:core:timer_ticker: timer task  already 
scheduled for 72400 ms'

and so on
As for about version
version: opensips 2.2.3 (x86_64/linux)
flags: STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP, PKG_MALLOC, 
QM_MALLOC, DBG_MALLOC, FAST_LOCK-ADAPTIVE_WAIT
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 
16, MAX_URI_SIZE 1024, BUF_SIZE 65535

poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
git revision: 7922417
main.c compiled on 06:29:28 Mar 23 2017 with gcc 5.4.0
--
С уважением, Денис.
Best regards, Denis
04.04.2017, 12:43, "Bogdan-Andrei Iancu"  
:

Hello Denis,

Thank you for the report. Do you see any CRITICAL log just before 
the crash, something like:

"bad pointer 0 (out of memory block!) - aborting"
?
If yes, please post here the exact line.

Also, do you use the latest OpenSIPS 2.2 from GIT repo ? (run 
"opensips -v")


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

OpenSIPS Summit May 2017 Amsterdam
   http://www.opensips.org/events/Summit-2017Amsterdam.html
On 04/04/2017 10:58 AM, Denis via Users wrote:

Hello!
Server:: OpenSIPS (2.2.3 (x86_64/linux))
Thank you for any help.
P.S. Opensips has been compiled with QM_MALLOC and DBG_MALLOC flags
--
С уважением, Денис.
Best regards, Denis
___
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 drouting probing

2017-04-04 Thread Bogdan-Andrei Iancu

Do you do an "drop" or "exit" in that routeid ??

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

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html

On 04/04/2017 03:16 PM, Denis wrote:

Bogdan,
Ok, dr_rules has filled 'routeid' column.
In routeid i, using dialplan, verify dialed prefix for some reason. If 
dialed prefix verified i make some action, if not, returns to the 
parent route.

In my example, dialed prefix does not verified.
So, route with do_routing
951: xlog ("Prepare routing");
952: if (!do_routing("$avp(5)",,,"$avp(300)","$avp(3)",)) {
953: send_reply("404", "Not found");
954: exit;
955: }
route [routeid] {
1848: if (dp_translate("20004", "$rU/$rU", "$avp(999)")) {

   
} else {
..
}
1867: }
The last strings for the call flow in syslog:
:951][me][core xlog]
:952][me][module do_routing]
:1867][me][core if]
:1848][me][module dp_translate]
INFO:drouting:do_routing: All the gateways are disabled
That is all. After that only my CANCEL from the caller, because there 
is no provisioning message after 100 Trying from Opensips.

--
С уважением, Денис.
Best regards, Denis
04.04.2017, 14:14, "Bogdan-Andrei Iancu" :

Hi Denis,

Again, as drouting is not doing any signalling action, it CANNOT 
block/freeze your OpenSIPS.


Use script_trace() function to see how your INVITE is handled :
http://www.opensips.org/Documentation/Script-CoreFunctions-2-2#toc43

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

OpenSIPS Summit May 2017 Amsterdam
   http://www.opensips.org/events/Summit-2017Amsterdam.html
On 03/28/2017 04:46 PM, Denis via Users wrote:

In additional,
a part of the opensips.cfg
xlog ("Prepare routing");
if (!do_routing("$avp(5)","W",,"$avp(300)","$avp(3)",)) {
 send_reply("404", "Not found");
  exit;
}
a part of the log
Mar 28 09:38:28 ubuntu-amd64 
/usr/local/opensips2.2/sbin/opensips[7170]: Prepare routing
Mar 28 09:38:28 ubuntu-amd64 
/usr/local/opensips2.2/sbin/opensips[7170]: 
DBG:drouting:do_routing_1: using weights in GW selection
Mar 28 09:38:28 ubuntu-amd64 
/usr/local/opensips2.2/sbin/opensips[7170]: DBG:drouting:do_routing: 
using dr group 2, rule_idx 0, username 88123364021
Mar 28 09:38:28 ubuntu-amd64 
/usr/local/opensips2.2/sbin/opensips[7170]: 
DBG:drouting:internal_check_rt: found rgid 2 (rule list 0x7f77f0f63188)
Mar 28 09:38:28 ubuntu-amd64 
/usr/local/opensips2.2/sbin/opensips[7170]: 
DBG:dialplan:dp_translate_f: dpid is 20004 partition is default
Mar 28 09:38:28 ubuntu-amd64 
/usr/local/opensips2.2/sbin/opensips[7170]: 
DBG:dialplan:dp_get_svalue: searching 15
Mar 28 09:38:28 ubuntu-amd64 
/usr/local/opensips2.2/sbin/opensips[7170]: 
DBG:dialplan:dp_translate_f: input is 88123364021
Mar 28 09:38:28 ubuntu-amd64 
/usr/local/opensips2.2/sbin/opensips[7170]: 
DBG:dialplan:dp_translate_f: Checking with dpid 20004
Mar 28 09:38:28 ubuntu-amd64 
/usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialplan:translate: 
Regex operator testing. Got result: -1
Mar 28 09:38:28 ubuntu-amd64 
/usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialplan:translate: 
No matching rule for input 88123364021
Mar 28 09:38:28 ubuntu-amd64 
/usr/local/opensips2.2/sbin/opensips[7170]: 
DBG:dialplan:dp_translate_f: could not translate 88123364021 with 
dpid 20004
Mar 28 09:38:28 ubuntu-amd64 
/usr/local/opensips2.2/sbin/opensips[7170]: 
INFO:drouting:do_routing: All the gateways are disabled
Mar 28 09:38:28 ubuntu-amd64 
/usr/local/opensips2.2/sbin/opensips[7170]: 
DBG:dialog:next_state_dlg: unref dlg 0x7f77f3c8bc70 with 1 -> 2 in 
entry 0x7f77ef003548
Mar 28 09:38:28 ubuntu-amd64 
/usr/local/opensips2.2/sbin/opensips[7170]: DBG:core:evi_param_set: 
adding string param
Mar 28 09:38:28 ubuntu-amd64 
/usr/local/opensips2.2/sbin/opensips[7170]: DBG:core:evi_param_set: 
adding string param
Mar 28 09:38:28 ubuntu-amd64 
/usr/local/opensips2.2/sbin/opensips[7170]: DBG:core:evi_param_set: 
adding int param
Mar 28 09:38:28 ubuntu-amd64 
/usr/local/opensips2.2/sbin/opensips[7170]: DBG:core:evi_param_set: 
adding int param
Mar 28 09:38:28 ubuntu-amd64 
/usr/local/opensips2.2/sbin/opensips[7170]: 
DBG:core:destroy_avp_list: destroying list (nil)
Mar 28 09:38:28 ubuntu-amd64 
/usr/local/opensips2.2/sbin/opensips[7170]: 
DBG:dialog:next_state_dlg: dialog 0x7f77f3c8bc70 changed from state 
1 to state 5, due event 1
Mar 28 09:38:28 ubuntu-amd64 
/usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialog:dlg_onreply: 
dialog 0x7f77f3c8bc70 failed (negative reply)
Mar 28 09:38:28 ubuntu-amd64 
/usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialog:unref_dlg: 
unref dlg 0x7f77f3c8bc70 with 1 -> 1 in entry 0x7f77ef003548
Mar 28 09:38:28 ubuntu-amd64 
/usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialog:unref_dlg: 
unref dlg 0x7f77f3c8bc70 with 1 -> 0 in entry 0x7f77ef003548
Mar 28 09:38:28 ubuntu-amd64 

Re: [OpenSIPS-Users] Configure OpenSIPS to use USER based gateway

2017-04-04 Thread Bogdan-Andrei Iancu

Thank you Sagar,

I see you use topology hiding - could you please disabled the dialog and 
TH support for the call and try it again ?


Regards,

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

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html

On 04/04/2017 03:39 PM, sagar malam wrote:


Yes.

Please find attached file.

On Tue, Apr 4, 2017 at 5:06 PM Bogdan-Andrei Iancu 
> wrote:


Whatever headers are added in failure route are visible only to
that particular branch, they are are not inherited by any future
branch. So, if you do uac_auth() from failure route only, I do not
see how the Auth hdr may propagate to other branch.

Do you have a pcap or txt capture for the call flow ?

Regards,

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

OpenSIPS Summit May 2017 Amsterdam
   http://www.opensips.org/events/Summit-2017Amsterdam.html

On 04/04/2017 01:54 PM, sagar malam wrote:

Hello Bodgan,

Thanks for reply.

Do you use the uac_auth() (which add the Auth hdr) only from
failure route, right ?
Yes exactly.

Also , does your INVITE have any already populated Auth hdr (when
received by OpenSIPS) ?
No,we are adding it using uac_auth function.


On Tue, Apr 4, 2017 at 4:18 PM Bogdan-Andrei Iancu
> wrote:

Hello,

Do you use the uac_auth() (which add the Auth hdr) only from
failure route, right ?

Also , does your INVITE have any already populated Auth hdr
(when received by OpenSIPS) ?

Best regards,

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

OpenSIPS Summit May 2017 Amsterdam
   http://www.opensips.org/events/Summit-2017Amsterdam.html

On 04/03/2017 11:26 AM, sagar malam wrote:

Hello,

I am trying to configure OpenSIPS to support
Username-password based authentication Gateway.

Hence i am using uac_auth function to generated
Authorization header before relaying INVITE packet to gateway.

I am facing issue in removing old Authorization header and
append new Authorization header in Failure route before
trying next gateway.

OpenSIPs is not detecting old Authorization headers but when
i see sip trace ,headers are present.


Script flow is something like this :
request_route{
   select_gateway
  relay_route
}
relay_route{
t_relay
}

failure_route{
Remove old Authirization header
 on,407 or 401,Add Authorization header using uac_auth
select_next gateway
relay_route
}

In Users mailing list i read that headers added in request
route cannot be removed later,hence i need to add headers
during branch route but uac_auth function works only in
failure route.

Please help me on this.

Thanks in advance



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






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


Re: [OpenSIPS-Users] mid_registrar

2017-04-04 Thread Liviu Chircu
Are you sure mid_registrar_save() is called at all? Please either 
provide some DBG logs of this scenario, or relevant part of the script.


Regards,

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

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html

On 04.04.2017 15:37, volga...@networklab.ca wrote:

Hello Liviu,
Here are full trace of RIGISTRAR, but I don't see not in request not 
in reply regid.


https://paste.fedoraproject.org/paste/o2EcKdTbJcXTY9oX6lFfRV5M1UNdIGYhyRLivL9gydE=

Thank you.

volga629

On Tue, 4 Apr, 2017 at 5:13 AM, Liviu Chircu  wrote:


Hi, Volga!

The errors are pretty straightforward, and suggest that the "regid" 
Contact header field parameter has been stripped when the 200 OK 
reply contact set was constructed. To confirm or infirm this, 
however, we need a full SIP packet trace.


Best regards,

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

OpenSIPS Summit May 2017 Amsterdam
   http://www.opensips.org/events/Summit-2017Amsterdam.html
On 04.04.2017 04:24, volga...@networklab.ca wrote:

Hello Everyone,
Trying implement mid_registrar but module throwing error.


Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: 
ERROR:mid_registrar:fix_rpl_contact_by_ct: failed to get match token
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: 
ERROR:mid_registrar:mid_reg_resp_in: failed to overwrite Contact 
header field domain
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: 
ERROR:mid_registrar:get_match_token: a Contact from main registrar 
(sip:4310@99.245.176.196:46639;rinstance=cc4a62e9cf84e6cf;transport=udp) 
is missing the 'regid' hf parameter
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: 
ERROR:mid_registrar:fix_rpl_contact_by_ct: failed to get match token
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: 
ERROR:mid_registrar:mid_reg_resp_in: failed to overwrite Contact 
header field domain
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: 
ERROR:mid_registrar:get_match_token: a Contact from main registrar 
(sip:4310@99.245.176.196:46639;rinstance=cc4a62e9cf84e6cf;transport=udp) 
is missing the 'regid' hf parameter
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: 
ERROR:mid_registrar:match_contact: failed to get match token
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: 
ERROR:mid_registrar:insert_rpl_contacts: Contact 
'sip:4310@99.245.176.196:46639;rinstance=cc4a62e9cf84e6cf;transport=tcp' 
not found in reply from main registrar!



My setup

UDP transport   |   TCP transport
 freeswitch ( LAN) --- opensips  --- (WAN)  UA (soft client)

Any help thank you, volga629




___
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] Configure OpenSIPS to use USER based gateway

2017-04-04 Thread sagar malam
Yes.

Please find attached file.

On Tue, Apr 4, 2017 at 5:06 PM Bogdan-Andrei Iancu 
wrote:

Whatever headers are added in failure route are visible only to that
particular branch, they are are not inherited by any future branch. So, if
you do uac_auth() from failure route only, I do not see how the Auth hdr
may propagate to other branch.

Do you have a pcap or txt capture for the call flow ?

Regards,

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

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html

On 04/04/2017 01:54 PM, sagar malam wrote:

Hello Bodgan,

Thanks for reply.

Do you use the uac_auth() (which add the Auth hdr) only from failure route,
right ?
Yes exactly.

Also , does your INVITE have any already populated Auth hdr (when received
by OpenSIPS) ?
No,we are adding it using uac_auth function.


On Tue, Apr 4, 2017 at 4:18 PM Bogdan-Andrei Iancu 
wrote:

Hello,

Do you use the uac_auth() (which add the Auth hdr) only from failure route,
right ?

Also , does your INVITE have any already populated Auth hdr (when received
by OpenSIPS) ?

Best regards,

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

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html

On 04/03/2017 11:26 AM, sagar malam wrote:

Hello,

I am trying to configure OpenSIPS to support Username-password based
authentication Gateway.

Hence i am using uac_auth function to generated Authorization header before
relaying INVITE packet to gateway.

I am facing issue in removing old Authorization header and append new
Authorization header in Failure route before trying next gateway.

OpenSIPs is not detecting old Authorization headers but when i see sip
trace ,headers are present.


Script flow is something like this :
request_route{
   select_gateway
  relay_route
}
relay_route{
t_relay
}

failure_route{
Remove old Authirization header
 on,407 or 401,Add Authorization header using uac_auth
select_next gateway
relay_route
}

In Users mailing list i read that headers added in request route cannot be
removed later,hence i need to add headers during branch route but uac_auth
function works only in failure route.

Please help me on this.

Thanks in advance




___
Users mailing 
listUsers@lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users
U 192.168.1.123:5060 -> 192.168.1.123:5065
INVITE sip:1234@192.168.1.123:5065;transport=UDP SIP/2.0.
Via: SIP/2.0/UDP 192.168.1.123:5060;branch=z9hG4bK-d8754z-6f601417be590171-1---d8754z-.
Max-Forwards: 70.
Contact: .
To: .
From: ;tag=5e8f481f.
Call-ID: ZDJiMTIwNTgwNDc0YWEwMDVlYTIwNzA0MzJlYjczOGU..
CSeq: 1 INVITE.
Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, MESSAGE, OPTIONS, INFO, SUBSCRIBE.
Content-Type: application/sdp.
Supported: replaces, norefersub, extended-refer, timer, X-cisco-serviceuri.
User-Agent: Z 3.3.25608 r25552.
Allow-Events: presence, kpml.
Content-Length: 241.
.
v=0.
o=Z 0 0 IN IP4 192.168.1.123.
s=Z.
c=IN IP4 192.168.1.123.
t=0 0.
m=audio 8000 RTP/AVP 3 110 8 0 98 101.
a=rtpmap:110 speex/8000.
a=rtpmap:98 iLBC/8000.
a=fmtp:98 mode=20.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-15.
a=sendrecv.


U 192.168.1.123:5065 -> 192.168.1.123:5060
SIP/2.0 100 Trying.
Via: SIP/2.0/UDP 192.168.1.123:5060;received=192.168.1.123;rport=5060;branch=z9hG4bK-d8754z-6f601417be590171-1---d8754z-.
To: .
From: ;tag=5e8f481f.
Call-ID: ZDJiMTIwNTgwNDc0YWEwMDVlYTIwNzA0MzJlYjczOGU..
CSeq: 1 INVITE.
Content-Length: 0.
.


U 192.168.1.123:5065 -> 192.168.1.123:5060
SIP/2.0 100 Giving a try.
Via: SIP/2.0/UDP 192.168.1.123:5060;received=192.168.1.123;rport=5060;branch=z9hG4bK-d8754z-6f601417be590171-1---d8754z-.
To: .
From: ;tag=5e8f481f.
Call-ID: ZDJiMTIwNTgwNDc0YWEwMDVlYTIwNzA0MzJlYjczOGU..
CSeq: 1 INVITE.
Content-Length: 0.
.


U 192.168.1.123:5065 -> 192.168.1.78:5060
INVITE sip:1234@192.168.1.123:5065;transport=UDP SIP/2.0.
Via: SIP/2.0/UDP 192.168.1.123:5065;branch=z9hG4bK7fdd.050d1294.0.
Max-Forwards: 69.
Contact: .
To: .
From: ;tag=5e8f481f.
Call-ID: ZDJiMTIwNTgwNDc0YWEwMDVlYTIwNzA0MzJlYjczOGU..
CSeq: 1 INVITE.
Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, MESSAGE, OPTIONS, INFO, SUBSCRIBE.
Content-Type: application/sdp.
Supported: replaces, norefersub, extended-refer, timer, X-cisco-serviceuri.
Content-Length: 241.
.
v=0.
o=Z 0 0 IN IP4 192.168.1.123.
s=Z.
c=IN IP4 192.168.1.123.
t=0 0.
m=audio 8000 RTP/AVP 3 110 8 0 98 101.

Re: [OpenSIPS-Users] mid_registrar

2017-04-04 Thread volga629

Hello Liviu,
Here are full trace of RIGISTRAR, but I don't see not in request not in 
reply regid.


https://paste.fedoraproject.org/paste/o2EcKdTbJcXTY9oX6lFfRV5M1UNdIGYhyRLivL9gydE=

Thank you.

volga629

On Tue, 4 Apr, 2017 at 5:13 AM, Liviu Chircu  wrote:

Hi, Volga!

The errors are pretty straightforward, and suggest that the "regid" 
Contact header field parameter has been stripped when the 200 OK 
reply contact set was constructed. To confirm or infirm this, 
however, we need a full SIP packet trace.


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

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html
On 04.04.2017 04:24, volga...@networklab.ca wrote:

Hello Everyone,
Trying implement mid_registrar but module throwing error.


Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: 
ERROR:mid_registrar:fix_rpl_contact_by_ct: failed to get match token
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: 
ERROR:mid_registrar:mid_reg_resp_in: failed to overwrite Contact 
header field domain
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: 
ERROR:mid_registrar:get_match_token: a Contact from main registrar 
(sip:4310@99.245.176.196:46639;rinstance=cc4a62e9cf84e6cf;transport=udp) 
is missing the 'regid' hf parameter
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: 
ERROR:mid_registrar:fix_rpl_contact_by_ct: failed to get match token
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: 
ERROR:mid_registrar:mid_reg_resp_in: failed to overwrite Contact 
header field domain
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: 
ERROR:mid_registrar:get_match_token: a Contact from main registrar 
(sip:4310@99.245.176.196:46639;rinstance=cc4a62e9cf84e6cf;transport=udp) 
is missing the 'regid' hf parameter
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: 
ERROR:mid_registrar:match_contact: failed to get match token
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: 
ERROR:mid_registrar:insert_rpl_contacts: Contact 
'sip:4310@99.245.176.196:46639;rinstance=cc4a62e9cf84e6cf;transport=tcp' 
not found in reply from main registrar!



My setup

UDP transport   |   TCP transport
 freeswitch ( LAN) --- opensips  --- (WAN)  UA (soft client)

Any help thank you, volga629




___
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 crash

2017-04-04 Thread Denis via Users
p shm_block->first_frag$1 = (struct qm_frag *) 0x7fdf6b9d44f8 p shm_block->last_frag_end$2 = (struct qm_frag_end *) 0x7fe02899efd0  p mem_block->first_frag$3 = (struct qm_frag *) 0x7fe029214508 p mem_block->last_frag_end$4 = (struct qm_frag_end *) 0x7fe0691defe0  -- С уважением, Денис.Best regards, Denis   04.04.2017, 14:51, "Bogdan-Andrei Iancu" :OK,please enter gdb and print:    p shm_block->first_frag    p shm_block->last_frag_end    p mem_block->first_frag    p mem_block->last_frag_endThanks,Bogdan-Andrei Iancu
  OpenSIPS Founder and Developer
  http://www.opensips-solutions.com

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html
On 04/04/2017 01:42 PM, Denis wrote:Hello, Bogdan! No, i cannot see in the log any messages you mentioned it your letter.The situation dealing with crash had such stage. 1. I prepared to migrate to 2.2.3 from 2.2.2. But do not have a time to restart Opensips2. As a result "i waited" when Opensips have crashed. During crash of 2.2.2 no core file has been generated, but Opensips has been restarted using cron.3. After 2) Opensips became 2.2.3. It was working about 1 minute and crashed again, but in that time, core file has been generated and i attached information from it.So, between 2) and 3) , as i mentioned above, there were no messages about memory, but i see many messages like'WARNING:core:utimer_ticker: utimer task  already scheduled for 71500 msWARNING:core:timer_ticker: timer task  already scheduled for 72400 msWARNING:core:timer_ticker: timer task  already scheduled for 72400 msWARNING:core:timer_ticker: timer task  already scheduled for 72400 msWARNING:core:timer_ticker: timer task  already scheduled for 72400 ms'and so on As for about version version: opensips 2.2.3 (x86_64/linux)flags: STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP, PKG_MALLOC, QM_MALLOC, DBG_MALLOC, FAST_LOCK-ADAPTIVE_WAITADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.git revision: 7922417main.c compiled on 06:29:28 Mar 23 2017 with gcc 5.4.0 -- С уважением, Денис.Best regards, Denis   04.04.2017, 12:43, "Bogdan-Andrei Iancu" :Hello Denis,Thank you for the report. Do you see any CRITICAL log just before the crash, something like:    "bad pointer 0 (out of memory block!) - aborting"?If yes, please post here the exact line.Also, do you use the latest OpenSIPS 2.2 from GIT repo ? (run "opensips -v")Regards,Bogdan-Andrei Iancu
  OpenSIPS Founder and Developer
  http://www.opensips-solutions.com

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html
On 04/04/2017 10:58 AM, Denis via Users wrote:Hello! Server:: OpenSIPS (2.2.3 (x86_64/linux)) Thank you for any help. P.S. Opensips has been compiled with QM_MALLOC and DBG_MALLOC flags -- С уважением, Денис.Best regards, Denis___
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 drouting probing

2017-04-04 Thread Denis via Users
Bogdan, Ok, dr_rules has filled 'routeid' column.In routeid i, using dialplan, verify dialed prefix for some reason. If dialed prefix verified i make some action, if not, returns to the parent route.In my example, dialed prefix does not verified. So, route with do_routing951: xlog ("Prepare routing");
952: if (!do_routing("$avp(5)",,,"$avp(300)","$avp(3)",)) {  
953: send_reply("404", "Not found");
954: exit;
955: }route [routeid] {   
1848: if (dp_translate("20004", "$rU/$rU", "$avp(999)")) {

  
} else {
   ..
}  
1867: } The last strings for the call flow in syslog: :951][me][core xlog]:952][me][module do_routing]:1867][me][core if]:1848][me][module dp_translate]INFO:drouting:do_routing: All the gateways are disabled That is all. After that only my CANCEL from the caller, because there is no provisioning message after 100 Trying from Opensips. -- С уважением, Денис.Best regards, Denis   04.04.2017, 14:14, "Bogdan-Andrei Iancu" :Hi Denis,Again, as drouting is not doing any signalling action, it CANNOT block/freeze your OpenSIPS.Use script_trace() function to see how your INVITE is handled :    http://www.opensips.org/Documentation/Script-CoreFunctions-2-2#toc43Regards,Bogdan-Andrei Iancu
  OpenSIPS Founder and Developer
  http://www.opensips-solutions.com

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html
On 03/28/2017 04:46 PM, Denis via Users wrote:In additional,a part of the opensips.cfg xlog ("Prepare routing");
if (!do_routing("$avp(5)","W",,"$avp(300)","$avp(3)",)) {
send_reply("404", "Not found");
 exit;
} a part of the log Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: Prepare routingMar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:drouting:do_routing_1: using weights in GW selectionMar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:drouting:do_routing: using dr group 2, rule_idx 0, username 88123364021Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:drouting:internal_check_rt: found rgid 2 (rule list 0x7f77f0f63188)Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialplan:dp_translate_f: dpid is 20004 partition is defaultMar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialplan:dp_get_svalue: searching 15Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialplan:dp_translate_f: input is 88123364021Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialplan:dp_translate_f: Checking with dpid 20004Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialplan:translate: Regex operator testing. Got result: -1Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialplan:translate: No matching rule for input 88123364021Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialplan:dp_translate_f: could not translate 88123364021 with dpid 20004Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: INFO:drouting:do_routing: All the gateways are disabledMar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialog:next_state_dlg: unref dlg 0x7f77f3c8bc70 with 1 -> 2 in entry 0x7f77ef003548Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:core:evi_param_set: adding string paramMar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:core:evi_param_set: adding string paramMar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:core:evi_param_set: adding int paramMar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:core:evi_param_set: adding int paramMar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:core:destroy_avp_list: destroying list (nil)Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialog:next_state_dlg: dialog 0x7f77f3c8bc70 changed from state 1 to state 5, due event 1Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialog:dlg_onreply: dialog 0x7f77f3c8bc70 failed (negative reply)Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialog:unref_dlg: unref dlg 0x7f77f3c8bc70 with 1 -> 1 in entry 0x7f77ef003548Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialog:unref_dlg: unref dlg 0x7f77f3c8bc70 with 1 -> 0 in entry 0x7f77ef003548Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialog:unref_dlg: ref <=0 for dialog 0x7f77f3c8bc70Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialog:destroy_dlg: destroying dialog 0x7f77f3c8bc70Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialog:destroy_dlg: dlg expired or not in list - dlg 0x7f77f3c8bc70 [1301:1538288757] with clid 

Re: [OpenSIPS-Users] Opensips crash

2017-04-04 Thread Bogdan-Andrei Iancu

OK,please enter gdb and print:
p shm_block->first_frag
p shm_block->last_frag_end

p mem_block->first_frag
p mem_block->last_frag_end

Thanks,

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

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html

On 04/04/2017 01:42 PM, Denis wrote:

Hello, Bogdan!
No, i cannot see in the log any messages you mentioned it your letter.
The situation dealing with crash had such stage.
1. I prepared to migrate to 2.2.3 from 2.2.2. But do not have a time 
to restart Opensips
2. As a result "i waited" when Opensips have crashed. During crash of 
2.2.2 no core file has been generated, but Opensips has been restarted 
using cron.
3. After 2) Opensips became 2.2.3. It was working about 1 minute and 
crashed again, but in that time, core file has been generated and i 
attached information from it.
So, between 2) and 3) , as i mentioned above, there were no messages 
about memory, but i see many messages like
'WARNING:core:utimer_ticker: utimer task  already scheduled 
for 71500 ms
WARNING:core:timer_ticker: timer task  already scheduled 
for 72400 ms
WARNING:core:timer_ticker: timer task  already scheduled for 
72400 ms
WARNING:core:timer_ticker: timer task  already scheduled 
for 72400 ms
WARNING:core:timer_ticker: timer task  already 
scheduled for 72400 ms'

and so on
As for about version
version: opensips 2.2.3 (x86_64/linux)
flags: STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP, PKG_MALLOC, 
QM_MALLOC, DBG_MALLOC, FAST_LOCK-ADAPTIVE_WAIT
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, 
MAX_URI_SIZE 1024, BUF_SIZE 65535

poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
git revision: 7922417
main.c compiled on 06:29:28 Mar 23 2017 with gcc 5.4.0
--
С уважением, Денис.
Best regards, Denis
04.04.2017, 12:43, "Bogdan-Andrei Iancu" :

Hello Denis,

Thank you for the report. Do you see any CRITICAL log just before the 
crash, something like:

"bad pointer 0 (out of memory block!) - aborting"
?
If yes, please post here the exact line.

Also, do you use the latest OpenSIPS 2.2 from GIT repo ? (run 
"opensips -v")


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

OpenSIPS Summit May 2017 Amsterdam
   http://www.opensips.org/events/Summit-2017Amsterdam.html
On 04/04/2017 10:58 AM, Denis via Users wrote:

Hello!
Server:: OpenSIPS (2.2.3 (x86_64/linux))
Thank you for any help.
P.S. Opensips has been compiled with QM_MALLOC and DBG_MALLOC flags
--
С уважением, Денис.
Best regards, Denis
___
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 OpenSIPS to use USER based gateway

2017-04-04 Thread Bogdan-Andrei Iancu
Whatever headers are added in failure route are visible only to that 
particular branch, they are are not inherited by any future branch. So, 
if you do uac_auth() from failure route only, I do not see how the Auth 
hdr may propagate to other branch.


Do you have a pcap or txt capture for the call flow ?

Regards,

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

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html

On 04/04/2017 01:54 PM, sagar malam wrote:

Hello Bodgan,

Thanks for reply.

Do you use the uac_auth() (which add the Auth hdr) only from failure 
route, right ?

Yes exactly.

Also , does your INVITE have any already populated Auth hdr (when 
received by OpenSIPS) ?

No,we are adding it using uac_auth function.


On Tue, Apr 4, 2017 at 4:18 PM Bogdan-Andrei Iancu 
> wrote:


Hello,

Do you use the uac_auth() (which add the Auth hdr) only from
failure route, right ?

Also , does your INVITE have any already populated Auth hdr (when
received by OpenSIPS) ?

Best regards,

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

OpenSIPS Summit May 2017 Amsterdam
   http://www.opensips.org/events/Summit-2017Amsterdam.html

On 04/03/2017 11:26 AM, sagar malam wrote:

Hello,

I am trying to configure OpenSIPS to support Username-password
based authentication Gateway.

Hence i am using uac_auth function to generated Authorization
header before relaying INVITE packet to gateway.

I am facing issue in removing old Authorization header and append
new Authorization header in Failure route before trying next gateway.

OpenSIPs is not detecting old Authorization headers but when i
see sip trace ,headers are present.


Script flow is something like this :
request_route{
   select_gateway
  relay_route
}
relay_route{
t_relay
}

failure_route{
Remove old Authirization header
 on,407 or 401,Add Authorization header using uac_auth
select_next gateway
relay_route
}

In Users mailing list i read that headers added in request route
cannot be removed later,hence i need to add headers during branch
route but uac_auth function works only in failure route.

Please help me on this.

Thanks in advance



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




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


Re: [OpenSIPS-Users] OpenSIPS 'ignoring' incoming '200 OKs' in the middle of a call

2017-04-04 Thread Bogdan-Andrei Iancu

Hello Jock,

According to the "Bad" debug output, OpenSIPS does not receive the 200 
OK reply at all. As you can see, starting with line 52, the incoming 100 
Trying is handled by process 24205, up to line 94 (time 08:41:53). AFter 
that silence, nothing is received until 08:42:25 when a BYE is received.


Maybe the 200 OK are discarded by OS (in terms of not be delivered to 
the application level) as the UDP packet is too large and fragmented 
(and some fragments are missing) ?? have you checked with a pcap to see 
if the 200 OK is fragmented ?


Best regards,

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

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html

On 03/27/2017 05:56 PM, Jock McKechnie wrote:

Greetings all;

This is in continuation with a message I sent last week ('OpenSIPS
debug logging SIP packets it deems non-local'). I've been beating my
head against this problem for almost three weeks now and I'm really
hoping someone might be able to offer some insight. Either the problem
is really, really stupid - or it's seriously nasty.. and unfortunately
I'm just not grokking this one.

I have a "good" call flow and a "bad" call flow. The "good" one looks
like the below:
SIP Call Source (pjsip) -> LoadBalancer (OpenSIPS) -> Destination (FreeSWITCH)

The bad one:
SIP Call Source (pjsip) -> Proxy (OpenSIPS) -> LoadBalancer (OpenSIPS)
-> Destination (FreeSWITCH)

In both flows above the Source, LoadBalancer and Destination servers
are the same machines, the only change is the addition of a Proxy
between the Source and the LoadBalancer. In the former call flow
everything works exactly as expected - the call originates, makes it
through the LoadBalancer and gets passed onto the Destination, and all
returning messages are routed as expected, the call comes up, the call
tears down, life is good.

When the middleman Proxy is added all of a sudden the LoadBalancer
stops seeing 200 OKs from the Destination box. The LoadBalancer DOES
see 100 Tryings, so it's not completely busted, but it ignores/doesn't
receive/something the 200 OKs. And I just cannot figure out why it's
decided it can't see these.

I've compared both traps and signaling fields and besides an
additional Via (the Proxy) and tag differences, they appear identical
to my eyes. I've verified it's not local firewall (if it was the
OpenSIPS shouldn't have seen the 100 Trying either, but I've also
totally dropped the fw to no avail), the messaging is all following
the same networking path, it's coming in on the correct interface on
the LoadBalancer, the obvious in other words.

I've simplified the LoadBalancer config to the point it's not
"balancing" and is just sending to a specific FreeSWITCH box and the
behaviour is consistent. I've tried this on three versions of OpenSIPS
- 1.8.5, 1.8.8 and 1.11.6 and the behaviour is also consistent across
versions.

I have a bunch of traps and debug in the hopes someone might spot
something. These are all coming from a 1.8.5 release of OpenSIPS, for
what it's worth, although given it's across multiple versions
(including LTS), I'm guessing the version does not have anything to do
with it.

The opensips config I'm using is:
https://pastebin.com/LPNHtrVC

The "Good" ngrep trace:
https://pastebin.com/y8Way7Vq

The "Good" level 9 debug output:
https://pastebin.com/pwJvdafp


The "Bad" ngrep trace where you can see it ignoring the 200 OKs:
https://pastebin.com/9b322irb

The "Bad" debug output:
https://pastebin.com/MVdWDEgx


I've replaced the IPs in our flow with bogus hostnames to (hopefully)
illustrate things clearly - using hostnames, the call flow looks like:
Source.Me.com -> (Proxy.Me.com) -> LoadBalancer.Me.com -> Destination.Me.com

The destination number, 8005000300, is a test number on our platform -
although it is (presumably) a real US number, we're not routing this
out into the "Wild". The source is similarly a bogus number for
testing purposes.

If anyone has any suggestions, theories or insights, I cannot describe
to you how grateful I would be to hear them. By necessity I have to
add this additional Proxy into the call flow, so I -need- to make this
work.

As always, my thanks,
  - Jock

___
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-1.11 storing data in memory issue .

2017-04-04 Thread Bogdan-Andrei Iancu
Well, if the "use_domain" is enabled for usrloc, OpenSIPS expects to 
find a domain set for all the records in the "location" table, otherwise 
it will ignore/discard them at loading time.


The primary storage for registered contacts in the memory cache - 
OpenSIPS will perform lookups only in memory cache (and not it DB) - of 
course, unless you use the DB ONLY mode.


You can check the in-memory registrations by "opensipsctl ul dump"

Regards,

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

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html

On 04/04/2017 01:39 PM, Sasmita Panda wrote:

Hi Bogdan ,

   Yes , the domain corresponding to this username is empty . But 
the domain for all the contact is not empty .



When the domain for a contact is not empty and its present in 
the DB , I am not getting that in the memory . What could be the 
reason for this .


   Another strange thing happening . When I am setting db_mode :2 
, even if a contact is not present in the memory (but present in db)
the call get connected . I was assuming when there is no contact in 
the memory it should send  "404 Not Found" .


   When I am running opensips in AWS linux , everything works fine 
. I am not seeing any issue regarding updating memory .
But when I am running this in centos 7 , there is problem in updating 
memory in every refresh  .



 So where was the problem . opensips is version is same every 
where . My config file is same everywhere . But still there is 
difference . Why this is happening ?



*/Thanks & Regards/*
/Sasmita Panda/
/Network Testing and Software Engineer/
/3CLogic , ph:07827611765/

On Tue, Apr 4, 2017 at 3:22 PM, Bogdan-Andrei Iancu 
> wrote:


Hello Sasmita,

The error means that at startup time (preloading the usrloc
content from DB into memory), OpenSIPS finds a record (in the
"location" table) with an empty domain field (username '') -
could you confirm this by checking your DB ?

Best regards,

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

OpenSIPS Summit May 2017 Amsterdam
   http://www.opensips.org/events/Summit-2017Amsterdam.html


On 03/31/2017 01:06 PM, Sasmita Panda wrote:

Hi  All ,
I am using opensips-1.11 from long time . But today i faced
some issue .
when a username det rigistered , it givind some error in the logs
like bellow .
*CRITICAL:usrloc:preload_udomain: empty domain for user
...skipping *
**
*I am getting that entry in the DB but I am not getting
anything in the memory . Every call to this number failing with
error 404 Not found .*
**
**
*loadmodule "usrloc.so"*
*modparam("usrloc", "db_url",
"mysql://:@localhost/opensips")*
*modparam("usrloc", "db_mode", 1)*
**
*Other default modules are loaded also . It not giving any
error when starting . But while register its throughing such
error . *
**
*  What the problem i am not getting it . This is happening
in one machine . In other machine the same config with same code
is runnign fine .*
**
*Please help me if I am doing anything wrong .*
**
*/Thanks & Regards/*
/Sasmita Panda/
/Network Testing and Software Engineer/
/3CLogic , ph:07827611765/

___
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 drouting probing

2017-04-04 Thread Bogdan-Andrei Iancu

Hi Denis,

Again, as drouting is not doing any signalling action, it CANNOT 
block/freeze your OpenSIPS.


Use script_trace() function to see how your INVITE is handled :
http://www.opensips.org/Documentation/Script-CoreFunctions-2-2#toc43

Regards,

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

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html

On 03/28/2017 04:46 PM, Denis via Users wrote:

In additional,
a part of the opensips.cfg
xlog ("Prepare routing");
if (!do_routing("$avp(5)","W",,"$avp(300)","$avp(3)",)) {
 send_reply("404", "Not found");
  exit;
}
a part of the log
Mar 28 09:38:28 ubuntu-amd64 
/usr/local/opensips2.2/sbin/opensips[7170]: Prepare routing
Mar 28 09:38:28 ubuntu-amd64 
/usr/local/opensips2.2/sbin/opensips[7170]: DBG:drouting:do_routing_1: 
using weights in GW selection
Mar 28 09:38:28 ubuntu-amd64 
/usr/local/opensips2.2/sbin/opensips[7170]: DBG:drouting:do_routing: 
using dr group 2, rule_idx 0, username 88123364021
Mar 28 09:38:28 ubuntu-amd64 
/usr/local/opensips2.2/sbin/opensips[7170]: 
DBG:drouting:internal_check_rt: found rgid 2 (rule list 0x7f77f0f63188)
Mar 28 09:38:28 ubuntu-amd64 
/usr/local/opensips2.2/sbin/opensips[7170]: 
DBG:dialplan:dp_translate_f: dpid is 20004 partition is default
Mar 28 09:38:28 ubuntu-amd64 
/usr/local/opensips2.2/sbin/opensips[7170]: 
DBG:dialplan:dp_get_svalue: searching 15
Mar 28 09:38:28 ubuntu-amd64 
/usr/local/opensips2.2/sbin/opensips[7170]: 
DBG:dialplan:dp_translate_f: input is 88123364021
Mar 28 09:38:28 ubuntu-amd64 
/usr/local/opensips2.2/sbin/opensips[7170]: 
DBG:dialplan:dp_translate_f: Checking with dpid 20004
Mar 28 09:38:28 ubuntu-amd64 
/usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialplan:translate: 
Regex operator testing. Got result: -1
Mar 28 09:38:28 ubuntu-amd64 
/usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialplan:translate: No 
matching rule for input 88123364021
Mar 28 09:38:28 ubuntu-amd64 
/usr/local/opensips2.2/sbin/opensips[7170]: 
DBG:dialplan:dp_translate_f: could not translate 88123364021 with dpid 
20004
Mar 28 09:38:28 ubuntu-amd64 
/usr/local/opensips2.2/sbin/opensips[7170]: INFO:drouting:do_routing: 
All the gateways are disabled
Mar 28 09:38:28 ubuntu-amd64 
/usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialog:next_state_dlg: 
unref dlg 0x7f77f3c8bc70 with 1 -> 2 in entry 0x7f77ef003548
Mar 28 09:38:28 ubuntu-amd64 
/usr/local/opensips2.2/sbin/opensips[7170]: DBG:core:evi_param_set: 
adding string param
Mar 28 09:38:28 ubuntu-amd64 
/usr/local/opensips2.2/sbin/opensips[7170]: DBG:core:evi_param_set: 
adding string param
Mar 28 09:38:28 ubuntu-amd64 
/usr/local/opensips2.2/sbin/opensips[7170]: DBG:core:evi_param_set: 
adding int param
Mar 28 09:38:28 ubuntu-amd64 
/usr/local/opensips2.2/sbin/opensips[7170]: DBG:core:evi_param_set: 
adding int param
Mar 28 09:38:28 ubuntu-amd64 
/usr/local/opensips2.2/sbin/opensips[7170]: DBG:core:destroy_avp_list: 
destroying list (nil)
Mar 28 09:38:28 ubuntu-amd64 
/usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialog:next_state_dlg: 
dialog 0x7f77f3c8bc70 changed from state 1 to state 5, due event 1
Mar 28 09:38:28 ubuntu-amd64 
/usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialog:dlg_onreply: 
dialog 0x7f77f3c8bc70 failed (negative reply)
Mar 28 09:38:28 ubuntu-amd64 
/usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialog:unref_dlg: 
unref dlg 0x7f77f3c8bc70 with 1 -> 1 in entry 0x7f77ef003548
Mar 28 09:38:28 ubuntu-amd64 
/usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialog:unref_dlg: 
unref dlg 0x7f77f3c8bc70 with 1 -> 0 in entry 0x7f77ef003548
Mar 28 09:38:28 ubuntu-amd64 
/usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialog:unref_dlg: ref 
<=0 for dialog 0x7f77f3c8bc70
Mar 28 09:38:28 ubuntu-amd64 
/usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialog:destroy_dlg: 
destroying dialog 0x7f77f3c8bc70
Mar 28 09:38:28 ubuntu-amd64 
/usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialog:destroy_dlg: 
dlg expired or not in list - dlg 0x7f77f3c8bc70 [1301:1538288757] with 
clid '84253MzdiNGJmNzcwYjI1OTE2NmE2ZDUyNGJmZWJiYWQ3NTM' and tags 
'2c479443' 'NULL'
Mar 28 09:38:28 ubuntu-amd64 
/usr/local/opensips2.2/sbin/opensips[7170]: DBG:core:destroy_avp_list: 
destroying list 0x7f77f3c8ed08
Mar 28 09:38:28 ubuntu-amd64 
/usr/local/opensips2.2/sbin/opensips[7170]: DBG:core:receive_msg: 
cleaning up

--
С уважением, Денис.
Best regards, Denis
28.03.2017, 13:00, "Denis" :

Hello, Bogdan!
Is there any idea about problem?
Thank you.
--
С уважением, Денис.
Best regards, Denis
24.03.2017, 07:52, "Denis" >:

Hello!
It does not work.
Opensips "freezes" a call.
In syslog i see "INFO:drouting:do_routing: All the gateways are 
disabled"

--
С уважением, Денис.
Best regards, Denis
23.03.2017, 18:42, "Bogdan-Andrei Iancu" >:

Hi,

You should do :
if 

Re: [OpenSIPS-Users] Control Panel 6.2 doesn´t work with postgres and using user management

2017-04-04 Thread Bogdan-Andrei Iancu

Hello Martin,

Do you see (in apache logs or postgres logs) the actual query performed 
by CP 6.2? It will help to see if there is something wrong in it.  Or at 
least some error logs


In the Users tab, do you apply some filters ? or you get the error when 
listing all users (without any filtering) ?


Best regards,

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

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html

On 03/29/2017 12:11 PM, M L wrote:


Hi,


I just want to give a heads-up that control panel 6.2 does not work 
with postgres when using user management. It gives some MDB2 errors.


It is related to changed behaviour of select syntax between 6.1 and 6.2.


In 6.2 you will find this select syntax in user_management.main.php

Line 185

$sql_command="from ".$table." s ".$sql_search." order by s.id asc";

Line 193

$resultset = $link->queryAll("select count(*) ".$sql_command);


In 6.1 that still works with postgres for user management and opensips 
2.2 select syntax is:


Line 157

$sql_command="select * from ".$table." s where (1=1) ".$sql_search." 
order by s.id asc";


Line 166

$resultset = $link->queryAll($sql_command);


Not sure reason of why select syntax is changed in 6.2 but you should 
correct it so it works for postgres. Meanwhile a workaround is to use 
cp 6.1 if you use pgsql as db for opensips.



Regards,

Martin



___
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 OpenSIPS to use USER based gateway

2017-04-04 Thread sagar malam
Hello Bodgan,

Thanks for reply.

Do you use the uac_auth() (which add the Auth hdr) only from failure route,
right ?
Yes exactly.

Also , does your INVITE have any already populated Auth hdr (when received
by OpenSIPS) ?
No,we are adding it using uac_auth function.


On Tue, Apr 4, 2017 at 4:18 PM Bogdan-Andrei Iancu 
wrote:

> Hello,
>
> Do you use the uac_auth() (which add the Auth hdr) only from failure
> route, right ?
>
> Also , does your INVITE have any already populated Auth hdr (when received
> by OpenSIPS) ?
>
> Best regards,
>
> Bogdan-Andrei Iancu
>   OpenSIPS Founder and Developer
>   http://www.opensips-solutions.com
>
> OpenSIPS Summit May 2017 Amsterdam
>   http://www.opensips.org/events/Summit-2017Amsterdam.html
>
> On 04/03/2017 11:26 AM, sagar malam wrote:
>
> Hello,
>
> I am trying to configure OpenSIPS to support Username-password based
> authentication Gateway.
>
> Hence i am using uac_auth function to generated Authorization header
> before relaying INVITE packet to gateway.
>
> I am facing issue in removing old Authorization header and append new
> Authorization header in Failure route before trying next gateway.
>
> OpenSIPs is not detecting old Authorization headers but when i see sip
> trace ,headers are present.
>
>
> Script flow is something like this :
> request_route{
>select_gateway
>   relay_route
> }
> relay_route{
> t_relay
> }
>
> failure_route{
> Remove old Authirization header
>  on,407 or 401,Add Authorization header using uac_auth
> select_next gateway
> relay_route
> }
>
> In Users mailing list i read that headers added in request route cannot be
> removed later,hence i need to add headers during branch route but uac_auth
> function works only in failure route.
>
> Please help me on this.
>
> Thanks in advance
>
>
>
>
> ___
> 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


Re: [OpenSIPS-Users] port number in record-route

2017-04-04 Thread Bogdan-Andrei Iancu

Hi Satish,

Ok, you listen on non standard ports (7070, 6060, 5062, etc). And 
OpenSIPS (when doing record_route()) will add the RR header along with 
the port indication (according to the interface the request is handled).


If the request is received on x.x.x.x:7070, it will be RR with that IP 
and port.


If the request is received on x.x.x.x:6060, it will be RR with the 6060 
port.


Where is the problem ?

Regards,

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

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html

On 03/31/2017 04:31 AM, Satish Patel wrote:

is there a way i can re-write record-route port number?

On Wed, Mar 29, 2017 at 6:29 PM, Alex Balashov
 wrote:

Record-Route headers contain URIs, and like any SIP URI, they can contain a 
port component. If that port component is omitted, 5060 is presumed.

On March 29, 2017 6:27:30 PM EDT, Satish Patel  wrote:

what is the use of port number in record-route?

I am having major issue with that look like we are running sip server
on different port to protect ourself from sip scanner we are using
non-standard port like 6060/7070 multiple port on single server so it
will failover to other port if firewall block them.

I am seeing record-route adding first port in listen: directive for
example

listen=udp:x.x.x.x:7070 udp:x.x.x.x:7070 udp:x.x.x.x:5062

In this case my record-route always using 7070 in header default
recordless request coming on 5062.

I found one more issue here someone posted while ago

https://lists.cs.columbia.edu/pipermail/sip-implementors/2001-March/000601.html

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


-- Alex

--
Principal, Evariste Systems LLC (www.evaristesys.com)

Sent from my Google Nexus.

___
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] Configure OpenSIPS to use USER based gateway

2017-04-04 Thread Bogdan-Andrei Iancu

Hello,

Do you use the uac_auth() (which add the Auth hdr) only from failure 
route, right ?


Also , does your INVITE have any already populated Auth hdr (when 
received by OpenSIPS) ?


Best regards,

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

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html

On 04/03/2017 11:26 AM, sagar malam wrote:

Hello,

I am trying to configure OpenSIPS to support Username-password based 
authentication Gateway.


Hence i am using uac_auth function to generated Authorization header 
before relaying INVITE packet to gateway.


I am facing issue in removing old Authorization header and append new 
Authorization header in Failure route before trying next gateway.


OpenSIPs is not detecting old Authorization headers but when i see sip 
trace ,headers are present.



Script flow is something like this :
request_route{
   select_gateway
  relay_route
}
relay_route{
t_relay
}

failure_route{
Remove old Authirization header
 on,407 or 401,Add Authorization header using uac_auth
select_next gateway
relay_route
}

In Users mailing list i read that headers added in request route 
cannot be removed later,hence i need to add headers during branch 
route but uac_auth function works only in failure route.


Please help me on this.

Thanks in advance



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


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


Re: [OpenSIPS-Users] Opensips crash

2017-04-04 Thread Denis via Users
Hello, Bogdan! No, i cannot see in the log any messages you mentioned it your letter.The situation dealing with crash had such stage. 1. I prepared to migrate to 2.2.3 from 2.2.2. But do not have a time to restart Opensips2. As a result "i waited" when Opensips have crashed. During crash of 2.2.2 no core file has been generated, but Opensips has been restarted using cron.3. After 2) Opensips became 2.2.3. It was working about 1 minute and crashed again, but in that time, core file has been generated and i attached information from it.So, between 2) and 3) , as i mentioned above, there were no messages about memory, but i see many messages like'WARNING:core:utimer_ticker: utimer task  already scheduled for 71500 msWARNING:core:timer_ticker: timer task  already scheduled for 72400 msWARNING:core:timer_ticker: timer task  already scheduled for 72400 msWARNING:core:timer_ticker: timer task  already scheduled for 72400 msWARNING:core:timer_ticker: timer task  already scheduled for 72400 ms'and so on As for about version version: opensips 2.2.3 (x86_64/linux)flags: STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP, PKG_MALLOC, QM_MALLOC, DBG_MALLOC, FAST_LOCK-ADAPTIVE_WAITADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.git revision: 7922417main.c compiled on 06:29:28 Mar 23 2017 with gcc 5.4.0 -- С уважением, Денис.Best regards, Denis   04.04.2017, 12:43, "Bogdan-Andrei Iancu" :Hello Denis,Thank you for the report. Do you see any CRITICAL log just before the crash, something like:    "bad pointer 0 (out of memory block!) - aborting"?If yes, please post here the exact line.Also, do you use the latest OpenSIPS 2.2 from GIT repo ? (run "opensips -v")Regards,Bogdan-Andrei Iancu
  OpenSIPS Founder and Developer
  http://www.opensips-solutions.com

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html
On 04/04/2017 10:58 AM, Denis via Users wrote:Hello! Server:: OpenSIPS (2.2.3 (x86_64/linux)) Thank you for any help. P.S. Opensips has been compiled with QM_MALLOC and DBG_MALLOC flags -- С уважением, Денис.Best regards, Denis___
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-1.11 storing data in memory issue .

2017-04-04 Thread Sasmita Panda
Hi Bogdan ,

   Yes , the domain corresponding to this username is empty . But the
domain for all the contact is not empty .


When the domain for a contact is not empty and its present in the
DB , I am not getting that in the memory . What could be the reason for
this .

   Another strange thing happening . When I am setting db_mode :2 ,
even if a contact is not present in the memory (but present in db)
the call get connected . I was assuming when there is no contact in the
memory it should send  "404 Not Found" .

   When I am running opensips in AWS linux , everything works fine . I
am not seeing any issue regarding updating memory .
But when I am running this in centos 7 , there is problem in updating
memory in every refresh  .


 So where was the problem . opensips is version is same every where .
My config file is same everywhere . But still there is difference . Why
this is happening ?



*Thanks & Regards*
*Sasmita Panda*
*Network Testing and Software Engineer*
*3CLogic , ph:07827611765*

On Tue, Apr 4, 2017 at 3:22 PM, Bogdan-Andrei Iancu 
wrote:

> Hello Sasmita,
>
> The error means that at startup time (preloading the usrloc content from
> DB into memory), OpenSIPS finds a record (in the "location" table) with an
> empty domain field (username '') - could you confirm this by checking
> your DB ?
>
> Best regards,
>
> Bogdan-Andrei Iancu
>   OpenSIPS Founder and Developer
>   http://www.opensips-solutions.com
>
> OpenSIPS Summit May 2017 Amsterdam
>   http://www.opensips.org/events/Summit-2017Amsterdam.html
>
> On 03/31/2017 01:06 PM, Sasmita Panda wrote:
>
> Hi  All ,
>
> I am using opensips-1.11 from long time . But today i faced some issue
> .
> when a username det rigistered , it givind some error in the logs like
> bellow .
>
> *CRITICAL:usrloc:preload_udomain: empty domain for user ...skipping *
>
> *I am getting that entry in the DB but I am not getting anything in
> the memory . Every call to this number failing with error 404 Not found .*
>
>
> *loadmodule "usrloc.so"*
> *modparam("usrloc", "db_url", "mysql://:@localhost/opensips")*
> *modparam("usrloc", "db_mode", 1)*
>
> *Other default modules are loaded also . It not giving any error when
> starting . But while register its throughing such error . *
>
> *  What the problem i am not getting it . This is happening in one
> machine . In other machine the same config with same code is runnign fine .*
>
> *Please help me if I am doing anything wrong .*
>
> *Thanks & Regards*
> *Sasmita Panda*
> *Network Testing and Software Engineer*
> *3CLogic , ph:07827611765*
>
>
> ___
> 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


Re: [OpenSIPS-Users] OpenSips and WebRTC ERRORS

2017-04-04 Thread Bogdan-Andrei Iancu

Hi Dragomir,

Those errors translate into a failed attempt to connect via TCP (for WSS 
protocol) to the needed SIP destination. OR, when you do t_relay() in 
the script, you have a SIP destination that does not accept the TCP 
connections from OpenSIPS. Are you sure that the destination/callee 
party is able to accept incoming TCP connections ?


Best regards,

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

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html

On 04/04/2017 12:16 AM, Dragomir Haralambiev wrote:

Hello,

I try to test WebRTC.
OS: CentOs7.2
Opensips: 2.2.3
Tutorial:
http://www.opensips.org/Documentation/Tutorials-WebSocket-2-2

Zoiper ---> Opensips -> Crome(tryit.jssip.net 
)


In Opensips log have many ERRORS:

rtpengine[719]: INFO: [xgo3OaZkRrYqO3SQFH03JQ..]: Received command 
'offer' from 127.0.0.1:53928 

rtpengine[719]: NOTICE: [xgo3OaZkRrYqO3SQFH03JQ..]: Creating new call
rtpengine[719]: INFO: [xgo3OaZkRrYqO3SQFH03JQ..]: offer time = 
0.001532 sec
rtpengine[719]: INFO: [xgo3OaZkRrYqO3SQFH03JQ..]: Replying to 'offer' 
from 127.0.0.1:53928 
rtpengine[719]: INFO: [xgo3OaZkRrYqO3SQFH03JQ..]: Received command 
'offer' from 127.0.0.1:53928 
rtpengine[719]: INFO: [xgo3OaZkRrYqO3SQFH03JQ..]: offer time = 
0.000116 sec
rtpengine[719]: INFO: [xgo3OaZkRrYqO3SQFH03JQ..]: Replying to 'offer' 
from 127.0.0.1:53928 
rtpengine[719]: INFO: [xgo3OaZkRrYqO3SQFH03JQ..]: Received command 
'offer' from 127.0.0.1:53928 
rtpengine[719]: INFO: [xgo3OaZkRrYqO3SQFH03JQ..]: offer time = 
0.86 sec
rtpengine[719]: INFO: [xgo3OaZkRrYqO3SQFH03JQ..]: Replying to 'offer' 
from 127.0.0.1:53928 
/usr/local/sbin/opensips[4822]: INFO:core:probe_max_sock_buff: using 
snd buffer of 416 kb
/usr/local/sbin/opensips[4822]: INFO:core:init_sock_keepalive: TCP 
keepalive enabled on socket 21
/usr/local/sbin/opensips[4822]: ERROR:core:tcp_connect_blocking: 
timeout 99200 ms elapsed from 10 s
/usr/local/sbin/opensips[4822]: ERROR:proto_wss:ws_sync_connect: 
tcp_blocking_connect failed

/usr/local/sbin/opensips[4822]: ERROR:proto_wss:ws_connect: connect failed
/usr/local/sbin/opensips[4822]: ERROR:proto_wss:proto_wss_send: 
connect failed
/usr/local/sbin/opensips[4822]: ERROR:tm:msg_send: send() for proto 6 
failed
/usr/local/sbin/opensips[4822]: ERROR:tm:t_forward_nonack: sending 
request failed
/usr/local/sbin/opensips[4822]: INFO:core:probe_max_sock_buff: using 
snd buffer of 416 kb
/usr/local/sbin/opensips[4822]: INFO:core:init_sock_keepalive: TCP 
keepalive enabled on socket 21
/usr/local/sbin/opensips[4822]: ERROR:core:tcp_connect_blocking: 
timeout 101189 ms elapsed from 10 s
/usr/local/sbin/opensips[4822]: ERROR:proto_wss:ws_sync_connect: 
tcp_blocking_connect failed

/usr/local/sbin/opensips[4822]: ERROR:proto_wss:ws_connect: connect failed
/usr/local/sbin/opensips[4822]: ERROR:proto_wss:proto_wss_send: 
connect failed
/usr/local/sbin/opensips[4822]: ERROR:tm:msg_send: send() for proto 6 
failed
/usr/local/sbin/opensips[4822]: ERROR:tm:t_forward_nonack: sending 
request failed
rtpengine[719]: NOTICE: [xgo3OaZkRrYqO3SQFH03JQ.. port 50878]: Unknown 
STUN attribute: 0xc057
rtpengine[719]: NOTICE: [xgo3OaZkRrYqO3SQFH03JQ.. port 50879]: Unknown 
STUN attribute: 0xc057
rtpengine[719]: INFO: [xgo3OaZkRrYqO3SQFH03JQ..]: Received command 
'answer' from 127.0.0.1:40991 
rtpengine[719]: INFO: [xgo3OaZkRrYqO3SQFH03JQ..]: answer time = 
0.001351 sec
rtpengine[719]: INFO: [xgo3OaZkRrYqO3SQFH03JQ..]: Replying to 'answer' 
from 127.0.0.1:40991 
rtpengine[719]: INFO: [xgo3OaZkRrYqO3SQFH03JQ.. port 50878]: DTLS: 
Peer certificate accepted
rtpengine[719]: WARNING: [xgo3OaZkRrYqO3SQFH03JQ.. port 50888]: RTP 
packet with unknown payload type 95 received
rtpengine[719]: INFO: [xgo3OaZkRrYqO3SQFH03JQ.. port 50878]: DTLS-SRTP 
successfully negotiated
rtpengine[719]: INFO: [xgo3OaZkRrYqO3SQFH03JQ.. port 50879]: DTLS: 
Peer certificate accepted
rtpengine[719]: INFO: [xgo3OaZkRrYqO3SQFH03JQ.. port 50879]: DTLS-SRTP 
successfully negotiated
rtpengine[719]: NOTICE: [xgo3OaZkRrYqO3SQFH03JQ.. port 50878]: Unknown 
STUN attribute: 0xc057
rtpengine[719]: NOTICE: [xgo3OaZkRrYqO3SQFH03JQ.. port 50879]: Unknown 
STUN attribute: 0xc057
rtpengine[719]: NOTICE: [xgo3OaZkRrYqO3SQFH03JQ.. port 50878]: Unknown 
STUN attribute: 0xc057
rtpengine[719]: NOTICE: [xgo3OaZkRrYqO3SQFH03JQ.. port 50879]: Unknown 
STUN attribute: 0xc057
rtpengine[719]: INFO: [xgo3OaZkRrYqO3SQFH03JQ.. port 50879]: ICE 
negotiated: local interface 192.168.1.130
rtpengine[719]: NOTICE: [xgo3OaZkRrYqO3SQFH03JQ.. port 50878]: Unknown 
STUN attribute: 0xc057
rtpengine[719]: NOTICE: [xgo3OaZkRrYqO3SQFH03JQ.. port 50879]: Unknown 
STUN attribute: 0xc057
rtpengine[719]: NOTICE: 

Re: [OpenSIPS-Users] opensips-1.11 storing data in memory issue .

2017-04-04 Thread Bogdan-Andrei Iancu

Hello Sasmita,

The error means that at startup time (preloading the usrloc content from 
DB into memory), OpenSIPS finds a record (in the "location" table) with 
an empty domain field (username '') - could you confirm this by 
checking your DB ?


Best regards,

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

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html

On 03/31/2017 01:06 PM, Sasmita Panda wrote:

Hi  All ,

I am using opensips-1.11 from long time . But today i faced some 
issue .
when a username det rigistered , it givind some error in the logs like 
bellow .


*CRITICAL:usrloc:preload_udomain: empty domain for user ...skipping *
*
*
*I am getting that entry in the DB but I am not getting anything 
in the memory . Every call to this number failing with error 404 Not 
found .*

*
*
**
*loadmodule "usrloc.so"*
*modparam("usrloc", "db_url", "mysql://:@localhost/opensips")*
*modparam("usrloc", "db_mode", 1)*
*
*
*Other default modules are loaded also . It not giving any error 
when starting . But while register its throughing such error . *

*
*
*  What the problem i am not getting it . This is happening in one 
machine . In other machine the same config with same code is runnign 
fine .*

*
*
*Please help me if I am doing anything wrong .*
*
*
*/Thanks & Regards/*
/Sasmita Panda/
/Network Testing and Software Engineer/
/3CLogic , ph:07827611765/


___
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] rtpengine database support

2017-04-04 Thread Bogdan-Andrei Iancu

Hi Alex,

Could you please elaborate on how can Redis help here ?

Best regards,

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

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html

On 04/04/2017 11:05 AM, Alex Balashov wrote:

How do you view Redis?

On April 4, 2017 4:03:31 AM EDT, Ziv Gabel  wrote:

Hi All,
Is there any intention to add database support to the rtpengine module
?
The same as rtpproxy.

*Ziv Gabel *l Professional services l CommuniTake Technologies Ltd.



*M*: +972535265553 l *Skype*: ziv_gabel l *E*: z...@communitake.com

*T*: +972.4.696.8908 l *F*: +972.4.959.1654 l www.communitake.com


-- Alex

--
Principal, Evariste Systems LLC (www.evaristesys.com)

Sent from my Google Nexus.

___
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] rtpengine database support

2017-04-04 Thread Bogdan-Andrei Iancu

Hi Ziv,

We consider such a feature for the next release.

Best regards,

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

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html

On 04/04/2017 11:03 AM, Ziv Gabel wrote:

Hi All,
Is there any intention to add database support to the rtpengine module ?
The same as rtpproxy.

*Ziv Gabel *l**Professional services**l**CommuniTake Technologies Ltd.

**

*M*: +972535265553 l***Skype*: ziv_gabel l*E*: z...@communitake.com 



*T*: +972.4.696.8908 l*F*: +972.4.959.1654 lwww.communitake.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] Opensips crash

2017-04-04 Thread Bogdan-Andrei Iancu

Hello Denis,

Thank you for the report. Do you see any CRITICAL log just before the 
crash, something like:

"bad pointer 0 (out of memory block!) - aborting"
?
If yes, please post here the exact line.

Also, do you use the latest OpenSIPS 2.2 from GIT repo ? (run "opensips -v")

Regards,

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

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html

On 04/04/2017 10:58 AM, Denis via Users wrote:

Hello!
Server:: OpenSIPS (2.2.3 (x86_64/linux))
Thank you for any help.
P.S. Opensips has been compiled with QM_MALLOC and DBG_MALLOC flags
--
С уважением, Денис.
Best regards, Denis


___
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] mid_registrar

2017-04-04 Thread Liviu Chircu

Hi, Volga!

The errors are pretty straightforward, and suggest that the "regid" 
Contact header field parameter has been stripped when the 200 OK reply 
contact set was constructed. To confirm or infirm this, however, we need 
a full SIP packet trace.


Best regards,

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

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html

On 04.04.2017 04:24, volga...@networklab.ca wrote:

Hello Everyone,
Trying implement mid_registrar but module throwing error.


Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: 
ERROR:mid_registrar:fix_rpl_contact_by_ct: failed to get match token
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: 
ERROR:mid_registrar:mid_reg_resp_in: failed to overwrite Contact 
header field domain
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: 
ERROR:mid_registrar:get_match_token: a Contact from main registrar 
(sip:4310@99.245.176.196:46639;rinstance=cc4a62e9cf84e6cf;transport=udp) 
is missing the 'regid' hf parameter
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: 
ERROR:mid_registrar:fix_rpl_contact_by_ct: failed to get match token
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: 
ERROR:mid_registrar:mid_reg_resp_in: failed to overwrite Contact 
header field domain
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: 
ERROR:mid_registrar:get_match_token: a Contact from main registrar 
(sip:4310@99.245.176.196:46639;rinstance=cc4a62e9cf84e6cf;transport=udp) 
is missing the 'regid' hf parameter
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: 
ERROR:mid_registrar:match_contact: failed to get match token
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: 
ERROR:mid_registrar:insert_rpl_contacts: Contact 
'sip:4310@99.245.176.196:46639;rinstance=cc4a62e9cf84e6cf;transport=tcp' 
not found in reply from main registrar!



My setup

UDP transport   |   TCP transport
 freeswitch ( LAN) --- opensips  --- (WAN)  UA (soft client)

Any help thank you, volga629




___
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] rtpengine database support

2017-04-04 Thread Alex Balashov
How do you view Redis? 

On April 4, 2017 4:03:31 AM EDT, Ziv Gabel  wrote:
>Hi All,
>Is there any intention to add database support to the rtpengine module
>?
>The same as rtpproxy.
>
>*Ziv Gabel *l Professional services l CommuniTake Technologies Ltd.
>
>
>
>*M*: +972535265553 l *Skype*: ziv_gabel l *E*: z...@communitake.com
>
>*T*: +972.4.696.8908 l *F*: +972.4.959.1654 l www.communitake.com


-- Alex

--
Principal, Evariste Systems LLC (www.evaristesys.com)

Sent from my Google Nexus.

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


[OpenSIPS-Users] rtpengine database support

2017-04-04 Thread Ziv Gabel
Hi All,
Is there any intention to add database support to the rtpengine module ?
The same as rtpproxy.

*Ziv Gabel *l Professional services l CommuniTake Technologies Ltd.



*M*: +972535265553 l *Skype*: ziv_gabel l *E*: z...@communitake.com

*T*: +972.4.696.8908 l *F*: +972.4.959.1654 l www.communitake.com
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] Opensips crash

2017-04-04 Thread Denis via Users
Hello! Server:: OpenSIPS (2.2.3 (x86_64/linux)) Thank you for any help. P.S. Opensips has been compiled with QM_MALLOC and DBG_MALLOC flags -- С уважением, Денис.Best regards, Denis   #0  0x7fe069215428 in __GI_raise (sig=sig@entry=6) at 
../sysdeps/unix/sysv/linux/raise.c:54
resultvar = 0
pid = 14909
selftid = 14909
#1  0x7fe06921702a in __GI_abort () at abort.c:89
save_stage = 2
act = {__sigaction_handler = {sa_handler = 0x20, sa_sigaction = 
0x20}, sa_mask = {__val = {137438953472, 140597487971682, 
140597487972240, 0, 140597559685120,
  140597568830240, 8422349725574235136, 140597568830016, 
140597559685120, 1, 140601814054893, 0, 0, 140601816922912, 0, 1}}, sa_flags = 
1805468968, sa_restorer = 0x7fdf6b99f000}
sigs = {__val = {32, 0 }}
#2  0x00515592 in qm_free (qm=, 
p=p@entry=0x7fdf83c9f340, file=file@entry=0x7fdf6753ad62 "acc_logic.c",
func=func@entry=0x7fdf6753af90 <__FUNCTION__.12529> "dlg_free_acc_mask", 
line=line@entry=211) at mem/q_malloc.c:483
f = 
prev = 
next = 
size = 
__FUNCTION__ = "qm_free"
#3  0x7fdf67531aa1 in dlg_free_acc_mask (param=0x7fdf83c9f340) at 
acc_logic.c:211
__FUNCTION__ = "dlg_free_acc_mask"
#4  0x7fdf6842bbb5 in destroy_dlg_callbacks_list (cb=0x0) at dlg_cb.c:76
cb_t = 0x7fdf84191080
__FUNCTION__ = "destroy_dlg_callbacks_list"
#5  0x7fdf6844c4f2 in free_dlg_dlg (dlg=0x7fdf6c4ac158) at dlg_hash.c:183
dv = 
i = 
#6  destroy_dlg (dlg=dlg@entry=0x7fdf6c4ac158) at dlg_hash.c:247
ret = 
__FUNCTION__ = "destroy_dlg"
#7  0x7fdf68456bc5 in unref_dlg (dlg=0x7fdf6c4ac158, cnt=) 
at dlg_hash.c:777
d_entry = 0x7fdf6c04ea08
__FUNCTION__ = "unref_dlg"
#8  0x7fdf6a04a501 in run_trans_callbacks (type=type@entry=4096, 
trans=trans@entry=0x7fdf83d93d68, req=req@entry=0x0, rpl=rpl@entry=0x0, 
code=code@entry=0) at t_hooks.c:209
params = {req = 0x0, rpl = 0x0, code = 0, param = 0x7fdf83b74200, 
extra1 = 0x0, extra2 = 0x0}
cbp = 0x7fdf83b741f0
backup = 0x8901f8 
trans_backup = 0x
__FUNCTION__ = "run_trans_callbacks"
#9  0x7fdf6a01b219 in free_cell (dead_cell=dead_cell@entry=0x7fdf83d93d68) 
at h_table.c:125
b = 
i = 
rpl = 
tt = 
foo = 
p = 
__FUNCTION__ = "free_cell"
#10 0x7fdf6a05b212 in delete_cell (p_cell=p_cell@entry=0x7fdf83d93d68, 
unlock=unlock@entry=1) at timer.c:239
__FUNCTION__ = "delete_cell"
#11 0x7fdf6a05bf9f in wait_handler (wait_tl=0x7fdf83d93de8) at timer.c:445
p_cell = 0x7fdf83d93d68
#12 timer_routine (ticks=, set=) at timer.c:1069
tl = 0x7fdf83d93de8
tmp_tl = 0x7fdf846bcce8
id = 2
__FUNCTION__ = "timer_routine"
#13 0x004a2b6c in handle_timer_job () at timer.c:699
t = 0x7fdf6bc58ff0
---Type  to continue, or q  to quit---
__FUNCTION__ = "handle_timer_job"
#14 0x005a5452 in handle_io (idx=, event_type=, fm=) at net/net_udp.c:264
No locals.
#15 io_wait_loop_epoll (h=, t=, repeat=) at net/../io_wait_loop.h:225
ret = 
e = 
n = 2
r = 1
#16 udp_rcv_loop (si=si@entry=0x7fe029214a50) at net/net_udp.c:308
__FUNCTION__ = "udp_rcv_loop"
#17 0x005a69fb in udp_start_processes (chd_rank=chd_rank@entry=0x8902ac 
, startup_done=startup_done@entry=0x0) at net/net_udp.c:372
si = 0x7fe029214a50
load_p = 0x7fdf6e048330
pid = 
i = 3
__FUNCTION__ = "udp_start_processes"
#18 0x0041ad71 in main_loop () at main.c:675
startup_done = 0x0
chd_rank = 4
#19 main (argc=, argv=) at main.c:1265
cfg_stream = 
c = 
r = 
tmp = 0x7fff8373eef8 ""
tmp_len = 
port = 
proto = 
protos_no = 
options = 0x5ed520 "f:cCm:M:b:l:n:N:rRvdDFETSVhw:t:u:g:P:G:W:o:"
ret = -1
seed = 42605482
__FUNCTION__ = "main"
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] opensips-1.11 storing data in memory issue .

2017-04-04 Thread Sasmita Panda
I have changed this db_mode to 2 . Now its not working properly . Not
getting whats the actual problem . Rather the username is present in the DB
it not present in the memory .

 when I restart the process it works fine . It seems like the memory
and DB sync is taking time . Why this happening ? Can anybody help me
please .

*Thanks & Regards*
*Sasmita Panda*
*Network Testing and Software Engineer*
*3CLogic , ph:07827611765*

On Fri, Mar 31, 2017 at 3:36 PM, Sasmita Panda  wrote:

> Hi  All ,
>
> I am using opensips-1.11 from long time . But today i faced some issue
> .
> when a username det rigistered , it givind some error in the logs like
> bellow .
>
> *CRITICAL:usrloc:preload_udomain: empty domain for user ...skipping *
>
> *I am getting that entry in the DB but I am not getting anything in
> the memory . Every call to this number failing with error 404 Not found .*
>
>
> *loadmodule "usrloc.so"*
> *modparam("usrloc", "db_url", "mysql://:@localhost/opensips")*
> *modparam("usrloc", "db_mode", 1)*
>
> *Other default modules are loaded also . It not giving any error when
> starting . But while register its throughing such error . *
>
> *  What the problem i am not getting it . This is happening in one
> machine . In other machine the same config with same code is runnign fine .*
>
> *Please help me if I am doing anything wrong .*
>
> *Thanks & Regards*
> *Sasmita Panda*
> *Network Testing and Software Engineer*
> *3CLogic , ph:07827611765*
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users