Posted: Wed May 27, 2009 4:36 pm Post subject: [asterisk-users] setting CDR values on failed calls
Hi All,
I am relatively new to Asterisk… I have CDR enabled and successfully writing to MS SQL server. In my cdr table I am setting the userfield value with a line in my dialplan. If a call is placed to an invalid number (e.g. 12125551212), I see a cdr record created, however, my userfield value never gets set since the call never made it into the context of my dialplan. I am using AMI with the Originate command to invoke the call. How can I set this value before the call is actually passed to my voip provider (of whom quickly responds with “Got SIP response 500 ‘Service Unavailable’ back from myVoipIPaddress”) ?
ActionId and Account can be set.
Nicholas Blasgen
Partner / Network Operations
Refractive Dialer LLC
415.692-5277 (w)
408.497.9796 (c)
Please update your contact records with my new work number.
On Wed, May 27, 2009 at 10:24 AM, John Regal <jregal@gmail.com (jregal@gmail.com)> wrote:
Quote:
Hi All,
I am relatively new to Asterisk… I have CDR enabled and successfully writing to MS SQL server. In my cdr table I am setting the userfield value with a line in my dialplan. If a call is placed to an invalid number (e.g. 12125551212), I see a cdr record created, however, my userfield value never gets set since the call never made it into the context of my dialplan. I am using AMI with the Originate command to invoke the call. How can I set this value before the call is actually passed to my voip provider (of whom quickly responds with “Got SIP response 500 ‘Service Unavailable’ back from myVoipIPaddress”) ?
Thanks in advance
_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
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 vote in polls in this forum