Connecting to Revtel via IAX2 (type=friend version)

From aa-asterisk.org.uk wiki

Jump to: navigation, search


This HOWTO explains to make a connection to and from Revtel using user/peer operation. It is possible to use friend but does not work in all cases (especially if using 1.6 and realtime, where friend does not seem to work). Also, separate user/peers are necessary if you have multiple Revtel numbers/blocks and need to set the outgoing caller ID appropriately.

Static (iax.conf) Version

Incoming calls

1. Open your iax.conf file and add a section like this: Outgoing calls and Incoming calls in one context

you'll need one of these for each of your numbers thus accounts with revtel

; 01234567890
[01234567890]   <-- set this to your number with same digit count as presentation is set for on clueless
username=01234567890
secret=<password>  <-- set this to your outgoing p/w on clueless
auth=md5
type=friend
host=speechless.aaisp.net.uk
context=<context>  <--- set this to whatever dialplan context you want your calls delivered to
transfer=no
disallow=all
allow=alaw
qualify=3000
requirecalltoken=auto

you can call using

Dial(IAX2/01234567890/${EXTEN});

accept calls If you set 11 digits, incoming calls will then come to your context in the format 01234567890. So you can do things like this in your dialplan:

exten => 01234567890,1,Dial(SIP/myphone)

See also

Personal tools