<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">200@192.168.1.13</a> receiving invite from <a href="http://192.168.1.92:6000">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">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">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">200@192.168.1.13</a> receiving invite from <a href="http://192.168.1.92:6000">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">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="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="HOEnZb"><div class="h5"><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_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_7306839102020639982HOEnZb"><div class="m_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>
>> ______________________________<wbr>______________________________<wbr>_____________<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<wbr>.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.o<wbr>rg</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.freeswi<wbr>tch.org</a><br>
>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/ma<wbr>ilman/listinfo/freeswitch-user<wbr>s</a><br>
>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.frees<wbr>witch.org/mailman/options/<wbr>freeswitch-users</a><br>
>> <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
>><br>
><br>
> ______________________________<wbr>______________________________<wbr>_____________<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<wbr>.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.o<wbr>rg</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.freeswi<wbr>tch.org</a><br>
> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/ma<wbr>ilman/listinfo/freeswitch-user<wbr>s</a><br>
> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.frees<wbr>witch.org/mailman/options/<wbr>freeswitch-users</a><br>
> <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
><br>
> ______________________________<wbr>______________________________<wbr>_____________<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<wbr>.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.o<wbr>rg</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.freeswi<wbr>tch.org</a><br>
> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/ma<wbr>ilman/listinfo/freeswitch-user<wbr>s</a><br>
> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.frees<wbr>witch.org/mailman/options/<wbr>freeswitch-users</a><br>
> <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<br>
<br>
______________________________<wbr>______________________________<wbr>_____________<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<wbr>.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.o<wbr>rg</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.freeswi<wbr>tch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/ma<wbr>ilman/listinfo/freeswitch-user<wbr>s</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.frees<wbr>witch.org/mailman/options/<wbr>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>