Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Wed Jul 26, 2017 10:31 pm
VoIP Billing solution


All times are UTC




Post new topic Reply to topic  [ 22 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: Cron Script to Track SIP Outbound Calls
PostPosted: Thu Jan 05, 2012 5:03 pm 
Offline

Joined: Mon Jan 08, 2007 6:56 pm
Posts: 345
Quote:
I am answering my question myself


Hey, I was busy.

Quote:
First of all no need to make modification in asterisk source code and recomiling
"core show channels concise " gives you the required information about the active channels with seperator as "!" and also provides FULL channel names without shortened.


I later found "core show channels concise" works, but it is deprectaed and will be removed in later versions. I should update code to use it while it exists. This will avoid modifying asterisk for sure.

Quote:
now i am implementing your code to work with AMI, instead of shell execute.


Durings tests with AMI , it was found to be many times slower using the socket that way. Script waited up to three seconds to get the reply from asterisk on a server without load, but it may be the only way to get the channel variables using asterisk 1.4.

As you know this was written for 1.8. I'm releasing a much improved code to work with 1.8 . you can wait for that and modify it for 1.4. Send me the changes and I'll post in the usual location.


Top
 Profile  
 
 Post subject: Re: Cron Script to Track SIP Outbound Calls UPDATED 1.04
PostPosted: Thu Jan 05, 2012 6:37 pm 
Offline

Joined: Mon Jan 08, 2007 6:56 pm
Posts: 345
    Logic updated to eliminate negative balances
    No longer necessary to modify asterisk code
    A2B configuration "dial_balance_reservation" can be set to 0.

If you are using this , it is advised to upgrade and note modification to step "1.a" of installation. Installation steps can be found in the first post of this thread.

viewtopic.php?f=35&t=9302


Top
 Profile  
 
 Post subject: Re: Cron Script to Track SIP Outbound Calls
PostPosted: Wed Dec 05, 2012 6:08 am 
Offline

Joined: Sat Feb 19, 2011 6:19 am
Posts: 38
Dear Vulcan

I just tried to dowload the latest version of the codes that you wrote but the files are no more available

Could you please upload them again


Regards
Rock1979


Top
 Profile  
 
 Post subject: Re: Cron Script to Track SIP Outbound Calls
PostPosted: Wed Apr 17, 2013 7:39 pm 
Offline

Joined: Thu Nov 03, 2011 11:12 pm
Posts: 18
Vulcan,

Thanks a bunch for this, I have now implemented it and its working great. It certainly suits my needs. One side effect seems to be that it disconnects the calls of inbound clients who have a zero balance but thats no worry at all, just had me scratching my head for a while :)


Top
 Profile  
 
 Post subject: Re: Cron Script to Track SIP Outbound Calls
PostPosted: Fri Apr 19, 2013 10:13 pm 
Offline

Joined: Mon Jan 08, 2007 6:56 pm
Posts: 345
Are you sure about inbound calls being disconnected due to script? It will only disconnect outbound channels matched to an inbound channel.

Some people make the mistake of using the asterisk "Local" function to re-dial out from an inbound call which creates three channels, could this be what you are doing?


Top
 Profile  
 
 Post subject: Re: Cron Script to Track SIP Outbound Calls
PostPosted: Tue Mar 11, 2014 9:20 pm 
Offline

Joined: Thu Mar 06, 2014 10:03 am
Posts: 6
Hi Vulcan

Could you please post the latest modifications of your script?

thanks in advance!


Top
 Profile  
 
 Post subject: Re: Cron Script to Track SIP Outbound Calls
PostPosted: Wed Jul 16, 2014 2:14 am 
Offline

Joined: Mon Jan 08, 2007 6:56 pm
Posts: 345
The script has not changed. I think you might be looking for the install instructions to add certain values to the Asterisk channel, this is on the first page of this thread.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 22 posts ]  Go to page Previous  1, 2
Predictive Dialer


All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group