I have alias setup for an extension 15555551212 however when a user dials 5555551212 it goes out through a trunk and back in again. How can we make both go to it?
I have tried setting up a ENUM (which all extensions are callable via sip uri and are registered through e164.org) with a dial plan to fix this so at least if not an internal extension call it will be a sip uri call. I have a dial plan for the trunk to make 10 digit dialing 11 digit which seems to be working up the lookup is still returning a zero. (so I am addressing that Issue with e164.org but I thoguht I would include this anyway)
– Executing [s@macro-dialout-enum:6] Set(“SIP/200-a02ad9e0”,
“DIAL_NUMBER=5033501765”) in new stack
– Executing [s@macro-dialout-enum:7] Set(“SIP/200-a02ad9e0”,
“DIAL_TRUNK=7”) in new stack
– Executing [s@macro-dialout-enum:8] ExecIf(“SIP/200-a02ad9e0”,
“1|AGI|fixlocalprefix”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
== fixlocalprefix: Dialpattern 1+NXXXXXXXXX matched. 5033501765 ->
15033501765
– AGI Script fixlocalprefix completed, returning 0
– Executing [s@macro-dialout-enum:9] AGI(“SIP/200-a02ad9e0”,
“enumlookup.agi”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/enumlookup.agi
– AGI Script enumlookup.agi completed, returning 0
– Executing [s@macro-dialout-enum:10] GotoIf(“SIP/200-a02ad9e0”,
“1?end”) in new stack
– Goto (macro-dialout-enum,s,18)
– Executing [s@macro-dialout-enum:18] NoOp(“SIP/200-a02ad9e0”,
“Exiting macro-dialout-enum”) in new stack
– Executing [5033501765@from-internal:6]
Macro(“SIP/200-a02ad9e0”, “dialout-trunk|8|5033501765||”) in new stack