[SR-Users] Help with Asterisk RT integration

Jon Morby jon at fido.net
Wed Dec 12 04:19:48 CET 2012


Hi

I'm trying to integrate a (K) front end cluster with an Asterisk back end cluster and Asterisk RT (legacy system)

I've followed the recipe at http://kb.asipto.com/asterisk:realtime:kamailio-3.3.x-asterisk-10.7.0-astdb

(with one minor exception …)

	if (from_uri!=myself && uri!=myself)

became

	if (uri!=myself)

as with the original line in place we were able to spoof traffic from 3rd party sites and route out onto the PSTN (which I thought was bad) …

anyway … 


The problem I'm seeing currently is that when a call is passed down a SIP trunk to an end user on the (K) platform we're losing the DNID

Asterisk delivers the call to SIP/account/DNID 

(K) however just tries to deliver the call to DNID at domain which comes back as not found.  

I've had limited success hand coding aliases into the alias_db however we're still missing the DNID info and having to scrape it from the SIP To field (with a) limited success and b) fears of a support nightmare if we try and move existing customers onto the new platform).  If we were to do this for real I'd either have to modify usrloc or try some perl_exec magic I'm guessing … (although it might be possible with a view on the existing sql database … but I'd rather not have to do that if there is a simpler way)

I confess I'm struggling to get my head around the config and docs and hoped someone could point me in the right direction?

For legacy reasons Asterisk needs to be in the critical path on this particular build … what I'm looking for is a simple recipe and some helpful pointers on how to implement it that will allow enable me to swing (K) into the path between our end user SIP devices and the existing asterisk back ends without losing the ability to deliver hundreds of numbers down a single SIP trunk to a subscriber, and that doesn't require them to make any changes on their end as they will still see the equivalent of SIP:${DNID}@example.com arriving on their PBX

This should be simple, but I'm obviously missing something :)

Help and pointers gratefully received




-- 
Jon Morby
FidoNet - the internet made simple!
10 - 16 Tiller Road, London, E14 8PX
tel: 0845 004 3050 / fax: 0845 004 3051







More information about the sr-users mailing list