Hello Shamus,You could not answer the call so you will not be charged at all. Does this make sense?Best regards, Ioan On 15-Sep-15 5:40 PM, Shamus Rask wrote:I’m posting this here as I find the AstLinux users offer the best and most responsive insights to all things Asterisk.I’ve started a SaaS-based project that uses Asterisk to make outbound calls. I’d like to implement some form of rigorous monitoring to ensure that my 2x outbound SIP trunks are able to dial numbers on the PSTN.I’ve created a cron job on my Asterisk server that generates a .call file every 10 minutes. This dials a separate DID (hosted by a different SIP provider) on my personal AstLinux box. By doing an Answer() immediately followed by a Hangup(), I’ve limited the duration of the call to < 1s. However, I’m still being charged $0.005 for each call by my SIP provider. At 2x calls every 10m, this adds up to $1.44/day or $43.20/month.Given the SIP signalling that is taking place, is there any way to parse the SIP messages and terminate the call attempt when the Asterisk server sees a “180 - ringing” message? This would eliminate the daily cost of the tests and I would only incur the monthly DID charge.Thank you in advance, Shamus
On 15-Sep-15 7:45 PM, Shamus Rask wrote:
Ioan,How would I detect the non-answer on my personal PBX from the calling Asterisk server? I was hoping to accomplish this in the dialplan.
Hello Shamus,You could evaluate ${DIALSTATUS} channel variable that should be set up to NOANSWER [1]
Hope that helps, Ioan [1] https://wiki.asterisk.org/wiki/display/AST/Application_Dial
smime.p7s
Description: S/MIME Cryptographic Signature
------------------------------------------------------------------------------
_______________________________________________ Astlinux-users mailing list Astlinux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/astlinux-users Donations to support AstLinux are graciously accepted via PayPal to pay...@krisk.org.