-=ServerCW=- =iax_custom.conf= [ServerOR] type=friend username=ServerCW secret=XXXXX auth=md5 host=172.16.1.45 context=custom-from-iax peercontext=custom-from-iax qualify=yes trunk=yes =extensions_custom.conf= [custom-from-iax] exten => s,1,Playback(hello-world) exten => s,n,Dial(IAX2/$EXTEN) exten => _6XXXX,1,Dial(IAX2/ServerOR/${EXTEN:1}) exten => _6XXXX,n,Congestion [from-internal-custom] include => custom-from-iax *** extension phones are in from-internal context and from-internal-custom is included there -=ServerOR=- =iax_custom.conf= [ServerCW] type=friend username=ServerOR secret=XXXXX auth=md5 host=172.16.1.40 context=custom-from-iax peercontext=custom-from-iax qualify=yes trunk=yes =extensions_custom.conf= [custom-from-iax] exten => s,1,Playback(hello-world) exten => s,n,Dial(IAX2/$EXTEN) exten => _6XXXX,1,Dial(IAX2/ServerCW/${EXTEN:1}) exten => _6XXXX,n,Congestion [from-internal-custom] include => custom-from-iax *** extension phones are in from-internal context and from-internal-custom is included there -------------------------------------------------------------- -=ServerCW=- (calling from CW to OR) -- Executing Dial("SIP/2300-09c93ff0", "IAX2/ServerOR/3000") in new stack -- Called ServerOR/3000 -- Hungup 'IAX2/ServerOR-16384' == Everyone is busy/congested at this time (1:0/0/1) -- Executing Congestion("SIP/2300-09c93ff0", "") in new stack == Spawn extension (from-internal, 63000, 2) exited non-zero on 'SIP/2300-09c93ff0' -- Executing Macro("SIP/2300-09c93ff0", "hangupcall") in new stack -- Executing ResetCDR("SIP/2300-09c93ff0", "w") in new stack -- Executing NoCDR("SIP/2300-09c93ff0", "") in new stack -- Executing Wait("SIP/2300-09c93ff0", "5") in new stack == Spawn extension (macro-hangupcall, s, 3) exited non-zero on 'SIP/2300-09c93ff0' in macro 'hangupcall' == Spawn extension (macro-hangupcall, s, 3) exited non-zero on 'SIP/2300-09c93ff0' --------------------------------------------------------------- **iax2 show peers output** Name/Username Host Mask Port Status ServerOR/Server 172.16.1.45 (S) 255.255.255.255 4569 (T) OK (3 ms) 2500/2500 172.16.1.100 (D) 255.255.255.255 4569 Unmonitored 2 iax2 peers [1 online, 0 offline, 1 unmonitored]