<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Balloon Text Char";
margin:0in;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";}
span.EmailStyle17
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.BalloonTextChar
{mso-style-name:"Balloon Text Char";
mso-style-priority:99;
mso-style-link:"Balloon Text";
font-family:"Tahoma","sans-serif";}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#333333">Try this. The warning and notice error’s are basically telling you whats wrong<o:p></o:p></span></b></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#333333"><o:p> </o:p></span></b></p>
<p class="MsoNormal"><span lang="EN">[in]<br>
exten => s,1,Set(CDR(userfield)=23XXXXX6)<br>
same => s,n,Goto(in2,s,1)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">Mike<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> troxlinux [mailto:xserverlinux@gmail.com]
<br>
<b>Sent:</b> Thursday, November 14, 2013 2:53 PM<br>
<b>To:</b> Asterisk Users Mailing List - Non-Commercial Discussion<br>
<b>Subject:</b> [asterisk-users] DAHDI with (CDR(userfield)<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal"><span lang="EN">Hi list, I need some help to improve my cdr, now in my company are asking me how to know which of my phone numbers are most used when receiving calls from the PSTN and incoming the IVR</span><br>
<br>
<span lang="EN">was thinking about using userfield field, and I'm trying to do, I have at the moment 4 channel DAHDI<br>
<br>
</span><br>
<span lang="EN">; DAHDI CHANNEL 3=23XXXXX6<br>
<br>
<br>
context=in<br>
callerid=asreceived<br>
group=1<br>
signalling=fxs_ks<br>
channel => 3<br>
<br>
<br>
[in]<br>
exten => s,1,Set(CDR(userfield)=23XXXXX6)<br>
same=> n,Goto(in2)<br>
<br>
</span><br>
<span lang="EN">[in2]<br>
exten => s,1,GotoIfTime(08:00-17:00|mon-fri|*|*?s,dentro)<br>
exten => s,2,Playback(custom/fuera)<br>
exten => s,n,Set(CHANNEL(language)=es)</span><o:p></o:p></p>
</div>
<p class="MsoNormal"><span lang="EN">etc etc etc ..</span><o:p></o:p></p>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span lang="EN"><br>
-- Starting simple switch on 'DAHDI/3-1'<br>
-- Executing [s@in:1] Set("DAHDI/3-1", "CDR(userfield)=23XXXXX6") in new stack<br>
-- Executing [s@in:2] Goto("DAHDI/3-1", "in2") in new stack<br>
[Nov 14 16:45:51] NOTICE[29607]: pbx.c:4522 pbx_extension_helper: No such label 'in2' in extension 's' in context 'in'<br>
[Nov 14 16:45:51] WARNING[29607]: pbx.c:10888 pbx_parseable_goto: Priority 'in2' must be a number > 0, or valid label<br>
== Spawn extension (in, s, 2) exited non-zero on 'DAHDI/3-1'<br>
-- Hanging up on 'DAHDI/3-1'<br>
-- Hungup 'DAHDI/3-1'<br>
-- Starting simple switch on 'DAHDI/3-1'<br>
-- Executing [s@in:1] Set("DAHDI/3-1", "CDR(userfield)=<a href="tel:23400216" target="_blank">23400216</a>") in new stack<br>
-- Executing [s@in:2] Goto("DAHDI/3-1", "in2") in new stack<br>
[Nov 14 16:46:03] NOTICE[29608]: pbx.c:4522 pbx_extension_helper: No such label 'in2' in extension 's' in context 'in'<br>
[Nov 14 16:46:03] WARNING[29608]: pbx.c:10888 pbx_parseable_goto: Priority 'in2' must be a number > 0, or valid label<br>
== Spawn extension (in, s, 2) exited non-zero on 'DAHDI/3-1'<br>
-- Hanging up on 'DAHDI/3-1'<br>
-- Hungup 'DAHDI/3-1'<br>
<br>
</span><br>
<span lang="EN">fails to pass the call to ivr</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN">any idea ?</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN"><br clear="all">
</span><br>
-- <br>
rickygm<br>
<br>
<a href="http://gnuforever.homelinux.com" target="_blank">http://gnuforever.homelinux.com</a>
<o:p></o:p></p>
</div>
</div>
</div>
</body>
</html>