Connecting fpbx to old elastix version

Hello everybody. Im relatively new to freepbx.

Im trying to prepare new server with freepbx and Asterisk 16.3.0, for migration from elastix 2.4.0 with freepbx 2.4.8 and Asterisk 1.8.

I’ve got connected them both throug an IAX with context=from-internal, internal<->internal and internal->external calls works fine. External sip trunk on elastix named sip_trunk_on_elastix.
And i’ve set up Inbound Route with filter for one CID lets say 08997777777 (for testing purposes) being forwarded to Freepbx through the IAX.

Problem is, i cannot fall from external on elastix to freepbx through iax trunk when calling from 08997777777.


Accepting UNAUTHENTICATED call from
– > requested format = ulaw,
– > requested prefs = (ulaw|gsm|g729|alaw),
– > actual format = ulaw,
– > host prefs = (ulaw|alaw|gsm|g729),
– > priority = mine
– Executing [[email protected]:1] ResetCDR(“IAX2/to-elastix-11307”, “”) in new stack
– Executing [[email protected]:2] NoCDR(“IAX2/to-elastix-11307”, “”) in new stack
– Executing [[email protected]:3] Progress(“IAX2/to-elastix-11307”, “”) in new stack
– Executing [[email protected]:4] Wait(“IAX2/to-elastix-11307”, “1”) in new stack
– Executing [[email protected]:5] Playback(“IAX2/to-elastix-11307”, “silence/1&cannot-complete-as-dialed&check-number-dial-again,noanswer”) in new stack
– <IAX2/to-elastix-11307> Playing ‘silence/1.ulaw’ (language ‘en’)
– <IAX2/to-elastix-11307> Playing ‘cannot-complete-as-dialed.ulaw’ (language ‘en’)
– <IAX2/to-elastix-11307> Playing ‘check-number-dial-again.ulaw’ (language ‘en’)
– Executing [[email protected]:1] Macro(“IAX2/to-elastix-11307”, “hangupcall”) in new stack
– Executing [[email protected]:1] GotoIf(“IAX2/to-elastix-11307”, “1?theend”) in new stack
– Goto (macro-hangupcall,s,3)
– Executing [[email protected]:3] ExecIf(“IAX2/to-elastix-11307”, “0?Set(CDR(recordingfile)=)”) in new stack
– Executing [[email protected]:4] NoOp(“IAX2/to-elastix-11307”, " montior file= ") in new stack
– Executing [[email protected]:5] GotoIf(“IAX2/to-elastix-11307”, “1?skipagi”) in new stack
– Goto (macro-hangupcall,s,7)
– Executing [[email protected]:7] Hangup(“IAX2/to-elastix-11307”, “”) in new stack
== Spawn extension (macro-hangupcall, s, 7) exited non-zero on ‘IAX2/to-elastix-11307’ in macro ‘hangupcall’
== Spawn extension (from-internal, h, 1) exited non-zero on ‘IAX2/to-elastix-11307’
– Hungup ‘IAX2/to-elastix-11307’

Can someone help or point me to the right direction?

cannot-complete-as-dialed&check-number-dial-again usually means there is not matching outbound rule for the number you have dialed.

Thats inbound route, anyway changed iax trunk config context=from-internal to context=from-trunk and now its working fine.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.