Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.



964 posts

Ultimate Geek

Subscriber

Topic # 112813 21-Dec-2012 14:29 Send private message

I have an Asterisk box with a Atcom AX400 card in it with an FXO module. All incoming calls come to the line on the trunk card and then if that line is busy they step to some SIP trunks.

This line has just been enabled with faxability and is causing some issues for me. I think I have a small clue how to go about fixing this but just wanted some gurus to have a look over it first.

I think I need to add something in to dahdi-channels.conf so that it looks at the ringing cadence and then sends them to appropriate contexts. What I will do is send the normal ring to the zaptel context to give it a DDI and then the distinct ring will go to a context that goes no where until such a time the fax answers.

I know there is 'usedistinctiveringdetection' but don't really know what to put with it to make it here the rings.

Any help much appreciated.

Create new topic
363 posts

Ultimate Geek

Trusted

  Reply # 736049 21-Dec-2012 15:01 Send private message

From my vague memory of doing this back in 2005 or so you need something like;

usedistinctiveringdetection=yes
distinctiveringaftercid=yes # Specifically needed for NZ/AU
dring1=1,2,3
dring1context=foo
dring2=2,3,4
dring1context=bar

You will need to work out the 1,2,3 and 2,3,4 numbers yourself, Asterisk can generate them to show you on the verbose console when an incoming call comes in.






964 posts

Ultimate Geek

Subscriber

  Reply # 736818 24-Dec-2012 11:51 Send private message

Just an update...
Added this to the dahdi-channels.conf file

usedistinctiveringdetection=yes
distinctiveringaftercid=yes

dring1=100,0,0
dring1context=from-zaptel
dring1range=10

dring2=249,221,189
dring2context=from-pstn-5565
dring2range=10


Works really well. At first in my from-pstn-5565 I just had wait for 30 seconds and then hangup. But of course it would put a loop on the line and stop the fax receiving. Luckily I had a station module for the Atcom card. Made the fax an analogue extension off the system and then made my custom context go to that extension.
I thought about just making the custom context assign a CID to the channel and then use an inbound route to send the call to the fax but wasn't sure if Asterisk would screw with it on the way. By sending it straight to the extension I hope I have done the right thing. Seems to all work well though.

363 posts

Ultimate Geek

Trusted

  Reply # 736861 24-Dec-2012 13:49 Send private message

No worries.




Create new topic
Twitter »
Follow us to receive Twitter updates when new discussions are posted in our forums:



Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:



Follow us to receive Twitter updates when new jobs are posted to our jobs board:



Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:




News »

Trending now »
Hot discussions in our forums right now:

A reason not to shop at dick smith
Created by dsnz1, last reply by AKLWestie on 17-May-2013 22:45 (82 replies)
Pages... 4 5 6


Chorus is cutting the cost of VDSL to service providers from June 7
Created by maxzzz, last reply by Ragnor on 16-May-2013 02:57 (40 replies)
Pages... 2 3


A new project coming to Geekzone
Created by freitasm, last reply by CapBBeard on 18-May-2013 20:20 (194 replies)
Pages... 11 12 13


HTC One (2013) owners' discussion
Created by Dingbatt, last reply by bradstewart on 19-May-2013 02:22 (1409 replies)
Pages... 92 93 94


Galaxy S4 to run stock Android, by Google
Created by kiwitrc, last reply by Lambchop on 17-May-2013 02:54 (30 replies)
Pages... 2


Sitting on a boring conference call
Created by SaltyNZ, last reply by SepticSceptic on 17-May-2013 16:52 (14 replies)

Office 365 service outage 2013-05-18
Created by freitasm, last reply by networkn on 18-May-2013 22:31 (12 replies)

Samsung Galaxy SIII Discussion and Owners Thread
Created by networkn, last reply by Johnk on 18-May-2013 14:50 (5522 replies)
Pages... 367 368 369



Geekzone Jobs »
Most recent NZ jobs in technology:

IT Technician
Posted 18-May-2013 22:27

IT Technician
Posted 18-May-2013 22:27

Office Girl
Posted 18-May-2013 13:27

CRM Lead/ Senior MS CRM Consultant
Posted 18-May-2013 09:27

Business Analyst - Technical Web Focus
Posted 18-May-2013 09:27

Senior Front End Developer
Posted 18-May-2013 09:27

Client Support Analyst
Posted 17-May-2013 23:26


Geekzone Live »
Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.

Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.

Alternatively, you can receive a daily email with Geekzone updates.