Hello all,
I am trying to configure FusionPBX to allow me to call users of other SIP servers by SIP URI, such as "12345@example.com". I currently have it set to allow a modified URI, replacing "@" with "-at-", and when using this format my server connects the call. However, when I replace "-at-" with "@" in the dialplan and try to call the corresponding URI, I am given a "forbidden" message, and the logs on FusionPBX state that I must setup the domain I am trying to call as a Domain on my server, and add the extension to my directory under that domain. The server seems to think I want to call myself for some reason. I cannot for the life of me figure out what I'm doing wrong. I am attaching my working dialplan below, the non-working one is the exact same except for replacing "-at-" with "@". Thank you!
I am trying to configure FusionPBX to allow me to call users of other SIP servers by SIP URI, such as "12345@example.com". I currently have it set to allow a modified URI, replacing "@" with "-at-", and when using this format my server connects the call. However, when I replace "-at-" with "@" in the dialplan and try to call the corresponding URI, I am given a "forbidden" message, and the logs on FusionPBX state that I must setup the domain I am trying to call as a Domain on my server, and add the extension to my directory under that domain. The server seems to think I want to call myself for some reason. I cannot for the life of me figure out what I'm doing wrong. I am attaching my working dialplan below, the non-working one is the exact same except for replacing "-at-" with "@". Thank you!
<extension name="outbound-uri" continue="false" uuid="00fc9888-d5a2-4193-a406-ca38b0aa9bf6">
<condition field="destination_number" expression="^([0-9a-zA-Z]+)-at-(.+\..+)$">
<action application="bridge" data="sofia/external/$1@$2"/>
</condition>
</extension>