[OpenSIPS-Devel] [ opensips-Bugs-3465961 ] acc db_extra parameters not inserted for failed calls

SourceForge.net noreply at sourceforge.net
Tue Dec 27 11:17:07 CET 2011


Bugs item #3465961, was opened at 2011-12-27 02:17
Message generated for change (Tracker Item Submitted) made by shari_786pk
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=3465961&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: modules
Group: 1.7.x
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Muhammad Shahzad (shari_786pk)
Assigned to: Nobody/Anonymous (nobody)
Summary: acc db_extra parameters not inserted for failed calls

Initial Comment:
I am experiencing a strange problem. Here is my setup,

X (caller) -> A (opensips) -> B (asterisk) -> A (opensips) -> C1, C2, C3 ... Cn (carrier) -> Y (callee)

I get a minimum of two cdrs for each call since every call passes through same opensips twice at least. The problem is that if call fails on first carrier C1 and then terminated by second carrier C2, then respective failed cdr i.e. B -> A -> C1 has all db_extra fields as empty string. However, success cdr i.e. B -> A -> C2 has all values correct.

This happens for all intermediate failed cdrs, i.e. if C1, C2, C3 and so on all fail, and Cn is successful then only Cn will have db_extra values set, all others have empty string.

Even more interesting fact is that if ALL carriers fail, then only last failed cdr has db_extra values, rest have empty string.

Do note that db_extra fields are NOT null, but empty string. Also i have xlog these fields everywhere in opensips dial plan (route, failure route, branch route, reply route etc). The logs always show these fields with correct values but for some unknown reason these values are not going into db and empty string is being inserted instead.

Please help.

I am using Debian 6.0 32-bit, with opensips stable release 1.7.1, revision 8615. Feel free to ask for more info as needed.

Thank you.



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

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



More information about the Devel mailing list