rendered paste bodyThis is iax at home,(LOCAL)
[general]
;autokill=yes
register => celord:celord@200.91.75.45
[office]
type=friend
secret=office
host=dynamic
contex=incoming_office
This is iax here, (REMOTE)
[general]
register => office:office@200.91.94.122
register => 307264626:167120@iax.callwithus.com
[celord]
type=friend
secret=celord
host=dynamic
context=incoming_celord
[307264626]
type=friend
host=iax.callwithus.com
username=307264626
secret=167120
qualify=yes
context=to-pstn
*************************************************
extensions.conf on LOCAL
[globals]
CESAR=SIP/201
[macro-sips]
exten => s,1,Dial(${ARG1},30)
exten => s,n,GotoIf($["${DIALSTATUS}" = "BUSY"]?busy:unavail)
exten => s,n(unavail),Voicemail(${MACRO_EXTEN}@default,u)
exten => s,n,Hangup()
exten => s,n(busy),Voicemail(${MACRO_EXTEN}@default,b)
exten => s,n,Hangup()
[incoming]
include => casa
exten => 123,1,Answer()
exten => 123,n,Background(enter-ext-of-person)
exten => 123,n,WaitExten()
exten => 201,1,Macro(sips,${CESAR})
[casa]
include => remoto
exten => 201,1,Macro(sips,${CESAR})
[remoto]
exten => _1XX,1,Dial(IAX2/office/${EXTEN})
;exten => _1XX,n,Hangup()
exten => 600,1,Dial(IAX2/celord@office/${EXTEN})
;exten => 600,n,Hangup()
[incoming_office]
include => casa
**************************************************
extensions.conf on REMOTE
[globals]
Cesar=SIP/101
Mario=SIP/102
Manfred=SIP/103
[macro-sips]
exten => s,1,Dial(${ARG1},10)
exten => s,n,GotoIf($["${DIALSTATUS}" = "BUSY"]?busy:unavail)
exten => s,n(unavail),Voicemail(${MACRO_EXTEN}@default,u)
exten => s,n,Hangup()
exten => s,n(busy),Voicemail(${MACRO_EXTEN}@default,b)
exten => s,n,Hangup()
[incoming]
exten => 123,1,Answer()
exten => 123,n,Background(queue-thankyou)
exten => 123,n,WaitExten()
exten => 1,1,Macro(sips,${Cesar})
exten => 2,1,Macro(sips,${Mario})
exten => 3,1,Macro(sips,${Manfred})
[ingenieros]
include => topstn
include => incoming
exten => 101,1,Macro(sips,${Cesar})
exten => 102,1,Macro(sips,${Mario})
exten => 103,1,Macro(sips,${Manfred})
exten => 700,1,VoiceMailMain()
;Extencion para revisar los mensajes de vos
exten => 700,1,VoiceMailMain()
; Create an extension, 600, for evaluating echo latency.
;
exten => 600,1,Playback(demo-echotest) ; Let them know what's going $
exten => 600,n,Echo() ; Do the echo test
exten => 600,n,Playback(demo-echodone) ; Let them know it's over
exten => 600,n,Goto(s,6) ; Start over
exten => _22XX,1,Dial(IAX2/celord/${EXTEN:1})
[incoming_celord]
include =>ingenieros
[topstn]
exten => _0XXXXXXXXXXX,1,Dial(IAX2/307264626/${EXTEN:1})
exten => _0XXXXXXXXXX,1,Dial(IAX2/307264626/${EXTEN:1})