[OpenSIPS-Devel] [ opensips-Bugs-3587163 ] Commit #9295 breaks dispatcher

SourceForge.net noreply at sourceforge.net
Mon Dec 10 10:52:24 CET 2012


Bugs item #3587163, was opened at 2012-11-14 08:43
Message generated for change (Comment added) made by bogdan_iancu
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=3587163&group_id=232389

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: core
Group: 1.8.x
>Status: Closed
Resolution: Invalid
Priority: 5
Private: No
Submitted By: Dynamic Packet (dpacket)
Assigned to: Bogdan-Andrei Iancu (bogdan_iancu)
Summary: Commit #9295 breaks dispatcher

Initial Comment:
It seems commit #9295 on 1.8 branch breaks AVP in certain cases. Opensips starts fine and some avp related stuff works, but certain scenarios cause this: 

Nov 14 11:13:40 ip-10-173-81-249 /usr/sbin/opensips[1042]: ERROR:core:new_avp: invalid AVP name!
Nov 14 11:13:40 ip-10-173-81-249 /usr/sbin/opensips[1042]: ERROR:core:add_avp: Failed to create new avp structure

Script now does not execute as it should and in the end cause failures in call processing.  Its possible this also effects trunk (commit #9294) . I have tested by reverting this single commit (#9295) in most resent stable 1.8 and issue is resolved.

----------------------------------------------------------------------

>Comment By: Bogdan-Andrei Iancu (bogdan_iancu)
Date: 2012-12-10 01:52

Message:
Finally this was not an problem, but more an improper update from SVN 1.8

----------------------------------------------------------------------

Comment By: Bogdan-Andrei Iancu (bogdan_iancu)
Date: 2012-11-30 12:28

Message:
I'm not able to reproduce this issue - I tried not to define the attrs_avp
in mod params, but to populate the attrs in DB. There was not error,
neither in ds_select_(), nor in ds_next_dst().

Are you sure your err logs are related to dispatcher module ?  If they are,
the  dispatcher function should return false to script.

If you want, you can privately send me some logs ..or may I get access to
the server where this happens ?

----------------------------------------------------------------------

Comment By: Dynamic Packet (dpacket)
Date: 2012-11-26 10:53

Message:
I can assure you that SVN checkout of 1.8 as of 2012-11-14 did not solve
the problem for me. Was the fix committed after this? Otherwise, perhaps
its not working in some case(s) ?

----------------------------------------------------------------------

Comment By: Bogdan-Andrei Iancu (bogdan_iancu)
Date: 2012-11-22 06:04

Message:
I checked the code (trunk + 1,8) and I see the fix there. Are you sure you
are using the latest 1.8 version ? maybe you do not have the fix in your
checkout.

Regards,
Bogdan

----------------------------------------------------------------------

Comment By: Bogdan-Andrei Iancu (bogdan_iancu)
Date: 2012-11-21 08:39

Message:
I remember fixing this - I will check the backports

----------------------------------------------------------------------

Comment By: Dynamic Packet (dpacket)
Date: 2012-11-14 10:29

Message:
This is a bug in dispatcher module. If you fail to set attrs_avp in script,
you get errors on ds_select_dst().  Default, per docs, should be null. But
ds_select_dst fails in this case after commit #9295. Setting attrs_avp in
config, seemingly fixes the issue.

----------------------------------------------------------------------

Comment By: Dynamic Packet (dpacket)
Date: 2012-11-14 09:01

Message:
Hi Razvan,

I'm not 100% sure what function and I am unable to test at the moment. But
looking at the area of the script it occurs in, it could be ds_select_ds,
append_hf, xlog or least likely script comparisons/assignments.

----------------------------------------------------------------------

Comment By: Razvan Crainea (razvancrainea)
Date: 2012-11-14 08:55

Message:
Hi!

Can you tell us when do you receive those errors? Is it a certain function
that uses AVPs and cannot find them?

Regards,
Răzvan

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=3587163&group_id=232389



More information about the Devel mailing list