cron_allot_gateway_include SELECT * FROM `voice_compaign_summary` WHERE status='V' AND alloted_apis='' AND occupied=0 AND compaign_id='137' LIMIT 1 SQL_GSELECT voice_gateway_id FROM voice_gateways_of_user WHERE status=1 AND user_id='r1' AND voice_gateway_id IN(SELECT id FROM `voice_gateways` WHERE FIND_IN_SET ('1', `voice_plan_id`) AND status=1 AND isDeleted=0 AND api_owner_id='admin' ORDER BY todays_credits/channels) user dedicated gateway
Array ( [0] => 14 [1] => 15 [2] => 22 [3] => 23 ) plan gateways Array ( [0] => 14 [1] => 15 [2] => 22 [3] => 23 ) 1 Delivery Cli=>static XXXXXXXXXXXXXXXXXXX-----------BELOW GATEWAY DETAIL xxxxxxxxxxxxxxxxxxxxxxxxArray ( [23] => Array ( [id] => 23 [gateway_id] => 23 [owner_id] => [token] => [post_url] => [speed_per_minute] => 0 [rabitmq_host] => [rabitmq_port] => [rabitmq_user] => [rabitmq_pass] => [rabitmq_sending_queue] => [rabitmq_reporting_queue] => [rabitmq_queue_status] => [create_date] => 1716732384 [create_by] => admin [update_date] => 0 [update_by] => ) ) XXXXXXXXXXXXXXXXXXX-----------BELOW GATEWAY INFO xxxxxxxxxxxxxxxxxxxxxxxxArray ( [23] => Array ( [id] => 23 [name] => 142-TAS-02 [voice_plan_id] => 1 [gateway_cli] => +918645314723 [cli_prefix] => +91 [channels] => 500 [gateway_pulse] => 30 [gateway_ring_time] => 30 [max_cron] => 10 [gateway_type] => si [isReserve] => 1 [isDedicated] => 1 [create_date] => 1716732384 [create_by] => admin [status] => 1 [isDeleted] => 0 [update_date] => 0 [update_by] => [api_owner_id] => admin [total_credits] => 20180 [total_contacts] => 10090 [total_compaigns] => 1 [active_credits] => 10090 [todays_credits] => 10090 [todays_time] => 1716661800 ) ) i am here IN SI Array ( [post_url] => [announcement_path] => https://obd60.sarv.com/raws/inboxcart_nfsserver/voice_files/1716707290_r1_voice_upload.wav [owner_id] => [token] => ) Array ( [post_url] => [announcement_path] => https://obd60.sarv.com/raws/inboxcart_nfsserver/voice_files/1716707290_r1_voice_upload.wav [owner_id] => [token] => ) /upload_announcement.php Array ( [announcement_path] => https://obd60.sarv.com/raws/inboxcart_nfsserver/voice_files/1716707290_r1_voice_upload.wav [owner_id] => [token] => ) upload annuncment response : gateway size : 1 10090/1 update voice_compaign_summary set alloted_apis='[{"cli":"","g_id":"23"}]', api_type='S', api_channels='', action_time='{"api_allot_time":1716733087}', common_name='r1_137_26052024_074806PM_959',`duplicate_sms`='0',`remote_group_id`='0',`remote_recording_id`='0', credits_per_sms='2' WHERE compaign_id='137' LIMIT 1