[OpenSIPS-Users] function append_hf may be wrong

2020-07-10 Thread Saint Michael
I call this:
append_hf("Identity:\r\n$avp(signature)\r\n");
and the outbound INVITE is wrong, since the header must be located before
the "Content-Type: application/sdp.
X-: 381."
in fact, the 381 are wrong because my new header itself is way over 500
characters.

Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO,
PUBLISH, MESSAGE.
Supported: replaces, timer.
Content-Type: application/sdp.
X-: 381.
Identity:.
eyJhbGciOiJFUzI1NiIsInR5cCI6InBhc3Nwb3J0IiwicHB0Ijoic2hha2VuIiwieDV1IjoiaHR0cHM6Ly9jci5jY2lkLm5ldXN0YXIuYml6L2NjaWQvYXV0aG4vdjIvY2VydHMvMTExMTguMTAwMzIifQ.eyJhdHRlc3QiOiJDIiwiZGVzdCI6eyJ0biI6WyIxNjMxNzkxODM3OCJdfSwiaWF0IjoxNTk0NDQxMTY1LCJvcmlnIjp7InRuIjoiNjM2NTY2NjY2NiJ9LCJvcmlnaWQiOiIxMjNlNDU2Ny1lODliLTEyZDMtYTQ1Ni00MjY2NTU0NDAwMDAifQ.5U7fmN7whQVdmRmU0yOmDFZenUZtX0_mnKvQRB0yUe1i0NUdnTUqa8pHF4VxBdinDTSoOX1_I9mKR3A1x9DXzw;info=<
https://c>;alg="ES256";ppt="shaken".
.
v=0.
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Opensips 2.4.8 SEGFAULT

2020-07-10 Thread James via Users
I made a little more progress. This is what I have now.

Message: Process 18626 (opensips) of user 993 dumped core.

Stack trace of thread 18626:
#0 0x7fe49e05b9e0 t_should_relay_response (tm.so)
#1 0x7fe49e05daa3 relay_reply (tm.so)
#2 0x7fe49e060905 reply_received (tm.so)
#3 0x0044a4f8 forward_reply (opensips)
#4 0x00434248 receive_msg (opensips)
#5 0x0055c5e6 udp_read_req (opensips)
#6 0x005413bf udp_start_processes (opensips)
#7 0x00417fb5 main (opensips)
#8 0x7feade6fa873 __libc_start_main (libc.so.6)
#9 0x0041882e _start (opensips)

(gdb) bt full
#0 0x7fe49e05b9e0 in t_should_relay_response () from 
/usr/lib64/opensips/modules/tm.so
No symbol table info available.
#1 0x7fe49e05daa3 in relay_reply () from /usr/lib64/opensips/modules/tm.so
No symbol table info available.
#2 0x7fe49e060905 in reply_received () from 
/usr/lib64/opensips/modules/tm.so
No symbol table info available.
#3 0x0044a4f8 in forward_reply ()
No symbol table info available.
#4 0x00434248 in receive_msg ()
No symbol table info available.
#5 0x0055c5e6 in udp_read_req ()
No symbol table info available.
#6 0x005413bf in udp_start_processes ()
No symbol table info available.
#7 0x00417fb5 in main ()
No symbol table info available.

I am using force_send_socket(udp:1.2.3.4:5060) with mhomed=1. Would this be an 
issue?

July 10, 2020 1:02 PM, "James via Users" mailto:users@lists.opensips.org?to=%22James%20via%20Users%22%20)>
 wrote:
Hello! I am having an issue with opensips crashing. I have reviewed the guide 
on how to generate a core dump. My current problem is when I try to use gdb.

Here is what I am doing:

gdb /usr/sbin/opensips 
core.opensips.993.b6ac8a71177a49cd8238e22ba265c6e9.16129.159441016400.lz4

GNU gdb (GDB) Red Hat Enterprise Linux 8.2-11.el8
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
.
Find the GDB manual and other documentation resources online at:
.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/sbin/opensips...Reading symbols from .gnu_debugdata 
for /usr/sbin/opensips...(no debugging symbols found)...done.
(no debugging symbols found)...done.
"/var/lib/systemd/coredump/core.opensips.993.b6ac8a71177a49cd8238e22ba265c6e9.16129.159441016400.lz4"
 is not a core dump: file format not recognized
Missing separate debuginfos, use: yum debuginfo-install 
opensips-2.4.8-1.el8.x86_64

I am running Centos 8. I installed opensips using the RPM from the opensips 
download site. The dump file is generated from systemd. I added the -w flag the 
service to put the dump file in the opensips directory but that did not change 
the location of the dump file.

Here is the information from the crash in the logs.

/usr/sbin/opensips[16129]: CRITICAL:core:sig_usr: segfault in process pid: 
16129, id: 7
kernel: opensips[16129]: segfault at 0 ip 004c4363 sp 7ffcdf449470 
error 6 in opensips[40+212000]
kernel: Code: c4 28 5b 5d 41 5c 41 5d 41 5e 41 5f c3 66 2e 0f 1f 84 00 00 00 00 
00 48 c1 e8 03 89 c2 e9 8c fb ff ff 0f 1f 44 00 00 48 89 c2 <48> 89 37 48 c1 ea 
03 48 c1 e2 04 48 01 ea 48 8b 4a 58 48 83 e9 01
systemd[1]: Started Process Core Dump (PID 16147/UID 0).
Opensips info

version: opensips 2.4.8 (x86_64/linux)
flags: STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP, PKG_MALLOC, F_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, sigio_rt, select.
main.c compiled on 19:27:39 Jun 30 2020 with gcc 8

My opensips start command
/usr/sbin/opensips -P /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg 
-m 20480 -M 5120 -w /etc/opensips/dump
What am I missing in order to get a gdb core dump?

Thanks,

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


[OpenSIPS-Users] Opensips 2.4.8 SEGFAULT

2020-07-10 Thread James via Users
Hello! I am having an issue with opensips crashing. I have reviewed the guide 
on how to generate a core dump. My current problem is when I try to use gdb.

Here is what I am doing:
 gdb /usr/sbin/opensips 
core.opensips.993.b6ac8a71177a49cd8238e22ba265c6e9.16129.159441016400.lz4

GNU gdb (GDB) Red Hat Enterprise Linux 8.2-11.el8
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
.
Find the GDB manual and other documentation resources online at:
 .

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/sbin/opensips...Reading symbols from .gnu_debugdata 
for /usr/sbin/opensips...(no debugging symbols found)...done.
(no debugging symbols found)...done.
"/var/lib/systemd/coredump/core.opensips.993.b6ac8a71177a49cd8238e22ba265c6e9.16129.159441016400.lz4"
 is not a core dump: file format not recognized
Missing separate debuginfos, use: yum debuginfo-install 
opensips-2.4.8-1.el8.x86_64

I am running Centos 8. I installed opensips using the RPM from the opensips 
download site. The dump file is generated from systemd. I added the -w flag the 
service to put the dump file in the opensips directory but that did not change 
the location of the dump file.

Here is the information from the crash in the logs.

/usr/sbin/opensips[16129]: CRITICAL:core:sig_usr: segfault in process pid: 
16129, id: 7
kernel: opensips[16129]: segfault at 0 ip 004c4363 sp 7ffcdf449470 
error 6 in opensips[40+212000]
kernel: Code: c4 28 5b 5d 41 5c 41 5d 41 5e 41 5f c3 66 2e 0f 1f 84 00 00 00 00 
00 48 c1 e8 03 89 c2 e9 8c fb ff ff 0f 1f 44 00 00 48 89 c2 <48> 89 37 48 c1 ea 
03 48 c1 e2 04 48 01 ea 48 8b 4a 58 48 83 e9 01
systemd[1]: Started Process Core Dump (PID 16147/UID 0).
Opensips info

version: opensips 2.4.8 (x86_64/linux)
flags: STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP, PKG_MALLOC, F_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, sigio_rt, select.
main.c compiled on 19:27:39 Jun 30 2020 with gcc 8

My opensips start command
/usr/sbin/opensips -P /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg 
-m 20480 -M 5120 -w /etc/opensips/dump
What am I missing in order to get a gdb core dump?

Thanks,

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


Re: [OpenSIPS-Users] siprec module does response re-invite from a siprec server.

2020-07-10 Thread Diptesh Patel
Hello Razvan,

Thanks for your prompt response.

I opened a feature request.

https://github.com/OpenSIPS/opensips/issues/2167

Thanks & Regards
*Diptesh Patel*
Software Developer
Ecosmob Technologies Ltd,
Ahmedabad
Mo:*+919898962659*


On Fri, Jul 10, 2020 at 9:05 PM Răzvan Crainea  wrote:

> Hi, Diptesh!
>
> Unfortunately reinvites from the SIPREC servers are not supported by the
> module right now. Please open a feature request for this.
>
> Best regards,
>
> Răzvan Crainea
> OpenSIPS Core Developer
> http://www.opensips-solutions.com
>
> On 7/10/20 4:28 PM, Diptesh Patel wrote:
> > Hello,
> >
> > I am using opensips 2.4.7 and opensips is working as a siprec client
> > with rtpproxy. It is working fine but it does not respond to any
> > re-invite from siprec server as a refresher after a few seconds and the
> > siprec server rejects the call with BYE due to timeout and recording
> > stops there. Is there any configuration required for that?
> >
> > Thanks & Regards
> > *Diptesh Patel*
> > Software Developer
> > Ecosmob Technologies Ltd,
> > Ahmedabad
> > Mo:*+919898962659*
> >
> > *Disclaimer*
> > In addition to generic Disclaimer which you have agreed on our website,
> > any views or opinions presented in this email are solely those of the
> > originator and do not necessarily represent those of the Company or its
> > sister concerns. Any liability (in negligence, contract or otherwise)
> > arising from any third party taking any action, or refraining from
> > taking any action on the basis of any of the information contained in
> > this email is hereby excluded.
> >
> > *Confidentiality*
> > This communication (including any attachment/s) is intended only for the
> > use of the addressee(s) and contains information that is PRIVILEGED AND
> > CONFIDENTIAL. Unauthorized reading, dissemination, distribution, or
> > copying of this communication is prohibited. Please inform originator if
> > you have received it in error.
> >
> > *Caution for viruses, malware etc.*
> > This communication, including any attachments, may not be free of
> > viruses, trojans, similar or new contaminants/malware, interceptions or
> > interference, and may not be compatible with your systems. You shall
> > carry out virus/malware scanning on your own before opening any
> > attachment to this e-mail. The sender of this e-mail and Company
> > including its sister concerns shall not be liable for any damage that
> > may incur to you as a result of viruses, incompleteness of this message,
> > a delay in receipt of this message or any other computer problems.
> >
> > ___
> > 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
>

-- 
*Disclaimer*
In addition to generic Disclaimer which you have agreed on our 
website, any views or opinions presented in this email are solely those of 
the originator and do not necessarily represent those of the Company or its 
sister concerns. Any liability (in negligence, contract or otherwise) 
arising from any third party taking any action, or refraining from taking 
any action on the basis of any of the information contained in this email 
is hereby excluded.



*Confidentiality*
This communication (including any 
attachment/s) is intended only for the use of the addressee(s) and contains 
information that is PRIVILEGED AND CONFIDENTIAL. Unauthorized reading, 
dissemination, distribution, or copying of this communication is 
prohibited. Please inform originator if you have received it in error.



*Caution for viruses, malware etc.*
This communication, including any 
attachments, may not be free of viruses, trojans, similar or new 
contaminants/malware, interceptions or interference, and may not be 
compatible with your systems. You shall carry out virus/malware scanning on 
your own before opening any attachment to this e-mail. The sender of this 
e-mail and Company including its sister concerns shall not be liable for 
any damage that may incur to you as a result of viruses, incompleteness of 
this message, a delay in receipt of this message or any other computer 
problems. 
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] siprec module does response re-invite from a siprec server.

2020-07-10 Thread Răzvan Crainea

Hi, Diptesh!

Unfortunately reinvites from the SIPREC servers are not supported by the 
module right now. Please open a feature request for this.


Best regards,

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

On 7/10/20 4:28 PM, Diptesh Patel wrote:

Hello,

I am using opensips 2.4.7 and opensips is working as a siprec client 
with rtpproxy. It is working fine but it does not respond to any 
re-invite from siprec server as a refresher after a few seconds and the 
siprec server rejects the call with BYE due to timeout and recording 
stops there. Is there any configuration required for that?


Thanks & Regards
*Diptesh Patel*
Software Developer
Ecosmob Technologies Ltd,
Ahmedabad
Mo:*+919898962659*

*Disclaimer*
In addition to generic Disclaimer which you have agreed on our website, 
any views or opinions presented in this email are solely those of the 
originator and do not necessarily represent those of the Company or its 
sister concerns. Any liability (in negligence, contract or otherwise) 
arising from any third party taking any action, or refraining from 
taking any action on the basis of any of the information contained in 
this email is hereby excluded.


*Confidentiality*
This communication (including any attachment/s) is intended only for the 
use of the addressee(s) and contains information that is PRIVILEGED AND 
CONFIDENTIAL. Unauthorized reading, dissemination, distribution, or 
copying of this communication is prohibited. Please inform originator if 
you have received it in error.


*Caution for viruses, malware etc.*
This communication, including any attachments, may not be free of 
viruses, trojans, similar or new contaminants/malware, interceptions or 
interference, and may not be compatible with your systems. You shall 
carry out virus/malware scanning on your own before opening any 
attachment to this e-mail. The sender of this e-mail and Company 
including its sister concerns shall not be liable for any damage that 
may incur to you as a result of viruses, incompleteness of this message, 
a delay in receipt of this message or any other computer problems.


___
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] siprec module does response re-invite from a siprec server.

2020-07-10 Thread Diptesh Patel
Hello,

I am using opensips 2.4.7 and opensips is working as a siprec client with
rtpproxy. It is working fine but it does not respond to any re-invite from
siprec server as a refresher after a few seconds and the siprec server
rejects the call with BYE due to timeout and recording stops there. Is
there any configuration required for that?

Thanks & Regards
*Diptesh Patel*
Software Developer
Ecosmob Technologies Ltd,
Ahmedabad
Mo:*+919898962659*

-- 
*Disclaimer*
In addition to generic Disclaimer which you have agreed on our 
website, any views or opinions presented in this email are solely those of 
the originator and do not necessarily represent those of the Company or its 
sister concerns. Any liability (in negligence, contract or otherwise) 
arising from any third party taking any action, or refraining from taking 
any action on the basis of any of the information contained in this email 
is hereby excluded.



*Confidentiality*
This communication (including any 
attachment/s) is intended only for the use of the addressee(s) and contains 
information that is PRIVILEGED AND CONFIDENTIAL. Unauthorized reading, 
dissemination, distribution, or copying of this communication is 
prohibited. Please inform originator if you have received it in error.



*Caution for viruses, malware etc.*
This communication, including any 
attachments, may not be free of viruses, trojans, similar or new 
contaminants/malware, interceptions or interference, and may not be 
compatible with your systems. You shall carry out virus/malware scanning on 
your own before opening any attachment to this e-mail. The sender of this 
e-mail and Company including its sister concerns shall not be liable for 
any damage that may incur to you as a result of viruses, incompleteness of 
this message, a delay in receipt of this message or any other computer 
problems. 
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] PUBLISH from External service

2020-07-10 Thread Maksims Deņisovs
Good day, community.

I have a scheme: A – O – C, where
A – hardware phone with BLF buttons
O – opensips
C – external server

Working scenario:
A sends subscribe (for some number, for example 123456789@opensips) events to 
opensips.
C sends publish events to O about number 123456789 status (busy, available, etc)
O sends notify events to A about 123456789 number status.

What should I use for this scenario? The same scenario is described in 
https://opensips.org/docs/modules/2.4.x/presence_callinfo.html, but what should 
I use for “External publishing”?

Will be glad to receive any response for this :)
Thanks!
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Make opensips register to VoIP Provider as a trunk with auth

2020-07-10 Thread Johan De Clercq
You need registrar and you need to put your credentials in the registrar table.

Outlook voor iOS downloaden

Van: Users  namens Sharad Kumar via Users 

Verzonden: Friday, July 10, 2020 2:56:06 AM
Aan: users@lists.opensips.org 
Onderwerp: [OpenSIPS-Users] Make opensips register to VoIP Provider as a trunk 
with auth

Hey guys,

I was just curious that can we make OpenSIPS to register as a SIP endpoint to 
VoIP provider like Twillio. We already using IP based auth in OpenSIPS to 
accept calls but one of our VOIP Provider wants our OpenSIPS SBC to register 
with them as a SIP trunk to get calls.
Does anyone got make OpenSIPS register to provider before using AUTH or 
Registrar module ?

Thank you



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