Outgoing calls to land linkes over the trunk between two elastix PBX

Hi all…
I have hard time configure outgoing landline calls between two Elastix PBX connected to each other via IAX2 trunk over the internet. The calls between extensions between two sites are fine.
In addition, the Elastix who need to make the land line call are able to do so if the call is from local (not trunk) extension.
I have set the 9 as exit dial pattern 9|.
I get the message “the number you have dialed is not in service”

The number I’m truing to reach is 044676276 in this case.
xxxx-user the trunk that calls originates from my branch

I hope I explained the situation correctly. Here are the logs the site (Elastix) that need to make an actual call:

Thank you in advance

– Accepting AUTHENTICATED call from x.x.x.x:
> requested format = gsm,
> requested prefs = (gsm),
> actual format = gsm,
> host prefs = (ulaw|alaw|gsm),
> priority = mine
– Executing [9044676276@from-trunk:1] Set(“IAX2/xxxx-user-5992”, “__FROM_DID=9044676276”) in new stack
– Executing [9044676276@from-trunk:2] NoOp(“IAX2/xxxx-user-5992”, “Received an unknown call with DID set to 9044676276”) in new stack
– Executing [9044676276@from-trunk:3] Goto(“IAX2/xxxx-user-5992”, “s,a2”) in new stack
– Goto (from-trunk,s,2)
– Executing [s@from-trunk:2] Answer(“IAX2/xxxx-user-5992”, “”) in new stack
– Executing [s@from-trunk:3] Wait(“IAX2/xxxx-user-5992”, “2”) in new stack
– Executing [s@from-trunk:4] Playback(“IAX2/xxxx-user-5992”, “ss-noservice”) in new stack
– <IAX2/xxxx-user-5992> Playing ‘ss-noservice.gsm’ (language ‘en’)
== Spawn extension (from-trunk, s, 4) exited non-zero on ‘IAX2/xxxx-user-5992’
– Executing [h@from-trunk:1] Macro(“IAX2/xxxx-user-5992”, “hangupcall,”) in new stack
– Executing [s@macro-hangupcall:1] GotoIf(“IAX2/xxxx-user-5992”, “1?endmixmoncheck”) in new stack
– Goto (macro-hangupcall,s,9)
– Executing [s@macro-hangupcall:9] NoOp(“IAX2/xxxx-user-5992”, “End of MIXMON check”) in new stack
– Executing [s@macro-hangupcall:10] GotoIf(“IAX2/xxxx-user-5992”, “1?nomeetmemon”) in new stack
– Goto (macro-hangupcall,s,28)
– Executing [s@macro-hangupcall:28] NoOp(“IAX2/xxxx-user-5992”, “End of MEETME check”) in new stack
– Executing [s@macro-hangupcall:29] GotoIf(“IAX2/xxxx-user-5992”, “1?noautomon”) in new stack
– Goto (macro-hangupcall,s,34)
– Executing [s@macro-hangupcall:34] NoOp(“IAX2/xxxx-user-5992”, “TOUCH_MONITOR_OUTPUT=”) in new stack
– Executing [s@macro-hangupcall:35] GotoIf(“IAX2/xxxx-user-5992”, “1?noautomon2”) in new stack
– Goto (macro-hangupcall,s,41)
– Executing [s@macro-hangupcall:41] NoOp(“IAX2/xxxx-user-5992”, “MONITOR_FILENAME=”) in new stack
– Executing [s@macro-hangupcall:42] GotoIf(“IAX2/xxxx-user-5992”, “1?skiprg”) in new stack
– Goto (macro-hangupcall,s,45)
– Executing [s@macro-hangupcall:45] GotoIf(“IAX2/xxxx-user-5992”, “1?skipblkvm”) in new stack
– Goto (macro-hangupcall,s,48)
– Executing [s@macro-hangupcall:48] GotoIf(“IAX2/xxxx-user-5992”, “1?theend”) in new stack
– Goto (macro-hangupcall,s,50)
– Executing [s@macro-hangupcall:50] AGI(“IAX2/xxxx-user-5992”, “hangup.agi”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/hangup.agi
– <IAX2/xxxx-user-5992>AGI Script hangup.agi completed, returning 0
– Executing [s@macro-hangupcall:51] Hangup(“IAX2/xxxx-user-5992”, “”) in new stack
== Spawn extension (macro-hangupcall, s, 51) exited non-zero on ‘IAX2/xxxx-user-5992’ in macro ‘hangupcall’
== Spawn extension (from-trunk, h, 1) exited non-zero on ‘IAX2/xxxx-user-5992’
– Hungup ‘IAX2/xxxx-user-5992’

Wrong context needs to be in from-internal

Wrong forum needs to be at elastix

Yeah that too