[OpenSIPS-Users] extra_fields not working in opensips 2.4.x

2019-07-31 Thread J E H A N Z A I B
Hi there,
I used to have old version 1.11.x in the past and extra fields in the acc
module used to work perfectly fine. I have updated my opensips to 2.4 now
and extra_fields are not working.

according to the documentation the from uri and to uri should be put in by
default but its not.

also the extra fields i wanted to write $si value but i cant. i can use
$acc_extra(fu)=$fu; something like this before calling do_accounting but i
do not wanted to put value manually $fu should be put in if we use
extra_fields and add it like i used to do in the 1.11 version.

can anyone help me if i am missing anything.

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


Re: [OpenSIPS-Users] uac registrant module issue

2019-02-19 Thread J E H A N Z A I B
Hi Alex,

I have made this work by adding sip: in the registrar. Awesome. thank you.
One more thing, do you know how to route the call to this registered trunk ?

I usually change the $duri but not sure how to route for this registered
sip trunk.

Ty

Thank you

On Tue, Feb 19, 2019 at 12:45 AM J E H A N Z A I B <
jehanzaib.ki...@gmail.com> wrote:

> Thank you ALex.
>
> I actually did not have sip: at the start in the registrar.
> Let me update the values in the database and test it out. Will get back to
> you shortly.
>
> Ty
>
> On Tue, Feb 19, 2019 at 12:11 AM Alexey Kazantsev via Users <
> users@lists.opensips.org> wrote:
>
>> Hi, Jehanzaib!
>>
>> Could you paste here the SELECT from your DB?
>>
>> Please set vertical oputput in your DB if possible
>> ( \x for PGSQL, \G for MySQL).
>>
>> Here's a working example:
>>
>> opensips=> select * from sipgw01_registrant ORDER BY id DESC LIMIT 1;
>> -[ RECORD 1 ]--+---
>> id | 186
>> registrar  | sip:999.201.888.35
>> proxy  |
>> aor| sip:7xxxzzz3...@multifon.ru
>> third_party_registrant |
>> username   | 7xxxzzz
>> password   | mEgApAsS
>> binding_uri| sip:7xxxzzz@999.209.888.74
>> binding_params |
>> expiry | 180
>> forced_socket  |
>>
>>
>> ---
>> BR, Alexey
>> http://alexeyka.zantsev.com/
>> ___
>> Users mailing list
>> Users@lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>
>
> --
> Regards,
> Jehanzaib
>


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


Re: [OpenSIPS-Users] uac registrant module issue

2019-02-18 Thread J E H A N Z A I B
Thank you ALex.

I actually did not have sip: at the start in the registrar.
Let me update the values in the database and test it out. Will get back to
you shortly.

Ty

On Tue, Feb 19, 2019 at 12:11 AM Alexey Kazantsev via Users <
users@lists.opensips.org> wrote:

> Hi, Jehanzaib!
>
> Could you paste here the SELECT from your DB?
>
> Please set vertical oputput in your DB if possible
> ( \x for PGSQL, \G for MySQL).
>
> Here's a working example:
>
> opensips=> select * from sipgw01_registrant ORDER BY id DESC LIMIT 1;
> -[ RECORD 1 ]--+---
> id | 186
> registrar  | sip:999.201.888.35
> proxy  |
> aor| sip:7xxxzzz3...@multifon.ru
> third_party_registrant |
> username   | 7xxxzzz
> password   | mEgApAsS
> binding_uri| sip:7xxxzzz@999.209.888.74
> binding_params |
> expiry | 180
> forced_socket  |
>
>
> ---
> BR, Alexey
> http://alexeyka.zantsev.com/
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>


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


Re: [OpenSIPS-Users] uac registrant module issue

2019-02-18 Thread J E H A N Z A I B
Hi Johan,

This is a registrar field which does not have @ do you want me to change it
to username@host?

On Mon, Feb 18, 2019 at 9:32 PM Johan De Clercq  wrote:

> where is @ ?
>
> Op ma 18 feb. 2019 om 09:14 schreef J E H A N Z A I B <
> jehanzaib.ki...@gmail.com>:
>
>> Hi folks,
>>
>> I am facing a weird issue. can anyone help me please?
>>
>> opensips 2.2.2 with the below config. Trying to register my sip provider
>> trunk on our opensips.
>>
>> loadmodule "uac_registrant.so"
>> modparam("uac_registrant", "hash_size", 2)
>> modparam("uac_registrant", "timer_interval", 120)
>> modparam("uac_registrant", "db_url", "mysql://mydbuser:pass@databasename
>> /mydb")
>> modparam("uac_registrant", "table_name", "registrant")
>> modparam("uac_registrant", "username_column", "username")
>> modparam("uac_registrant", "password_column", "password")
>> modparam("uac_registrant", "expiry_column", "expiry")
>> modparam("uac_registrant", "aor_column", "aor")
>> modparam("uac_registrant", "proxy_column", "proxy")
>>
>> Here is the table structure.
>> | id | registrar | proxy   | aor | third_party_registrant | username |
>> password| binding_URI | binding_params | expiry | forced_socket
>> When i reload: opensipsctl fifo reg_reload
>> Feb 18 20:39:56 sbc1 /usr/sbin/opensips[14223]:
>> DBG:db_mysql:db_mysql_str2val: converting INT [180]
>> Feb 18 20:39:56 sbc1 /usr/sbin/opensips[14223]:
>> INFO:uac_registrant:load_reg_info_from_db: loading [1] records from db
>> Feb 18 20:39:56 sbc1 /usr/sbin/opensips[14223]: ERROR:core:parse_uri: bad
>> uri, state 0 parsed:  (4) / 
>> (22)
>> Feb 18 20:39:56 sbc1 /usr/sbin/opensips[14223]:
>> ERROR:uac_registrant:load_reg_info_from_db: cannot parse registrar uri [
>> test0102-p01.mytestprovider.com]
>>
>>
>> Regards,
>> Jehanzaib
>> ___
>> 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
>


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


[OpenSIPS-Users] uac registrant module issue

2019-02-18 Thread J E H A N Z A I B
Hi folks,

I am facing a weird issue. can anyone help me please?

opensips 2.2.2 with the below config. Trying to register my sip provider
trunk on our opensips.

loadmodule "uac_registrant.so"
modparam("uac_registrant", "hash_size", 2)
modparam("uac_registrant", "timer_interval", 120)
modparam("uac_registrant", "db_url", "mysql://mydbuser:pass@databasename
/mydb")
modparam("uac_registrant", "table_name", "registrant")
modparam("uac_registrant", "username_column", "username")
modparam("uac_registrant", "password_column", "password")
modparam("uac_registrant", "expiry_column", "expiry")
modparam("uac_registrant", "aor_column", "aor")
modparam("uac_registrant", "proxy_column", "proxy")

Here is the table structure.
| id | registrar | proxy   | aor | third_party_registrant | username |
password| binding_URI | binding_params | expiry | forced_socket
When i reload: opensipsctl fifo reg_reload
Feb 18 20:39:56 sbc1 /usr/sbin/opensips[14223]:
DBG:db_mysql:db_mysql_str2val: converting INT [180]
Feb 18 20:39:56 sbc1 /usr/sbin/opensips[14223]:
INFO:uac_registrant:load_reg_info_from_db: loading [1] records from db
Feb 18 20:39:56 sbc1 /usr/sbin/opensips[14223]: ERROR:core:parse_uri: bad
uri, state 0 parsed:  (4) /  (22)
Feb 18 20:39:56 sbc1 /usr/sbin/opensips[14223]:
ERROR:uac_registrant:load_reg_info_from_db: cannot parse registrar uri [
test0102-p01.mytestprovider.com]


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


Re: [OpenSIPS-Users] redis cache sharing for dialog storage?

2018-11-17 Thread J E H A N Z A I B
Thank you Bogdan.
Do I have to use /s marker for setting as well ?

set_dlg_profile("test/s"  ?

what about get_profile_size("test/s


On Thu, Nov 15, 2018 at 3:04 AM Bogdan-Andrei Iancu 
wrote:

> Hi Jehanzaib,
>
> Again, use the /s marker - see
> http://www.opensips.org/html/docs/modules/2.4.x/dialog.html#param_profiles_with_value
> .
>
> Regards,
>
> Bogdan-Andrei Iancu
>
> OpenSIPS Founder and Developer
>   http://www.opensips-solutions.com
> OpenSIPS Bootcamp 2018
>   http://opensips.org/training/OpenSIPS_Bootcamp_2018/
>
> On 11/06/2018 01:11 AM, J E H A N Z A I B wrote:
>
> Hi there,
>
> I am not sure why the dialog stats will not  be shared. If all records are
> going to redis then I have a redis cluster which synchs the cache.
> When I fetch the profile size it should be same (if it is being fetched
> from the redis) across all the opensips node. I am bit sceptical to upgrade
> without knowing what's happening.
>
>
> On Tue, Nov 6, 2018 at 4:53 AM SamyGo  wrote:
>
>> I have a strong feeling that you're using an old version of opensips to
>> expect it to share dialog states/profiles. I think you'll need to use newer
>> opensips 2.4+ having dialog sharing capability using proto_bin and
>> clusterer module:
>>
>> http://www.opensips.org/html/docs/modules/2.4.x/dialog.html#param_profile_replication_cluster
>>
>>
>> On Mon, Nov 5, 2018 at 5:30 AM J E H A N Z A I B <
>> jehanzaib.ki...@gmail.com> wrote:
>>
>>> Hi team,
>>>
>>> I used redis cache for dialog storage. I have 2 different servers both
>>> are sharing the same redis. Is the profile size shared in this case?
>>>
>>> here is the dialog config.
>>>
>>> loadmodule "dialog.so"
>>> modparam("dialog", "enable_stats", 1)
>>> modparam("dialog", "cachedb_url", "redis:mysip://mysipx.xx.xx:/")
>>>
>>> This is how I check my profile size.
>>> create_dialog();
>>> set_dlg_profile("myuniqprof","$avp(myprofile_id)");
>>> get_profile_size("myuniqprof","$avp(myprofile_id
>>> )","$var(current_profile_size)");
>>>
>>> Please note I am using version: opensips 1.11.3-notls
>>>
>>>
>>> --
>>> Regards,
>>> Jehanzaib
>>> ___
>>> 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
>>
>
>
> --
> Regards,
> Jehanzaib
>
>
> ___
> Users mailing 
> listUsers@lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>

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


Re: [OpenSIPS-Users] redis cache sharing for dialog storage?

2018-11-05 Thread J E H A N Z A I B
Hi there,

I am not sure why the dialog stats will not  be shared. If all records are
going to redis then I have a redis cluster which synchs the cache.
When I fetch the profile size it should be same (if it is being fetched
from the redis) across all the opensips node. I am bit sceptical to upgrade
without knowing what's happening.


On Tue, Nov 6, 2018 at 4:53 AM SamyGo  wrote:

> I have a strong feeling that you're using an old version of opensips to
> expect it to share dialog states/profiles. I think you'll need to use newer
> opensips 2.4+ having dialog sharing capability using proto_bin and
> clusterer module:
>
> http://www.opensips.org/html/docs/modules/2.4.x/dialog.html#param_profile_replication_cluster
>
>
> On Mon, Nov 5, 2018 at 5:30 AM J E H A N Z A I B <
> jehanzaib.ki...@gmail.com> wrote:
>
>> Hi team,
>>
>> I used redis cache for dialog storage. I have 2 different servers both
>> are sharing the same redis. Is the profile size shared in this case?
>>
>> here is the dialog config.
>>
>> loadmodule "dialog.so"
>> modparam("dialog", "enable_stats", 1)
>> modparam("dialog", "cachedb_url", "redis:mysip://mysipx.xx.xx:/")
>>
>> This is how I check my profile size.
>> create_dialog();
>> set_dlg_profile("myuniqprof","$avp(myprofile_id)");
>> get_profile_size("myuniqprof","$avp(myprofile_id
>> )","$var(current_profile_size)");
>>
>> Please note I am using version: opensips 1.11.3-notls
>>
>>
>> --
>> Regards,
>> Jehanzaib
>> ___
>> 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
>


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


[OpenSIPS-Users] redis cache sharing for dialog storage?

2018-11-05 Thread J E H A N Z A I B
Hi team,

I used redis cache for dialog storage. I have 2 different servers both are
sharing the same redis. Is the profile size shared in this case?

here is the dialog config.

loadmodule "dialog.so"
modparam("dialog", "enable_stats", 1)
modparam("dialog", "cachedb_url", "redis:mysip://mysipx.xx.xx:/")

This is how I check my profile size.
create_dialog();
set_dlg_profile("myuniqprof","$avp(myprofile_id)");
get_profile_size("myuniqprof","$avp(myprofile_id
)","$var(current_profile_size)");

Please note I am using version: opensips 1.11.3-notls


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


[OpenSIPS-Users] (no subject)

2018-11-04 Thread J E H A N Z A I B
Hi team,

I used redis cache for dialog storage. I have 2 different servers both are
sharing the same redis. Is the profile size shared in this case?

here is the dialog config.

loadmodule "dialog.so"
modparam("dialog", "enable_stats", 1)
modparam("dialog", "cachedb_url", "redis:mysip://mysipx.xx.xx:/")

This is how I check my profile size.
create_dialog();
set_dlg_profile("myuniqprof","$avp(myprofile_id)");
get_profile_size("myuniqprof","$avp(myprofile_id
)","$var(current_profile_size)");

Please note I am using version: opensips 1.11.3-notls




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


Re: [OpenSIPS-Users] opensips segfault

2018-10-10 Thread J E H A N Z A I B
I have upgraded to 2.3.5 now. Let'see how it goes I will let you know if it
crashes again.

Thank you

On Wed, Oct 10, 2018 at 8:24 PM Răzvan Crainea  wrote:

> We strongly suggest you to update to a newer version of 2.3, it's a high
> chance this has already been fixed in a newer version.
>
> Best regards,
> Razvan
>
> On 10/10/18 6:03 AM, J E H A N Z A I B wrote:
> > Further to my previous email I also see a lot of failed request just
> > before the crash
> > like
> > Oct  9 21:43:03 myopensips /usr/local/sbin/opensips[1449]:
> > CRITICAL:db_mysql:wrapper_single_mysql_real_query: driver error (1213):
> > Deadlock found when tryi
> > ng to get lock; try restarting transaction
> > Oct  9 21:43:03 myopensips /usr/local/sbin/opensips[1449]:
> > ERROR:core:db_do_update: error while submitting query
> > Oct  9 21:43:03 myopensips /usr/local/sbin/opensips[1449]:
> > ERROR:presence:update_presentity: updating published info in database
> > Oct  9 21:43:03 myopensips /usr/local/sbin/opensips[1449]:
> > ERROR:presence:handle_publish: when updating presentity
> > Oct  9 21:43:03 myopensips /usr/local/sbin/opensips[1457]:
> > CRITICAL:db_mysql:wrapper_single_mysql_stmt_execute: driver error
> > (1213): Deadlock found when tr
> > ying to get lock; try restarting transaction
> > Oct  9 21:43:03 myopensips /usr/local/sbin/opensips[1457]:
> > ERROR:presence:delete_db_subs: sql delete failed
> > Oct  9 21:43:03 myopensips /usr/local/sbin/opensips[1457]:
> > ERROR:presence:update_subscription: deleting subscription record from
> > database
> > Oct  9 21:43:03 myopensips /usr/local/sbin/opensips[1457]:
> > ERROR:presence:handle_subscribe: in update_subscription
> >
> > could this a cause of the crash? I have tried to read the core dump but
> > cant find anything there. it is like
> >
> >  msg = 0x7efd794cf2a0
> >  t = 0x0
> >  _c = 
> >  reply_c = 0x0
> >  request_c = 0x0
> >  st = 9106161
> >  ret = 
> >  requested_exp = 0
> >  enforced_exp = 0
> >  val = {n = 4, s = {s = 0x4 , len =
> 0}}
> >  l = 
> >  p = 
> >  forced_binding_buf =
> >
> "\000\000\000\000\000\000\000\000\066b69c11f2cbb12551371135d\000\000\000\000\000\000\000\000\240\362Ly\375~\000\000\020\220\025.
> >  forced_binding = {s = 0x0, len = 0}
> >  binding_uri = 
> >  __FUNCTION__ = "save"
> > #12 0x0042da49 in do_action (a=a@entry=0x7efd794afdd8,
> > msg=msg@entry=0x7efd794cf2a0) at action.c:1862
> >  increment = 
> >  decrement = 
> >  val_number = 
> >  j = 
> >  val_s = {s = 0x7efd0069  > bounds>, len = 3440}
> >  cdb_reply = 0x7efd0004
> >  aux = {s = 0x20 , len = 0}
> >  i = 
> >  key_number = 0
> >  it = 
> >  avp_val = 
> >  avp_name = {n = 105, s = {s = 0x7efd0069  > 0x7efd0069 out of bounds>, len = 3440}}
> >  avp_type = 38183
> >  ret = -5
> >
> > I cant paste the whole dump here but let me know if any of the dev want
> > to have a look please.
> >
> > Thank you
> >
> >
> > On Wed, Oct 10, 2018 at 11:57 AM J E H A N Z A I B
> > mailto:jehanzaib.ki...@gmail.com>> wrote:
> >
> > Hi team,
> >
> > Opensips (2.3.1) crashed a few times now and I can not figure out
> > the reason of it.
> > Can someone help me here please?
> > Here is what I see in the logs before it crashes.
> >
> > Oct  9 21:43:10 myopensips kernel: opensips[1454]: segfault at 0 ip
> > 005319a2 sp 7fffed157c70 error 6 in
> opensips[40+27c000]
> > Oct  9 21:43:10 myopensips /usr/local/sbin/opensips[1471]:
> > CRITICAL:core:receive_fd: EOF on 32
> > Oct  9 21:43:10 myopensips /usr/local/sbin/opensips[1313]:
> > INFO:core:handle_sigs: child process 1454 exited by a signal 11
> > Oct  9 21:43:10 myopensips /usr/local/sbin/opensips[1313]:
> > INFO:core:handle_sigs: core was generated
> > Oct  9 21:43:10 myopensips /usr/local/sbin/opensips[1313]:
> > INFO:core:handle_sigs: terminating due to SIGCHLD
> >
> > Thank you
> >
> >
> >
> > --
> > Regards,
> > Jehanzaib
> >
> > ___
> > Users mailing list
> > Users@lists.opensips.org
> > http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> >
>
> --
> Răzvan Crainea
> OpenSIPS Core Developer
>http://www.opensips-solutions.com
>
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>


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


Re: [OpenSIPS-Users] opensips segfault

2018-10-09 Thread J E H A N Z A I B
Further to my previous email I also see a lot of failed request just before
the crash
like
Oct  9 21:43:03 myopensips /usr/local/sbin/opensips[1449]:
CRITICAL:db_mysql:wrapper_single_mysql_real_query: driver error (1213):
Deadlock found when tryi
ng to get lock; try restarting transaction
Oct  9 21:43:03 myopensips /usr/local/sbin/opensips[1449]:
ERROR:core:db_do_update: error while submitting query
Oct  9 21:43:03 myopensips /usr/local/sbin/opensips[1449]:
ERROR:presence:update_presentity: updating published info in database
Oct  9 21:43:03 myopensips /usr/local/sbin/opensips[1449]:
ERROR:presence:handle_publish: when updating presentity
Oct  9 21:43:03 myopensips /usr/local/sbin/opensips[1457]:
CRITICAL:db_mysql:wrapper_single_mysql_stmt_execute: driver error (1213):
Deadlock found when tr
ying to get lock; try restarting transaction
Oct  9 21:43:03 myopensips /usr/local/sbin/opensips[1457]:
ERROR:presence:delete_db_subs: sql delete failed
Oct  9 21:43:03 myopensips /usr/local/sbin/opensips[1457]:
ERROR:presence:update_subscription: deleting subscription record from
database
Oct  9 21:43:03 myopensips /usr/local/sbin/opensips[1457]:
ERROR:presence:handle_subscribe: in update_subscription

could this a cause of the crash? I have tried to read the core dump but
cant find anything there. it is like

msg = 0x7efd794cf2a0
t = 0x0
_c = 
reply_c = 0x0
request_c = 0x0
st = 9106161
ret = 
requested_exp = 0
enforced_exp = 0
val = {n = 4, s = {s = 0x4 , len = 0}}
l = 
p = 
forced_binding_buf =
"\000\000\000\000\000\000\000\000\066b69c11f2cbb12551371135d\000\000\000\000\000\000\000\000\240\362Ly\375~\000\000\020\220\025.
forced_binding = {s = 0x0, len = 0}
binding_uri = 
__FUNCTION__ = "save"
#12 0x0042da49 in do_action (a=a@entry=0x7efd794afdd8,
msg=msg@entry=0x7efd794cf2a0)
at action.c:1862
increment = 
decrement = 
val_number = 
j = 
val_s = {s = 0x7efd0069 ,
len = 3440}
cdb_reply = 0x7efd0004
aux = {s = 0x20 , len = 0}
i = 
key_number = 0
it = 
avp_val = 
avp_name = {n = 105, s = {s = 0x7efd0069 , len = 3440}}
avp_type = 38183
ret = -5

I cant paste the whole dump here but let me know if any of the dev want to
have a look please.

Thank you


On Wed, Oct 10, 2018 at 11:57 AM J E H A N Z A I B <
jehanzaib.ki...@gmail.com> wrote:

> Hi team,
>
> Opensips (2.3.1) crashed a few times now and I can not figure out the
> reason of it.
> Can someone help me here please?
> Here is what I see in the logs before it crashes.
>
> Oct  9 21:43:10 myopensips kernel: opensips[1454]: segfault at 0 ip
> 005319a2 sp 7fffed157c70 error 6 in opensips[40+27c000]
> Oct  9 21:43:10 myopensips /usr/local/sbin/opensips[1471]:
> CRITICAL:core:receive_fd: EOF on 32
> Oct  9 21:43:10 myopensips /usr/local/sbin/opensips[1313]:
> INFO:core:handle_sigs: child process 1454 exited by a signal 11
> Oct  9 21:43:10 myopensips /usr/local/sbin/opensips[1313]:
> INFO:core:handle_sigs: core was generated
> Oct  9 21:43:10 myopensips /usr/local/sbin/opensips[1313]:
> INFO:core:handle_sigs: terminating due to SIGCHLD
>
> Thank you
>
>

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


[OpenSIPS-Users] opensips segfault

2018-10-09 Thread J E H A N Z A I B
Hi team,

Opensips (2.3.1) crashed a few times now and I can not figure out the
reason of it.
Can someone help me here please?
Here is what I see in the logs before it crashes.

Oct  9 21:43:10 myopensips kernel: opensips[1454]: segfault at 0 ip
005319a2 sp 7fffed157c70 error 6 in opensips[40+27c000]
Oct  9 21:43:10 myopensips /usr/local/sbin/opensips[1471]:
CRITICAL:core:receive_fd: EOF on 32
Oct  9 21:43:10 myopensips /usr/local/sbin/opensips[1313]:
INFO:core:handle_sigs: child process 1454 exited by a signal 11
Oct  9 21:43:10 myopensips /usr/local/sbin/opensips[1313]:
INFO:core:handle_sigs: core was generated
Oct  9 21:43:10 myopensips /usr/local/sbin/opensips[1313]:
INFO:core:handle_sigs: terminating due to SIGCHLD

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


[OpenSIPS-Users] json decode and access?

2018-08-02 Thread J E H A N Z A I B
Hi team,

I have another application storing the json encoded object in the redis
cache.

I read we can fetch using cache_fetch by passing the key. This is perfect
but I cant find a function to decode the json I have since my other
application is encoding the json object and putting into the redis. I need
a function to decode it first.

Second question is, after the decode the object is like

Object
(
[id] => 161
[user] => xxx
[xx] => 
[] => 
)

How to access user for example ?

Thank you


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


[OpenSIPS-Users] Run a command in the timeroute

2017-02-05 Thread J E H A N Z A I B
Hi folks,

Is there any way i can run a command "opensipsctl fifo ds_reload" in the
timer_route ?
I think i can use exec module but i dont want to use, if there is anyother
way please?

Thank you.

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