[Freeswitch-users] First Inbound DID

Aqs Younas aqsyounas at gmail.com
Sun Aug 7 11:53:35 MSD 2016


You should not be putting authentication off. Use external profile (5080)
and add your ip through acl. And calls will be hitting public context.
5060 for default context and 5080 for public context.

On Aug 7, 2016 12:49 PM, "Don Hawkins" <hawkins at hawkinsegroup.com> wrote:

> Brian,
>
> Thanks for the reply. I kind of get what your saying but I'm still a
> little on the loopy side on this. It looks like the call is trying to go
> into the "internal" profile. I took auth-calls off that profile and non of
> my SIP accounts worked, plus I assume that's not a good idea anyway.
>
> I do see the "Rejected by acl "domains". Falling back to Digest auth."
>
> It's my understanding that the DID's should be hitting the public context
> first. Does this look right? And what profile exactly should I be setting
> up to receive this DID's inbound calls, I think I've tried them all by now.
> lol
>
> 2016-08-07 07:41:48.910771 [NOTICE] switch_channel.c:1104 New Channel
> sofia/internal/+14693383688 at 162.217.100.10 [c37f310d-b32c-4254-9021-
> eeda53d5d837]
> 2016-08-07 07:41:48.910771 [DEBUG] switch_core_state_machine.c:543
> (sofia/internal/+14693383688 at 162.217.100.10) Running State Change CS_NEW
> 2016-08-07 07:41:48.910771 [DEBUG] sofia.c:9456 sofia/internal/+
> 14693383656 at 162.217.100.10 receiving invite from 162.217.100.10:5060
> version: 1.6.9 -16-d574870 64bit
> 2016-08-07 07:41:48.910771 [DEBUG] sofia.c:9623 IP 162.217.100.10 Rejected
> by acl "domains". Falling back to Digest auth.
> 2016-08-07 07:41:48.910771 [DEBUG] sofia.c:2248 detaching session
> c37f310d-b32c-4254-9021-eeda53d5d837
> 2016-08-07 07:41:48.910771 [DEBUG] switch_core_state_machine.c:562
> (sofia/internal/+14693383688 at 162.217.100.10) State NEW
>
>
> On Sat, Aug 6, 2016 at 9:40 PM, Brian West <brian at freeswitch.org> wrote:
>
>> The issue is 1. you have an ACK there, 2 you have auth-calls enabled on
>> the profile, and it snot hitting port 5080 but 5060 so its challenging you
>> with a 401 auth.  You can't answer it the call fails.
>>
>> /b
>>
>>
>> On Sat, Aug 6, 2016 at 6:12 PM, Don Hawkins <hawkins at hawkinsegroup.com>
>> wrote:
>>
>>> I feel like the directions on setting up a DID for inbound couldn't be
>>> clearer but yet I've been unable to get it working.
>>>
>>>
>>> * 1. SIP Invite:
>>>
>>>
>>>    -----------------------------------------------------------
>>> -------------
>>>    ACK sip:19722364002 at mymyserver.com SIP/2.0
>>>    Via: SIP/2.0/UDP 162.217.100.10;branch=z9hG4bK1
>>> bf3.34c008d0cd01ff7b9bec681d865ae587.0
>>>    Max-Forwards: 69
>>>    To: <sip:19722364002 at myserver.com>;tag=cZryjBv7B58aB
>>>    From:  <sip:+12144630000 at 162.217.100.10>;tag=as74def9f2
>>>    Call-ID: 0a7173f94045e4985f82b31525b0d93f at 192.170.152.170
>>>    CSeq: 102 ACK
>>>    Content-Length: 0
>>>
>>>    -----------------------------------------------------------
>>> -------------
>>>
>>>
>>> * 2. In public.xml AND in /public/inboundtest.xml
>>>
>>>
>>> <include>
>>> <extension name="public_did">
>>> <condition field="destination_number" expression="^(19722364002)$">
>>> <action application="set" data="domain_name=$${domain}"/>
>>> <action application="transfer" data="1000 XML default"/>
>>> </condition>
>>> </extension>
>>> </include>
>>>
>>> also tried...
>>>
>>> <condition field="${sip_to_user}" expression="^(19722364002)$">
>>>
>>>
>>>
>>> * 3. Either way when I call the DID:
>>>
>>> 2016-08-06 23:05:04.089527 [NOTICE] switch_channel.c:1104 New Channel
>>> sofia/internal/+14693380000 at 162.217.100.10
>>> [ca1b456f-e9fc-4c99-a72d-d594835feb10]
>>> 2016-08-06 23:05:04.089527 [DEBUG] switch_core_state_machine.c:543
>>> (sofia/internal/+14693380000 at 162.217.100.10) Running State Change CS_NEW
>>> 2016-08-06 23:05:04.089527 [DEBUG] sofia.c:9456 sofia/internal/+
>>> 14693380000 at 162.217.100.10 receiving invite from 162.217.100.10:5060
>>> version: 1.6.9 -16-d574870 64bit
>>> 2016-08-06 23:05:04.089527 [DEBUG] sofia.c:9623 IP 162.217.100.10
>>> Rejected by acl "domains". Falling back to Digest auth.
>>>
>>> NOTE: 4693380000 is the number I am calling from, not the DID number.
>>> The DID number is 9722364002.
>>>
>>>
>>> Any help is appreciated, thanks!
>>>
>>> ____________________________________________________________
>>> _____________
>>> Professional FreeSWITCH Consulting Services:
>>> consulting at freeswitch.org
>>> http://www.freeswitchsolutions.com
>>>
>>> Official FreeSWITCH Sites
>>> http://www.freeswitch.org
>>> http://confluence.freeswitch.org
>>> http://www.cluecon.com
>>>
>>> FreeSWITCH-users mailing list
>>> FreeSWITCH-users at lists.freeswitch.org
>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>>> http://www.freeswitch.org
>>>
>>
>>
>>
>> --
>>
>> *Brian West*
>> brian at freeswitch.org
>>
>>
>> *Twitter: @FreeSWITCH , @briankwest*
>> http://www.freeswitchbook.com
>> http://www.freeswitchcookbook.com
>> https://www.gofundme.com/freeswitch_ubuntu
>>
>> Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit:
>> /r/freeswitch <https://www.reddit.com/r/freeswitch>
>>
>> *T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378)
>> *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://confluence.freeswitch.org
>> http://www.cluecon.com
>>
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>>
>
>
>
> --
> Sincerely,
> Don Hawkins
> CEO
> Hawkins Enterprise Group LLC
> http://hawkinsegroup.com
> Zello PTT <http://zello.com>: push2don
> P: 469-214-5044
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20160807/40f588d1/attachment-0001.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list