[asterisk-users] Asterisk to Cisco's Rescue...again...Authenticate LD Calls

JR Richardson jmr.richardson at gmail.com
Wed Feb 21 18:01:14 MST 2007


Hi All,

 

Just wanted to share a story:

 

We turned up a new customer yesterday evening, typical situation, Cisco 2600
Router with T1 PRI card pointed to the customer's analog PBX with 2 data
T1's linked back to our network.  The router PRI was configured as a gateway
on our CCM 4, like we've done numerous times in the past.  The customer
needed LD Authorization codes enabled, got the list 400+, and configured
them in the CCM, no problem.  We started passing calls, local was fine but
the LD would not work, turned the LD codes off and LD would work.  After
engaging Cisco TAC, was informed that LD coded do not work with this type of
gateway device.

 

After strapping on my Asterisk-Orange Super-Engineer Cape and Goggles, I
told my Cisco Guy to prepend all the LD traffic with a 3 digit code and send
it to one of my Cluster Asterisk Servers.  I put in a pattern for matching
just this customers LD traffic as so:

 

exten => _5551NXXNXXXXXX,1,Answer

exten => _5551NXXNXXXXXX,2,Set(CDR(userfield)=Company LD)   

exten => _5551NXXNXXXXXX,3,Authenticate(/etc/asterisk/companyld.codes|a)

exten => _5551NXXNXXXXXX,4,Goto(ccmtrunkld|${EXTEN:3}|1)

 

;Answer because the authenticate cmd sends audio back to the caller

;set the CDR userfield to the company name

;Authenticate with file where the LD codes are stored, 'a' option puts the
LD code in the CDR accountcode field

;strip the 555 off and pass the LD call outbound

 

So now all the LD traffic from this customer can be authenticated from the
codes in the file companyld.codes, the CDR is updated properly for parsing
the LD and generates a nice monthly report for tracking who is using LD for
this customer.

 

I guess I'm feeling grateful that the Cisco Gateway is passing calls in the
first place, but it would have been nice for the Cisco CM and the Cisco
Gateway to play nice together.

 

The real hero here is Asterisk, Digium, and the Community that supports it!

 

Thank you All

 

JR

 

JR Richardson

Engineering for the Masses

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070221/b305d167/attachment-0001.htm


More information about the asterisk-users mailing list