<br><br>
<div><span class="gmail_quote">On 7/31/06, <b class="gmail_sendername">Joshua Colp</b> <<a href="mailto:jcolp@digium.com">jcolp@digium.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">> I tried to edit the cdr import function but I didn't know where it placed or<br>> what function to edit ,
<br>> Please can you tell me where to place this function<br>><br>> exten => s,1,Set(CDR(userfield)=${SIPCHANINFO(recvip)})<br>><br>> to have it stored in the mysql record .<br>><br>> I am using asterisk@home
2.6<br>><br>> Regards<br>><br><br>It would go into the dialplan in extensions.conf - I don't know exactly how yours is setup though (especially with Asterisk@Home involved) so I can't tell you where to put it exactly.
<br><br>Joshua Colp<br>Digium<br></blockquote></div>
<div>Khaled,</div>
<div> </div>
<div>Go to /etc/asterisk/cdr_mysql.conf and under [global] add"userfield=1", if it is not already there.</div>
<div>Then, wherever you have your trunks setup, you will need to insert that line of code somewhere above the "dial" part of the context.</div>
<div> </div>
<div>Here is what I use:</div>
<div> </div>
<div>exten => s,1,Set(CDR(userfield)=${ARG2} ${SIPCHANINFO(recvip)})<br>exten => s,2,absolutetimeout,${settimeout}<br>exten => s,3,Dial(<a href="mailto:SIP/${ARG1}@${carrier1">SIP/${ARG1}@${carrier1</a>})<br> </div>
<div>If you still cannot figure this out, try emailing the <a href="mailto:A@H">A@H</a> group. Few people on the Asterisk list know much about <a href="mailto:A@H">A@H</a>.</div>
<div> </div>
<div>Good Luck,</div>
<div> </div>
<div>bp</div>