Fs will fallback to Digest from ACL when the source ip is not allowed, this is normal.<br><br>Looking at your log, it doesn't seem like the client is actually responding to the challenge.<br><br>Can you take a trace and look at it? You should see the challenge and then an INVITE with credentials.<br><div class="gmail_quote"><div dir="ltr">On Wed, Jul 5, 2017 at 9:48 AM Nate <<a href="mailto:nathan.port@gmail.com">nathan.port@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Ah, I also just setup another gateway and watched the logs as it tried to register and found the following entries that appear to indicate I don't have the proper external IP addresses assigned somewhere.<br><br></div>This system is NAT'd with SIP forwarded:<br><br>2017-07-05 11:29:22.655729 [DEBUG] sofia.c:4450 rtp-ip [192.168.1.13]<br>2017-07-05 11:29:22.655729 [DEBUG] sofia.c:4450 sip-ip [192.168.1.13]<br>2017-07-05 11:29:22.655729 [DEBUG] sofia.c:4450 ext-rtp-ip [192.168.1.13]<br>2017-07-05 11:29:22.655729 [DEBUG] sofia.c:4450 ext-sip-ip [192.168.1.13]<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jul 5, 2017 at 11:25 AM, Nate <span dir="ltr"><<a href="mailto:nathan.port@gmail.com" target="_blank">nathan.port@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>So I just created a blank log and performed a test call to my mobile and came up with the following snippet from the log. What stands out to me is the declaration that "IP 192.168.1.92 Rejected by acl "domains"." But I wonder if that is just normal as the system is configured to auth by credentials rather than IP address. <br><br></div>Can anyone please comment on whether there is anything apparently wrong here?<br><div> <div><br> [DEBUG] sofia.c:9837 sofia/internal/<a href="mailto:200@192.168.1.13" target="_blank">200@192.168.1.13</a> receiving invite from <a href="http://192.168.1.92:6000" target="_blank">192.168.1.92:6000</a> version: 1.6.18 -35-6e79667 64bit<br> [DEBUG] sofia.c:10008 IP 192.168.1.92 Rejected by acl "domains". Falling back to Digest auth.<br> [DEBUG] sofia.c:2334 detaching session 1ea84eeb-e5ba-49c8-83dc-c479eedd6f1c<br> [WARNING] sofia_reg.c:1792 SIP auth challenge (INVITE) on sofia profile 'internal' for [<a href="mailto:0223334444@192.168.1.13" target="_blank">0223334444@192.168.1.13</a>] from ip 192.168.1.92<br> [DEBUG] switch_core_state_machine.c:603 (sofia/internal/<a href="mailto:200@192.168.1.13" target="_blank">200@192.168.1.13</a>) State NEW<br> [DEBUG] sofia.c:2442 Re-attaching to session 1ea84eeb-e5ba-49c8-83dc-c479eedd6f1c<br> [DEBUG] sofia.c:9837 sofia/internal/<a href="mailto:200@192.168.1.13" target="_blank">200@192.168.1.13</a> receiving invite from <a href="http://192.168.1.92:6000" target="_blank">192.168.1.92:6000</a> version: 1.6.18 -35-6e79667 64bit<br> [DEBUG] sofia.c:10008 IP 192.168.1.92 Rejected by acl "domains". Falling back to Digest auth.<br> [DEBUG] sofia.c:7048 Channel sofia/internal/<a href="mailto:200@192.168.1.13" target="_blank">200@192.168.1.13</a> entering state [received][100]<br><br><br></div><div>I also noted the following snippet from the log where the call finally fails which I hope someone might also be able to identify where I may have something configured incorrectly:<br><br> [DEBUG] mod_sofia.c:143 sofia/external/0223334444 SOFIA ROUTING<br> [DEBUG] switch_ivr_originate.c:67 (sofia/external/0223334444) State Change CS_ROUTING -> CS_CONSUME_MEDIA<br> [DEBUG] switch_core_state_machine.c:643 (sofia/external/0223334444) State ROUTING going to sleep<br> [DEBUG] switch_core_state_machine.c:584 (sofia/external/0223334444) Running State Change CS_CONSUME_MEDIA (Cur 2 Tot 10)<br> [DEBUG] switch_core_state_machine.c:662 (sofia/external/0223334444) State CONSUME_MEDIA<br> [DEBUG] switch_core_state_machine.c:662 (sofia/external/0223334444) State CONSUME_MEDIA going to sleep<br> [DEBUG] sofia.c:7048 Channel sofia/external/0223334444 entering state [calling][0]<br> [DEBUG] sofia.c:7048 Channel sofia/external/0223334444 entering state [terminated][487]<br> [NOTICE] sofia.c:8237 Hangup sofia/external/0223334444 [CS_CONSUME_MEDIA] [ORIGINATOR_CANCEL]<br> [DEBUG] switch_core_state_machine.c:584 (sofia/external/0223334444) Running State Change CS_HANGUP (Cur 2 Tot 10)<br> [DEBUG] switch_core_state_machine.c:850 (sofia/external/0223334444) Callstate Change DOWN -> HANGUP<br> [DEBUG] switch_core_state_machine.c:852 (sofia/external/0223334444) State HANGUP<br> [DEBUG] mod_sofia.c:438 Channel sofia/external/0223334444 hanging up, cause: ORIGINATOR_CANCEL<br> [DEBUG] switch_core_state_machine.c:60 sofia/external/0223334444 Standard HANGUP, cause: ORIGINATOR_CANCEL<br> [DEBUG] switch_core_state_machine.c:852 (sofia/external/0223334444) State HANGUP going to sleep<br> [DEBUG] switch_core_state_machine.c:619 (sofia/external/0223334444) State Change CS_HANGUP -> CS_REPORTING<br> [DEBUG] switch_core_state_machine.c:584 (sofia/external/0223334444) Running State Change CS_REPORTING (Cur 2 Tot 10)<br> [DEBUG] switch_core_state_machine.c:938 (sofia/external/0223334444) State REPORTING<br> [DEBUG] switch_core_state_machine.c:174 sofia/external/0223334444 Standard REPORTING, cause: ORIGINATOR_CANCEL<br> [DEBUG] switch_core_state_machine.c:938 (sofia/external/0223334444) State REPORTING going to sleep<br> [DEBUG] switch_core_state_machine.c:610 (sofia/external/0223334444) State Change CS_REPORTING -> CS_DESTROY<br> [DEBUG] switch_core_session.c:1664 Session 10 (sofia/external/0223334444) Locked, Waiting on external entities<br> [DEBUG] switch_ivr_originate.c:3848 Originate Resulted in Error Cause: 487 [ORIGINATOR_CANCEL]<br> [INFO] mod_dptools.c:3418 Originate Failed. Cause: ORIGINATOR_CANCEL<br><br></div></div></div><div class="m_6490451429757784298HOEnZb"><div class="m_6490451429757784298h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jul 5, 2017 at 10:29 AM, Nate <span dir="ltr"><<a href="mailto:nathan.port@gmail.com" target="_blank">nathan.port@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div>Ah many thanks for that.<br>Right now I am just trying to isolate the issue that is preventing inbound/outbound calls.<br></div>I have another closed voip phone system here in the office that can reach my mobile phone with the string 022 333 4444.<br></div><br></div>But when I tried using the regex "^(022\d{7})$" without quotes for the outbound destination_number and now get a new error stating:<br></div>#487 Missed Call.<br><br></div>Now checking the logs to see if there is anything else I can find in there.<br></div><div class="m_6490451429757784298m_-8700464200023528217HOEnZb"><div class="m_6490451429757784298m_-8700464200023528217h5"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jul 3, 2017 at 11:44 PM, Vallimamod Abdullah <span dir="ltr"><<a href="mailto:vma@vallimamod.org" target="_blank">vma@vallimamod.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
IMHO, instead of trying to find a single complicated regex working in all cases, a more readable way is to use condition regex="any" to stack all your possible matching regexes and let freeswitch try them one by one:<br>
<br>
<condition regex="any"><br>
<regex field="destination_number" expression="^(\+6422\d{7})$"/><br>
<regex field="destination_number" expression="^(022\d{7})$"/><br>
<regex field="destination_number" expression="^(\d{7})$"/><br>
<action ...><br>
</condition><br>
<br>
Hope this helps.<br>
<br>
Best Regards,<br>
<span class="m_6490451429757784298m_-8700464200023528217m_7306839102020639982HOEnZb"><font color="#888888">--<br>
Vallimamod Abdullah<br>
SIP Solutions<br>
<a href="mailto:vma@sipsolutions.fr" target="_blank">vma@sipsolutions.fr</a><br>
.<br>
</font></span><div class="m_6490451429757784298m_-8700464200023528217m_7306839102020639982HOEnZb"><div class="m_6490451429757784298m_-8700464200023528217m_7306839102020639982h5"><br>
<br>
> On 3 Jul 2017, at 05:24, Nate <<a href="mailto:nathan.port@gmail.com" target="_blank">nathan.port@gmail.com</a>> wrote:<br>
><br>
> Hi Roy, many thanks for responding.<br>
><br>
> I am simply trying to finishing configuring the server to make/receive calls from the PSTN.<br>
><br>
> My reference to the regex is from trying to configure an outbound route.<br>
><br>
> Can anyone offer any advice on a regex that will work for me to reach any of the following phone numbers:<br>
><br>
> International: <a href="tel:%2B64%2022%20333%204444" value="+64223334444" target="_blank">+64 22 333 4444</a><br>
> non-local: 022 333 4444<br>
> local: 333 4444<br>
><br>
> From the number assigned to my account? +64 9 xxx yyyy<br>
><br>
> Many many thanks!<br>
><br>
> Nate.<br>
><br>
> On Sat, Jul 1, 2017 at 9:17 AM, <<a href="mailto:royj@yandex.ru" target="_blank">royj@yandex.ru</a>> wrote:<br>
> Not quite clear. What are you trying to achieve?<br>
><br>
> 30.06.2017, 11:11, "Nate" <<a href="mailto:nathan.port@gmail.com" target="_blank">nathan.port@gmail.com</a>>:<br>
>> Good day/evening everyone,<br>
>><br>
>> Apologies for not being able to figure this out on my own. I've been searching and trying for several days to get inbound/outbound working but have yet to see success.<br>
>><br>
>> At this stage I need help determining a proper regex expression for handling New Zealand phone numbers.<br>
>><br>
>> For instance, there are three different ways of expressing numbers here in NZ:<br>
>><br>
>> International: <a href="tel:%2B64%2022%20333%204444" value="+64223334444" target="_blank">+64 22 333 4444</a><br>
>> non-local: 022 333 4444<br>
>> local: 333 4444<br>
>><br>
>> A couple questions related to the SIP proxy:<br>
>><br>
>> If the SIP proxy is located in Hong Kong, but the phone number is a New Zealand number, does the location of the proxy have any impact on the number of characters in the string for inbound/outbound calls?<br>
>><br>
>> Again, apologies for the rudimentary nature of these questions, but having nearly exhausted all other options (docs, searches, IRC), I am now spending a large amount of time guessing and trial and error without any progress.<br>
>><br>
>> Many thanks for any feedback at all.<br>
>><br>
>> Nate<br>
>> ,<br>
>> _________________________________________________________________________<br>
>> Professional FreeSWITCH Consulting Services:<br>
>> <a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
>> <a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
>><br>
>> Official FreeSWITCH Sites<br>
>> <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
>> <a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
>> <a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
>><br>
>> FreeSWITCH-users mailing list<br>
>> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
>> <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
>><br>
><br>
> _________________________________________________________________________<br>
> Professional FreeSWITCH Consulting Services:<br>
> <a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
> <a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
><br>
> Official FreeSWITCH Sites<br>
> <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
> <a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
> <a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
><br>
> FreeSWITCH-users mailing list<br>
> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
> <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
><br>
> _________________________________________________________________________<br>
> Professional FreeSWITCH Consulting Services:<br>
> <a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
> <a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
><br>
> Official FreeSWITCH Sites<br>
> <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
> <a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
> <a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
><br>
> FreeSWITCH-users mailing list<br>
> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
> <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<br>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a></div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a></blockquote></div>