DjangoPBX Beginners

Status
Not open for further replies.

simonjw

New Member
Feb 6, 2024
22
0
1
32
Thank you, I just checked that and it is quite a nice tool.

Inbound I just placed the number and here is my XML

XML:
<extension name="0800172793" continue="false" uuid="4500420d-841a-4960-ac30-93a2f93d776b">
  <condition field="destination_number" expression="^\0800172793$">
    <action application="export" data="call_direction=inbound" inline="true"/>
    <action application="set" data="domain_uuid=61365f16-6eb1-4e86-bf79-7ad27e6ed716" inline="true"/>
    <action application="set" data="domain_name=voice.unlayer.network" inline="true"/>
    <action application="set" data="hangup_after_bridge=true"/>
    <action application="set" data="continue_on_fail=true"/>
    <action application="transfer" data="201 XML voice.unlayer.network"/>
  </condition>
</extension>

Outbound I used this regex pattern: ^(\+27|27|0)[0-9]{2}( |-)?[0-9] and here is the XML created by the following the create outbound route

XML:
<extension name="0800172793 Outbound" continue="false" uuid="4aa3cd61-2453-4525-ba32-80cdb73d7d03">
  <condition field="${user_exists}" expression="false"/>
  <condition field="destination_number" expression="^(\+27|27|0)[0-9]{2}( |-)?[0-9]{3}( |-)?[0-9]{4}( |-)?(x[0-9]+)?(ext[0-9]+)?">
    <action application="export" data="call_direction=outbound" inline="true"/>
    <action application="unset" data="call_timeout"/>
    <action application="set" data="sip_h_X-accountcode=${accountcode}"/>
    <action application="set" data="hangup_after_bridge=true"/>
    <action application="set" data="effective_caller_id_name=${outbound_caller_id_name}"/>
    <action application="set" data="effective_caller_id_number=${outbound_caller_id_number}"/>
    <action application="set" data="inherit_codec=true"/>
    <action application="set" data="ignore_display_updates=true"/>
    <action application="set" data="callee_id_number=$1"/>
    <action application="set" data="continue_on_fail=true"/>
    <action application="sleep" data="${sleep}"/>
    <action application="bridge" data="sofia/gateway/6a976d35-e442-4010-a541-a7bc0c6eb7fa/$1"/>
  </condition>
</extension>

Honestly right now I am not worrying about leaking anything
 

Adrian Fretwell

Well-Known Member
Aug 13, 2017
1,498
413
83
Just looking at the outbound now...
Your outbound route regex will match various combinations of:
000-000-0000-x0ext0
099-888-7777
0998887777
2799-888-7777
+2799-888-7777

With $1 containing the whole match (outside capturing group) Is that the pattern you are looking for?
 

simonjw

New Member
Feb 6, 2024
22
0
1
32
So I removed the / and tested the inbound, but it still didn't work. I connected to the trunk with my microsip softphone and it works fine, so not sure if I am doing something wrong in terms of linking the inbound with the gateway correctly.

In terms of the outbound dialing, over here we just dial a 10-digit number like 0800172793 or 0310231023 and if we dial international we do the 0044 followed by the rest of the number without the zero. So as far as I am aware, it should have worked as the gateway is registering and I have put the codecs as OPUS, G729 etc
 

Adrian Fretwell

Well-Known Member
Aug 13, 2017
1,498
413
83
OK, well your regex will certainly match a 10 digit number, so we may need to debug this a little further.

At the command line will you type fs_cli This will get you into the FreeSWITCH CLI. (/quit) to get out.
Once in CLI type fsctl loglevel debug
Now make your call and you will see every step that FreeSWITCH does. From this you may quickly see what is wrong, but if not post the output here in a code window.

You will also find sngrep a useful tool for inspecting your SIP messages.

PS: Reverting back to fsctl loglevel err will stop you logs filling up too quickly.
 

NerdUno

New Member
Sep 4, 2018
17
9
3
78
@Adrian Fretwell: Your documentation is EXCELLENT. But it's designed to assist the skilled car mechanic who's been driving for years, not the person who wants to learn how to drive the new car. The missing piece is a section that, at a minimum, documents the steps to make your first successful call to an outside number and to receive a call from an outside number, i.e. unlock the car with your key, insert key in slot beside steering wheel, turn key clockwise until car starts, put car in Drive with gear shift lever between front seats, and press on accelerator (right foot pedal) while steering car away from ditch. To stop car, press left foot pedal. Place car in Park. Turn off ignition by turning key counter-clockwise.

We'd love to help once we have a working system. Would be happy to give you credentials to a cloud-based platform to get it working and to document what you did. Then we can take it from there.
 

simonjw

New Member
Feb 6, 2024
22
0
1
32
So I did that and the output is quite long. I see it sends the call to internal on Sofia at the domain name so it might be that, but that is trying to fly a plane when you have never even seen a cockpit before. I don't want to clog up this feed with unnecessary stuff even though it would help beginners. Should I paste it here or can we go onto Discord maybe or open a new thread?

I agree with @NerdUno and I certainly wouldn't mind assisting with the dummies guide once I have started to wrap my head around this. I wouldn't be against tying it in with Signalwire, Twilio, etc, and writing up about it. I am really thankful for the assistance when in fact you have no reason to assist like this. I would also like to become a sponsor to this journey at some point and if you would be pro it, I can do an overhaul of the django admin ui so it looks more modern and maybe attracts more people? Possibly a visual introduction that walks you through the website in terms of setting up exactly what I have been struggling with?
 

simonjw

New Member
Feb 6, 2024
22
0
1
32
I'm pasting the code anyway. It is like reading Chinese, but I am noticing that it seems to be hitting Porta, so my not-so-educated guess is that may be codec or

Code:
2024-02-08 15:36:38.339326 95.73% [NOTICE] switch_channel.c:1142 New Channel sofia/internal/201@voice.unlayer.network:5060 [fccfe33d-0f2e-44f8-b985-1f532b737da2]
2024-02-08 15:36:38.339326 95.73% [DEBUG] switch_core_state_machine.c:581 (sofia/internal/201@voice.unlayer.network:5060) Running State Change CS_NEW (Cur 1 Tot 72)
2024-02-08 15:36:38.339326 95.73% [INFO] sofia.c:10459 sofia/internal/201@voice.unlayer.network:5060 receiving invite from 196.44.64.10:12202 version: 1.10.11 -release-25-f24064f7c9 64bit call-id: 0_1475743002@192.168.88.245
2024-02-08 15:36:38.339326 95.73% [DEBUG] sofia.c:10553 verifying acl "domains" for ip/port 196.44.64.10:0.
2024-02-08 15:36:38.339326 95.73% [DEBUG] sofia.c:2419 detaching session fccfe33d-0f2e-44f8-b985-1f532b737da2
2024-02-08 15:36:38.339326 95.73% [WARNING] sofia_reg.c:1842 SIP auth challenge (INVITE) on sofia profile 'internal' for [0731550532@voice.unlayer.network] from ip 196.44.64.10
2024-02-08 15:36:38.339326 95.73% [DEBUG] switch_core_state_machine.c:600 (sofia/internal/201@voice.unlayer.network:5060) State NEW
2024-02-08 15:36:38.359320 95.73% [DEBUG] sofia.c:2532 Re-attaching to session fccfe33d-0f2e-44f8-b985-1f532b737da2
2024-02-08 15:36:38.379341 95.73% [INFO] sofia.c:10459 sofia/internal/201@voice.unlayer.network:5060 receiving invite from 196.44.64.10:12202 version: 1.10.11 -release-25-f24064f7c9 64bit call-id: 0_1475743002@192.168.88.245
2024-02-08 15:36:38.379341 95.73% [DEBUG] sofia.c:10553 verifying acl "domains" for ip/port 196.44.64.10:0.
2024-02-08 15:36:38.379341 95.73% [DEBUG] switch_xml.c:2100 Cache Info
Time Now:       1707406598379341
Expires:        1707405719339326
2024-02-08 15:36:38.379341 95.73% [DEBUG] switch_xml.c:2102 Cache expired for 201@voice.unlayer.network, doing fresh lookup
2024-02-08 15:36:38.399323 95.73% [DEBUG] switch_xml.c:2179 caching lookup for user 201@voice.unlayer.network for 60000 milliseconds
2024-02-08 15:36:38.399323 95.73% [DEBUG] sofia.c:7493 Channel sofia/internal/201@voice.unlayer.network:5060 entering state [received][100]
2024-02-08 15:36:38.399323 95.73% [DEBUG] sofia.c:7503 Remote SDP:
v=0
o=- 20002 20002 IN IP4 196.44.64.10
s=SDP data
c=IN IP4 196.44.64.10
t=0 0
m=audio 11876 RTP/AVP 107 9 0 8 18 101
a=rtpmap:107 opus/48000/2
a=rtpmap:9 G722/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=ptime:20

2024-02-08 15:36:38.399323 95.73% [DEBUG] switch_core_media.c:5526 Audio Codec Compare [opus:107:48000:20:0:2]/[G729:18:8000:20:8000:1]
2024-02-08 15:36:38.399323 95.73% [DEBUG] switch_core_media.c:5526 Audio Codec Compare [opus:107:48000:20:0:2]/[PCMA:8:8000:20:64000:1]
2024-02-08 15:36:38.399323 95.73% [DEBUG] switch_core_media.c:5526 Audio Codec Compare [G722:9:8000:20:64000:1]/[G729:18:8000:20:8000:1]
2024-02-08 15:36:38.399323 95.73% [DEBUG] switch_core_media.c:5526 Audio Codec Compare [G722:9:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
2024-02-08 15:36:38.399323 95.73% [DEBUG] switch_core_media.c:5526 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[G729:18:8000:20:8000:1]
2024-02-08 15:36:38.399323 95.73% [DEBUG] switch_core_media.c:5526 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
2024-02-08 15:36:38.399323 95.73% [DEBUG] switch_core_media.c:5526 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:20:8000:1]
2024-02-08 15:36:38.399323 95.73% [DEBUG] switch_core_media.c:5526 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
2024-02-08 15:36:38.399323 95.73% [DEBUG] switch_core_media.c:5588 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
2024-02-08 15:36:38.399323 95.73% [DEBUG] switch_core_media.c:5526 Audio Codec Compare [G729:18:8000:20:8000:1]/[G729:18:8000:20:8000:1]
2024-02-08 15:36:38.399323 95.73% [DEBUG] switch_core_media.c:5588 Audio Codec Compare [G729:18:8000:20:8000:1] ++++ is saved as a match
2024-02-08 15:36:38.399323 95.73% [DEBUG] switch_core_media.c:5526 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMA:8:8000:20:64000:1]
2024-02-08 15:36:38.399323 95.73% [DEBUG] switch_core_media.c:5438 Set telephone-event payload to 101@8000
2024-02-08 15:36:38.399323 95.73% [DEBUG] switch_core_media.c:3731 Set Codec sofia/internal/201@voice.unlayer.network:5060 PCMA/8000 20 ms 160 samples 64000 bits 1 channels
2024-02-08 15:36:38.399323 95.73% [DEBUG] switch_core_codec.c:111 sofia/internal/201@voice.unlayer.network:5060 Original read codec set to PCMA:8
2024-02-08 15:36:38.399323 95.73% [DEBUG] switch_core_media.c:5798 Set telephone-event payload to 101@8000
2024-02-08 15:36:38.399323 95.73% [DEBUG] switch_core_media.c:5856 sofia/internal/201@voice.unlayer.network:5060 Set 2833 dtmf send payload to 101 recv payload to 101
2024-02-08 15:36:38.399323 95.73% [DEBUG] sofia.c:7927 (sofia/internal/201@voice.unlayer.network:5060) State Change CS_NEW -> CS_INIT
2024-02-08 15:36:38.399323 95.73% [DEBUG] switch_core_state_machine.c:581 (sofia/internal/201@voice.unlayer.network:5060) Running State Change CS_INIT (Cur 1 Tot 72)
2024-02-08 15:36:38.399323 95.73% [DEBUG] switch_core_state_machine.c:624 (sofia/internal/201@voice.unlayer.network:5060) State INIT
2024-02-08 15:36:38.399323 95.73% [DEBUG] mod_sofia.c:97 sofia/internal/201@voice.unlayer.network:5060 SOFIA INIT
2024-02-08 15:36:38.399323 95.73% [DEBUG] switch_core_state_machine.c:40 sofia/internal/201@voice.unlayer.network:5060 Standard INIT
2024-02-08 15:36:38.399323 95.73% [DEBUG] switch_core_state_machine.c:48 (sofia/internal/201@voice.unlayer.network:5060) State Change CS_INIT -> CS_ROUTING
2024-02-08 15:36:38.399323 95.73% [DEBUG] switch_core_state_machine.c:624 (sofia/internal/201@voice.unlayer.network:5060) State INIT going to sleep
2024-02-08 15:36:38.399323 95.73% [DEBUG] switch_core_state_machine.c:581 (sofia/internal/201@voice.unlayer.network:5060) Running State Change CS_ROUTING (Cur 1 Tot 72)
2024-02-08 15:36:38.399323 95.73% [DEBUG] switch_channel.c:2399 (sofia/internal/201@voice.unlayer.network:5060) Callstate Change DOWN -> RINGING
2024-02-08 15:36:38.399323 95.73% [DEBUG] switch_core_state_machine.c:640 (sofia/internal/201@voice.unlayer.network:5060) State ROUTING
2024-02-08 15:36:38.399323 95.73% [DEBUG] mod_sofia.c:158 sofia/internal/201@voice.unlayer.network:5060 SOFIA ROUTING
2024-02-08 15:36:38.399323 95.73% [DEBUG] switch_core_state_machine.c:230 sofia/internal/201@voice.unlayer.network:5060 Standard ROUTING
2024-02-08 15:36:38.399323 95.73% [INFO] mod_dialplan_xml.c:639 Processing 201 <201>->0731550532 in context voice.unlayer.network
Dialplan: sofia/internal/201@voice.unlayer.network:5060 parsing [voice.unlayer.network->delivery-variables] continue=true
Dialplan: sofia/internal/201@voice.unlayer.network:5060 Regex (PASS) [delivery-variables] () =~ // break=on-false
Dialplan: sofia/internal/201@voice.unlayer.network:5060 Action export(pbx_httapi_url=http://127.0.0.1:8008)
Dialplan: sofia/internal/201@voice.unlayer.network:5060 parsing [voice.unlayer.network->user_exists] continue=true
Dialplan: sofia/internal/201@voice.unlayer.network:5060 Regex (FAIL) [user_exists] ${loopback_leg}() =~ /^B$/ break=never
Dialplan: sofia/internal/201@voice.unlayer.network:5060 Regex (PASS) [user_exists] () =~ // break=on-false
Dialplan: sofia/internal/201@voice.unlayer.network:5060 Action set(user_exists=${user_exists id ${destination_number} ${domain_name}}) INLINE
EXECUTE [depth=0] sofia/internal/201@voice.unlayer.network:5060 set(user_exists=false)
2024-02-08 15:36:38.439327 95.73% [DEBUG] mod_dptools.c:1671 SET sofia/internal/201@voice.unlayer.network:5060 [user_exists]=[false]
Dialplan: sofia/internal/201@voice.unlayer.network:5060 Action set(from_user_exists=${user_exists id ${sip_from_user} ${sip_from_host}}) INLINE
2024-02-08 15:36:38.439327 95.73% [DEBUG] switch_xml.c:2100 Cache Info
Time Now:       1707406598439327
Expires:        1707406658399323
EXECUTE [depth=0] sofia/internal/201@voice.unlayer.network:5060 set(from_user_exists=true)
2024-02-08 15:36:38.439327 95.73% [DEBUG] mod_dptools.c:1671 SET sofia/internal/201@voice.unlayer.network:5060 [from_user_exists]=[true]
Dialplan: sofia/internal/201@voice.unlayer.network:5060 Regex (FAIL) [user_exists] ${user_exists}(false) =~ /^true$/ break=on-false
Dialplan: sofia/internal/201@voice.unlayer.network:5060 parsing [voice.unlayer.network->caller-details] continue=true
Dialplan: sofia/internal/201@voice.unlayer.network:5060 Regex (PASS) [caller-details] ${caller_destination}() =~ /^$/ break=never
Dialplan: sofia/internal/201@voice.unlayer.network:5060 Action set(caller_destination=${destination_number}) INLINE
EXECUTE [depth=0] sofia/internal/201@voice.unlayer.network:5060 set(caller_destination=0731550532)
2024-02-08 15:36:38.439327 95.73% [DEBUG] mod_dptools.c:1671 SET sofia/internal/201@voice.unlayer.network:5060 [caller_destination]=[0731550532]
Dialplan: sofia/internal/201@voice.unlayer.network:5060 Action set(caller_id_name=${caller_id_name}) INLINE
EXECUTE [depth=0] sofia/internal/201@voice.unlayer.network:5060 set(caller_id_name=201)
2024-02-08 15:36:38.439327 95.73% [DEBUG] mod_dptools.c:1671 SET sofia/internal/201@voice.unlayer.network:5060 [caller_id_name]=[201]
Dialplan: sofia/internal/201@voice.unlayer.network:5060 Action set(caller_id_number=${caller_id_number})
Dialplan: sofia/internal/201@voice.unlayer.network:5060 parsing [voice.unlayer.network->domain-variables] continue=true
Dialplan: sofia/internal/201@voice.unlayer.network:5060 Regex (PASS) [domain-variables] () =~ // break=on-false
Dialplan: sofia/internal/201@voice.unlayer.network:5060 Action export(origination_callee_id_name=${destination_number})
Dialplan: sofia/internal/201@voice.unlayer.network:5060 parsing [voice.unlayer.network->call-direction] continue=true
Dialplan: sofia/internal/201@voice.unlayer.network:5060 Regex (FAIL) [call-direction] ${call_direction}() =~ /^(inbound|outbound|local)$/ break=never
Dialplan: sofia/internal/201@voice.unlayer.network:5060 ANTI-Action export(call_direction=local) INLINE
EXECUTE [depth=0] sofia/internal/201@voice.unlayer.network:5060 export(call_direction=local)
2024-02-08 15:36:38.439327 95.73% [DEBUG] switch_channel.c:1334 EXPORT (export_vars) [call_direction]=[local]
Dialplan: sofia/internal/201@voice.unlayer.network:5060 parsing [voice.unlayer.network->global-variables] continue=true
Dialplan: sofia/internal/201@voice.unlayer.network:5060 Regex (PASS) [global-variables] () =~ // break=on-false
Dialplan: sofia/internal/201@voice.unlayer.network:5060 Action set(RFC2822_DATE=${strftime(%a, %d %b %Y %T %z)})
Dialplan: sofia/internal/201@voice.unlayer.network:5060 parsing [voice.unlayer.network->is_loopback] continue=true
Dialplan: sofia/internal/201@voice.unlayer.network:5060 Regex (FAIL) [is_loopback] ${is_follow_me_loopback}() =~ /true/ break=on-false
Dialplan: sofia/internal/201@voice.unlayer.network:5060 parsing [voice.unlayer.network->user_record] continue=true
Dialplan: sofia/internal/201@voice.unlayer.network:5060 Regex (FAIL) [user_record] ${user_exists}(false) =~ /^true$/ break=never
Dialplan: sofia/internal/201@voice.unlayer.network:5060 Regex (FAIL) [user_record] ${user_record}() =~ /^all$/ break=never
Dialplan: sofia/internal/201@voice.unlayer.network:5060 Regex (FAIL) [user_record] ${user_exists}(false) =~ /^true$/ break=never
Dialplan: sofia/internal/201@voice.unlayer.network:5060 Regex (FAIL) [user_record] ${call_direction}(local) =~ /^inbound$/ break=never
Dialplan: sofia/internal/201@voice.unlayer.network:5060 Regex (FAIL) [user_record] ${user_record}() =~ /^inbound$/ break=never
Dialplan: sofia/internal/201@voice.unlayer.network:5060 Regex (FAIL) [user_record] ${user_exists}(false) =~ /^true$/ break=never
Dialplan: sofia/internal/201@voice.unlayer.network:5060 Regex (FAIL) [user_record] ${call_direction}(local) =~ /^outbound$/ break=never
Dialplan: sofia/internal/201@voice.unlayer.network:5060 Regex (FAIL) [user_record] ${user_record}() =~ /^outbound$/ break=never
Dialplan: sofia/internal/201@voice.unlayer.network:5060 Regex (FAIL) [user_record] ${user_exists}(false) =~ /^true$/ break=never
Dialplan: sofia/internal/201@voice.unlayer.network:5060 Regex (PASS) [user_record] ${call_direction}(local) =~ /^local$/ break=never
Dialplan: sofia/internal/201@voice.unlayer.network:5060 Regex (FAIL) [user_record] ${user_record}() =~ /^local$/ break=never
Dialplan: sofia/internal/201@voice.unlayer.network:5060 Regex (PASS) [user_record] ${from_user_exists}(true) =~ /^true$/ break=never
Dialplan: sofia/internal/201@voice.unlayer.network:5060 Action set(from_user_record=${user_data ${sip_from_user}@${sip_from_host} var user_record}) INLINE
2024-02-08 15:36:38.439327 95.73% [DEBUG] switch_xml.c:2100 Cache Info
Time Now:       1707406598439327
Expires:        1707406658399323
EXECUTE [depth=0] sofia/internal/201@voice.unlayer.network:5060 set(from_user_record=)
2024-02-08 15:36:38.439327 95.73% [DEBUG] mod_dptools.c:1671 SET sofia/internal/201@voice.unlayer.network:5060 [from_user_record]=[UNDEF]
Dialplan: sofia/internal/201@voice.unlayer.network:5060 Regex (PASS) [user_record] ${from_user_exists}(true) =~ /^true$/ break=never
Dialplan: sofia/internal/201@voice.unlayer.network:5060 Regex (FAIL) [user_record] ${from_user_record}() =~ /^all$/ break=never
Dialplan: sofia/internal/201@voice.unlayer.network:5060 Regex (PASS) [user_record] ${from_user_exists}(true) =~ /^true$/ break=never
Dialplan: sofia/internal/201@voice.unlayer.network:5060 Regex (FAIL) [user_record] ${call_direction}(local) =~ /^inbound$/ break=never
Dialplan: sofia/internal/201@voice.unlayer.network:5060 Regex (FAIL) [user_record] ${from_user_record}() =~ /^inbound$/ break=never
Dialplan: sofia/internal/201@voice.unlayer.network:5060 Regex (PASS) [user_record] ${from_user_exists}(true) =~ /^true$/ break=never
Dialplan: sofia/internal/201@voice.unlayer.network:5060 Regex (FAIL) [user_record] ${call_direction}(local) =~ /^outbound$/ break=never
Dialplan: sofia/internal/201@voice.unlayer.network:5060 Regex (FAIL) [user_record] ${from_user_record}() =~ /^outbound$/ break=never
Dialplan: sofia/internal/201@voice.unlayer.network:5060 Regex (PASS) [user_record] ${from_user_exists}(true) =~ /^true$/ break=never
Dialplan: sofia/internal/201@voice.unlayer.network:5060 Regex (PASS) [user_record] ${call_direction}(local) =~ /^local$/ break=never
Dialplan: sofia/internal/201@voice.unlayer.network:5060 Regex (FAIL) [user_record] ${from_user_record}() =~ /^local$/ break=never
Dialplan: sofia/internal/201@voice.unlayer.network:5060 Regex (FAIL) [user_record] ${record_session}() =~ /^true$/ break=on-false
Dialplan: sofia/internal/201@voice.unlayer.network:5060 parsing [voice.unlayer.network->redial] continue=true
Dialplan: sofia/internal/201@voice.unlayer.network:5060 Regex (FAIL) [redial] destination_number(0731550532) =~ /^(redial|\*870)$/ break=on-true
Dialplan: sofia/internal/201@voice.unlayer.network:5060 Regex (PASS) [redial] () =~ // break=never
Dialplan: sofia/internal/201@voice.unlayer.network:5060 Action hash(insert/${domain_name}-last_dial/${caller_id_number}/${destination_number})
Dialplan: sofia/internal/201@voice.unlayer.network:5060 parsing [voice.unlayer.network->speed_dial] continue=false
Dialplan: sofia/internal/201@voice.unlayer.network:5060 Regex (FAIL) [speed_dial] destination_number(0731550532) =~ /^\*0(.*)$/ break=on-false
Dialplan: sofia/internal/201@voice.unlayer.network:5060 parsing [voice.unlayer.network->default_caller_id] continue=true
Dialplan: sofia/internal/201@voice.unlayer.network:5060 Regex (PASS) [default_caller_id] ${emergency_caller_id_number}() =~ /^$/ break=never
Dialplan: sofia/internal/201@voice.unlayer.network:5060 Action set(emergency_caller_id_name=${default_emergency_caller_id_name}) INLINE
EXECUTE [depth=0] sofia/internal/201@voice.unlayer.network:5060 set(emergency_caller_id_name=)
2024-02-08 15:36:38.439327 95.73% [DEBUG] mod_dptools.c:1671 SET sofia/internal/201@voice.unlayer.network:5060 [emergency_caller_id_name]=[UNDEF]
Dialplan: sofia/internal/201@voice.unlayer.network:5060 Action set(emergency_caller_id_number=${default_emergency_caller_id_number}) INLINE
EXECUTE [depth=0] sofia/internal/201@voice.unlayer.network:5060 set(emergency_caller_id_number=)
2024-02-08 15:36:38.439327 95.73% [DEBUG] mod_dptools.c:1671 SET sofia/internal/201@voice.unlayer.network:5060 [emergency_caller_id_number]=[UNDEF]
Dialplan: sofia/internal/201@voice.unlayer.network:5060 Regex (PASS) [default_caller_id] ${outbound_caller_id_number}() =~ /^$/ break=never
Dialplan: sofia/internal/201@voice.unlayer.network:5060 Action set(outbound_caller_id_name=${default_outbound_caller_id_name}) INLINE
EXECUTE [depth=0] sofia/internal/201@voice.unlayer.network:5060 set(outbound_caller_id_name=)
2024-02-08 15:36:38.439327 95.73% [DEBUG] mod_dptools.c:1671 SET sofia/internal/201@voice.unlayer.network:5060 [outbound_caller_id_name]=[UNDEF]
Dialplan: sofia/internal/201@voice.unlayer.network:5060 Action set(outbound_caller_id_number=${default_outbound_caller_id_number}) INLINE
EXECUTE [depth=0] sofia/internal/201@voice.unlayer.network:5060 set(outbound_caller_id_number=)
2024-02-08 15:36:38.439327 95.73% [DEBUG] mod_dptools.c:1671 SET sofia/internal/201@voice.unlayer.network:5060 [outbound_caller_id_number]=[UNDEF]
Dialplan: sofia/internal/201@voice.unlayer.network:5060 parsing [voice.unlayer.network->0800172793 Outbound] continue=false
Dialplan: sofia/internal/201@voice.unlayer.network:5060 Regex (PASS) [0800172793 Outbound] ${user_exists}(false) =~ /false/ break=on-false
Dialplan: sofia/internal/201@voice.unlayer.network:5060 Regex (PASS) [0800172793 Outbound] destination_number(0731550532) =~ /^(\+27|27|0)[0-9]{2}( |-)?[0-9]{3}( |-)?[0-9]{4}( |-)?(x[0-9]+)?(ext[0-9]+)?/ break=on-false
Dialplan: sofia/internal/201@voice.unlayer.network:5060 Action export(call_direction=outbound) INLINE
EXECUTE [depth=0] sofia/internal/201@voice.unlayer.network:5060 export(call_direction=outbound)
2024-02-08 15:36:38.439327 95.73% [DEBUG] switch_channel.c:1334 EXPORT (export_vars) [call_direction]=[outbound]
Dialplan: sofia/internal/201@voice.unlayer.network:5060 Action unset(call_timeout)
Dialplan: sofia/internal/201@voice.unlayer.network:5060 Action set(sip_h_X-accountcode=${accountcode})
Dialplan: sofia/internal/201@voice.unlayer.network:5060 Action set(hangup_after_bridge=true)
Dialplan: sofia/internal/201@voice.unlayer.network:5060 Action set(effective_caller_id_name=${outbound_caller_id_name})
Dialplan: sofia/internal/201@voice.unlayer.network:5060 Action set(effective_caller_id_number=${outbound_caller_id_number})
Dialplan: sofia/internal/201@voice.unlayer.network:5060 Action set(inherit_codec=true)
Dialplan: sofia/internal/201@voice.unlayer.network:5060 Action set(ignore_display_updates=true)
Dialplan: sofia/internal/201@voice.unlayer.network:5060 Action set(callee_id_number=0)
Dialplan: sofia/internal/201@voice.unlayer.network:5060 Action set(continue_on_fail=true)
Dialplan: sofia/internal/201@voice.unlayer.network:5060 Action sleep(${sleep})
Dialplan: sofia/internal/201@voice.unlayer.network:5060 Action bridge(sofia/gateway/6a976d35-e442-4010-a541-a7bc0c6eb7fa/0)
2024-02-08 15:36:38.439327 95.73% [DEBUG] switch_core_state_machine.c:281 (sofia/internal/201@voice.unlayer.network:5060) State Change CS_ROUTING -> CS_EXECUTE
2024-02-08 15:36:38.439327 95.73% [DEBUG] switch_core_state_machine.c:640 (sofia/internal/201@voice.unlayer.network:5060) State ROUTING going to sleep
2024-02-08 15:36:38.439327 95.73% [DEBUG] switch_core_state_machine.c:581 (sofia/internal/201@voice.unlayer.network:5060) Running State Change CS_EXECUTE (Cur 1 Tot 72)
2024-02-08 15:36:38.439327 95.73% [DEBUG] switch_core_state_machine.c:647 (sofia/internal/201@voice.unlayer.network:5060) State EXECUTE
2024-02-08 15:36:38.439327 95.73% [DEBUG] mod_sofia.c:213 sofia/internal/201@voice.unlayer.network:5060 SOFIA EXECUTE
2024-02-08 15:36:38.439327 95.73% [DEBUG] switch_core_state_machine.c:323 sofia/internal/201@voice.unlayer.network:5060 Standard EXECUTE
EXECUTE [depth=0] sofia/internal/201@voice.unlayer.network:5060 export(pbx_httapi_url=http://127.0.0.1:8008)
2024-02-08 15:36:38.439327 95.73% [DEBUG] switch_channel.c:1334 EXPORT (export_vars) [pbx_httapi_url]=[http://127.0.0.1:8008]
EXECUTE [depth=0] sofia/internal/201@voice.unlayer.network:5060 set(caller_id_number=201)
2024-02-08 15:36:38.439327 95.73% [DEBUG] mod_dptools.c:1671 SET sofia/internal/201@voice.unlayer.network:5060 [caller_id_number]=[201]
EXECUTE [depth=0] sofia/internal/201@voice.unlayer.network:5060 export(origination_callee_id_name=0731550532)
2024-02-08 15:36:38.439327 95.73% [DEBUG] switch_channel.c:1334 EXPORT (export_vars) [origination_callee_id_name]=[0731550532]
EXECUTE [depth=0] sofia/internal/201@voice.unlayer.network:5060 set(RFC2822_DATE=Thu, 08 Feb 2024 15:36:38 +0000)
2024-02-08 15:36:38.439327 95.73% [DEBUG] mod_dptools.c:1671 SET sofia/internal/201@voice.unlayer.network:5060 [RFC2822_DATE]=[Thu, 08 Feb 2024 15:36:38 +0000]
EXECUTE [depth=0] sofia/internal/201@voice.unlayer.network:5060 hash(insert/voice.unlayer.network-last_dial/201/0731550532)
EXECUTE [depth=0] sofia/internal/201@voice.unlayer.network:5060 unset(call_timeout)
2024-02-08 15:36:38.439327 95.73% [DEBUG] mod_dptools.c:1816 UNSET [call_timeout]
EXECUTE [depth=0] sofia/internal/201@voice.unlayer.network:5060 set(sip_h_X-accountcode=)
2024-02-08 15:36:38.439327 95.73% [DEBUG] mod_dptools.c:1671 SET sofia/internal/201@voice.unlayer.network:5060 [sip_h_X-accountcode]=[UNDEF]
EXECUTE [depth=0] sofia/internal/201@voice.unlayer.network:5060 set(hangup_after_bridge=true)
2024-02-08 15:36:38.439327 95.73% [DEBUG] mod_dptools.c:1671 SET sofia/internal/201@voice.unlayer.network:5060 [hangup_after_bridge]=[true]
EXECUTE [depth=0] sofia/internal/201@voice.unlayer.network:5060 set(effective_caller_id_name=)
2024-02-08 15:36:38.439327 95.73% [DEBUG] mod_dptools.c:1671 SET sofia/internal/201@voice.unlayer.network:5060 [effective_caller_id_name]=[UNDEF]
EXECUTE [depth=0] sofia/internal/201@voice.unlayer.network:5060 set(effective_caller_id_number=)
2024-02-08 15:36:38.439327 95.73% [DEBUG] mod_dptools.c:1671 SET sofia/internal/201@voice.unlayer.network:5060 [effective_caller_id_number]=[UNDEF]
EXECUTE [depth=0] sofia/internal/201@voice.unlayer.network:5060 set(inherit_codec=true)
2024-02-08 15:36:38.439327 95.73% [DEBUG] mod_dptools.c:1671 SET sofia/internal/201@voice.unlayer.network:5060 [inherit_codec]=[true]
EXECUTE [depth=0] sofia/internal/201@voice.unlayer.network:5060 set(ignore_display_updates=true)
2024-02-08 15:36:38.439327 95.73% [DEBUG] mod_dptools.c:1671 SET sofia/internal/201@voice.unlayer.network:5060 [ignore_display_updates]=[true]
EXECUTE [depth=0] sofia/internal/201@voice.unlayer.network:5060 set(callee_id_number=0)
2024-02-08 15:36:38.439327 95.73% [DEBUG] mod_dptools.c:1671 SET sofia/internal/201@voice.unlayer.network:5060 [callee_id_number]=[0]
EXECUTE [depth=0] sofia/internal/201@voice.unlayer.network:5060 set(continue_on_fail=true)
2024-02-08 15:36:38.439327 95.73% [DEBUG] mod_dptools.c:1671 SET sofia/internal/201@voice.unlayer.network:5060 [continue_on_fail]=[true]
EXECUTE [depth=0] sofia/internal/201@voice.unlayer.network:5060 sleep(0)
EXECUTE [depth=0] sofia/internal/201@voice.unlayer.network:5060 bridge(sofia/gateway/6a976d35-e442-4010-a541-a7bc0c6eb7fa/0)
2024-02-08 15:36:38.439327 95.73% [DEBUG] switch_channel.c:1288 sofia/internal/201@voice.unlayer.network:5060 EXPORTING[export_vars] [domain_name]=[voice.unlayer.network] to event
2024-02-08 15:36:38.439327 95.73% [DEBUG] switch_channel.c:1288 sofia/internal/201@voice.unlayer.network:5060 EXPORTING[export_vars] [call_direction]=[outbound] to event
2024-02-08 15:36:38.439327 95.73% [DEBUG] switch_channel.c:1288 sofia/internal/201@voice.unlayer.network:5060 EXPORTING[export_vars] [call_direction]=[outbound] to event
2024-02-08 15:36:38.439327 95.73% [DEBUG] switch_channel.c:1288 sofia/internal/201@voice.unlayer.network:5060 EXPORTING[export_vars] [pbx_httapi_url]=[http://127.0.0.1:8008] to event
2024-02-08 15:36:38.439327 95.73% [DEBUG] switch_channel.c:1288 sofia/internal/201@voice.unlayer.network:5060 EXPORTING[export_vars] [origination_callee_id_name]=[0731550532] to event
2024-02-08 15:36:38.439327 95.73% [DEBUG] switch_ivr_originate.c:2301 Parsing global variables
2024-02-08 15:36:38.439327 95.73% [NOTICE] switch_channel.c:1142 New Channel sofia/external/0 [e53f87f0-695e-4cb8-85e8-59dd462e7459]
2024-02-08 15:36:38.439327 95.73% [DEBUG] mod_sofia.c:5110 (sofia/external/0) State Change CS_NEW -> CS_INIT
2024-02-08 15:36:38.459316 95.73% [DEBUG] switch_core_state_machine.c:581 (sofia/external/0) Running State Change CS_INIT (Cur 2 Tot 73)
2024-02-08 15:36:38.459316 95.73% [DEBUG] switch_core_state_machine.c:624 (sofia/external/0) State INIT
2024-02-08 15:36:38.459316 95.73% [DEBUG] mod_sofia.c:97 sofia/external/0 SOFIA INIT
2024-02-08 15:36:38.459316 95.73% [INFO] sofia_glue.c:1659 sofia/external/0 sending invite call-id: (null)
2024-02-08 15:36:38.459316 95.73% [DEBUG] sofia_glue.c:1662 sofia/external/0 sending invite version: 1.10.11 -release-25-f24064f7c9 64bit
Local SDP:
v=0
o=DCM 1707374472 1707374473 IN IP4 139.84.234.60
s=DCM
c=IN IP4 139.84.234.60
t=0 0
m=audio 32126 RTP/AVP 8 18 101 13
a=rtpmap:8 PCMA/8000
a=rtpmap:18 G729/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=rtpmap:13 CN/8000
a=ptime:20
a=sendrecv

2024-02-08 15:36:38.459316 95.73% [DEBUG] switch_core_state_machine.c:40 sofia/external/0 Standard INIT
2024-02-08 15:36:38.459316 95.73% [DEBUG] switch_core_state_machine.c:48 (sofia/external/0) State Change CS_INIT -> CS_ROUTING
2024-02-08 15:36:38.459316 95.73% [DEBUG] switch_core_state_machine.c:624 (sofia/external/0) State INIT going to sleep
2024-02-08 15:36:38.459316 95.73% [DEBUG] switch_core_state_machine.c:581 (sofia/external/0) Running State Change CS_ROUTING (Cur 2 Tot 73)
2024-02-08 15:36:38.459316 95.73% [DEBUG] sofia.c:7493 Channel sofia/external/0 entering state [calling][0]
2024-02-08 15:36:38.459316 95.73% [DEBUG] switch_core_state_machine.c:640 (sofia/external/0) State ROUTING
2024-02-08 15:36:38.459316 95.73% [DEBUG] mod_sofia.c:158 sofia/external/0 SOFIA ROUTING
2024-02-08 15:36:38.459316 95.73% [DEBUG] switch_ivr_originate.c:67 (sofia/external/0) State Change CS_ROUTING -> CS_CONSUME_MEDIA
2024-02-08 15:36:38.459316 95.73% [DEBUG] switch_core_state_machine.c:640 (sofia/external/0) State ROUTING going to sleep
2024-02-08 15:36:38.459316 95.73% [DEBUG] switch_core_state_machine.c:581 (sofia/external/0) Running State Change CS_CONSUME_MEDIA (Cur 2 Tot 73)
2024-02-08 15:36:38.459316 95.73% [DEBUG] switch_core_state_machine.c:659 (sofia/external/0) State CONSUME_MEDIA
2024-02-08 15:36:38.459316 95.73% [DEBUG] switch_core_state_machine.c:659 (sofia/external/0) State CONSUME_MEDIA going to sleep
2024-02-08 15:36:38.459316 95.73% [DEBUG] sofia.c:7493 Channel sofia/external/0 entering state [calling][0]
2024-02-08 15:36:38.559326 95.73% [DEBUG] sofia.c:7493 Channel sofia/external/0 entering state [proceeding][183]
2024-02-08 15:36:38.559326 95.73% [DEBUG] sofia.c:7503 Remote SDP:
v=0
o=PortaSIP 3121657496094174825 1 IN IP4 102.64.18.7
s=DCM
t=0 0
m=audio 57868 RTP/AVP 8 18 101
c=IN IP4 102.64.18.7
a=rtpmap:8 PCMA/8000
a=rtpmap:18 G729/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=ptime:20

2024-02-08 15:36:38.559326 95.73% [NOTICE] sofia.c:7506 Pre-Answer sofia/external/0!
2024-02-08 15:36:38.559326 95.73% [DEBUG] switch_channel.c:3585 (sofia/external/0) Callstate Change DOWN -> EARLY
2024-02-08 15:36:38.559326 95.73% [DEBUG] switch_core_media.c:5526 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
2024-02-08 15:36:38.559326 95.73% [DEBUG] switch_core_media.c:5588 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
2024-02-08 15:36:38.559326 95.73% [DEBUG] switch_core_media.c:5526 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:20:8000:1]
2024-02-08 15:36:38.559326 95.73% [DEBUG] switch_core_media.c:5526 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMA:8:8000:20:64000:1]
2024-02-08 15:36:38.559326 95.73% [DEBUG] switch_core_media.c:5526 Audio Codec Compare [G729:18:8000:20:8000:1]/[G729:18:8000:20:8000:1]
2024-02-08 15:36:38.559326 95.73% [DEBUG] switch_core_media.c:5588 Audio Codec Compare [G729:18:8000:20:8000:1] ++++ is saved as a match
2024-02-08 15:36:38.559326 95.73% [DEBUG] switch_core_media.c:5438 Set telephone-event payload to 101@8000
2024-02-08 15:36:38.559326 95.73% [DEBUG] switch_core_media.c:3731 Set Codec sofia/external/0 PCMA/8000 20 ms 160 samples 64000 bits 1 channels
2024-02-08 15:36:38.559326 95.73% [DEBUG] switch_core_codec.c:111 sofia/external/0 Original read codec set to PCMA:8
2024-02-08 15:36:38.559326 95.73% [DEBUG] switch_core_media.c:5798 Set telephone-event payload to 101@8000
2024-02-08 15:36:38.559326 95.73% [DEBUG] switch_core_media.c:5856 sofia/external/0 Set 2833 dtmf send payload to 101 recv payload to 101
2024-02-08 15:36:38.559326 95.73% [DEBUG] switch_core_media.c:8660 AUDIO RTP [sofia/external/0] 139.84.234.60 port 32126 -> 102.64.18.7 port 57868 codec: 8 ms: 20
2024-02-08 15:36:38.559326 95.73% [DEBUG] switch_rtp.c:4563 Starting timer [soft] 160 bytes per 20ms
2024-02-08 15:36:38.559326 95.73% [DEBUG] switch_core_media.c:8973 sofia/external/0 Set 2833 dtmf send payload to 101
2024-02-08 15:36:38.559326 95.73% [DEBUG] switch_core_media.c:8980 sofia/external/0 Set 2833 dtmf receive payload to 101
2024-02-08 15:36:38.559326 95.73% [DEBUG] switch_core_media.c:9003 sofia/external/0 Set rtp dtmf delay to 40
2024-02-08 15:36:38.579320 95.73% [DEBUG] switch_ivr_originate.c:455 Setting codec string on sofia/internal/201@voice.unlayer.network:5060 to PCMA@8000h@20i
2024-02-08 15:36:38.579320 95.73% [INFO] switch_ivr_originate.c:3862 Sending early media
2024-02-08 15:36:38.579320 95.73% [DEBUG] switch_core_media.c:8660 AUDIO RTP [sofia/internal/201@voice.unlayer.network:5060] 139.84.234.60 port 19854 -> 196.44.64.10 port 11876 codec: 8 ms: 20
2024-02-08 15:36:38.579320 95.73% [DEBUG] switch_rtp.c:4563 Starting timer [soft] 160 bytes per 20ms
2024-02-08 15:36:38.579320 95.73% [DEBUG] switch_core_media.c:8973 sofia/internal/201@voice.unlayer.network:5060 Set 2833 dtmf send payload to 101
2024-02-08 15:36:38.579320 95.73% [DEBUG] switch_core_media.c:8980 sofia/internal/201@voice.unlayer.network:5060 Set 2833 dtmf receive payload to 101
2024-02-08 15:36:38.579320 95.73% [DEBUG] switch_core_media.c:9003 sofia/internal/201@voice.unlayer.network:5060 Set rtp dtmf delay to 40
2024-02-08 15:36:38.579320 95.73% [DEBUG] mod_sofia.c:2607 Ring SDP:
v=0
o=DCM 1707386744 1707386745 IN IP4 139.84.234.60
s=DCM
c=IN IP4 139.84.234.60
t=0 0
m=audio 19854 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=ptime:20
a=sendrecv

2024-02-08 15:36:38.579320 95.73% [NOTICE] mod_sofia.c:2610 Pre-Answer sofia/internal/201@voice.unlayer.network:5060!
2024-02-08 15:36:38.579320 95.73% [DEBUG] switch_channel.c:3585 (sofia/internal/201@voice.unlayer.network:5060) Callstate Change RINGING -> EARLY
2024-02-08 15:36:38.579320 95.73% [DEBUG] sofia.c:7493 Channel sofia/internal/201@voice.unlayer.network:5060 entering state [early][183]
2024-02-08 15:36:38.579320 95.73% [DEBUG] switch_ivr_originate.c:3913 Originate Resulted in Success: [sofia/external/0] Peer UUID: e53f87f0-695e-4cb8-85e8-59dd462e7459
2024-02-08 15:36:38.579320 95.73% [DEBUG] switch_ivr_bridge.c:1791 (sofia/external/0) State Change CS_CONSUME_MEDIA -> CS_EXCHANGE_MEDIA
2024-02-08 15:36:38.579320 95.73% [DEBUG] switch_core_state_machine.c:581 (sofia/external/0) Running State Change CS_EXCHANGE_MEDIA (Cur 2 Tot 73)
2024-02-08 15:36:38.579320 95.73% [DEBUG] switch_core_state_machine.c:650 (sofia/external/0) State EXCHANGE_MEDIA
2024-02-08 15:36:38.579320 95.73% [DEBUG] mod_sofia.c:672 SOFIA EXCHANGE_MEDIA
2024-02-08 15:36:38.619325 95.37% [DEBUG] switch_rtp.c:7695 Correct audio ip/port confirmed.
2024-02-08 15:36:38.759328 95.37% [DEBUG] switch_rtp.c:7695 Correct audio ip/port confirmed.
2024-02-08 15:36:42.819324 95.23% [DEBUG] sofia.c:7493 Channel sofia/internal/201@voice.unlayer.network:5060 entering state [terminated][487]
2024-02-08 15:36:42.819324 95.23% [NOTICE] sofia.c:8735 Hangup sofia/internal/201@voice.unlayer.network:5060 [CS_EXECUTE] [ORIGINATOR_CANCEL]
2024-02-08 15:36:42.819324 95.23% [DEBUG] switch_ivr_bridge.c:825 sofia/internal/201@voice.unlayer.network:5060 ending bridge by request from read function
2024-02-08 15:36:42.819324 95.23% [DEBUG] switch_ivr_bridge.c:911 BRIDGE THREAD DONE [sofia/internal/201@voice.unlayer.network:5060]
2024-02-08 15:36:42.819324 95.23% [DEBUG] switch_ivr_bridge.c:819 sofia/internal/201@voice.unlayer.network:5060 ending bridge by request from write function
2024-02-08 15:36:42.819324 95.23% [DEBUG] switch_ivr_bridge.c:911 BRIDGE THREAD DONE [sofia/external/0]
2024-02-08 15:36:42.819324 95.23% [NOTICE] switch_ivr_bridge.c:1023 Hangup sofia/external/0 [CS_EXCHANGE_MEDIA] [ORIGINATOR_CANCEL]
2024-02-08 15:36:42.819324 95.23% [DEBUG] switch_core_state_machine.c:650 (sofia/external/0) State EXCHANGE_MEDIA going to sleep
2024-02-08 15:36:42.819324 95.23% [DEBUG] switch_core_state_machine.c:581 (sofia/external/0) Running State Change CS_HANGUP (Cur 2 Tot 73)
2024-02-08 15:36:42.819324 95.23% [DEBUG] switch_core_state_machine.c:844 (sofia/external/0) Callstate Change EARLY -> HANGUP
2024-02-08 15:36:42.819324 95.23% [DEBUG] switch_core_state_machine.c:846 (sofia/external/0) State HANGUP
2024-02-08 15:36:42.819324 95.23% [DEBUG] mod_sofia.c:463 sofia/external/0 Overriding SIP cause 487 with 487 from the other leg
2024-02-08 15:36:42.819324 95.23% [DEBUG] mod_sofia.c:469 Channel sofia/external/0 hanging up, cause: ORIGINATOR_CANCEL
2024-02-08 15:36:42.819324 95.23% [DEBUG] mod_sofia.c:537 Sending CANCEL to sofia/external/0
2024-02-08 15:36:42.819324 95.23% [DEBUG] switch_core_state_machine.c:59 sofia/external/0 Standard HANGUP, cause: ORIGINATOR_CANCEL
2024-02-08 15:36:42.819324 95.23% [DEBUG] switch_core_state_machine.c:846 (sofia/external/0) State HANGUP going to sleep
2024-02-08 15:36:42.819324 95.23% [DEBUG] switch_core_state_machine.c:616 (sofia/external/0) State Change CS_HANGUP -> CS_REPORTING
2024-02-08 15:36:42.819324 95.23% [DEBUG] switch_core_state_machine.c:581 (sofia/external/0) Running State Change CS_REPORTING (Cur 2 Tot 73)
2024-02-08 15:36:42.819324 95.23% [DEBUG] switch_core_state_machine.c:932 (sofia/external/0) State REPORTING
2024-02-08 15:36:42.819324 95.23% [DEBUG] switch_core_state_machine.c:168 sofia/external/0 Standard REPORTING, cause: ORIGINATOR_CANCEL
2024-02-08 15:36:42.819324 95.23% [DEBUG] switch_core_state_machine.c:932 (sofia/external/0) State REPORTING going to sleep
2024-02-08 15:36:42.819324 95.23% [DEBUG] switch_core_state_machine.c:607 (sofia/external/0) State Change CS_REPORTING -> CS_DESTROY
2024-02-08 15:36:42.819324 95.23% [DEBUG] switch_core_session.c:1744 Session 73 (sofia/external/0) Locked, Waiting on external entities
2024-02-08 15:36:42.819324 95.23% [DEBUG] switch_ivr_bridge.c:1893 sofia/internal/201@voice.unlayer.network:5060 skip receive message [UNBRIDGE] (channel is hungup already)
2024-02-08 15:36:42.819324 95.23% [DEBUG] switch_core_session.c:2979 sofia/internal/201@voice.unlayer.network:5060 skip receive message [APPLICATION_EXEC_COMPLETE] (channel is hungup already)
2024-02-08 15:36:42.819324 95.23% [DEBUG] switch_core_state_machine.c:647 (sofia/internal/201@voice.unlayer.network:5060) State EXECUTE going to sleep
2024-02-08 15:36:42.819324 95.23% [DEBUG] switch_core_state_machine.c:581 (sofia/internal/201@voice.unlayer.network:5060) Running State Change CS_HANGUP (Cur 2 Tot 73)
2024-02-08 15:36:42.819324 95.23% [DEBUG] switch_core_state_machine.c:844 (sofia/internal/201@voice.unlayer.network:5060) Callstate Change EARLY -> HANGUP
2024-02-08 15:36:42.819324 95.23% [DEBUG] switch_core_state_machine.c:846 (sofia/internal/201@voice.unlayer.network:5060) State HANGUP
2024-02-08 15:36:42.819324 95.23% [DEBUG] mod_sofia.c:469 Channel sofia/internal/201@voice.unlayer.network:5060 hanging up, cause: ORIGINATOR_CANCEL
2024-02-08 15:36:42.819324 95.23% [DEBUG] switch_core_state_machine.c:59 sofia/internal/201@voice.unlayer.network:5060 Standard HANGUP, cause: ORIGINATOR_CANCEL
2024-02-08 15:36:42.819324 95.23% [DEBUG] switch_core_state_machine.c:846 (sofia/internal/201@voice.unlayer.network:5060) State HANGUP going to sleep
2024-02-08 15:36:42.819324 95.23% [DEBUG] switch_core_state_machine.c:616 (sofia/internal/201@voice.unlayer.network:5060) State Change CS_HANGUP -> CS_REPORTING
2024-02-08 15:36:42.839318 95.23% [DEBUG] switch_core_state_machine.c:581 (sofia/internal/201@voice.unlayer.network:5060) Running State Change CS_REPORTING (Cur 2 Tot 73)
2024-02-08 15:36:42.839318 95.23% [DEBUG] switch_core_state_machine.c:932 (sofia/internal/201@voice.unlayer.network:5060) State REPORTING
2024-02-08 15:36:42.839318 95.23% [NOTICE] switch_core_session.c:1762 Session 73 (sofia/external/0) Ended
2024-02-08 15:36:42.839318 95.23% [NOTICE] switch_core_session.c:1766 Close Channel sofia/external/0 [CS_DESTROY]
2024-02-08 15:36:42.839318 95.23% [DEBUG] switch_core_state_machine.c:735 (sofia/external/0) Running State Change CS_DESTROY (Cur 1 Tot 73)
2024-02-08 15:36:42.839318 95.23% [DEBUG] switch_core_state_machine.c:745 (sofia/external/0) State DESTROY
2024-02-08 15:36:42.839318 95.23% [DEBUG] mod_sofia.c:380 sofia/external/0 SOFIA DESTROY
2024-02-08 15:36:42.839318 95.23% [DEBUG] switch_core_state_machine.c:175 sofia/external/0 Standard DESTROY
2024-02-08 15:36:42.839318 95.23% [DEBUG] switch_core_state_machine.c:745 (sofia/external/0) State DESTROY going to sleep
2024-02-08 15:36:42.859318 95.23% [DEBUG] switch_core_state_machine.c:168 sofia/internal/201@voice.unlayer.network:5060 Standard REPORTING, cause: ORIGINATOR_CANCEL
2024-02-08 15:36:42.859318 95.23% [DEBUG] switch_core_state_machine.c:932 (sofia/internal/201@voice.unlayer.network:5060) State REPORTING going to sleep
2024-02-08 15:36:42.859318 95.23% [DEBUG] switch_core_state_machine.c:607 (sofia/internal/201@voice.unlayer.network:5060) State Change CS_REPORTING -> CS_DESTROY
2024-02-08 15:36:42.859318 95.23% [DEBUG] switch_core_session.c:1744 Session 72 (sofia/internal/201@voice.unlayer.network:5060) Locked, Waiting on external entities
2024-02-08 15:36:42.859318 95.23% [NOTICE] switch_core_session.c:1762 Session 72 (sofia/internal/201@voice.unlayer.network:5060) Ended
2024-02-08 15:36:42.859318 95.23% [NOTICE] switch_core_session.c:1766 Close Channel sofia/internal/201@voice.unlayer.network:5060 [CS_DESTROY]
2024-02-08 15:36:42.859318 95.23% [DEBUG] switch_core_state_machine.c:735 (sofia/internal/201@voice.unlayer.network:5060) Running State Change CS_DESTROY (Cur 0 Tot 73)
2024-02-08 15:36:42.859318 95.23% [DEBUG] switch_core_state_machine.c:745 (sofia/internal/201@voice.unlayer.network:5060) State DESTROY
2024-02-08 15:36:42.859318 95.23% [DEBUG] mod_sofia.c:380 sofia/internal/201@voice.unlayer.network:5060 SOFIA DESTROY
2024-02-08 15:36:42.859318 95.23% [DEBUG] switch_core_state_machine.c:175 sofia/internal/201@voice.unlayer.network:5060 Standard DESTROY
2024-02-08 15:36:42.859318 95.23% [DEBUG] switch_core_state_machine.c:745 (sofia/internal/201@voice.unlayer.network:5060) State DESTROY going to sleep
 

Adrian Fretwell

Well-Known Member
Aug 13, 2017
1,498
413
83
@Adrian Fretwell: Your documentation is EXCELLENT. But it's designed to assist the skilled car mechanic who's been driving for years, not the person who wants to learn how to drive the new car. The missing piece is a section that, at a minimum, documents the steps to make your first successful call to an outside number and to receive a call from an outside number, i.e. unlock the car with your key, insert key in slot beside steering wheel, turn key clockwise until car starts, put car in Drive with gear shift lever between front seats, and press on accelerator (right foot pedal) while steering car away from ditch. To stop car, press left foot pedal. Place car in Park. Turn off ignition by turning key counter-clockwise.

We'd love to help once we have a working system. Would be happy to give you credentials to a cloud-based platform to get it working and to document what you did. Then we can take it from there.
@NerdUno To be fair, I had designed the system for my own business needs, but decided to open source it so it can benefit others. The target audience I had in mind was ITSPs with a knowledge of FreeSWITCH.

But I think you are absolutely right there does need to be a step by step guide, as you say for people who are unfamiliar with VoIP and FreeSWITCH. I will try to put some time aside over the next week and get something written.

I'll finish helping @simonjw in this thread then I suggest we don't add any more to it. Please start new treads for future questions.
 

Adrian Fretwell

Well-Known Member
Aug 13, 2017
1,498
413
83
@simonjw
Hi Simon, the problem is with the regex, I didn't notice it at first but the FreeSWITCH debug output gave me a clue:
Code:
Dialplan: sofia/internal/201@voice.unlayer.network:5060 Action bridge(sofia/gateway/6a976d35-e442-4010-a541-a7bc0c6eb7fa/0)

This told me that your capturing group $1 was only capturing the 0 (zero). You can fix this by wrapping the whole lot (apart form the ^) in a pair of brackets:
Code:
^((\+27|27|0)[0-9]{2}( |-)?[0-9]{3}( |-)?[0-9]{4}( |-)?(x[0-9]+)?(ext[0-9]+)?)
 
  • Like
Reactions: simonjw

simonjw

New Member
Feb 6, 2024
22
0
1
32
@simonjw
Hi Simon, the problem is with the regex, I didn't notice it at first but the FreeSWITCH debug output gave me a clue:
Code:
Dialplan: sofia/internal/201@voice.unlayer.network:5060 Action bridge(sofia/gateway/6a976d35-e442-4010-a541-a7bc0c6eb7fa/0)

This told me that your capturing group $1 was only capturing the 0 (zero). You can fix this by wrapping the whole lot (apart form the ^) in a pair of brackets:
Code:
^((\+27|27|0)[0-9]{2}( |-)?[0-9]{3}( |-)?[0-9]{4}( |-)?(x[0-9]+)?(ext[0-9]+)?)
Thank you so much, it dials out but rings once and then stops. Looking at the logs I think I know why, however, not sure how to rectify it.

Code:
2024-02-08 16:09:27.959310 95.87% [ERR] mod_g729.c:145 This codec is only usable in passthrough mode!
2024-02-08 16:09:27.959310 95.87% [ERR] switch_core_media.c:16054 Codec G.729 decoder error!

Not sure how to get it on passthrough.

When I dial in, I get the logs and I assume that either its IP related or regex because the number being handed starts with 27, but I don't see where to put regex for inbound. Code below


Code:
2024-02-08 16:16:27.439338 95.67% [NOTICE] switch_channel.c:1142 New Channel sofia/external/27684122631@102.64.18.11 [f5bc45da-359f-4204-9033-5ca4769f97dc]
2024-02-08 16:16:27.439338 95.67% [DEBUG] switch_core_state_machine.c:581 (sofia/external/27684122631@102.64.18.11) Running State Change CS_NEW (Cur 1 Tot 89)
2024-02-08 16:16:27.439338 95.67% [INFO] sofia.c:10459 sofia/external/27684122631@102.64.18.11 receiving invite from 102.64.18.11:5060 version: 1.10.11 -release-25-f24064f7c9 64bit call-id: isbc8692ssm6o6stxmx9s2zm92xxpo87789p@10.18.5.64
2024-02-08 16:16:27.439338 95.67% [DEBUG] sofia.c:10553 verifying acl "domains" for ip/port 102.64.18.11:0.
2024-02-08 16:16:27.439338 95.67% [WARNING] sofia.c:10666 IP 102.64.18.11 Rejected by acl "domains"
2024-02-08 16:16:27.439338 95.67% [NOTICE] sofia.c:2417 Hangup sofia/external/27684122631@102.64.18.11 [CS_NEW] [CALL_REJECTED]
2024-02-08 16:16:27.439338 95.67% [DEBUG] sofia.c:1527 Channel is already hungup.
2024-02-08 16:16:27.439338 95.67% [DEBUG] sofia.c:1527 Channel is already hungup.
2024-02-08 16:16:27.439338 95.67% [DEBUG] switch_core_state_machine.c:600 (sofia/external/27684122631@102.64.18.11) State NEW
2024-02-08 16:16:27.439338 95.67% [DEBUG] switch_core_state_machine.c:581 (sofia/external/27684122631@102.64.18.11) Running State Change CS_HANGUP (Cur 1 Tot 89)
2024-02-08 16:16:27.439338 95.67% [DEBUG] switch_core_state_machine.c:844 (sofia/external/27684122631@102.64.18.11) Callstate Change DOWN -> HANGUP
2024-02-08 16:16:27.439338 95.67% [DEBUG] switch_core_state_machine.c:846 (sofia/external/27684122631@102.64.18.11) State HANGUP
2024-02-08 16:16:27.439338 95.67% [DEBUG] mod_sofia.c:469 Channel sofia/external/27684122631@102.64.18.11 hanging up, cause: CALL_REJECTED
2024-02-08 16:16:27.439338 95.67% [DEBUG] switch_core_state_machine.c:59 sofia/external/27684122631@102.64.18.11 Standard HANGUP, cause: CALL_REJECTED
2024-02-08 16:16:27.439338 95.67% [DEBUG] switch_core_state_machine.c:846 (sofia/external/27684122631@102.64.18.11) State HANGUP going to sleep
2024-02-08 16:16:27.439338 95.67% [DEBUG] switch_core_state_machine.c:616 (sofia/external/27684122631@102.64.18.11) State Change CS_HANGUP -> CS_REPORTING
2024-02-08 16:16:27.439338 95.67% [DEBUG] switch_core_state_machine.c:581 (sofia/external/27684122631@102.64.18.11) Running State Change CS_REPORTING (Cur 1 Tot 89)
2024-02-08 16:16:27.439338 95.67% [DEBUG] switch_core_state_machine.c:932 (sofia/external/27684122631@102.64.18.11) State REPORTING
2024-02-08 16:16:27.439338 95.67% [DEBUG] switch_core_state_machine.c:168 sofia/external/27684122631@102.64.18.11 Standard REPORTING, cause: CALL_REJECTED
2024-02-08 16:16:27.439338 95.67% [DEBUG] switch_core_state_machine.c:932 (sofia/external/27684122631@102.64.18.11) State REPORTING going to sleep
2024-02-08 16:16:27.439338 95.67% [DEBUG] switch_core_state_machine.c:607 (sofia/external/27684122631@102.64.18.11) State Change CS_REPORTING -> CS_DESTROY
2024-02-08 16:16:27.439338 95.67% [DEBUG] switch_core_session.c:1744 Session 89 (sofia/external/27684122631@102.64.18.11) Locked, Waiting on external entities
2024-02-08 16:16:27.439338 95.67% [NOTICE] switch_core_session.c:1762 Session 89 (sofia/external/27684122631@102.64.18.11) Ended
2024-02-08 16:16:27.439338 95.67% [NOTICE] switch_core_session.c:1766 Close Channel sofia/external/27684122631@102.64.18.11 [CS_DESTROY]
2024-02-08 16:16:27.439338 95.67% [DEBUG] switch_core_state_machine.c:735 (sofia/external/27684122631@102.64.18.11) Running State Change CS_DESTROY (Cur 0 Tot 89)
2024-02-08 16:16:27.439338 95.67% [DEBUG] switch_core_state_machine.c:745 (sofia/external/27684122631@102.64.18.11) State DESTROY
2024-02-08 16:16:27.439338 95.67% [DEBUG] mod_sofia.c:380 sofia/external/27684122631@102.64.18.11 SOFIA DESTROY
2024-02-08 16:16:27.439338 95.67% [DEBUG] switch_core_state_machine.c:175 sofia/external/27684122631@102.64.18.11 Standard DESTROY
2024-02-08 16:16:27.439338 95.67% [DEBUG] switch_core_state_machine.c:745 (sofia/external/27684122631@102.64.18.11) State DESTROY going to sleep
2024-02-08 16:16:29.079338 95.67% [NOTICE] switch_channel.c:1142 New Channel sofia/external/27684122631@102.64.18.11 [c1cacf19-1db2-4fd2-878f-f4f244ec3549]
2024-02-08 16:16:29.079338 95.67% [DEBUG] switch_core_state_machine.c:581 (sofia/external/27684122631@102.64.18.11) Running State Change CS_NEW (Cur 1 Tot 90)
2024-02-08 16:16:29.079338 95.67% [INFO] sofia.c:10459 sofia/external/27684122631@102.64.18.11 receiving invite from 102.64.18.11:5060 version: 1.10.11 -release-25-f24064f7c9 64bit call-id: isbcc33kedqxeddeceqdxfwl2xxcbffeovb3@10.18.5.64
2024-02-08 16:16:29.079338 95.67% [DEBUG] sofia.c:10553 verifying acl "domains" for ip/port 102.64.18.11:0.
2024-02-08 16:16:29.079338 95.67% [WARNING] sofia.c:10666 IP 102.64.18.11 Rejected by acl "domains"
2024-02-08 16:16:29.079338 95.67% [NOTICE] sofia.c:2417 Hangup sofia/external/27684122631@102.64.18.11 [CS_NEW] [CALL_REJECTED]
2024-02-08 16:16:29.079338 95.67% [DEBUG] sofia.c:1527 Channel is already hungup.
2024-02-08 16:16:29.079338 95.67% [DEBUG] sofia.c:1527 Channel is already hungup.
2024-02-08 16:16:29.079338 95.67% [DEBUG] switch_core_state_machine.c:600 (sofia/external/27684122631@102.64.18.11) State NEW
2024-02-08 16:16:29.079338 95.67% [DEBUG] switch_core_state_machine.c:581 (sofia/external/27684122631@102.64.18.11) Running State Change CS_HANGUP (Cur 1 Tot 90)
2024-02-08 16:16:29.079338 95.67% [DEBUG] switch_core_state_machine.c:844 (sofia/external/27684122631@102.64.18.11) Callstate Change DOWN -> HANGUP
2024-02-08 16:16:29.079338 95.67% [DEBUG] switch_core_state_machine.c:846 (sofia/external/27684122631@102.64.18.11) State HANGUP
2024-02-08 16:16:29.079338 95.67% [DEBUG] mod_sofia.c:469 Channel sofia/external/27684122631@102.64.18.11 hanging up, cause: CALL_REJECTED
2024-02-08 16:16:29.079338 95.67% [DEBUG] switch_core_state_machine.c:59 sofia/external/27684122631@102.64.18.11 Standard HANGUP, cause: CALL_REJECTED
2024-02-08 16:16:29.079338 95.67% [DEBUG] switch_core_state_machine.c:846 (sofia/external/27684122631@102.64.18.11) State HANGUP going to sleep
2024-02-08 16:16:29.079338 95.67% [DEBUG] switch_core_state_machine.c:616 (sofia/external/27684122631@102.64.18.11) State Change CS_HANGUP -> CS_REPORTING
2024-02-08 16:16:29.079338 95.67% [DEBUG] switch_core_state_machine.c:581 (sofia/external/27684122631@102.64.18.11) Running State Change CS_REPORTING (Cur 1 Tot 90)
2024-02-08 16:16:29.079338 95.67% [DEBUG] switch_core_state_machine.c:932 (sofia/external/27684122631@102.64.18.11) State REPORTING
2024-02-08 16:16:29.079338 95.67% [DEBUG] switch_core_state_machine.c:168 sofia/external/27684122631@102.64.18.11 Standard REPORTING, cause: CALL_REJECTED
2024-02-08 16:16:29.079338 95.67% [DEBUG] switch_core_state_machine.c:932 (sofia/external/27684122631@102.64.18.11) State REPORTING going to sleep
2024-02-08 16:16:29.079338 95.67% [DEBUG] switch_core_state_machine.c:607 (sofia/external/27684122631@102.64.18.11) State Change CS_REPORTING -> CS_DESTROY
2024-02-08 16:16:29.079338 95.67% [DEBUG] switch_core_session.c:1744 Session 90 (sofia/external/27684122631@102.64.18.11) Locked, Waiting on external entities
2024-02-08 16:16:29.079338 95.67% [NOTICE] switch_core_session.c:1762 Session 90 (sofia/external/27684122631@102.64.18.11) Ended
2024-02-08 16:16:29.079338 95.67% [NOTICE] switch_core_session.c:1766 Close Channel sofia/external/27684122631@102.64.18.11 [CS_DESTROY]
2024-02-08 16:16:29.079338 95.67% [DEBUG] switch_core_state_machine.c:735 (sofia/external/27684122631@102.64.18.11) Running State Change CS_DESTROY (Cur 0 Tot 90)
2024-02-08 16:16:29.079338 95.67% [DEBUG] switch_core_state_machine.c:745 (sofia/external/27684122631@102.64.18.11) State DESTROY
2024-02-08 16:16:29.079338 95.67% [DEBUG] mod_sofia.c:380 sofia/external/27684122631@102.64.18.11 SOFIA DESTROY
2024-02-08 16:16:29.079338 95.67% [DEBUG] switch_core_state_machine.c:175 sofia/external/27684122631@102.64.18.11 Standard DESTROY
2024-02-08 16:16:29.079338 95.67% [DEBUG] switch_core_state_machine.c:745 (sofia/external/27684122631@102.64.18.11) State DESTROY going to sleep
 

DigitalDaz

Administrator
Staff member
Sep 29, 2016
3,071
577
113
I would add to what Adrian said above about the target audience at the moment for this project. I would say keep away from it unless you are pretty skilled already. Its like fusionpbx was 15 years ago, an exciting place to be but not for newbies or people who just want a stable experience.

Learn python too.

I wish I had more time to get my teeth into it.

Don't come with problems, come with patches :D
 

simonjw

New Member
Feb 6, 2024
22
0
1
32
I would add to what Adrian said above about the target audience at the moment for this project. I would say keep away from it unless you are pretty skilled already. Its like fusionpbx was 15 years ago, an exciting place to be but not for newbies or people who just want a stable experience.

Learn python too.

I wish I had more time to get my teeth into it.

Don't come with problems, come with patches :D

I agree with you but some people can fill the gaps that are eager to learn, and I am certainly willing to add to the project as I learn. I am fortunate that I have an elephant memory and only need to see something once to implement it again. I've been toying with routr.io and would like to at some point add freeswitch to the mix as a media server to see how it interacts.

I agree with learning Python, it is a forgiving language. My background is in security, infrastructure development (hosting networks and ISP deployments), and development. I run an AI-based dashcam network that predicts possible hijackings and active hijackings in South Africa.

I think as a collective we can build on this. I have used FusionPBX a couple times, but it basically just works.

I see DjangoPBX as Deno to Node...
 

Adrian Fretwell

Well-Known Member
Aug 13, 2017
1,498
413
83
I would add to what Adrian said above about the target audience at the moment for this project. I would say keep away from it unless you are pretty skilled already. Its like fusionpbx was 15 years ago, an exciting place to be but not for newbies or people who just want a stable experience.

Learn python too.

I wish I had more time to get my teeth into it.

Don't come with problems, come with patches :D
Wise words.
I do hope we will make it easy to get started with, sooner rather than later. But there are only a handful of us developing it right now. The last time I looked, I think FusionPBX had nearly 200 contributors!

I would very much like this to become a community project with the emphasis on being open and sharing knowledge.
 

Adrian Fretwell

Well-Known Member
Aug 13, 2017
1,498
413
83
@simonjw You can download the royalty free mod_bcg729 form here:
Code:
wget https://raw.githubusercontent.com/djangopbx/djangopbx-install.sh/master/binaries/mod_bcg729.so
Copy this file to /lib/freeswitch/mods/

Go to Status->Switch Modules and stop the pass thorough G729
Then in Status->switch modules set mod_bcg729 to enabled. and mod_729 to disabled:
Screenshot from 2024-02-08 17-08-57.png
Then go back to Status->Switch modules and start bcg729
 
  • Like
Reactions: NerdUno and simonjw

simonjw

New Member
Feb 6, 2024
22
0
1
32
@simonjw You can download the royalty free mod_bcg729 form here:
Code:
wget https://raw.githubusercontent.com/djangopbx/djangopbx-install.sh/master/binaries/mod_bcg729.so
Copy this file to /lib/freeswitch/mods/

Go to Status->Switch Modules and stop the pass thorough G729
Then in Status->switch modules set mod_bcg729 to enabled. and mod_729 to disabled:
View attachment 3832
Then go back to Status->Switch modules and start bcg729

Thank you so much, the outbound is working now with no issues. I can even see OPUS being used as I set that up as well.

One thing I did notice there is I had to go into admin -> switch -> modules in order to disable and enable the codecs.

Inbound is no longer throwing an error, however, it is still not working and I believe it to be the rejected by acl "domains" or am I incorrect? Not sure how to correct that as I have tried changing the context.

Code:
2024-02-08 17:36:56.639331 96.43% [DEBUG] sofia.c:10553 verifying acl "domains" for ip/port 102.64.18.11:0.
2024-02-08 17:36:56.639331 96.43% [WARNING] sofia.c:10666 IP 102.64.18.11 Rejected by acl "domains"
2024-02-08 17:36:56.639331 96.43% [NOTICE] sofia.c:2417 Hangup sofia/external/27684122631@102.64.18.11 [CS_NEW] [CALL_REJECTED]
 

simonjw

New Member
Feb 6, 2024
22
0
1
32
So I figured out the issue for inbound calls.

Porta sends to 5060 and external in Freeswitch is on 5080. I put the CIDR for IP range in lan ACL and Domains ACL and reloaded the ACL and calls are now coming in. I am going to take a deep dive into Freeswitch as it is certainly robust and I think I was looking at it the wrong way. It is quite a learning curve, but I think once the core concepts are understood it certainly will become easier.

Thanks again for the help, I really appreciate it
 

Adrian Fretwell

Well-Known Member
Aug 13, 2017
1,498
413
83
@simonjw Add the IP address(es) of your SIP provider in Admin->Switch->Access Controls.
Set the type to "allow"
Set the CIDR to <ip>/32 for a single address or you can specify a subnet 192.168.88.0/24
Leave domain blank

Then in Utilities->Reload XML/ACL check the ACL box and click the button.

EDIT: I think our last messages crossed.:)
 
Status
Not open for further replies.