Hermann Wecke
2004-Apr-28 19:02 UTC
[Asterisk-Users] cdr_mysql and macro use for outbound call issue
Most of my outbound calls are handled by macro contexts: [macro-pstn] exten => s,1,Wait(.5) exten => s,2,PlayBack(beep) exten => s,3,PlayBack(silence/1) exten => s,4,Dial(${ARG1}/${ARG2}${ARG3}) exten => s,5,Playtones(Congestion) exten => s,6,Wait(3) exten => s,7,Hangup which is called like exten => _920[1289]XXXX,1,Macro(pstn,Zap/g1,9,${EXTEN:${TRUNKMSD}}) Because of this approach I'm missing all data (phone number) which should be recorded into CDR. Every row is being recorded as dst='s', except for those contexts which are not being handled by macros. Is there any solution - other than rewritting every rule - so I won't miss the actual destination number when recording the CDR into mySQL?
Michael Shuler
2004-Apr-28 22:48 UTC
[Asterisk-Users] cdr_mysql and macro use for outbound call issue
What I used to do was send it to a context via a Goto that would execute the Dial and then return to the macro or whatever that way it would trick the CDR system. ---------------------------------------- Michael Shuler, C.E.O. BitWise Systems, Inc. 1301 W. Pioneer Parkway Peoria, IL 61615 Office: (217) 585-0357 Cell: (309) 657-6365 Fax: (309) 213-3500 E-Mail: mike@bwsys.net Customer Service: (877) 976-0711> -----Original Message----- > From: asterisk-users-admin@lists.digium.com > [mailto:asterisk-users-admin@lists.digium.com] On Behalf Of > Hermann Wecke > Sent: Wednesday, April 28, 2004 9:03 PM > To: Asterisk Mailling List > Subject: [Asterisk-Users] cdr_mysql and macro use for > outbound call issue > > > Most of my outbound calls are handled by macro contexts: > > [macro-pstn] > exten => s,1,Wait(.5) > exten => s,2,PlayBack(beep) > exten => s,3,PlayBack(silence/1) > exten => s,4,Dial(${ARG1}/${ARG2}${ARG3}) > exten => s,5,Playtones(Congestion) > exten => s,6,Wait(3) > exten => s,7,Hangup > > which is called like > exten => _920[1289]XXXX,1,Macro(pstn,Zap/g1,9,${EXTEN:${TRUNKMSD}}) > > Because of this approach I'm missing all data (phone number) > which should > be recorded into CDR. Every row is being recorded as dst='s', > except for > those contexts which are not being handled by macros. > > Is there any solution - other than rewritting every rule - so > I won't miss > the actual destination number when recording the CDR into mySQL? > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >