Skip to main content

Question about channel maps

Posted by cbbs70a on Mon, 11/02/2009

All;
I need to set up channel maps for some analog lines. I defined the channel maps, but now I have to tell Asterisk to use the maps. When using the 's' route I need to tell it to use tl-reroute-analog, but I am not sure exactly what I need to specify where it says 'default route'. Can someone give an example?
Thanks
FSD


Submitted by eeman on Mon, 11/02/2009 Permalink

just look at the script, it tells you everything you want to know

exten => s,1,Set(TEMP=${CUT(CHANNEL,/,2)})
exten => s,n,Set(CHAN=${CUT(TEMP,-,1)})
exten => s,n,Set(DID=${DB(TL/CHANMAP/${CHAN}})
exten => s,n,GotoIf($["${DID}" = ""]?dodefault)
exten => s,n,Goto(from-outside,${DID},1)
exten => s,n(dodefault),Goto(from-outside,${ARG1},1)

if you failed to assign a did to that channel, where do you want this catch-all to arrive?

Submitted by ipfreely on Sun, 11/15/2009 Permalink

Hi FDS,
Did you ever get this working? I have my Dahdi Cahnnels pointing at from-outside. It hits the s extension, and just follows my default inbound route for s. I have defived some channel maps to did's and created inbound routes for the did's. I am not sure if I need to set something in chan-dahdi.conf against the channel to pass my DID info, or if I need to repoint to a different context. I have tried setting callerid=1111 (My DID), but no luck.

Thanks,
Chris A

Submitted by cbbs70a on Mon, 11/16/2009 Permalink

I did get it working. I think the way to do it is to change your default inbound route for s to go to macro-tl-reroute-analog and then make sure that you have an inbound route defined for the particular DID. Do you have that? Nothing needs to be changed in chan_dahdi.conf.
Frank