┌────────────────────────────────────────────────────────────────────┐ │ • MobaXterm Personal Edition v20.3 • │ │ (X server, SSH client and network tools) │ │ │ │ ➤ Your computer drives are accessible through the /drives path │ │ ➤ Your DISPLAY is set to 192.168.1.13:2.0 │ │ ➤ When using SSH, your remote DISPLAY is automatically forwarded │ │ ➤ Each command status is specified by a special symbol (✔ or ✘) │ │ │ │ • Important: │ │ This is MobaXterm Personal Edition. The Professional edition │ │ allows you to customize MobaXterm for your company: you can add │ │ your own logo, your parameters, your welcome message and generate │ │ either an MSI installation package or a portable executable. │ │ We can also modify MobaXterm or develop the plugins you need. │ │ For more information: https://mobaxterm.mobatek.net/download.html │ └────────────────────────────────────────────────────────────────────┘  08/02/2022   15:49.31   /home/mobaxterm  ssh -i qa2-Prashant.pem admin@13.233.144.222 X11 forwarding request failed on channel 0 Linux ip-172-31-15-133 4.9.0-16-amd64 #1 SMP Debian 4.9.272-2 (2021-07-19) x86_64 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Tue Feb 8 09:55:57 2022 from 150.129.107.251 admin@ip-172-31-15-133:~$ admin@ip-172-31-15-133:~$ admin@ip-172-31-15-133:~$ sudo su root@ip-172-31-15-133:/home/admin# root@ip-172-31-15-133:/home/admin# root@ip-172-31-15-133:/home/admin# root@ip-172-31-15-133:/home/admin# systemctl status opensips ● opensips.service - LSB: Start the OpenSIPS SIP server Loaded: loaded (/etc/init.d/opensips; generated; vendor preset: enabled) Active: active (running) since Tue 2022-02-08 07:16:16 UTC; 3h 3min ago Docs: man:systemd-sysv-generator(8) Process: 14535 ExecStop=/etc/init.d/opensips stop (code=exited, status=0/SUCCESS) Process: 14546 ExecStart=/etc/init.d/opensips start (code=exited, status=0/SUCCESS) Tasks: 13 (limit: 4915) CGroup: /system.slice/opensips.service ├─14565 /usr/local/sbin/opensips -P /var/run/opensips/opensips.pid -m 64 -M 4 -u opensips -g opensips -f /usr/local/etc/opens ├─14566 /usr/local/sbin/opensips -P /var/run/opensips/opensips.pid -m 64 -M 4 -u opensips -g opensips -f /usr/local/etc/opens ├─14567 /usr/local/sbin/opensips -P /var/run/opensips/opensips.pid -m 64 -M 4 -u opensips -g opensips -f /usr/local/etc/opens ├─14568 /usr/local/sbin/opensips -P /var/run/opensips/opensips.pid -m 64 -M 4 -u opensips -g opensips -f /usr/local/etc/opens ├─14569 /usr/local/sbin/opensips -P /var/run/opensips/opensips.pid -m 64 -M 4 -u opensips -g opensips -f /usr/local/etc/opens ├─14570 /usr/local/sbin/opensips -P /var/run/opensips/opensips.pid -m 64 -M 4 -u opensips -g opensips -f /usr/local/etc/opens ├─14571 /usr/local/sbin/opensips -P /var/run/opensips/opensips.pid -m 64 -M 4 -u opensips -g opensips -f /usr/local/etc/opens ├─14572 /usr/local/sbin/opensips -P /var/run/opensips/opensips.pid -m 64 -M 4 -u opensips -g opensips -f /usr/local/etc/opens ├─14573 /usr/local/sbin/opensips -P /var/run/opensips/opensips.pid -m 64 -M 4 -u opensips -g opensips -f /usr/local/etc/opens ├─14574 /usr/local/sbin/opensips -P /var/run/opensips/opensips.pid -m 64 -M 4 -u opensips -g opensips -f /usr/local/etc/opens ├─14575 /usr/local/sbin/opensips -P /var/run/opensips/opensips.pid -m 64 -M 4 -u opensips -g opensips -f /usr/local/etc/opens ├─14576 /usr/local/sbin/opensips -P /var/run/opensips/opensips.pid -m 64 -M 4 -u opensips -g opensips -f /usr/local/etc/opens └─14577 /usr/local/sbin/opensips -P /var/run/opensips/opensips.pid -m 64 -M 4 -u opensips -g opensips -f /usr/local/etc/opens Feb 08 10:19:46 ip-172-31-15-133 opensips[14546]: Feb 8 10:19:46 [14570] calls getting null acctcode: Feb 8 10:19:46 [14570] C Feb 08 10:19:46 ip-172-31-15-133 opensips[14546]: Feb 8 10:19:46 [14570] ERROR:auth_db:get_ha1: failed to query database Feb 08 10:19:48 ip-172-31-15-133 opensips[14546]: Feb 8 10:19:48 [14569] Mjk1NWQzNWQ4YmM4ZDE5ZDAyZmEyNWY4OWQwNjMzYmM.|start|recieved UD Feb 08 10:19:54 ip-172-31-15-133 opensips[14546]: 4ZDE5ZDAyZmEyNWY4OWQwNjMzYmM.|start|recieved internal reply 200 OKFeb 8 10:19:48 [145 Feb 08 10:19:54 ip-172-31-15-133 opensips[14546]: GE4ZWMzNTE4ZTA3YzllYjIxYzdjMGM.|log|routing call to arbitrary media server 13.233.144. Feb 08 10:19:54 ip-172-31-15-133 opensips[14546]: Feb 8 10:19:54 [14572] ERROR:core:db_do_raw_query: error while submitting query Feb 08 10:19:54 ip-172-31-15-133 opensips[14546]: Feb 8 10:19:54 [14572] ERROR:avpops:db_query_avp: raw_query failed: db0(usr_preferenc Feb 08 10:19:55 ip-172-31-15-133 opensips[14546]: Feb 8 10:19:54 [14572] calls getting null acctcode: Feb 8 10:19:55 [14571] N Feb 08 10:19:55 ip-172-31-15-133 opensips[14546]: Feb 8 10:19:55 [14571] ERROR:core:db_do_raw_query: error while submitting query Feb 08 10:19:55 ip-172-31-15-133 opensips[14546]: Feb 8 10:19:55 [14571] ERROR:avpops:db_query_avp: raw_query failed: db0(usr_preferenc root@ip-172-31-15-133:/home/admin# root@ip-172-31-15-133:/home/admin# root@ip-172-31-15-133:/home/admin# systemctl stop opensips root@ip-172-31-15-133:/home/admin# root@ip-172-31-15-133:/home/admin# root@ip-172-31-15-133:/home/admin# systemctl status opensips ● opensips.service - LSB: Start the OpenSIPS SIP server Loaded: loaded (/etc/init.d/opensips; generated; vendor preset: enabled) Active: inactive (dead) Docs: man:systemd-sysv-generator(8) Feb 08 10:20:09 ip-172-31-15-133 opensips[14546]: Feb 8 10:20:09 [14565] INFO:core:shutdown_opensips: process 12(14577) [Timer handler] Feb 08 10:20:09 ip-172-31-15-133 opensips[14546]: Feb 8 10:20:09 [14565] INFO:core:shutdown_opensips: process 1(14566) [MI FIFO] termin Feb 08 10:20:09 ip-172-31-15-133 opensips[14546]: Feb 8 10:20:09 [14565] INFO:core:shutdown_opensips: process 5(14570) [SIP receiver ud Feb 08 10:20:09 ip-172-31-15-133 opensips[14546]: Feb 8 10:20:09 [14565] INFO:core:shutdown_opensips: process 11(14576) [SIP receiver u Feb 08 10:20:09 ip-172-31-15-133 opensips[14546]: Feb 8 10:20:09 [14565] INFO:core:shutdown_opensips: process 2(14567) [time_keeper] te Feb 08 10:20:09 ip-172-31-15-133 opensips[14546]: Feb 8 10:20:09 [14565] INFO:core:shutdown_opensips: process 3(14568) [timer] terminat Feb 08 10:20:09 ip-172-31-15-133 opensips[14546]: Feb 8 10:20:09 [14565] INFO:core:shutdown_opensips: process 4(14569) [SIP receiver ud Feb 08 10:20:09 ip-172-31-15-133 opensips[14546]: Feb 8 10:20:09 [14565] INFO:core:shutdown_opensips: process 10(14575) [SIP receiver u Feb 08 10:20:09 ip-172-31-15-133 opensips[14546]: Feb 8 10:20:09 [14565] INFO:core:cleanup: cleanup Feb 08 10:20:09 ip-172-31-15-133 opensips[14546]: Thank you for running opensips root@ip-172-31-15-133:/home/admin# root@ip-172-31-15-133:/home/admin# root@ip-172-31-15-133:/home/admin# systemctl restart freeswitch You have new mail in /var/mail/root root@ip-172-31-15-133:/home/admin# You have new mail in /var/mail/root root@ip-172-31-15-133:/home/admin# root@ip-172-31-15-133:/home/admin# root@ip-172-31-15-133:/home/admin# root@ip-172-31-15-133:/home/admin# root@ip-172-31-15-133:/home/admin# cd /opt/ASTPP/freeswitch/scripts/ root@ip-172-31-15-133:/opt/ASTPP/freeswitch/scripts# root@ip-172-31-15-133:/opt/ASTPP/freeswitch/scripts# root@ip-172-31-15-133:/opt/ASTPP/freeswitch/scripts# ls addons.lua astpp astpp-callingcards.lua did_call_forwarding.lua priority_base_routing.lua root@ip-172-31-15-133:/opt/ASTPP/freeswitch/scripts# root@ip-172-31-15-133:/opt/ASTPP/freeswitch/scripts# cd astpp root@ip-172-31-15-133:/opt/ASTPP/freeswitch/scripts/astpp# root@ip-172-31-15-133:/opt/ASTPP/freeswitch/scripts/astpp# root@ip-172-31-15-133:/opt/ASTPP/freeswitch/scripts/astpp# ls astpp_cent7.lua astpp_deb9.lua astpp.lua constant.lua lib scripts root@ip-172-31-15-133:/opt/ASTPP/freeswitch/scripts/astpp# root@ip-172-31-15-133:/opt/ASTPP/freeswitch/scripts/astpp# vim astpp.lua You have new mail in /var/mail/root root@ip-172-31-15-133:/opt/ASTPP/freeswitch/scripts/astpp# root@ip-172-31-15-133:/opt/ASTPP/freeswitch/scripts/astpp# root@ip-172-31-15-133:/opt/ASTPP/freeswitch/scripts/astpp# root@ip-172-31-15-133:/opt/ASTPP/freeswitch/scripts/astpp# root@ip-172-31-15-133:/opt/ASTPP/freeswitch/scripts/astpp# ls astpp_cent7.lua astpp_deb9.lua astpp.lua constant.lua lib scripts You have new mail in /var/mail/root root@ip-172-31-15-133:/opt/ASTPP/freeswitch/scripts/astpp# root@ip-172-31-15-133:/opt/ASTPP/freeswitch/scripts/astpp# vim astpp_ astpp_cent7.lua astpp_deb9.lua root@ip-172-31-15-133:/opt/ASTPP/freeswitch/scripts/astpp# vim astpp_ astpp_cent7.lua astpp_deb9.lua root@ip-172-31-15-133:/opt/ASTPP/freeswitch/scripts/astpp# vim astpp_deb9.lua You have new mail in /var/mail/root root@ip-172-31-15-133:/opt/ASTPP/freeswitch/scripts/astpp# root@ip-172-31-15-133:/opt/ASTPP/freeswitch/scripts/astpp# root@ip-172-31-15-133:/opt/ASTPP/freeswitch/scripts/astpp# root@ip-172-31-15-133:/opt/ASTPP/freeswitch/scripts/astpp# root@ip-172-31-15-133:/opt/ASTPP/freeswitch/scripts/astpp# cd /usr/share/freeswitch/scripts You have new mail in /var/mail/root root@ip-172-31-15-133:/usr/share/freeswitch/scripts# root@ip-172-31-15-133:/usr/share/freeswitch/scripts# vim astpp root@ip-172-31-15-133:/usr/share/freeswitch/scripts# root@ip-172-31-15-133:/usr/share/freeswitch/scripts# root@ip-172-31-15-133:/usr/share/freeswitch/scripts# cd astpp/ astpp_cent7.lua astpp_deb9.lua astpp.lua constant.lua lib/ scripts/ root@ip-172-31-15-133:/usr/share/freeswitch/scripts# cd astpp/ astpp_cent7.lua astpp_deb9.lua astpp.lua constant.lua lib/ scripts/ root@ip-172-31-15-133:/usr/share/freeswitch/scripts# cd astpp/ root@ip-172-31-15-133:/usr/share/freeswitch/scripts/astpp# root@ip-172-31-15-133:/usr/share/freeswitch/scripts/astpp# root@ip-172-31-15-133:/usr/share/freeswitch/scripts/astpp# vim astpp.lua You have new mail in /var/mail/root root@ip-172-31-15-133:/usr/share/freeswitch/scripts/astpp# root@ip-172-31-15-133:/usr/share/freeswitch/scripts/astpp# root@ip-172-31-15-133:/usr/share/freeswitch/scripts/astpp# root@ip-172-31-15-133:/usr/share/freeswitch/scripts/astpp# root@ip-172-31-15-133:/usr/share/freeswitch/scripts/astpp# You have new mail in /var/mail/root root@ip-172-31-15-133:/usr/share/freeswitch/scripts/astpp# root@ip-172-31-15-133:/usr/share/freeswitch/scripts/astpp# root@ip-172-31-15-133:/usr/share/freeswitch/scripts/astpp# root@ip-172-31-15-133:/usr/share/freeswitch/scripts/astpp# root@ip-172-31-15-133:/usr/share/freeswitch/scripts/astpp# fs_cli -pd8WYJaV7YZn88jvEqw1U .=======================================================. | _____ ____ ____ _ ___ | | | ___/ ___| / ___| | |_ _| | | | |_ \___ \ | | | | | | | | | _| ___) | | |___| |___ | | | | |_| |____/ \____|_____|___| | | | .=======================================================. | Anthony Minessale II, Ken Rice, | | Michael Jerris, Travis Cross | | FreeSWITCH (http://www.freeswitch.org) | | Paypal Donations Appreciated: paypal@freeswitch.org | | Brought to you by ClueCon http://www.cluecon.com/ | .=======================================================. .=======================================================================================================. | _ _ ____ _ ____ | | / \ _ __ _ __ _ _ __ _| | / ___| |_ _ ___ / ___|___ _ __ | | / _ \ | '_ \| '_ \| | | |/ _` | | | | | | | | |/ _ \ | / _ \| '_ \ | | / ___ \| | | | | | | |_| | (_| | | | |___| | |_| | __/ |__| (_) | | | | | | /_/ \_\_| |_|_| |_|\__,_|\__,_|_| \____|_|\__,_|\___|\____\___/|_| |_| | | | | ____ _____ ____ ____ __ | | | _ \_ _/ ___| / ___|___ _ __ / _| ___ _ __ ___ _ __ ___ ___ | | | |_) || || | | | / _ \| '_ \| |_ / _ \ '__/ _ \ '_ \ / __/ _ \ | | | _ < | || |___ | |__| (_) | | | | _| __/ | | __/ | | | (_| __/ | | |_| \_\|_| \____| \____\___/|_| |_|_| \___|_| \___|_| |_|\___\___| | | | | ____ _ ____ | | / ___| |_ _ ___ / ___|___ _ __ ___ ___ _ __ ___ | | | | | | | | |/ _ \ | / _ \| '_ \ / __/ _ \| '_ ` _ \ | | | |___| | |_| | __/ |__| (_) | | | | _ | (_| (_) | | | | | | | | \____|_|\__,_|\___|\____\___/|_| |_| (_) \___\___/|_| |_| |_| | | | .=======================================================================================================. Type /help to see a list of commands [This app Best viewed at 160x60 or more..] +OK log level [7] freeswitch@ip-172-31-15-133> freeswitch@ip-172-31-15-133> freeswitch@ip-172-31-15-133> freeswitch@ip-172-31-15-133> 2022-02-08 11:01:26.588026 96.43% [NOTICE] sofia_reg.c:459 Registering Alpesh 2022-02-08 11:01:26.728029 96.43% [ERR] sofia_reg.c:2677 Alpesh Failed Registration with status Service Unavailable [503]. failure #32 2022-02-08 11:01:27.588022 96.43% [WARNING] sofia_reg.c:516 Alpesh Failed Registration [503], setting retry to 30 seconds. 2022-02-08 11:01:32.548054 97.07% [NOTICE] switch_channel.c:1123 New Channel sofia/default/+1604785422@46.101.114.158 [b4bb4fe3-84c5-499b-a511-1f4b04908127] 2022-02-08 11:01:32.548054 97.07% [DEBUG] switch_core_state_machine.c:581 (sofia/default/+1604785422@46.101.114.158) Running State Change CS_NEW (Cur 1 Tot 15) 2022-02-08 11:01:32.548054 97.07% [INFO] sofia.c:10462 sofia/default/+1604785422@46.101.114.158 receiving invite from 46.101.114.158:5077 version: 1.10.7 -release-19-883d2cb662 64bit call-id: 50d9700b-0371-123b-d299-ba05d31eb9f9 2022-02-08 11:01:32.548054 97.07% [DEBUG] sofia.c:10556 verifying acl "default" for ip/port 46.101.114.158:0. 2022-02-08 11:01:32.548054 97.07% [DEBUG] sofia.c:10585 IP 46.101.114.158 Approved by acl "default[]". Access Granted. 2022-02-08 11:01:32.548054 97.07% [DEBUG] sofia.c:7499 Channel sofia/default/+1604785422@46.101.114.158 entering state [received][100] 2022-02-08 11:01:32.548054 97.07% [DEBUG] sofia.c:7509 Remote SDP: v=0 o=FreeSWITCH 1644284828 1644284829 IN IP4 46.101.114.158 s=FreeSWITCH c=IN IP4 46.101.114.158 t=0 0 m=audio 33264 RTP/AVP 0 101 a=rtpmap:0 PCMU/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=ptime:20 2022-02-08 11:01:32.548054 97.07% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1] 2022-02-08 11:01:32.548054 97.07% [DEBUG] switch_core_media.c:5705 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match 2022-02-08 11:01:32.548054 97.07% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1] 2022-02-08 11:01:32.548054 97.07% [DEBUG] switch_core_media.c:5566 Set telephone-event payload to 101@8000 2022-02-08 11:01:32.548054 97.07% [DEBUG] switch_core_media.c:3870 Set Codec sofia/default/+1604785422@46.101.114.158 PCMU/8000 20 ms 160 samples 64000 bits 1 channels 2022-02-08 11:01:32.548054 97.07% [DEBUG] switch_core_codec.c:111 sofia/default/+1604785422@46.101.114.158 Original read codec set to PCMU:0 2022-02-08 11:01:32.548054 97.07% [DEBUG] switch_core_media.c:5915 Set telephone-event payload to 101@8000 2022-02-08 11:01:32.548054 97.07% [DEBUG] switch_core_media.c:5973 sofia/default/+1604785422@46.101.114.158 Set 2833 dtmf send payload to 101 recv payload to 101 2022-02-08 11:01:32.548054 97.07% [DEBUG] sofia.c:7933 (sofia/default/+1604785422@46.101.114.158) State Change CS_NEW -> CS_INIT 2022-02-08 11:01:32.548054 97.07% [DEBUG] switch_core_state_machine.c:600 (sofia/default/+1604785422@46.101.114.158) State NEW 2022-02-08 11:01:32.548054 97.07% [DEBUG] switch_core_state_machine.c:581 (sofia/default/+1604785422@46.101.114.158) Running State Change CS_INIT (Cur 1 Tot 15) 2022-02-08 11:01:32.548054 97.07% [DEBUG] switch_core_state_machine.c:624 (sofia/default/+1604785422@46.101.114.158) State INIT 2022-02-08 11:01:32.548054 97.07% [DEBUG] mod_sofia.c:97 sofia/default/+1604785422@46.101.114.158 SOFIA INIT 2022-02-08 11:01:32.548054 97.07% [DEBUG] switch_core_state_machine.c:40 sofia/default/+1604785422@46.101.114.158 Standard INIT 2022-02-08 11:01:32.548054 97.07% [DEBUG] switch_core_state_machine.c:48 (sofia/default/+1604785422@46.101.114.158) State Change CS_INIT -> CS_ROUTING 2022-02-08 11:01:32.548054 97.07% [DEBUG] switch_core_state_machine.c:624 (sofia/default/+1604785422@46.101.114.158) State INIT going to sleep 2022-02-08 11:01:32.548054 97.07% [DEBUG] switch_core_state_machine.c:581 (sofia/default/+1604785422@46.101.114.158) Running State Change CS_ROUTING (Cur 1 Tot 15) 2022-02-08 11:01:32.548054 97.07% [DEBUG] switch_channel.c:2380 (sofia/default/+1604785422@46.101.114.158) Callstate Change DOWN -> RINGING 2022-02-08 11:01:32.548054 97.07% [DEBUG] switch_core_state_machine.c:640 (sofia/default/+1604785422@46.101.114.158) State ROUTING 2022-02-08 11:01:32.548054 97.07% [DEBUG] mod_sofia.c:158 sofia/default/+1604785422@46.101.114.158 SOFIA ROUTING 2022-02-08 11:01:32.548054 97.07% [DEBUG] switch_core_state_machine.c:230 sofia/default/+1604785422@46.101.114.158 Standard ROUTING 2022-02-08 11:01:32.548054 97.07% [INFO] mod_dialplan_xml.c:639 Processing 1604785422 <+1604785422>->109560 in context default 2022-02-08 11:01:32.548054 97.07% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','international_prefixes') 2022-02-08 11:01:32.548054 97.07% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons 2022-02-08 11:01:32.548054 97.07% [NOTICE] switch_cpp.cpp:1465 [ASTPP] [xml_handler] Params: Event-Name: REQUEST_PARAMS Core-UUID: dae52d9c-ce8e-4d58-8937-6f103a597dbe FreeSWITCH-Hostname: ip-172-31-15-133 FreeSWITCH-Switchname: ip-172-31-15-133 FreeSWITCH-IPv4: 172.31.15.133 FreeSWITCH-IPv6: %3A%3A1 Event-Date-Local: 2022-02-08%2011%3A01%3A32 Event-Date-GMT: Tue,%2008%20Feb%202022%2011%3A01%3A32%20GMT Event-Date-Timestamp: 1644318092548054 Event-Calling-File: mod_dialplan_xml.c Event-Calling-Function: dialplan_xml_locate Event-Calling-Line-Number: 610 Event-Sequence: 2052 Channel-State: CS_ROUTING Channel-Call-State: RINGING Channel-State-Number: 2 Channel-Name: sofia/default/%2B1604785422%4046.101.114.158 Unique-ID: b4bb4fe3-84c5-499b-a511-1f4b04908127 Call-Direction: inbound Presence-Call-Direction: inbound Channel-HIT-Dialplan: true Channel-Presence-ID: %2B1604785422%4046.101.114.158 Channel-Call-UUID: b4bb4fe3-84c5-499b-a511-1f4b04908127 Answer-State: ringing Channel-Read-Codec-Name: PCMU Channel-Read-Codec-Rate: 8000 Channel-Read-Codec-Bit-Rate: 64000 Channel-Write-Codec-Name: PCMU Channel-Write-Codec-Rate: 8000 Channel-Write-Codec-Bit-Rate: 64000 Caller-Direction: inbound Caller-Logical-Direction: inbound Caller-Username: %2B1604785422 Caller-Dialplan: XML Caller-Caller-ID-Name: 1604785422 Caller-Caller-ID-Number: %2B1604785422 Caller-Orig-Caller-ID-Name: 1604785422 Caller-Orig-Caller-ID-Number: %2B1604785422 Caller-Network-Addr: 46.101.114.158 Caller-ANI: %2B1604785422 Caller-Destination-Number: 109560 Caller-Unique-ID: b4bb4fe3-84c5-499b-a511-1f4b04908127 Caller-Source: mod_sofia Caller-Context: default Caller-Channel-Name: sofia/default/%2B1604785422%4046.101.114.158 Caller-Profile-Index: 1 Caller-Profile-Created-Time: 1644318092548054 Caller-Channel-Created-Time: 1644318092548054 Caller-Channel-Answered-Time: 0 Caller-Channel-Progress-Time: 0 Caller-Channel-Progress-Media-Time: 0 Caller-Channel-Hangup-Time: 0 Caller-Channel-Transfer-Time: 0 Caller-Channel-Resurrect-Time: 0 Caller-Channel-Bridged-Time: 0 Caller-Channel-Last-Hold: 0 Caller-Channel-Hold-Accum: 0 Caller-Screen-Bit: true Caller-Privacy-Hide-Name: false Caller-Privacy-Hide-Number: false variable_direction: inbound variable_uuid: b4bb4fe3-84c5-499b-a511-1f4b04908127 variable_session_id: 15 variable_sip_from_user: %2B1604785422 variable_sip_from_uri: %2B1604785422%4046.101.114.158 variable_sip_from_host: 46.101.114.158 variable_video_media_flow: disabled variable_text_media_flow: disabled variable_channel_name: sofia/default/%2B1604785422%4046.101.114.158 variable_sip_call_id: 50d9700b-0371-123b-d299-ba05d31eb9f9 variable_sip_local_network_addr: 13.233.144.222 variable_sip_network_ip: 46.101.114.158 variable_sip_network_port: 5077 variable_sip_invite_stamp: 1644318092548054 variable_sip_received_ip: 46.101.114.158 variable_sip_received_port: 5077 variable_sip_via_protocol: udp variable_sip_authorized: true variable_sip_acl_authed_by: default variable_sip_from_user_stripped: 1604785422 variable_sip_from_tag: v0DSSvja86jKr variable_sofia_profile_name: default variable_sofia_profile_url: sip%3Amod_sofia%4013.233.144.222%3A5074 variable_recovery_profile_name: default variable_sip_Remote-Party-ID: %221604785422%22%20%3Csip%3A%2B1604785422%4046.101.114.158%3E%3Bparty%3Dcalling%3Bscreen%3Dyes%3Bprivacy%3Doff variable_sip_cid_type: rpid variable_sip_full_via: SIP/2.0/UDP%2046.101.114.158%3A5077%3Brport%3D5077%3Bbranch%3Dz9hG4bKQ9yF4ap3D8e3F variable_sip_from_display: 1604785422 variable_sip_full_from: %221604785422%22%20%3Csip%3A%2B1604785422%4046.101.114.158%3E%3Btag%3Dv0DSSvja86jKr variable_sip_full_to: %3Csip%3A109560%4013.233.144.222%3A5074%3E variable_sip_allow: INVITE,%20ACK,%20BYE,%20CANCEL,%20OPTIONS,%20MESSAGE,%20INFO,%20UPDATE,%20REGISTER,%20REFER,%20NOTIFY,%20PUBLISH,%20SUBSCRIBE variable_sip_req_user: 109560 variable_sip_req_port: 5074 variable_sip_req_uri: 109560%4013.233.144.222%3A5074 variable_sip_req_host: 13.233.144.222 variable_sip_to_user: 109560 variable_sip_to_port: 5074 variable_sip_to_uri: 109560%4013.233.144.222%3A5074 variable_sip_to_host: 13.233.144.222 variable_sip_contact_params: transport%3Dudp%3Bgw%3DPK-Default-Gateway variable_sip_contact_user: gw%2BPK-Default-Gateway variable_sip_contact_port: 5077 variable_sip_contact_uri: gw%2BPK-Default-Gateway%4046.101.114.158%3A5077 variable_sip_contact_host: 46.101.114.158 variable_sip_user_agent: ASTPP variable_sip_via_host: 46.101.114.158 variable_sip_via_port: 5077 variable_sip_via_rport: 5077 variable_max_forwards: 69 variable_presence_id: %2B1604785422%4046.101.114.158 variable_switch_r_sdp: v%3D0%0D%0Ao%3DFreeSWITCH%201644284828%201644284829%20IN%20IP4%2046.101.114.158%0D%0As%3DFreeSWITCH%0D%0Ac%3DIN%20IP4%2046.101.114.158%0D%0At%3D0%200%0D%0Am%3Daudio%2033264%20RTP/AVP%200%20101%0D%0Aa%3Drtpmap%3A0%20PCMU/8000%0D%0Aa%3Drtpmap%3A101%20telephone-event/8000%0D%0Aa%3Dfmtp%3A101%200-16%0D%0Aa%3Dptime%3A20%0D%0A variable_ep_codec_string: CORE_PCM_MODULE.PCMU%408000h%4020i%4064000b variable_rtp_use_codec_string: PCMU,PCMA variable_remote_video_media_flow: inactive variable_remote_text_media_flow: inactive variable_remote_audio_media_flow: sendrecv variable_audio_media_flow: sendrecv variable_remote_media_ip: 46.101.114.158 variable_remote_media_port: 33264 variable_rtp_audio_recv_pt: 0 variable_rtp_use_codec_name: PCMU variable_rtp_use_codec_rate: 8000 variable_rtp_use_codec_ptime: 20 variable_rtp_use_codec_channels: 1 variable_rtp_last_audio_codec_string: PCMU%408000h%4020i%401c variable_read_codec: PCMU variable_original_read_codec: PCMU variable_read_rate: 8000 variable_original_read_rate: 8000 variable_write_codec: PCMU variable_write_rate: 8000 variable_dtmf_type: rfc2833 variable_endpoint_disposition: RECEIVED variable_call_uuid: b4bb4fe3-84c5-499b-a511-1f4b04908127 Hunt-Direction: inbound Hunt-Logical-Direction: inbound Hunt-Username: %2B1604785422 Hunt-Dialplan: XML Hunt-Caller-ID-Name: 1604785422 Hunt-Caller-ID-Number: %2B1604785422 Hunt-Orig-Caller-ID-Name: 1604785422 Hunt-Orig-Caller-ID-Number: %2B1604785422 Hunt-Network-Addr: 46.101.114.158 Hunt-ANI: %2B1604785422 Hunt-Destination-Number: 109560 Hunt-Unique-ID: b4bb4fe3-84c5-499b-a511-1f4b04908127 Hunt-Source: mod_sofia Hunt-Context: default Hunt-Channel-Name: sofia/default/%2B1604785422%4046.101.114.158 Hunt-Profile-Index: 1 Hunt-Profile-Created-Time: 1644318092548054 Hunt-Channel-Created-Time: 1644318092548054 Hunt-Channel-Answered-Time: 0 Hunt-Channel-Progress-Time: 0 Hunt-Channel-Progress-Media-Time: 0 Hunt-Channel-Hangup-Time: 0 Hunt-Channel-Transfer-Time: 0 Hunt-Channel-Resurrect-Time: 0 Hunt-Channel-Bridged-Time: 0 Hunt-Channel-Last-Hold: 0 Hunt-Channel-Hold-Accum: 0 Hunt-Screen-Bit: true Hunt-Privacy-Hide-Name: false Hunt-Privacy-Hide-Number: false 2022-02-08 11:01:32.548054 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] [xml_REQUEST] key_value: 2022-02-08 11:01:32.548054 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] [xml_REQUEST] tag_name: 2022-02-08 11:01:32.548054 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] [xml_REQUEST] key_name: 2022-02-08 11:01:32.548054 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] [xml_REQUEST] section: dialplan 2022-02-08 11:01:32.548054 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Dialed number : 109560 2022-02-08 11:01:32.548054 97.07% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = '109560' AND status=0 limit 1 2022-02-08 11:01:32.548054 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] SOURCE NUMBERgw+PK-Default-Gateway 2022-02-08 11:01:32.548054 97.07% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons 2022-02-08 11:01:32.548054 97.07% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION LOCAL SOURCE] Query :SELECT accountid FROM sip_devices WHERE username = '109560' limit 1 2022-02-08 11:01:32.548054 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Caller Id name / number : 1604785422 / +1604785422 2022-02-08 11:01:32.548054 97.07% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID] Query :SELECT A.id as id,A.number as did_number,B.id as accountid,B.number as account_code,A.number as did_number,A.connectcost,A.includedseconds,A.cost,A.inc,A.extensions,A.maxchannels,A.call_type,A.city,A.province,A.init_inc,A.leg_timeout,A.status,A.country_id,A.call_type_vm_flag, A.codec as did_codec FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="109560" LIMIT 1 2022-02-08 11:01:32.548054 97.07% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID_CALL_TRANSFER] Query :SELECT A.id as id,A.number as did_number,B.id as accountid,B.number as account_code,A.number as did_number,A.connectcost,A.includedseconds,A.cost,A.inc,A.extensions,A.maxchannels,A.call_type,A.city,A.province,A.init_inc,A.leg_timeout,A.status,A.country_id,A.call_type_vm_flag,A.transfer_status,A.busy_status,A.no_answer_status,A.always_status,A.transfer_call_type,A.transfer_extensions FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="109560" LIMIT 1 2022-02-08 11:01:32.548054 97.07% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons 2022-02-08 11:01:32.568001 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Call direction : inbound 2022-02-08 11:01:32.568001 97.07% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [IPAUTHENTICATION] Query :SELECT ip_map.*, (SELECT number FROM accounts where id=accountid AND status=0 AND deleted=0) AS account_code FROM ip_map WHERE INET_ATON("46.101.114.158") BETWEEN(INET_ATON(SUBSTRING_INDEX(`ip`, '/', 1)) & 0xffffffff ^((0x1 <<(32 - SUBSTRING_INDEX(`ip`, '/', -1))) -1 )) AND(INET_ATON(SUBSTRING_INDEX(`ip`, '/', 1)) |((0x100000000 >> SUBSTRING_INDEX(`ip`,'/', -1)) -1)) AND "109560" LIKE CONCAT(prefix,'%') ORDER BY LENGTH(prefix) DESC LIMIT 1 2022-02-08 11:01:32.568001 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] [Accountcode : 3673942894] 2022-02-08 11:01:32.568001 97.07% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "3673942894" AND deleted = 0 limit 1 2022-02-08 11:01:32.568001 97.07% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Ashish account call balance :SELECT balance FROM accounts WHERE id =4 2022-02-08 11:01:32.568001 97.07% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [IS_CHECK_DID] Query :SELECT * FROM dids WHERE number ="109560" AND (accountid = 0 OR status = 1) LIMIT 1 2022-02-08 11:01:32.568001 97.07% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PACKAGE_INFO] Call Direction : inbound 2022-02-08 11:01:32.568001 97.07% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PACKAGE_INFO] DID ACCOUNT ID : 4 2022-02-08 11:01:32.568001 97.07% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PACKAGE_INFO] Query :SELECT *,P.id as package_id,P.product_id as product_id FROM packages_view as P inner join package_patterns as PKGPTR on P.product_id = PKGPTR.product_id WHERE (patterns = '^109560.*' OR patterns = '^10956.*' OR patterns = '^1095.*' OR patterns = '^109.*' OR patterns = '^10.*' OR patterns = '^1.*' OR patterns ='--') AND accountid = 4 ORDER BY LENGTH(PKGPTR.patterns) DESC 2022-02-08 11:01:32.588003 97.07% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_SPEEDDIAL] Query :SELECT A.number FROM speed_dial as A,accounts as B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.speed_num ="109560" AND A.accountid = '3' limit 1 2022-02-08 11:01:32.588003 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 109560 2022-02-08 11:01:32.588003 97.07% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID] Query :SELECT A.id as id,A.number as did_number,B.id as accountid,B.number as account_code,A.number as did_number,A.connectcost,A.includedseconds,A.cost,A.inc,A.extensions,A.maxchannels,A.call_type,A.city,A.province,A.init_inc,A.leg_timeout,A.status,A.country_id,A.call_type_vm_flag, A.codec as did_codec FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="109560" LIMIT 1 2022-02-08 11:01:32.588003 97.07% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID_CALL_TRANSFER] Query :SELECT A.id as id,A.number as did_number,B.id as accountid,B.number as account_code,A.number as did_number,A.connectcost,A.includedseconds,A.cost,A.inc,A.extensions,A.maxchannels,A.call_type,A.city,A.province,A.init_inc,A.leg_timeout,A.status,A.country_id,A.call_type_vm_flag,A.transfer_status,A.busy_status,A.no_answer_status,A.always_status,A.transfer_call_type,A.transfer_extensions FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="109560" LIMIT 1 2022-02-08 11:01:32.588003 97.07% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons 2022-02-08 11:01:32.588003 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] New Call Direction : inbound 2022-02-08 11:01:32.588003 97.07% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_CALL_BARRING] Query :SELECT number,RIGHT(number,1) as lastchar,type as status_type,number_type,accountid FROM call_barring WHERE ((number = '109560' OR number = '10956' OR number = '1095' OR number = '109' OR number = '10' OR number = '1' OR number ='--') OR (number = '109560*' OR number = '10956*' OR number = '1095*' OR number = '109*' OR number = '10*' OR number = '1*' OR number ='--') OR (number = '+1604785422' OR number = '+160478542' OR number = '+16047854' OR number = '+1604785' OR number = '+160478' OR number = '+16047' OR number = '+1604' OR number = '+160' OR number = '+16' OR number = '+1' OR number = '+' OR number ='--') OR (number = '+1604785422*' OR number = '+160478542*' OR number = '+16047854*' OR number = '+1604785*' OR number = '+160478*' OR number = '+16047*' OR number = '+1604*' OR number = '+160*' OR number = '+16*' OR number = '+1*' OR number = '+*' OR number ='--')) AND status=0 AND accountid = 0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC 2022-02-08 11:01:32.588003 97.07% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Call Barring Status : -1 2022-02-08 11:01:32.588003 97.07% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '109560' OR routing_prefix = '10956' OR routing_prefix = '1095' OR routing_prefix = '109' OR routing_prefix = '10' OR routing_prefix = '1' OR routing_prefix ='--') AND status = 0 and reseller_id = 0 limit 1 2022-02-08 11:01:32.588003 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Account Information =================== 2022-02-08 11:01:32.588003 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] User id : 3 2022-02-08 11:01:32.588003 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] Account code : 3673942894 2022-02-08 11:01:32.588003 97.07% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Ashish account call balance :SELECT balance FROM accounts WHERE id =4 2022-02-08 11:01:32.588003 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] Balance : 297.2211 2022-02-08 11:01:32.588003 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] Type : 0 [0:prepaid,1:postpaid] 2022-02-08 11:01:32.588003 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] Ratecard id : 1 2022-02-08 11:01:32.588003 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] CID Pool : 0 2022-02-08 11:01:32.588003 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] ======================================================== 2022-02-08 11:01:32.588003 97.07% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 1 AND status = 0 2022-02-08 11:01:32.588003 97.07% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_RATES] call_direction :inbound 2022-02-08 11:01:32.588003 97.07% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID] Query :SELECT A.id as id,A.number as did_number,B.id as accountid,B.number as account_code,A.number as did_number,A.connectcost,A.includedseconds,A.cost,A.inc,A.extensions,A.maxchannels,A.call_type,A.city,A.province,A.init_inc,A.leg_timeout,A.status,A.country_id,A.call_type_vm_flag, A.codec as did_codec FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="109560" LIMIT 1 2022-02-08 11:01:32.588003 97.07% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID_CALL_TRANSFER] Query :SELECT A.id as id,A.number as did_number,B.id as accountid,B.number as account_code,A.number as did_number,A.connectcost,A.includedseconds,A.cost,A.inc,A.extensions,A.maxchannels,A.call_type,A.city,A.province,A.init_inc,A.leg_timeout,A.status,A.country_id,A.call_type_vm_flag,A.transfer_status,A.busy_status,A.no_answer_status,A.always_status,A.transfer_call_type,A.transfer_extensions FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="109560" LIMIT 1 2022-02-08 11:01:32.608002 97.07% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons 2022-02-08 11:01:32.608002 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] Call Direction : inbound 2022-02-08 11:01:32.608002 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] [Demand_Base_Routing]Going For Check Demand Base Routing 2022-02-08 11:01:32.608002 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] [Demand_Base_Routing] OLD COST:0.00000 2022-02-08 11:01:32.608002 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] [Demand_Base_Routing]pricelist_id:1 2022-02-08 11:01:32.608002 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] [Demand_Base_Routing] Query :SELECT demand_based_condition,holiday from demand_based_routing where pricelist_id = '1' and status=0 2022-02-08 11:01:32.608002 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] [Demand_Base_Routing] NEW COST:0.00000 2022-02-08 11:01:32.608002 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Rates Information =================== 2022-02-08 11:01:32.608002 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] ID : 1 2022-02-08 11:01:32.608002 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] Connectcost : 0.00000 2022-02-08 11:01:32.608002 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] Includedseconds : 0 2022-02-08 11:01:32.608002 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] Cost : 0.00000 2022-02-08 11:01:32.608002 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] Comment : 109560 2022-02-08 11:01:32.608002 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] Country Id : 88 2022-02-08 11:01:32.608002 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] Accid : 3 2022-02-08 11:01:32.608002 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] ================================================================ 2022-02-08 11:01:32.608002 97.07% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Ashish account call balance :SELECT balance FROM accounts WHERE id =4 2022-02-08 11:01:32.608002 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Your297.2211 balance Accountid 3 !!! 2022-02-08 11:01:32.608002 97.07% [NOTICE] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Call Is Free - Assigning Max Length :: 100 2022-02-08 11:01:32.608002 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] Call Max Length Duration : 100 minutes 2022-02-08 11:01:32.608002 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] INB_FREE:TRUE 2022-02-08 11:01:32.608002 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] free_inbound:1 2022-02-08 11:01:32.608002 97.07% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_OVERRIDE_CALLERID] Query :SELECT callerid_name as cid_name,callerid_number as cid_number,accountid FROM accounts_callerid WHERE accountid = 3 AND status=0 LIMIT 1 2022-02-08 11:01:32.608002 97.07% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE id = "4" AND deleted = 0 limit 1 2022-02-08 11:01:32.608002 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] Actual CustomerInfo XML:3 2022-02-08 11:01:32.608002 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] Userinfo XML:3 2022-02-08 11:01:32.608002 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] Actual CustomerInfo XML : 3 2022-02-08 11:01:32.608002 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] Maxlength : 100 2022-02-08 11:01:32.608002 97.07% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons 2022-02-08 11:01:32.608002 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] [XML] Customer Recording Flag : 0 2022-02-08 11:01:32.608002 97.07% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [get_accounts_info] Query :SELECT * FROM accounts WHERE id = 4 and status = 0 limit 1 2022-02-08 11:01:32.608002 97.07% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [XML] Custom Function Name :: custom_inbound_4 2022-02-08 11:01:32.608002 97.07% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Generated XML:
Dialplan: sofia/default/+1604785422@46.101.114.158 parsing [default->109560] continue=false Dialplan: sofia/default/+1604785422@46.101.114.158 Regex (PASS) [109560] destination_number(109560) =~ /109560/ break=on-false Dialplan: sofia/default/+1604785422@46.101.114.158 Action set(effective_destination_number=109560) Dialplan: sofia/default/+1604785422@46.101.114.158 Action set(bridge_pre_execute_bleg_app=sched_hangup) Dialplan: sofia/default/+1604785422@46.101.114.158 Action set(bridge_pre_execute_bleg_data=+6000 normal_clearing) Dialplan: sofia/default/+1604785422@46.101.114.158 Action set(callstart=2022-02-08 11:01:32) Dialplan: sofia/default/+1604785422@46.101.114.158 Action set(hangup_after_bridge=true) Dialplan: sofia/default/+1604785422@46.101.114.158 Action set(continue_on_fail=TRUE) Dialplan: sofia/default/+1604785422@46.101.114.158 Action set(account_id=3) Dialplan: sofia/default/+1604785422@46.101.114.158 Action set(parent_id=0) Dialplan: sofia/default/+1604785422@46.101.114.158 Action set(entity_id=3) Dialplan: sofia/default/+1604785422@46.101.114.158 Action set(call_processed=internal) Dialplan: sofia/default/+1604785422@46.101.114.158 Action set(call_direction=inbound) Dialplan: sofia/default/+1604785422@46.101.114.158 Action set(accountname=EntDemo) Dialplan: sofia/default/+1604785422@46.101.114.158 Action set(origination_rates_did=ID:1|CODE:^109560.*|DESTINATION:109560|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:4|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:88|ACCID:4) Dialplan: sofia/default/+1604785422@46.101.114.158 Action set(origination_rates=0) Dialplan: sofia/default/+1604785422@46.101.114.158 Action set(original_caller_id_name=1604785422) Dialplan: sofia/default/+1604785422@46.101.114.158 Action set(original_caller_id_number=+1604785422) Dialplan: sofia/default/+1604785422@46.101.114.158 Action export(is_recording=1) Dialplan: sofia/default/+1604785422@46.101.114.158 Action export(media_bug_answer_req=true) Dialplan: sofia/default/+1604785422@46.101.114.158 Action export(record_sample_rate=8000) Dialplan: sofia/default/+1604785422@46.101.114.158 Action export(execute_on_answer=record_session $${recordings_dir}/${uuid}.wav) Dialplan: sofia/default/+1604785422@46.101.114.158 Action set(effective_caller_id_name=1604785422) Dialplan: sofia/default/+1604785422@46.101.114.158 Action set(effective_caller_id_number=+1604785422) Dialplan: sofia/default/+1604785422@46.101.114.158 Action set(receiver_accid=4) Dialplan: sofia/default/+1604785422@46.101.114.158 Action set(did_id=1) Dialplan: sofia/default/+1604785422@46.101.114.158 Action set(transfer_call_type=4) Dialplan: sofia/default/+1604785422@46.101.114.158 Action set(transfer_extensions=7701150005) Dialplan: sofia/default/+1604785422@46.101.114.158 Action set(busy_status=1) Dialplan: sofia/default/+1604785422@46.101.114.158 Action set(no_answer_status=1) Dialplan: sofia/default/+1604785422@46.101.114.158 Action set(always_status=0) Dialplan: sofia/default/+1604785422@46.101.114.158 Action set(transfer_status=0) Dialplan: sofia/default/+1604785422@46.101.114.158 Action set(variable_sip_to_host=${domain_name}) Dialplan: sofia/default/+1604785422@46.101.114.158 Action export(domain_name=) Dialplan: sofia/default/+1604785422@46.101.114.158 Action export(sip_to_host=) Dialplan: sofia/default/+1604785422@46.101.114.158 Action export(presence_data=x|||admin's(5365342801)|||||||||DID|||46.101.114.158) Dialplan: sofia/default/+1604785422@46.101.114.158 Action export(call_type=4) Dialplan: sofia/default/+1604785422@46.101.114.158 Action set(calltype=STANDARD) Dialplan: sofia/default/+1604785422@46.101.114.158 Action set(accountcode=5365342801) Dialplan: sofia/default/+1604785422@46.101.114.158 Action set(caller_did_account_id=3) Dialplan: sofia/default/+1604785422@46.101.114.158 Action set(did_number=109560) Dialplan: sofia/default/+1604785422@46.101.114.158 Action set(did_init_inc=0) Dialplan: sofia/default/+1604785422@46.101.114.158 Action set(did_inc=0) Dialplan: sofia/default/+1604785422@46.101.114.158 Action set(did_cost=0.00000) Dialplan: sofia/default/+1604785422@46.101.114.158 Action set(did_connectcost=0.00000) Dialplan: sofia/default/+1604785422@46.101.114.158 Action set(origination_rates_did=0) Dialplan: sofia/default/+1604785422@46.101.114.158 Action transfer(7701150005 XML default) 2022-02-08 11:01:32.608002 97.07% [DEBUG] switch_core_state_machine.c:281 (sofia/default/+1604785422@46.101.114.158) State Change CS_ROUTING -> CS_EXECUTE 2022-02-08 11:01:32.608002 97.07% [DEBUG] switch_core_state_machine.c:640 (sofia/default/+1604785422@46.101.114.158) State ROUTING going to sleep 2022-02-08 11:01:32.608002 97.07% [DEBUG] switch_core_state_machine.c:581 (sofia/default/+1604785422@46.101.114.158) Running State Change CS_EXECUTE (Cur 1 Tot 15) 2022-02-08 11:01:32.608002 97.07% [DEBUG] switch_core_state_machine.c:647 (sofia/default/+1604785422@46.101.114.158) State EXECUTE 2022-02-08 11:01:32.608002 97.07% [DEBUG] mod_sofia.c:213 sofia/default/+1604785422@46.101.114.158 SOFIA EXECUTE 2022-02-08 11:01:32.608002 97.07% [DEBUG] switch_core_state_machine.c:323 sofia/default/+1604785422@46.101.114.158 Standard EXECUTE EXECUTE [depth=0] sofia/default/+1604785422@46.101.114.158 set(effective_destination_number=109560) 2022-02-08 11:01:32.628008 97.07% [DEBUG] mod_dptools.c:1685 SET sofia/default/+1604785422@46.101.114.158 [effective_destination_number]=[109560] EXECUTE [depth=0] sofia/default/+1604785422@46.101.114.158 set(bridge_pre_execute_bleg_app=sched_hangup) 2022-02-08 11:01:32.628008 97.07% [DEBUG] mod_dptools.c:1685 SET sofia/default/+1604785422@46.101.114.158 [bridge_pre_execute_bleg_app]=[sched_hangup] EXECUTE [depth=0] sofia/default/+1604785422@46.101.114.158 set(bridge_pre_execute_bleg_data=+6000 normal_clearing) 2022-02-08 11:01:32.628008 97.07% [DEBUG] mod_dptools.c:1685 SET sofia/default/+1604785422@46.101.114.158 [bridge_pre_execute_bleg_data]=[+6000 normal_clearing] EXECUTE [depth=0] sofia/default/+1604785422@46.101.114.158 set(callstart=2022-02-08 11:01:32) 2022-02-08 11:01:32.628008 97.07% [DEBUG] mod_dptools.c:1685 SET sofia/default/+1604785422@46.101.114.158 [callstart]=[2022-02-08 11:01:32] EXECUTE [depth=0] sofia/default/+1604785422@46.101.114.158 set(hangup_after_bridge=true) 2022-02-08 11:01:32.628008 97.07% [DEBUG] mod_dptools.c:1685 SET sofia/default/+1604785422@46.101.114.158 [hangup_after_bridge]=[true] EXECUTE [depth=0] sofia/default/+1604785422@46.101.114.158 set(continue_on_fail=TRUE) 2022-02-08 11:01:32.628008 97.07% [DEBUG] mod_dptools.c:1685 SET sofia/default/+1604785422@46.101.114.158 [continue_on_fail]=[TRUE] EXECUTE [depth=0] sofia/default/+1604785422@46.101.114.158 set(account_id=3) 2022-02-08 11:01:32.628008 97.07% [DEBUG] mod_dptools.c:1685 SET sofia/default/+1604785422@46.101.114.158 [account_id]=[3] EXECUTE [depth=0] sofia/default/+1604785422@46.101.114.158 set(parent_id=0) 2022-02-08 11:01:32.628008 97.07% [DEBUG] mod_dptools.c:1685 SET sofia/default/+1604785422@46.101.114.158 [parent_id]=[0] EXECUTE [depth=0] sofia/default/+1604785422@46.101.114.158 set(entity_id=3) 2022-02-08 11:01:32.628008 97.07% [DEBUG] mod_dptools.c:1685 SET sofia/default/+1604785422@46.101.114.158 [entity_id]=[3] EXECUTE [depth=0] sofia/default/+1604785422@46.101.114.158 set(call_processed=internal) 2022-02-08 11:01:32.628008 97.07% [DEBUG] mod_dptools.c:1685 SET sofia/default/+1604785422@46.101.114.158 [call_processed]=[internal] EXECUTE [depth=0] sofia/default/+1604785422@46.101.114.158 set(call_direction=inbound) 2022-02-08 11:01:32.628008 97.07% [DEBUG] mod_dptools.c:1685 SET sofia/default/+1604785422@46.101.114.158 [call_direction]=[inbound] EXECUTE [depth=0] sofia/default/+1604785422@46.101.114.158 set(accountname=EntDemo) 2022-02-08 11:01:32.628008 97.07% [DEBUG] mod_dptools.c:1685 SET sofia/default/+1604785422@46.101.114.158 [accountname]=[EntDemo] EXECUTE [depth=0] sofia/default/+1604785422@46.101.114.158 set(origination_rates_did=ID:1|CODE:^109560.*|DESTINATION:109560|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:4|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:88|ACCID:4) 2022-02-08 11:01:32.628008 97.07% [DEBUG] mod_dptools.c:1685 SET sofia/default/+1604785422@46.101.114.158 [origination_rates_did]=[ID:1|CODE:^109560.*|DESTINATION:109560|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:4|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:88|ACCID:4] EXECUTE [depth=0] sofia/default/+1604785422@46.101.114.158 set(origination_rates=0) 2022-02-08 11:01:32.628008 97.07% [DEBUG] mod_dptools.c:1685 SET sofia/default/+1604785422@46.101.114.158 [origination_rates]=[0] EXECUTE [depth=0] sofia/default/+1604785422@46.101.114.158 set(original_caller_id_name=1604785422) 2022-02-08 11:01:32.628008 97.07% [DEBUG] mod_dptools.c:1685 SET sofia/default/+1604785422@46.101.114.158 [original_caller_id_name]=[1604785422] EXECUTE [depth=0] sofia/default/+1604785422@46.101.114.158 set(original_caller_id_number=+1604785422) 2022-02-08 11:01:32.628008 97.07% [DEBUG] mod_dptools.c:1685 SET sofia/default/+1604785422@46.101.114.158 [original_caller_id_number]=[+1604785422] EXECUTE [depth=0] sofia/default/+1604785422@46.101.114.158 export(is_recording=1) 2022-02-08 11:01:32.628008 97.07% [DEBUG] switch_channel.c:1315 EXPORT (export_vars) [is_recording]=[1] EXECUTE [depth=0] sofia/default/+1604785422@46.101.114.158 export(media_bug_answer_req=true) 2022-02-08 11:01:32.628008 97.07% [DEBUG] switch_channel.c:1315 EXPORT (export_vars) [media_bug_answer_req]=[true] EXECUTE [depth=0] sofia/default/+1604785422@46.101.114.158 export(record_sample_rate=8000) 2022-02-08 11:01:32.628008 97.07% [DEBUG] switch_channel.c:1315 EXPORT (export_vars) [record_sample_rate]=[8000] EXECUTE [depth=0] sofia/default/+1604785422@46.101.114.158 export(execute_on_answer=record_session /var/lib/freeswitch/recordings/b4bb4fe3-84c5-499b-a511-1f4b04908127.wav) 2022-02-08 11:01:32.628008 97.07% [DEBUG] switch_channel.c:1315 EXPORT (export_vars) [execute_on_answer]=[record_session /var/lib/freeswitch/recordings/b4bb4fe3-84c5-499b-a511-1f4b04908127.wav] EXECUTE [depth=0] sofia/default/+1604785422@46.101.114.158 set(effective_caller_id_name=1604785422) 2022-02-08 11:01:32.628008 97.07% [DEBUG] mod_dptools.c:1685 SET sofia/default/+1604785422@46.101.114.158 [effective_caller_id_name]=[1604785422] EXECUTE [depth=0] sofia/default/+1604785422@46.101.114.158 set(effective_caller_id_number=+1604785422) 2022-02-08 11:01:32.628008 97.07% [DEBUG] mod_dptools.c:1685 SET sofia/default/+1604785422@46.101.114.158 [effective_caller_id_number]=[+1604785422] EXECUTE [depth=0] sofia/default/+1604785422@46.101.114.158 set(receiver_accid=4) 2022-02-08 11:01:32.628008 97.07% [DEBUG] mod_dptools.c:1685 SET sofia/default/+1604785422@46.101.114.158 [receiver_accid]=[4] EXECUTE [depth=0] sofia/default/+1604785422@46.101.114.158 set(did_id=1) 2022-02-08 11:01:32.628008 97.07% [DEBUG] mod_dptools.c:1685 SET sofia/default/+1604785422@46.101.114.158 [did_id]=[1] EXECUTE [depth=0] sofia/default/+1604785422@46.101.114.158 set(transfer_call_type=4) 2022-02-08 11:01:32.628008 97.07% [DEBUG] mod_dptools.c:1685 SET sofia/default/+1604785422@46.101.114.158 [transfer_call_type]=[4] EXECUTE [depth=0] sofia/default/+1604785422@46.101.114.158 set(transfer_extensions=7701150005) 2022-02-08 11:01:32.628008 97.07% [DEBUG] mod_dptools.c:1685 SET sofia/default/+1604785422@46.101.114.158 [transfer_extensions]=[7701150005] EXECUTE [depth=0] sofia/default/+1604785422@46.101.114.158 set(busy_status=1) 2022-02-08 11:01:32.628008 97.07% [DEBUG] mod_dptools.c:1685 SET sofia/default/+1604785422@46.101.114.158 [busy_status]=[1] EXECUTE [depth=0] sofia/default/+1604785422@46.101.114.158 set(no_answer_status=1) 2022-02-08 11:01:32.628008 97.07% [DEBUG] mod_dptools.c:1685 SET sofia/default/+1604785422@46.101.114.158 [no_answer_status]=[1] EXECUTE [depth=0] sofia/default/+1604785422@46.101.114.158 set(always_status=0) 2022-02-08 11:01:32.628008 97.07% [DEBUG] mod_dptools.c:1685 SET sofia/default/+1604785422@46.101.114.158 [always_status]=[0] EXECUTE [depth=0] sofia/default/+1604785422@46.101.114.158 set(transfer_status=0) 2022-02-08 11:01:32.628008 97.07% [DEBUG] mod_dptools.c:1685 SET sofia/default/+1604785422@46.101.114.158 [transfer_status]=[0] EXECUTE [depth=0] sofia/default/+1604785422@46.101.114.158 set(variable_sip_to_host=172.31.15.133) 2022-02-08 11:01:32.628008 97.07% [DEBUG] mod_dptools.c:1685 SET sofia/default/+1604785422@46.101.114.158 [variable_sip_to_host]=[172.31.15.133] EXECUTE [depth=0] sofia/default/+1604785422@46.101.114.158 export(domain_name=) 2022-02-08 11:01:32.628008 97.07% [DEBUG] switch_channel.c:1315 EXPORT (export_vars) [domain_name]=[UNDEF] EXECUTE [depth=0] sofia/default/+1604785422@46.101.114.158 export(sip_to_host=) 2022-02-08 11:01:32.628008 97.07% [DEBUG] switch_channel.c:1315 EXPORT (export_vars) [sip_to_host]=[UNDEF] EXECUTE [depth=0] sofia/default/+1604785422@46.101.114.158 export(presence_data=x|||admin's(5365342801)|||||||||DID|||46.101.114.158) 2022-02-08 11:01:32.628008 97.07% [DEBUG] switch_channel.c:1315 EXPORT (export_vars) [presence_data]=[x|||admin's(5365342801)|||||||||DID|||46.101.114.158] EXECUTE [depth=0] sofia/default/+1604785422@46.101.114.158 export(call_type=4) 2022-02-08 11:01:32.628008 97.07% [DEBUG] switch_channel.c:1315 EXPORT (export_vars) [call_type]=[4] EXECUTE [depth=0] sofia/default/+1604785422@46.101.114.158 set(calltype=STANDARD) 2022-02-08 11:01:32.628008 97.07% [DEBUG] mod_dptools.c:1685 SET sofia/default/+1604785422@46.101.114.158 [calltype]=[STANDARD] EXECUTE [depth=0] sofia/default/+1604785422@46.101.114.158 set(accountcode=5365342801) 2022-02-08 11:01:32.628008 97.07% [DEBUG] mod_dptools.c:1685 SET sofia/default/+1604785422@46.101.114.158 [accountcode]=[5365342801] EXECUTE [depth=0] sofia/default/+1604785422@46.101.114.158 set(caller_did_account_id=3) 2022-02-08 11:01:32.628008 97.07% [DEBUG] mod_dptools.c:1685 SET sofia/default/+1604785422@46.101.114.158 [caller_did_account_id]=[3] EXECUTE [depth=0] sofia/default/+1604785422@46.101.114.158 set(did_number=109560) 2022-02-08 11:01:32.628008 97.07% [DEBUG] mod_dptools.c:1685 SET sofia/default/+1604785422@46.101.114.158 [did_number]=[109560] EXECUTE [depth=0] sofia/default/+1604785422@46.101.114.158 set(did_init_inc=0) 2022-02-08 11:01:32.628008 97.07% [DEBUG] mod_dptools.c:1685 SET sofia/default/+1604785422@46.101.114.158 [did_init_inc]=[0] EXECUTE [depth=0] sofia/default/+1604785422@46.101.114.158 set(did_inc=0) 2022-02-08 11:01:32.628008 97.07% [DEBUG] mod_dptools.c:1685 SET sofia/default/+1604785422@46.101.114.158 [did_inc]=[0] EXECUTE [depth=0] sofia/default/+1604785422@46.101.114.158 set(did_cost=0.00000) 2022-02-08 11:01:32.628008 97.07% [DEBUG] mod_dptools.c:1685 SET sofia/default/+1604785422@46.101.114.158 [did_cost]=[0.00000] EXECUTE [depth=0] sofia/default/+1604785422@46.101.114.158 set(did_connectcost=0.00000) 2022-02-08 11:01:32.628008 97.07% [DEBUG] mod_dptools.c:1685 SET sofia/default/+1604785422@46.101.114.158 [did_connectcost]=[0.00000] EXECUTE [depth=0] sofia/default/+1604785422@46.101.114.158 set(origination_rates_did=0) 2022-02-08 11:01:32.628008 97.07% [DEBUG] mod_dptools.c:1685 SET sofia/default/+1604785422@46.101.114.158 [origination_rates_did]=[0] EXECUTE [depth=0] sofia/default/+1604785422@46.101.114.158 transfer(7701150005 XML default) 2022-02-08 11:01:32.628008 97.07% [DEBUG] switch_ivr.c:2289 (sofia/default/+1604785422@46.101.114.158) State Change CS_EXECUTE -> CS_ROUTING 2022-02-08 11:01:32.628008 97.07% [NOTICE] switch_ivr.c:2296 Transfer sofia/default/+1604785422@46.101.114.158 to XML[7701150005@default] 2022-02-08 11:01:32.628008 97.07% [DEBUG] switch_core_state_machine.c:647 (sofia/default/+1604785422@46.101.114.158) State EXECUTE going to sleep 2022-02-08 11:01:32.628008 97.07% [DEBUG] switch_core_state_machine.c:581 (sofia/default/+1604785422@46.101.114.158) Running State Change CS_ROUTING (Cur 1 Tot 15) 2022-02-08 11:01:32.628008 97.07% [DEBUG] switch_core_state_machine.c:640 (sofia/default/+1604785422@46.101.114.158) State ROUTING 2022-02-08 11:01:32.628008 97.07% [DEBUG] mod_sofia.c:149 Call appears to be already acknowledged 2022-02-08 11:01:32.628008 97.07% [DEBUG] mod_sofia.c:158 sofia/default/+1604785422@46.101.114.158 SOFIA ROUTING 2022-02-08 11:01:32.628008 97.07% [DEBUG] switch_core_state_machine.c:230 sofia/default/+1604785422@46.101.114.158 Standard ROUTING 2022-02-08 11:01:32.628008 97.07% [INFO] mod_dialplan_xml.c:639 Processing 1604785422 <+1604785422>->7701150005 in context default 2022-02-08 11:01:32.628008 97.07% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','international_prefixes') 2022-02-08 11:01:32.647999 97.07% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons 2022-02-08 11:01:32.647999 97.07% [NOTICE] switch_cpp.cpp:1465 [ASTPP] [xml_handler] Params: Event-Name: REQUEST_PARAMS Core-UUID: dae52d9c-ce8e-4d58-8937-6f103a597dbe FreeSWITCH-Hostname: ip-172-31-15-133 FreeSWITCH-Switchname: ip-172-31-15-133 FreeSWITCH-IPv4: 172.31.15.133 FreeSWITCH-IPv6: %3A%3A1 Event-Date-Local: 2022-02-08%2011%3A01%3A32 Event-Date-GMT: Tue,%2008%20Feb%202022%2011%3A01%3A32%20GMT Event-Date-Timestamp: 1644318092628008 Event-Calling-File: mod_dialplan_xml.c Event-Calling-Function: dialplan_xml_locate Event-Calling-Line-Number: 610 Event-Sequence: 2146 Channel-State: CS_ROUTING Channel-Call-State: RINGING Channel-State-Number: 2 Channel-Name: sofia/default/%2B1604785422%4046.101.114.158 Unique-ID: b4bb4fe3-84c5-499b-a511-1f4b04908127 Call-Direction: inbound Presence-Call-Direction: inbound Channel-HIT-Dialplan: true Channel-Presence-ID: %2B1604785422%4046.101.114.158 Channel-Presence-Data: x%7C%7C%7Cadmin's(5365342801)%7C%7C%7C%7C%7C%7C%7C%7C%7CDID%7C%7C%7C46.101.114.158 Channel-Call-UUID: b4bb4fe3-84c5-499b-a511-1f4b04908127 Answer-State: ringing Channel-Read-Codec-Name: PCMU Channel-Read-Codec-Rate: 8000 Channel-Read-Codec-Bit-Rate: 64000 Channel-Write-Codec-Name: PCMU Channel-Write-Codec-Rate: 8000 Channel-Write-Codec-Bit-Rate: 64000 Caller-Direction: inbound Caller-Logical-Direction: inbound Caller-Username: %2B1604785422 Caller-Dialplan: XML Caller-Caller-ID-Name: 1604785422 Caller-Caller-ID-Number: %2B1604785422 Caller-Orig-Caller-ID-Name: 1604785422 Caller-Orig-Caller-ID-Number: %2B1604785422 Caller-Network-Addr: 46.101.114.158 Caller-ANI: %2B1604785422 Caller-Destination-Number: 7701150005 Caller-Unique-ID: b4bb4fe3-84c5-499b-a511-1f4b04908127 Caller-Source: mod_sofia Caller-Transfer-Source: 1644318092%3A10249d53-4f3f-4106-8e62-2a17e511974c%3Abl_xfer%3A7701150005/default/XML Caller-Context: default Caller-RDNIS: 109560 Caller-Channel-Name: sofia/default/%2B1604785422%4046.101.114.158 Caller-Profile-Index: 2 Caller-Profile-Created-Time: 1644318092628008 Caller-Channel-Created-Time: 1644318092548054 Caller-Channel-Answered-Time: 0 Caller-Channel-Progress-Time: 0 Caller-Channel-Progress-Media-Time: 0 Caller-Channel-Hangup-Time: 0 Caller-Channel-Transfer-Time: 0 Caller-Channel-Resurrect-Time: 0 Caller-Channel-Bridged-Time: 0 Caller-Channel-Last-Hold: 0 Caller-Channel-Hold-Accum: 0 Caller-Screen-Bit: true Caller-Privacy-Hide-Name: false Caller-Privacy-Hide-Number: false variable_direction: inbound variable_uuid: b4bb4fe3-84c5-499b-a511-1f4b04908127 variable_session_id: 15 variable_sip_from_user: %2B1604785422 variable_sip_from_uri: %2B1604785422%4046.101.114.158 variable_sip_from_host: 46.101.114.158 variable_video_media_flow: disabled variable_text_media_flow: disabled variable_channel_name: sofia/default/%2B1604785422%4046.101.114.158 variable_sip_call_id: 50d9700b-0371-123b-d299-ba05d31eb9f9 variable_sip_local_network_addr: 13.233.144.222 variable_sip_network_ip: 46.101.114.158 variable_sip_network_port: 5077 variable_sip_invite_stamp: 1644318092548054 variable_sip_received_ip: 46.101.114.158 variable_sip_received_port: 5077 variable_sip_via_protocol: udp variable_sip_authorized: true variable_sip_acl_authed_by: default variable_sip_from_user_stripped: 1604785422 variable_sip_from_tag: v0DSSvja86jKr variable_sofia_profile_name: default variable_sofia_profile_url: sip%3Amod_sofia%4013.233.144.222%3A5074 variable_recovery_profile_name: default variable_sip_Remote-Party-ID: %221604785422%22%20%3Csip%3A%2B1604785422%4046.101.114.158%3E%3Bparty%3Dcalling%3Bscreen%3Dyes%3Bprivacy%3Doff variable_sip_cid_type: rpid variable_sip_full_via: SIP/2.0/UDP%2046.101.114.158%3A5077%3Brport%3D5077%3Bbranch%3Dz9hG4bKQ9yF4ap3D8e3F variable_sip_from_display: 1604785422 variable_sip_full_from: %221604785422%22%20%3Csip%3A%2B1604785422%4046.101.114.158%3E%3Btag%3Dv0DSSvja86jKr variable_sip_full_to: %3Csip%3A109560%4013.233.144.222%3A5074%3E variable_sip_allow: INVITE,%20ACK,%20BYE,%20CANCEL,%20OPTIONS,%20MESSAGE,%20INFO,%20UPDATE,%20REGISTER,%20REFER,%20NOTIFY,%20PUBLISH,%20SUBSCRIBE variable_sip_req_user: 109560 variable_sip_req_port: 5074 variable_sip_req_uri: 109560%4013.233.144.222%3A5074 variable_sip_req_host: 13.233.144.222 variable_sip_to_user: 109560 variable_sip_to_port: 5074 variable_sip_to_uri: 109560%4013.233.144.222%3A5074 variable_sip_contact_params: transport%3Dudp%3Bgw%3DPK-Default-Gateway variable_sip_contact_user: gw%2BPK-Default-Gateway variable_sip_contact_port: 5077 variable_sip_contact_uri: gw%2BPK-Default-Gateway%4046.101.114.158%3A5077 variable_sip_contact_host: 46.101.114.158 variable_sip_user_agent: ASTPP variable_sip_via_host: 46.101.114.158 variable_sip_via_port: 5077 variable_sip_via_rport: 5077 variable_presence_id: %2B1604785422%4046.101.114.158 variable_switch_r_sdp: v%3D0%0D%0Ao%3DFreeSWITCH%201644284828%201644284829%20IN%20IP4%2046.101.114.158%0D%0As%3DFreeSWITCH%0D%0Ac%3DIN%20IP4%2046.101.114.158%0D%0At%3D0%200%0D%0Am%3Daudio%2033264%20RTP/AVP%200%20101%0D%0Aa%3Drtpmap%3A0%20PCMU/8000%0D%0Aa%3Drtpmap%3A101%20telephone-event/8000%0D%0Aa%3Dfmtp%3A101%200-16%0D%0Aa%3Dptime%3A20%0D%0A variable_ep_codec_string: CORE_PCM_MODULE.PCMU%408000h%4020i%4064000b variable_rtp_use_codec_string: PCMU,PCMA variable_remote_video_media_flow: inactive variable_remote_text_media_flow: inactive variable_remote_audio_media_flow: sendrecv variable_audio_media_flow: sendrecv variable_remote_media_ip: 46.101.114.158 variable_remote_media_port: 33264 variable_rtp_audio_recv_pt: 0 variable_rtp_use_codec_name: PCMU variable_rtp_use_codec_rate: 8000 variable_rtp_use_codec_ptime: 20 variable_rtp_use_codec_channels: 1 variable_rtp_last_audio_codec_string: PCMU%408000h%4020i%401c variable_read_codec: PCMU variable_original_read_codec: PCMU variable_read_rate: 8000 variable_original_read_rate: 8000 variable_write_codec: PCMU variable_write_rate: 8000 variable_dtmf_type: rfc2833 variable_endpoint_disposition: RECEIVED variable_effective_destination_number: 109560 variable_bridge_pre_execute_bleg_app: sched_hangup variable_bridge_pre_execute_bleg_data: %2B6000%20normal_clearing variable_callstart: 2022-02-08%2011%3A01%3A32 variable_hangup_after_bridge: true variable_continue_on_fail: TRUE variable_account_id: 3 variable_parent_id: 0 variable_entity_id: 3 variable_call_processed: internal variable_call_direction: inbound variable_accountname: EntDemo variable_origination_rates: 0 variable_original_caller_id_name: 1604785422 variable_original_caller_id_number: %2B1604785422 variable_is_recording: 1 variable_media_bug_answer_req: true variable_record_sample_rate: 8000 variable_execute_on_answer: record_session%20/var/lib/freeswitch/recordings/b4bb4fe3-84c5-499b-a511-1f4b04908127.wav variable_effective_caller_id_name: 1604785422 variable_effective_caller_id_number: %2B1604785422 variable_receiver_accid: 4 variable_did_id: 1 variable_transfer_call_type: 4 variable_transfer_extensions: 7701150005 variable_busy_status: 1 variable_no_answer_status: 1 variable_always_status: 0 variable_transfer_status: 0 variable_variable_sip_to_host: 172.31.15.133 variable_presence_data: x%7C%7C%7Cadmin's(5365342801)%7C%7C%7C%7C%7C%7C%7C%7C%7CDID%7C%7C%7C46.101.114.158 variable_call_type: 4 variable_export_vars: is_recording,media_bug_answer_req,record_sample_rate,execute_on_answer,presence_data,call_type variable_calltype: STANDARD variable_accountcode: 5365342801 variable_caller_did_account_id: 3 variable_did_number: 109560 variable_did_init_inc: 0 variable_did_inc: 0 variable_did_cost: 0.00000 variable_did_connectcost: 0.00000 variable_origination_rates_did: 0 variable_current_application_data: 7701150005%20XML%20default variable_current_application: transfer variable_max_forwards: 68 variable_transfer_history: 1644318092%3A10249d53-4f3f-4106-8e62-2a17e511974c%3Abl_xfer%3A7701150005/default/XML variable_transfer_source: 1644318092%3A10249d53-4f3f-4106-8e62-2a17e511974c%3Abl_xfer%3A7701150005/default/XML variable_call_uuid: b4bb4fe3-84c5-499b-a511-1f4b04908127 Hunt-Direction: inbound Hunt-Logical-Direction: inbound Hunt-Username: %2B1604785422 Hunt-Dialplan: XML Hunt-Caller-ID-Name: 1604785422 Hunt-Caller-ID-Number: %2B1604785422 Hunt-Orig-Caller-ID-Name: 1604785422 Hunt-Orig-Caller-ID-Number: %2B1604785422 Hunt-Network-Addr: 46.101.114.158 Hunt-ANI: %2B1604785422 Hunt-Destination-Number: 7701150005 Hunt-Unique-ID: b4bb4fe3-84c5-499b-a511-1f4b04908127 Hunt-Source: mod_sofia Hunt-Transfer-Source: 1644318092%3A10249d53-4f3f-4106-8e62-2a17e511974c%3Abl_xfer%3A7701150005/default/XML Hunt-Context: default Hunt-RDNIS: 109560 Hunt-Channel-Name: sofia/default/%2B1604785422%4046.101.114.158 Hunt-Profile-Index: 2 Hunt-Profile-Created-Time: 1644318092628008 Hunt-Channel-Created-Time: 1644318092548054 Hunt-Channel-Answered-Time: 0 Hunt-Channel-Progress-Time: 0 Hunt-Channel-Progress-Media-Time: 0 Hunt-Channel-Hangup-Time: 0 Hunt-Channel-Transfer-Time: 0 Hunt-Channel-Resurrect-Time: 0 Hunt-Channel-Bridged-Time: 0 Hunt-Channel-Last-Hold: 0 Hunt-Channel-Hold-Accum: 0 Hunt-Screen-Bit: true Hunt-Privacy-Hide-Name: false Hunt-Privacy-Hide-Number: false 2022-02-08 11:01:32.647999 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] [xml_REQUEST] key_value: 2022-02-08 11:01:32.647999 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] [xml_REQUEST] section: dialplan 2022-02-08 11:01:32.647999 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] [xml_REQUEST] tag_name: 2022-02-08 11:01:32.647999 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] [xml_REQUEST] key_name: 2022-02-08 11:01:32.647999 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Dialed number : 7701150005 2022-02-08 11:01:32.647999 97.07% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = '7701150005' AND status=0 limit 1 2022-02-08 11:01:32.647999 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Caller Id name / number : 1604785422 / +1604785422 2022-02-08 11:01:32.647999 97.07% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID] Query :SELECT A.id as id,A.number as did_number,B.id as accountid,B.number as account_code,A.number as did_number,A.connectcost,A.includedseconds,A.cost,A.inc,A.extensions,A.maxchannels,A.call_type,A.city,A.province,A.init_inc,A.leg_timeout,A.status,A.country_id,A.call_type_vm_flag, A.codec as did_codec FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="7701150005" LIMIT 1 2022-02-08 11:01:32.647999 97.07% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID_CALL_TRANSFER] Query :SELECT A.id as id,A.number as did_number,B.id as accountid,B.number as account_code,A.number as did_number,A.connectcost,A.includedseconds,A.cost,A.inc,A.extensions,A.maxchannels,A.call_type,A.city,A.province,A.init_inc,A.leg_timeout,A.status,A.country_id,A.call_type_vm_flag,A.transfer_status,A.busy_status,A.no_answer_status,A.always_status,A.transfer_call_type,A.transfer_extensions FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="7701150005" LIMIT 1 2022-02-08 11:01:32.647999 97.07% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons 2022-02-08 11:01:32.647999 97.07% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_LOCAL_CALL] Query :SELECT sip_devices.username as username,accounts.number as accountcode,sip_devices.accountid as accountid,accounts.did_cid_translation as did_cid_translation,sip_devices.codec as sip_codec FROM sip_devices as sip_devices,accounts as accounts WHERE accounts.status=0 AND accounts.deleted=0 AND accounts.id=sip_devices.accountid AND sip_devices.username="7701150005" limit 1 2022-02-08 11:01:32.647999 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Call direction : outbound 2022-02-08 11:01:32.647999 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] [Accountcode : 5365342801] 2022-02-08 11:01:32.647999 97.07% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "5365342801" AND deleted = 0 limit 1 2022-02-08 11:01:32.668011 97.07% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_BLOCKED_PREFIX] Query :SELECT * FROM block_patterns WHERE (blocked_patterns = '^7701150005.*' OR blocked_patterns = '^770115000.*' OR blocked_patterns = '^77011500.*' OR blocked_patterns = '^7701150.*' OR blocked_patterns = '^770115.*' OR blocked_patterns = '^77011.*' OR blocked_patterns = '^7701.*' OR blocked_patterns = '^770.*' OR blocked_patterns = '^77.*' OR blocked_patterns = '^7.*' OR blocked_patterns ='--') AND accountid = 4 limit 1 2022-02-08 11:01:32.687999 97.07% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [IS_CHECK_DID] Query :SELECT * FROM dids WHERE number ="7701150005" AND (accountid = 0 OR status = 1) LIMIT 1 2022-02-08 11:01:32.687999 97.07% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PACKAGE_INFO] Query :SELECT *,P.id as package_id,P.product_id as product_id FROM packages_view as P inner join package_patterns as PKGPTR on P.product_id = PKGPTR.product_id WHERE (patterns = '^7701150005.*' OR patterns = '^770115000.*' OR patterns = '^77011500.*' OR patterns = '^7701150.*' OR patterns = '^770115.*' OR patterns = '^77011.*' OR patterns = '^7701.*' OR patterns = '^770.*' OR patterns = '^77.*' OR patterns = '^7.*' OR patterns ='--') AND accountid = 4 ORDER BY LENGTH(PKGPTR.patterns) DESC 2022-02-08 11:01:32.687999 97.07% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_SPEEDDIAL] Query :SELECT A.number FROM speed_dial as A,accounts as B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.speed_num ="7701150005" AND A.accountid = '4' limit 1 2022-02-08 11:01:32.687999 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 7701150005 2022-02-08 11:01:32.687999 97.07% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID] Query :SELECT A.id as id,A.number as did_number,B.id as accountid,B.number as account_code,A.number as did_number,A.connectcost,A.includedseconds,A.cost,A.inc,A.extensions,A.maxchannels,A.call_type,A.city,A.province,A.init_inc,A.leg_timeout,A.status,A.country_id,A.call_type_vm_flag, A.codec as did_codec FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="7701150005" LIMIT 1 2022-02-08 11:01:32.687999 97.07% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID_CALL_TRANSFER] Query :SELECT A.id as id,A.number as did_number,B.id as accountid,B.number as account_code,A.number as did_number,A.connectcost,A.includedseconds,A.cost,A.inc,A.extensions,A.maxchannels,A.call_type,A.city,A.province,A.init_inc,A.leg_timeout,A.status,A.country_id,A.call_type_vm_flag,A.transfer_status,A.busy_status,A.no_answer_status,A.always_status,A.transfer_call_type,A.transfer_extensions FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="7701150005" LIMIT 1 2022-02-08 11:01:32.687999 97.07% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons 2022-02-08 11:01:32.687999 97.07% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_LOCAL_CALL] Query :SELECT sip_devices.username as username,accounts.number as accountcode,sip_devices.accountid as accountid,accounts.did_cid_translation as did_cid_translation,sip_devices.codec as sip_codec FROM sip_devices as sip_devices,accounts as accounts WHERE accounts.status=0 AND accounts.deleted=0 AND accounts.id=sip_devices.accountid AND sip_devices.username="7701150005" limit 1 2022-02-08 11:01:32.687999 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] New Call Direction : outbound 2022-02-08 11:01:32.708001 97.07% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_CALL_BARRING] Query :SELECT number,RIGHT(number,1) as lastchar,type as status_type,number_type,accountid FROM call_barring WHERE ((number = '7701150005' OR number = '770115000' OR number = '77011500' OR number = '7701150' OR number = '770115' OR number = '77011' OR number = '7701' OR number = '770' OR number = '77' OR number = '7' OR number ='--') OR (number = '7701150005*' OR number = '770115000*' OR number = '77011500*' OR number = '7701150*' OR number = '770115*' OR number = '77011*' OR number = '7701*' OR number = '770*' OR number = '77*' OR number = '7*' OR number ='--') OR (number = '+1604785422' OR number = '+160478542' OR number = '+16047854' OR number = '+1604785' OR number = '+160478' OR number = '+16047' OR number = '+1604' OR number = '+160' OR number = '+16' OR number = '+1' OR number = '+' OR number ='--') OR (number = '+1604785422*' OR number = '+160478542*' OR number = '+16047854*' OR number = '+1604785*' OR number = '+160478*' OR number = '+16047*' OR number = '+1604*' OR number = '+160*' OR number = '+16*' OR number = '+1*' OR number = '+*' OR number ='--')) AND status=0 AND accountid = 0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC 2022-02-08 11:01:32.708001 97.07% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Call Barring Status : -1 2022-02-08 11:01:32.708001 97.07% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '7701150005' OR routing_prefix = '770115000' OR routing_prefix = '77011500' OR routing_prefix = '7701150' OR routing_prefix = '770115' OR routing_prefix = '77011' OR routing_prefix = '7701' OR routing_prefix = '770' OR routing_prefix = '77' OR routing_prefix = '7' OR routing_prefix ='--') AND status = 0 and reseller_id = 0 limit 1 2022-02-08 11:01:32.708001 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Account Information =================== 2022-02-08 11:01:32.708001 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] User id : 4 2022-02-08 11:01:32.708001 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] Account code : 5365342801 2022-02-08 11:01:32.708001 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] Balance : 3702.7789 2022-02-08 11:01:32.708001 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] Type : 1 [0:prepaid,1:postpaid] 2022-02-08 11:01:32.708001 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] Ratecard id : 3 2022-02-08 11:01:32.708001 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] CID Pool : 0 2022-02-08 11:01:32.708001 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] ======================================================== 2022-02-08 11:01:32.708001 97.07% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 3 AND status = 0 2022-02-08 11:01:32.708001 97.07% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_RATES] call_direction :outbound 2022-02-08 11:01:32.708001 97.07% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 3 AND status = 0 2022-02-08 11:01:32.708001 97.07% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_RATES] Query :SELECT * FROM routes WHERE (pattern = '^7701150005.*' OR pattern = '^770115000.*' OR pattern = '^77011500.*' OR pattern = '^7701150.*' OR pattern = '^770115.*' OR pattern = '^77011.*' OR pattern = '^7701.*' OR pattern = '^770.*' OR pattern = '^77.*' OR pattern = '^7.*' OR pattern ='--') AND (caller_id_pattern = '^+1604785422.*' OR caller_id_pattern = '^+160478542.*' OR caller_id_pattern = '^+16047854.*' OR caller_id_pattern = '^+1604785.*' OR caller_id_pattern = '^+160478.*' OR caller_id_pattern = '^+16047.*' OR caller_id_pattern = '^+1604.*' OR caller_id_pattern = '^+160.*' OR caller_id_pattern = '^+16.*' OR caller_id_pattern = '^+1.*' OR caller_id_pattern = '^+.*' OR caller_id_pattern ='^.*') AND status = 0 AND effective_date <= UTC_TIMESTAMP() AND (pricelist_id = 3 OR accountid=4) ORDER BY accountid DESC,LENGTH(pattern),LENGTH(caller_id_pattern) DESC,cost DESC,effective_date DESC LIMIT 1 2022-02-08 11:01:32.708001 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] Call Direction : outbound 2022-02-08 11:01:32.708001 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] [Demand_Base_Routing]Going For Check Demand Base Routing 2022-02-08 11:01:32.708001 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] [Demand_Base_Routing] OLD COST:3.00000 2022-02-08 11:01:32.708001 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] [Demand_Base_Routing]pricelist_id:3 2022-02-08 11:01:32.708001 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] [Demand_Base_Routing] Query :SELECT demand_based_condition,holiday from demand_based_routing where pricelist_id = '3' and status=0 2022-02-08 11:01:32.727999 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] [Demand_Base_Routing] holiday_based_routing : 2022-02-08 11:01:32.727999 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] [Demand_Base_Routing] today_date :8-2 2022-02-08 11:01:32.727999 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] [Demand_Base_Routing] demand_based_condition : 2022-02-08 11:01:32.727999 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] [Demand_Base_Routing] current_time :11.01 2022-02-08 11:01:32.727999 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] [Demand_Base_Routing] current_wday :3 2022-02-08 11:01:32.727999 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] [Demand_Base_Routing] Demand based routing Match for priority :5 2022-02-08 11:01:32.727999 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] [Demand_Base_Routing] NEW COST:3.45 2022-02-08 11:01:32.727999 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Rates Information =================== 2022-02-08 11:01:32.727999 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] ID : 3 2022-02-08 11:01:32.727999 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] Connectcost : 0.00000 2022-02-08 11:01:32.727999 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] Includedseconds : 0 2022-02-08 11:01:32.727999 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] Cost : 3.45 2022-02-08 11:01:32.727999 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] Comment : UK-Entdemo 2022-02-08 11:01:32.727999 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] Country Id : 89 2022-02-08 11:01:32.727999 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] Accid : 4 2022-02-08 11:01:32.727999 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] Trunk ID: 2022-02-08 11:01:32.727999 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] Routing type: 2022-02-08 11:01:32.727999 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] ================================================================ 2022-02-08 11:01:32.727999 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Your3702.7789 balance Accountid 4 !!! 2022-02-08 11:01:32.727999 97.07% [NOTICE] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Limiting Call To Config Max Length 100 mins! 2022-02-08 11:01:32.727999 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] Call Max Length Duration : 100 minutes 2022-02-08 11:01:32.727999 97.07% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_CARRIER_RATES] Query Rate Carrier Id : 2022-02-08 11:01:32.727999 97.07% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_CARRIER_RATES_TRUNKS] Query :SELECT GROUP_CONCAT(trunk_id) as ids FROM routing WHERE pricelist_id=3 ORDER by id asc 2022-02-08 11:01:32.727999 97.07% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_CARRIER_RATES] Query :SELECT TK.id as trunk_id,TK.name as trunk_name,TK.sip_cid_type,TK.codec,GW.name as path,GW.dialplan_variable,TK.provider_id,TR.init_inc,TK.status,TK.maxchannels,TK.cps,TK.leg_timeout,TR.pattern,TR.id as outbound_route_id,TR.connectcost,TR.comment,TR.includedseconds,TR.cost,TR.inc,TR.prepend,TR.strip,(select name from gateways where status=0 AND id = TK.failover_gateway_id) as path1,(select name from gateways where status=0 AND id = TK.failover_gateway_id1) as path2 FROM outbound_routes as TR,trunks as TK,gateways as GW WHERE GW.status=0 AND GW.id= TK.gateway_id AND TK.status=0 AND TK.id= TR.trunk_id AND (pattern = '^7701150005.*' OR pattern = '^770115000.*' OR pattern = '^77011500.*' OR pattern = '^7701150.*' OR pattern = '^770115.*' OR pattern = '^77011.*' OR pattern = '^7701.*' OR pattern = '^770.*' OR pattern = '^77.*' OR pattern = '^7.*' OR pattern ='--') AND TR.status = 0 AND TR.trunk_id IN (4,6) AND TR.effective_date <= UTC_TIMESTAMP() ORDER by LENGTH (pattern) DESC,TR.cost ASC,TR.precedence ASC, TK.precedence,TR.effective_date DESC 2022-02-08 11:01:32.727999 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Termination Rates Information =================== 2022-02-08 11:01:32.727999 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] ID : 2 2022-02-08 11:01:32.727999 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] Code : ^77.* 2022-02-08 11:01:32.727999 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] Destination : UK-Entdemo 2022-02-08 11:01:32.727999 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] Connectcost : 0.00000 2022-02-08 11:01:32.727999 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] Free Seconds : 0 2022-02-08 11:01:32.727999 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] Prefix : ^77.* 2022-02-08 11:01:32.727999 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] Strip : 2022-02-08 11:01:32.727999 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] Prepend : 2022-02-08 11:01:32.727999 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] Carrier id : 4 2022-02-08 11:01:32.727999 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] carrier_name : Ent-Demo 2022-02-08 11:01:32.727999 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] dialplan_variable : 2022-02-08 11:01:32.727999 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] Failover gateway : 2022-02-08 11:01:32.727999 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] Vendor id : 3 2022-02-08 11:01:32.727999 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] Max channels : 0 2022-02-08 11:01:32.727999 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] Trunk Name : Ent-Demo 2022-02-08 11:01:32.727999 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] ========================END OF TERMINATION RATES======================= 2022-02-08 11:01:32.747994 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Termination Rates Information =================== 2022-02-08 11:01:32.747994 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] ID : 12 2022-02-08 11:01:32.747994 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] Code : ^77.* 2022-02-08 11:01:32.747994 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] Destination : Continue_on_fail 2022-02-08 11:01:32.747994 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] Connectcost : 0.00000 2022-02-08 11:01:32.747994 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] Free Seconds : 0 2022-02-08 11:01:32.747994 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] Prefix : ^77.* 2022-02-08 11:01:32.747994 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] Strip : 2022-02-08 11:01:32.747994 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] Prepend : 2022-02-08 11:01:32.747994 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] Carrier id : 6 2022-02-08 11:01:32.747994 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] carrier_name : Continue_to_fail_Gw 2022-02-08 11:01:32.747994 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] dialplan_variable : 2022-02-08 11:01:32.747994 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] Failover gateway : 2022-02-08 11:01:32.747994 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] Vendor id : 3 2022-02-08 11:01:32.747994 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] Max channels : 0 2022-02-08 11:01:32.747994 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] Trunk Name : Continue_to_fail_Trunk 2022-02-08 11:01:32.747994 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] ========================END OF TERMINATION RATES======================= 2022-02-08 11:01:32.747994 97.07% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_OVERRIDE_CALLERID] Query :SELECT callerid_name as cid_name,callerid_number as cid_number,accountid FROM accounts_callerid WHERE accountid = 4 AND status=0 LIMIT 1 2022-02-08 11:01:32.747994 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] Maxlength : 100 2022-02-08 11:01:32.747994 97.07% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons 2022-02-08 11:01:32.747994 97.07% [INFO] switch_cpp.cpp:1465 [ASTPP] [XML] Customer Recording Flag : 1 2022-02-08 11:01:32.747994 97.07% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 3 AND status = 0 2022-02-08 11:01:32.747994 97.07% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,out_caller_id_terminate,number_terminate,dst_base_cid FROM localization WHERE id=(SELECT localization_id from accounts where id = 3) AND status=0 limit 1 2022-02-08 11:01:32.747994 97.07% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,out_caller_id_terminate,number_terminate,dst_base_cid FROM localization WHERE id=(SELECT localization_id from trunks where id = 4) AND status=0 limit 1 2022-02-08 11:01:32.747994 97.07% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [sip_codec_for_outbound] Query :SELECT sip_devices.codec as sip_codec FROM sip_devices as sip_devices,accounts as accounts WHERE accounts.status=0 AND accounts.deleted=0 AND accounts.id=sip_devices.accountid AND sip_devices.username="+1604785422" limit 1 2022-02-08 11:01:32.747994 97.07% [ERR] mod_lua.cpp:202 /usr/share/freeswitch/scripts/astpp/lib/astpp.functions.lua:1498: attempt to index local 'sip_codec_for_outbound' (a nil value) stack traceback: /usr/share/freeswitch/scripts/astpp/lib/astpp.functions.lua:1498: in function 'get_sip_codec' /usr/share/freeswitch/scripts/astpp/scripts/astpp.xml.lua:322: in function 'freeswitch_xml_outbound' ...hare/freeswitch/scripts/astpp/scripts/astpp.dialplan.lua:911: in main chunk [C]: in function 'dofile' /usr/share/freeswitch/scripts/astpp/astpp.lua:95: in main chunk 2022-02-08 11:01:32.747994 97.07% [ERR] mod_lua.cpp:270 LUA script parse/execute error! 2022-02-08 11:01:32.747994 97.07% [WARNING] mod_dialplan_xml.c:669 Context default not found 2022-02-08 11:01:32.747994 97.07% [INFO] switch_core_state_machine.c:306 No Route, Aborting 2022-02-08 11:01:32.747994 97.07% [NOTICE] switch_core_state_machine.c:307 Hangup sofia/default/+1604785422@46.101.114.158 [CS_ROUTING] [NO_ROUTE_DESTINATION] 2022-02-08 11:01:32.747994 97.07% [DEBUG] switch_core_state_machine.c:640 (sofia/default/+1604785422@46.101.114.158) State ROUTING going to sleep 2022-02-08 11:01:32.747994 97.07% [DEBUG] switch_core_state_machine.c:581 (sofia/default/+1604785422@46.101.114.158) Running State Change CS_HANGUP (Cur 1 Tot 15) 2022-02-08 11:01:32.747994 97.07% [DEBUG] switch_core_state_machine.c:844 (sofia/default/+1604785422@46.101.114.158) Callstate Change RINGING -> HANGUP 2022-02-08 11:01:32.747994 97.07% [DEBUG] switch_core_state_machine.c:846 (sofia/default/+1604785422@46.101.114.158) State HANGUP 2022-02-08 11:01:32.747994 97.07% [DEBUG] mod_sofia.c:468 Channel sofia/default/+1604785422@46.101.114.158 hanging up, cause: NO_ROUTE_DESTINATION 2022-02-08 11:01:32.747994 97.07% [DEBUG] mod_sofia.c:613 Responding to INVITE with: 404 2022-02-08 11:01:32.747994 97.07% [DEBUG] switch_core_state_machine.c:59 sofia/default/+1604785422@46.101.114.158 Standard HANGUP, cause: NO_ROUTE_DESTINATION 2022-02-08 11:01:32.747994 97.07% [DEBUG] switch_core_state_machine.c:846 (sofia/default/+1604785422@46.101.114.158) State HANGUP going to sleep 2022-02-08 11:01:32.747994 97.07% [DEBUG] switch_core_state_machine.c:616 (sofia/default/+1604785422@46.101.114.158) State Change CS_HANGUP -> CS_REPORTING 2022-02-08 11:01:32.747994 97.07% [DEBUG] switch_core_state_machine.c:581 (sofia/default/+1604785422@46.101.114.158) Running State Change CS_REPORTING (Cur 1 Tot 15) 2022-02-08 11:01:32.747994 97.07% [DEBUG] switch_core_state_machine.c:932 (sofia/default/+1604785422@46.101.114.158) State REPORTING 2022-02-08 11:01:32.747994 97.07% [INFO] mod_json_cdr.c:271 Process [b4bb4fe3-84c5-499b-a511-1f4b04908127.cdr.json] 2022-02-08 11:01:32.768085 97.07% [DEBUG] switch_core_state_machine.c:168 sofia/default/+1604785422@46.101.114.158 Standard REPORTING, cause: NO_ROUTE_DESTINATION 2022-02-08 11:01:32.768085 97.07% [DEBUG] switch_core_state_machine.c:932 (sofia/default/+1604785422@46.101.114.158) State REPORTING going to sleep 2022-02-08 11:01:32.768085 97.07% [DEBUG] switch_core_state_machine.c:607 (sofia/default/+1604785422@46.101.114.158) State Change CS_REPORTING -> CS_DESTROY 2022-02-08 11:01:32.768085 97.07% [DEBUG] switch_core_session.c:1753 Session 15 (sofia/default/+1604785422@46.101.114.158) Locked, Waiting on external entities 2022-02-08 11:01:32.768085 97.07% [NOTICE] switch_core_session.c:1771 Session 15 (sofia/default/+1604785422@46.101.114.158) Ended 2022-02-08 11:01:32.768085 97.07% [NOTICE] switch_core_session.c:1775 Close Channel sofia/default/+1604785422@46.101.114.158 [CS_DESTROY] 2022-02-08 11:01:32.768085 97.07% [DEBUG] switch_core_state_machine.c:735 (sofia/default/+1604785422@46.101.114.158) Running State Change CS_DESTROY (Cur 0 Tot 15) 2022-02-08 11:01:32.768085 97.07% [DEBUG] switch_core_state_machine.c:745 (sofia/default/+1604785422@46.101.114.158) State DESTROY 2022-02-08 11:01:32.768085 97.07% [DEBUG] mod_sofia.c:379 sofia/default/+1604785422@46.101.114.158 SOFIA DESTROY 2022-02-08 11:01:32.768085 97.07% [DEBUG] switch_core_state_machine.c:175 sofia/default/+1604785422@46.101.114.158 Standard DESTROY 2022-02-08 11:01:32.768085 97.07% [DEBUG] switch_core_state_machine.c:745 (sofia/default/+1604785422@46.101.114.158) State DESTROY going to sleep freeswitch@ip-172-31-15-133>