<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 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; | &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; clid&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | src |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dst&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | &nbsp; &nbsp; dcontext&nbsp; &nbsp; &nbsp; | &nbsp; &nbsp;&nbsp; channel &nbsp; &nbsp; &nbsp; &nbsp; | ect ..... ect ....&nbsp; <br>
2008-08-29 10:16:49 | &quot;C. BOUTON&quot; &lt;40&gt; | 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 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; | &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; clid&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | src |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
dst&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | &nbsp; &nbsp; dcontext&nbsp; &nbsp; &nbsp; | &nbsp; &nbsp;&nbsp; channel &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp; | ect ..... ect
....&nbsp; <br>
2008-08-29 10:17:06 | &quot;C. SAGNIER&quot; &lt;60&gt; | 60 |&nbsp;<span style="color: rgb(255, 0, 0);"> s</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; | 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 =&gt; s,1,NoOp(We are calling=${ARG1})<br>exten =&gt; s,2,GotoIf($[${GROUP_COUNT(ph0)}&gt;=1]?100:3)<br>exten =&gt; s,3,Set(GROUP()=ph0)<br>exten =&gt; s,4,Dial(Sip/${ARG1:1}@ovh1,40,TwW)<br>
exten =&gt; s,5,NoOP(PH0)<br><br>exten =&gt; s,100,GotoIf($[${GROUP_COUNT(ph1)}&gt;=1]?200:101)<br>exten =&gt; s,101,Set(GROUP()=ph1)<br>exten =&gt; s,102,Dial(Sip/${ARG1:1}@ovh2,40,Tw)<br>exten =&gt; s,103,NoOp(PH1)<br><br>
exten =&gt; s,200,GotoIf($[${GROUP_COUNT(ph2)}&gt;=2]?300:201)<br>exten =&gt; s,201,Set(GROUP()=ph2)<br>exten =&gt; s,202,Dial(Sip/${ARG1:1}@phonesystems1,40,Tw)<br>exten =&gt; s,203,NoOp(PH2)<br><br>exten =&gt; s,300,GotoIf($[${GROUP_COUNT(ph3)}&gt;=2]?400:301)<br>
exten =&gt; s,301,Set(GROUP()=ph3)<br>exten =&gt; s,302,Dial(Sip/${ARG1:1}@phonesystems2,40,Tw)<br>exten =&gt; s,303,NoOp(PH3)<br><br>exten =&gt; s,400,GotoIf($[${GROUP_COUNT(ph4)}&gt;=2]?400:500)<br>exten =&gt; s,401,Set(GROUP()=ph4)<br>
exten =&gt; s,402,Dial(Sip/${ARG1:1}@phonesystems3,40,Tw)<br>exten =&gt; s,403,NoOp(PH4)<br><br>exten =&gt; 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 =&gt; _00[123459]XXXXXXXX!,1,Monitor(gsm,${CALLERID(num)}APP-${EXTEN}-${STRFTIME(${EPOCH},,%Y%m%d-%H%M%S)})<br>exten =&gt; _00[123459]XXXXXXXX!,2,GotoIf($[${DB(internet/disponible)}=1]?3:7)<br>exten =&gt; _00[123459]XXXXXXXX!,3,GotoIf($[${DB(moyende/telecom)}=0]?4:6)<br>
exten =&gt; _00[123459]XXXXXXXX!,4,Macro(phonesystems,${EXTEN})<br><span style="color: rgb(51, 102, 255);">exten =&gt; _00[123459]XXXXXXXX!,5,Hangup()</span><br>;<span style="color: rgb(51, 255, 255);">this hangup is for marcro returning</span><br>
exten =&gt; _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 =&gt; _00[123459]XXXXXXXX!,7,Dial(mISDN/g:intern-out/${EXTEN:1})<br>
exten =&gt; _00[123459]XXXXXXXX!,8,Dial(mISDN/g:intern-out/${EXTEN:1})<br><br>Thank you.<br><br><br><br></div>