The following issue has been SUBMITTED. 
====================================================================== 
https://bugtracker.iptel.org/view.php?id=64 
====================================================================== 
Reported By:                vbroz
Assigned To:                
====================================================================== 
Project:                    SEMS
Issue ID:                   64
Category:                   SBC
Reproducibility:            always
Severity:                   minor
Priority:                   low
Status:                     new
====================================================================== 
Date Submitted:             2011-10-08 01:41 CEST
Last Modified:              2011-10-08 01:41 CEST
====================================================================== 
Summary:                    Display names ($fn,$tn) do not work
Description: 
I tried to use $fn and $tn to add into CDR. It logs only empty strings. It
does not work also for e.g. append_headers actions in SBC profile.

Config files:
in profile config file:
append_headers="P-Original-Names: $fU,$fn,$tU,$tn"

call_control=cdr
cdr_module=cc_syslog_cdr
cdr_Calling-Station-Id=$fU
cdr_Calling-Station-Name=$fn
cdr_Called-Station-Id=$tU
cdr_Called-Station-Name=$tn

incoming INVITE:
INVITE sip:[email protected] SIP/2.0
Via: SIP/2.0/UDP x.x.x.x.:5080;branch=z9hG4bK46wZiabr;rport
From: Alice
<sip:[email protected]>;tag=168FBA78-4E8F7F88000C4425-E12E1700
To: Bob <sip:[email protected]>

outgoing INVITE:
...
P-Original-Names: alice,,bob,

generated CDR:
...,"alice","","bob","",...

SEMS log:
...

[#7f50e12e1700/25775] [replaceParameters, ParamReplacer.cpp:353] DEBUG:
Called-Station-Id pattern replace: '$tU' -> 'bob'
 [#7f50e12e1700/25775] [replaceParameters, ParamReplacer.cpp:353] DEBUG:
Called-Station-Name pattern replace: '$tn' -> ''
 [#7f50e12e1700/25775] [replaceParameters, ParamReplacer.cpp:353] DEBUG:
Calling-Station-Id pattern replace: '$fU' -> 'alice'
 [#7f50e12e1700/25775] [replaceParameters, ParamReplacer.cpp:353] DEBUG:
Calling-Station-Name pattern replace: '$fn' -> ''

====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-10-08 01:41 vbroz          New Issue                                    
======================================================================
_______________________________________________
Semsdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/semsdev

Reply via email to