How to use www.DIDX.net with Astbill

DiD / DDi routing for astbill using didx

This Code has been sent to us, by Robin Dexter of www.dexwebtelecom.com You may contact them directly for support.

Tue, 2006-11-28 22:30

Following Skippy's comments on submitting addon's and fixes, here's my extension to Mohamed's DDI code (I hope you don't mind), no alterations to the database necessary. the code will automatically account for IAX2 or SIP

To use enter the code below, modified for your system, (it has been adapted for DIDX).

Operating is simple, use the DID module to add incoming numbers, next visit the incoming friend module and asign the DID to an account. Once done the users can change the routing themselves, also for ease of use all of the didx.org numbers have the same IAX routing (except for the line number)e.g. didx-org2:password@iPaddress/DIDnumber

extensions.conf 
 include => didx-org-iax2 

extensions_custom.conf 

 [didx-org-iax2] 
 
 exten => _X.,1,MYSQL(Connect connid 127.0.0.1 astbilluser astbill149 astbill) 
 exten => _X.,2,MYSQL(Query resultid ${connid} SELECT forwardto from astaccount where accountcode=${EXTEN}) 
 exten => _X.,3,MYSQL(Fetch fetchid ${resultid} localextension) 
 exten => _X.,4,MYSQL(Clear ${resultid}) 
 exten => _X.,5,MYSQL(Query resultid ${connid} SELECT tech from astaccount where accountcode=${localextension}) 
 exten => _X.,6,MYSQL(Fetch fetchid ${resultid} tech1) 
 exten => _X.,7,MYSQL(Clear ${resultid}) 
 exten => _X.,8,MYSQL(Disconnect ${connid}) 
 exten => _X.,9,Dial(${tech1}/${localextension},20) 
 exten => _X.,10,Voicemail,u${localextension} 
 exten => _X.,11,Congestion 
 exten => _X.,102,Voicemail,b${localextension} 
 exten => _X.,103,congestion 
 exten => _X.,12,Hangup 

iax.conf 

 #include iax_custom2.conf 
 
 iax_custom2.conf 
 
 [didx-org2] 
 type=user 
 secret=password 
 host=didx.org 
 context=didx-org-iax2 
 dtmfmode=rfc2833 
 jitterbufer=yes 
 disallow=all 
 allow=g729 
 allow=ulaw 
 allow=alaw 
 language=en


If your using IAX2 don't forget to open port 4569 on your firewall.

I forgot to mention that as the routing is stored in the incoming DID line of the data table, you can have more than one DID per acount/extension number.

Also Astbill automatically asign your number on outgoing calls, isn't Astbill wonderful

DiD / DDi routing for astbill using didx

This Code has been sent to us, by Robin Dexter of www.dexwebtelecom.com You may contact them directly for support.

Tue, 2006-11-28 22:30

Following Skippy's comments on submitting addon's and fixes, here's my extension to Mohamed's DDI code (I hope you don't mind), no alterations to the database necessary. the code will automatically account for IAX2 or SIP

To use enter the code below, modified for your system, (it has been adapted for DIDX).

Operating is simple, use the DID module to add incoming numbers, next visit the incoming friend module and asign the DID to an account. Once done the users can change the routing themselves, also for ease of use all of the didx.org numbers have the same IAX routing (except for the line number)e.g. didx-org2:password@iPaddress/DIDnumber

extensions.conf 
 include => didx-org-iax2 

extensions_custom.conf 

 [didx-org-iax2] 
 
 exten => _X.,1,MYSQL(Connect connid 127.0.0.1 astbilluser astbill149 astbill) 
 exten => _X.,2,MYSQL(Query resultid ${connid} SELECT forwardto from astaccount where accountcode=${EXTEN}) 
 exten => _X.,3,MYSQL(Fetch fetchid ${resultid} localextension) 
 exten => _X.,4,MYSQL(Clear ${resultid}) 
 exten => _X.,5,MYSQL(Query resultid ${connid} SELECT tech from astaccount where accountcode=${localextension}) 
 exten => _X.,6,MYSQL(Fetch fetchid ${resultid} tech1) 
 exten => _X.,7,MYSQL(Clear ${resultid}) 
 exten => _X.,8,MYSQL(Disconnect ${connid}) 
 exten => _X.,9,Dial(${tech1}/${localextension},20) 
 exten => _X.,10,Voicemail,u${localextension} 
 exten => _X.,11,Congestion 
 exten => _X.,102,Voicemail,b${localextension} 
 exten => _X.,103,congestion 
 exten => _X.,12,Hangup 

iax.conf 

 #include iax_custom2.conf 
 
 iax_custom2.conf 
 
 [didx-org2] 
 type=user 
 secret=password 
 host=didx.org 
 context=didx-org-iax2 
 dtmfmode=rfc2833 
 jitterbufer=yes 
 disallow=all 
 allow=g729 
 allow=ulaw 
 allow=alaw 
 language=en


If your using IAX2 don't forget to open port 4569 on your firewall.

I forgot to mention that as the routing is stored in the incoming DID line of the data table, you can have more than one DID per acount/extension number.

Also Astbill automatically asign your number on outgoing calls, isn't Astbill wonderful

Created by: rehan, Last modification: Tue 19 of Jun, 2012 (06:21 UTC) by admin
Please update this page with new information, just login and click on the "Edit" or "Discussion" tab. Get a free login here: Register Thanks! - Find us on Google+