Hi

This works for us:

In IAX.conf


[NNN]
notransfer=yes
secret=******
context=contextname
host=dynamic
type=friend
callerid="John Doe"<0111122223333>
mailbox=NNN
qualify=no
language=gb

The mailbox is for the mailbox number.

In extensions.conf we use a macro

[macro-iaxext]
;
; Standard extension macro:
;   ${ARG1} - Extension  (we could have used ${MACRO_EXTEN} here as well
;   ${ARG2} - Device(s) to ring
;
exten => s,1,Dial(${ARG2},20,tT)
; if drops out here means unavailable
exten => s,2,NoOp("State 2 ${DIALSTATUS}")
exten => s,3,Voicemail(b${ARG1})

with lines like:
exten =>NNN,1,Macro(iaxext,NNN,IAX2/NNN)

Nothing very clever but works.

Remember to open port 4569 in your firewall if you use from outside on internet 
to server and to map to asterisk server in firewall.


Paul 
_______________________________________________
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to