asterisk2billing.org
http://forum.asterisk2billing.org/

Cron Script to Track SIP Outbound Calls
http://forum.asterisk2billing.org/viewtopic.php?f=35&t=9302
Page 2 of 2

Author:  vulcan [ Thu Jan 05, 2012 5:03 pm ]
Post subject:  Re: Cron Script to Track SIP Outbound Calls

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.

Author:  vulcan [ Thu Jan 05, 2012 6:37 pm ]
Post subject:  Re: Cron Script to Track SIP Outbound Calls UPDATED 1.04

    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

Author:  rock1979 [ Wed Dec 05, 2012 6:08 am ]
Post subject:  Re: Cron Script to Track SIP Outbound Calls

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

Author:  DigitalDaz [ Wed Apr 17, 2013 7:39 pm ]
Post subject:  Re: Cron Script to Track SIP Outbound Calls

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 :)

Author:  vulcan [ Fri Apr 19, 2013 10:13 pm ]
Post subject:  Re: Cron Script to Track SIP Outbound Calls

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?

Author:  Taurus79 [ Tue Mar 11, 2014 9:20 pm ]
Post subject:  Re: Cron Script to Track SIP Outbound Calls

Hi Vulcan

Could you please post the latest modifications of your script?

thanks in advance!

Author:  vulcan [ Wed Jul 16, 2014 2:14 am ]
Post subject:  Re: Cron Script to Track SIP Outbound Calls

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.

Page 2 of 2 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/