I finally got everything connecting with the following dial plan.
[through-twilio]
; Call PSTN numbers through Twilio (any 10, 11 digit or E.164 formatted number)
exten => _!NXXNXXXXXX,1,NoOp(Dialing out from ${CALLERID(all)} to ${EXTEN} with DID ${DID})
exten => _!NXXNXXXXXX,n,Dial(SIP/TwilioProvider/${EXTEN},60)
exten => _!NXXNXXXXXX,n,Playtones(congestion)
exten => _!NXXNXXXXXX,n,Hangup()
; End of the "through-twilio" context
My question is if there is a way to append a + in front of the number. I tried:
So at this point I can connect but I can’t get audio. The phones are just connecting and then silence. Do you know where I should look first to deal with this issue?
That is almost always a mis-configuration of your router(s)/NAT settings not correctly forwarding, without port translation, the rtp packets for the SDP session generated by the SIP invite, In asterisk CLI
Only by you the +1 belongs in your trunk if needed, NOT your outbound route, it all depends on how your VSP’s need to see your dialing, by no means is there a “standard”
Review your work and the Wiki, you are doing it wrong somewhere, probably in your “magic” trunk which “requires” e164 , so you need to do it there.