I found records from my provider about 36 minutes phone call, while ASTCC says Start Time Caller*ID Called Number Trunk Disposition Billable Seconds Billed Cost Sat May 14 23:08:17 2005 886228 12126467050 1-800IAX2 ANSWER 0 0 .. and of course the user is not billed for that call. Is that problem known? Or is there another solution to get prepaid card stabled? bye Ronald
> I found records from my provider about 36 minutes phone call, while > ASTCC says > > .. and of course the user is not billed for that call.Are you by any chance using Local channels to route the call? -- Nabeel Jafferali X2 Networks www.x2n.ca T: 1.647.722.6900 1.877.VOIP.X2N F: 1.866.655.6698 FWD: 46990
Do you know why this is happening? What is the problem with the Local channel? If this cannot be fixed, local channel support should be removed and soon. :-( Darren Wiebe darren@aleph-com.net Nabeel Jafferali wrote:>>I found records from my provider about 36 minutes phone call, while >>ASTCC says >> >>.. and of course the user is not billed for that call. >> >> > >Are you by any chance using Local channels to route the call? > >-- >Nabeel Jafferali >X2 Networks >www.x2n.ca >T: 1.647.722.6900 > 1.877.VOIP.X2N >F: 1.866.655.6698 >FWD: 46990 > > >_______________________________________________ >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 > > >
> Do you know why this is happening? What is the problem with the Local > channel? If this cannot be fixed, local channel support should be > removed and soon. :-(Well, the ASTCC code the way I got it from the CVS checkout has the following: $dialstr = "Local/$phone/$res->{path}|30|HL(" . ($maxtime * 60 * 1000) . ":60000:30000)"; This does not work, since it results in, for example, Dial(Local/14169671111/routes). It should actually be: $dialstr = "Local/$phone\@$res->{path}|30|HL(" . ($maxtime * 60 * 1000) . ":60000:30000)"; which results in, for example, Dial(Local/14169671111@routes). However, there is an added problem with this. Asterisk attempts to bridge the channels and drops the Local Zombie channel. At this point, ASTCC assumes the call has ended and it is billed as 0 secs. To fix this, the line should be: $dialstr = "Local/$phone\@$res->{path}/n|30|HL(" . ($maxtime * 60 * 1000) . ":60000:30000)"; which would result in the channels not being bridged. This fixed the problem I was having with 0 sec billed calls. -- Nabeel Jafferali X2 Networks www.x2n.ca T: 1.647.722.6900 1.877.VOIP.X2N F: 1.866.655.6698 FWD: 46990
Yes, you are right. This is the code that went in on Saturday or this morning: $dialstr = "Local/$phone/$res->{path}|30|HL/n(" . ($maxtime * 60 * 1000) . ":60000:30000)"; This patch sat in the bugtracker for months as I did not have my ducks in a row. :-( Will this fix it or is the \@ change necessary also. If it is, I will get a patch in tomorrow. Darren Wiebe darren@aleph-com.net Nabeel Jafferali wrote:>>Do you know why this is happening? What is the problem with the Local >>channel? If this cannot be fixed, local channel support should be >>removed and soon. :-( >> >> > >Well, the ASTCC code the way I got it from the CVS checkout has the >following: > >$dialstr = "Local/$phone/$res->{path}|30|HL(" . ($maxtime * 60 * 1000) . >":60000:30000)"; > >This does not work, since it results in, for example, >Dial(Local/14169671111/routes). It should actually be: > >$dialstr = "Local/$phone\@$res->{path}|30|HL(" . ($maxtime * 60 * 1000) . >":60000:30000)"; > >which results in, for example, Dial(Local/14169671111@routes). However, >there is an added problem with this. Asterisk attempts to bridge the >channels and drops the Local Zombie channel. At this point, ASTCC assumes >the call has ended and it is billed as 0 secs. To fix this, the line should >be: > >$dialstr = "Local/$phone\@$res->{path}/n|30|HL(" . ($maxtime * 60 * 1000) . >":60000:30000)"; > >which would result in the channels not being bridged. This fixed the problem >I was having with 0 sec billed calls. > >-- >Nabeel Jafferali >X2 Networks >www.x2n.ca >T: 1.647.722.6900 > 1.877.VOIP.X2N >F: 1.866.655.6698 >FWD: 46990 > >_______________________________________________ >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 > > >
> Will this fix it or is the \@ change necessary also. If it is, I will get > a patch in > tomorrow.I just checked - Dial(Local/14169671111/routes/n) is not valid. Dial(Local/14169671111@routes/n) is valid. Therefore, you would need the other change as well. -- Nabeel Jafferali X2 Networks www.x2n.ca T: 1.647.722.6900 1.877.VOIP.X2N F: 1.866.655.6698 FWD: 46990
Thanks, I just submitted a patch. http://bugs.digium.com/view.php?id=4300 Darren Nabeel Jafferali wrote:>>Will this fix it or is the \@ change necessary also. If it is, I will get >>a patch in >>tomorrow. >> >> > >I just checked - Dial(Local/14169671111/routes/n) is not valid. >Dial(Local/14169671111@routes/n) is valid. Therefore, you would need the >other change as well. > >-- >Nabeel Jafferali >X2 Networks >www.x2n.ca >T: 1.647.722.6900 > 1.877.VOIP.X2N >F: 1.866.655.6698 >FWD: 46990 > >_______________________________________________ >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 > > >