<div dir="ltr">I have a simple cdr configured with the default tables, here is a row of a good cdr report<br><br>calldate | clid | src | dst | dcontext | channel | ect ..... ect .... <br>
2008-08-29 10:16:49 | "C. BOUTON" <40> | 40 | XXXXXXXXXXX | phonesystems | SIP/40-08776938 | ect ..... ect ....<br><br>I have replaced the number by XXXXXXXXXXXXXX, but it is there. But sometimes i get this:<br>
<br>calldate | clid | src |
dst | dcontext | channel | ect ..... ect
.... <br>
2008-08-29 10:17:06 | "C. SAGNIER" <60> | 60 | <span style="color: rgb(255, 0, 0);"> s</span> | phonesystems | SIP/111-08799690 | ect ..... ect ....<br><br>You see that <span style="color: rgb(255, 0, 0);">s</span> in dst ? I know from where it is coming but i have no idea how to remove it. I am using one macro for dial out, it is easy for me to manage multiple outgoing peers and max channels for them. I am using <span style="color: rgb(255, 0, 0);">s</span> priority inside that macro, so somehow cdr SOMETIMES report <span style="color: rgb(255, 0, 0);">s</span> as dst. If you can help me to arange my macro to remove that <span style="color: rgb(255, 0, 0);">s</span> from cdr or by any advice i would be gratefull. My macro:<br>
<br>[macro-phonesystems]<br><br>exten => s,1,NoOp(We are calling=${ARG1})<br>exten => s,2,GotoIf($[${GROUP_COUNT(ph0)}>=1]?100:3)<br>exten => s,3,Set(GROUP()=ph0)<br>exten => s,4,Dial(Sip/${ARG1:1}@ovh1,40,TwW)<br>
exten => s,5,NoOP(PH0)<br><br>exten => s,100,GotoIf($[${GROUP_COUNT(ph1)}>=1]?200:101)<br>exten => s,101,Set(GROUP()=ph1)<br>exten => s,102,Dial(Sip/${ARG1:1}@ovh2,40,Tw)<br>exten => s,103,NoOp(PH1)<br><br>
exten => s,200,GotoIf($[${GROUP_COUNT(ph2)}>=2]?300:201)<br>exten => s,201,Set(GROUP()=ph2)<br>exten => s,202,Dial(Sip/${ARG1:1}@phonesystems1,40,Tw)<br>exten => s,203,NoOp(PH2)<br><br>exten => s,300,GotoIf($[${GROUP_COUNT(ph3)}>=2]?400:301)<br>
exten => s,301,Set(GROUP()=ph3)<br>exten => s,302,Dial(Sip/${ARG1:1}@phonesystems2,40,Tw)<br>exten => s,303,NoOp(PH3)<br><br>exten => s,400,GotoIf($[${GROUP_COUNT(ph4)}>=2]?400:500)<br>exten => s,401,Set(GROUP()=ph4)<br>
exten => s,402,Dial(Sip/${ARG1:1}@phonesystems3,40,Tw)<br>exten => s,403,NoOp(PH4)<br><br>exten => s,500,Playback(all-circuits-busy-now)<br><br>And my portion of extensions.conf from where we are jumping to that macro<br>
<br>exten => _00[123459]XXXXXXXX!,1,Monitor(gsm,${CALLERID(num)}APP-${EXTEN}-${STRFTIME(${EPOCH},,%Y%m%d-%H%M%S)})<br>exten => _00[123459]XXXXXXXX!,2,GotoIf($[${DB(internet/disponible)}=1]?3:7)<br>exten => _00[123459]XXXXXXXX!,3,GotoIf($[${DB(moyende/telecom)}=0]?4:6)<br>
exten => _00[123459]XXXXXXXX!,4,Macro(phonesystems,${EXTEN})<br><span style="color: rgb(51, 102, 255);">exten => _00[123459]XXXXXXXX!,5,Hangup()</span><br>;<span style="color: rgb(51, 255, 255);">this hangup is for marcro returning</span><br>
exten => _00[123459]XXXXXXXX!,6,GotoIf($[${DB(moyende/telecom)}=1]?7:8)<br>;<span style="color: rgb(51, 255, 255);">case 8 should never happen, just in case.</span><br>exten => _00[123459]XXXXXXXX!,7,Dial(mISDN/g:intern-out/${EXTEN:1})<br>
exten => _00[123459]XXXXXXXX!,8,Dial(mISDN/g:intern-out/${EXTEN:1})<br><br>Thank you.<br><br><br><br></div>