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

Gurus! Tampering a2billing.php to check if peer is online?
http://forum.asterisk2billing.org/viewtopic.php?f=33&t=7774
Page 1 of 1

Author:  bruce [ Thu Jun 10, 2010 6:03 am ]
Post subject:  Gurus! Tampering a2billing.php to check if peer is online?

Hello Developers and Gurus,

I have inbound DID setup properly which dials the SIP PEER FRIEND when they are online. However, I want to know specifically which part of the code in a2billing.php relates to initiating the call to SIP Peer Friend. I will insert a bit of code there to check to see if the PEER is online or not. If the PEER is not online, I will send a PUSH message to the iPhone so that application can start and so that the PEER comes online before the call is made. That way, no call is missed.

I really appreciate it if you give me some pointers.

Thanks,

Author:  jroper [ Thu Jun 10, 2010 8:16 am ]
Post subject:  Re: Gurus! Tampering a2billing.php to check if peer is online?

Hi

I do not think a2billing does check, it just dials, and if it fails, moves on to the next destination, so you would need to do some dialplan modifications to achieve this, and send the trunk to a local context to dial rather than do it direct.

Joe

Author:  bruce [ Thu Jun 10, 2010 2:21 pm ]
Post subject:  Re: Gurus! Tampering a2billing.php to check if peer is online?

I am willing to tamper the code for this purpose. I don't want to do it in dial plan because there are many DIDs assigned and then that will require yet another database of checking for dial-plan purpose against account numbers.

So, if any pointers can be given to the code part as to where a dial initiates for an inbound DID, I would be happy to take it from there.

Thanks,

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