# Connection Timeout when integration in a codeigniter project

**URL:** <https://devforum.zoom.us/t/connection-timeout-when-integration-in-a-codeigniter-project/26479>\
**Category:** Web\
**Created:** [August 6, 2020, 7:01pm UTC](https://devforum.zoom.us/t/connection-timeout-when-integration-in-a-codeigniter-project/26479 "2020-08-06T19:01:42Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![m.elsisi](https://avatars.discourse-cdn.com/v4/letter/m/c37758/32.png) [@m.elsisi](https://devforum.zoom.us/u/m.elsisi)\
**Post date:** [August 6, 2020, 7:01pm UTC](https://devforum.zoom.us/t/connection-timeout-when-integration-in-a-codeigniter-project/26479/1 "2020-08-06T19:01:42Z")

</div>

Hi  
I am trying to integerate zoom in a codeigniter website , i made a JWT app and get an API secret and API key and added them as follow:

```
        <nav id="nav-tool" class="navbar navbar-inverse navbar-fixed-top">
        <div class="container">
            <div class="navbar-header">
                <h4><i class="fab fa-chromecast"></i> Live Class Title : <?=$liveClass['title']?></h4>
            </div>
            <div class="navbar-form navbar-right">
                <h5><i class="far fa-user-circle" style=""></i> Host By : <?=$liveClass['created_by']?> </h5>
            </div>
        </div>
    </nav>
    <script src="https://source.zoom.us/1.7.6/lib/vendor/react.min.js"></script>
    <script src="https://source.zoom.us/1.7.6/lib/vendor/react-dom.min.js"></script>
    <script src="https://source.zoom.us/1.7.6/lib/vendor/redux.min.js"></script>
    <script src="https://source.zoom.us/1.7.6/lib/vendor/redux-thunk.min.js"></script>
    <script src="https://source.zoom.us/1.7.6/lib/vendor/jquery.min.js"></script>
    <script src="https://source.zoom.us/1.7.6/lib/vendor/lodash.min.js"></script>
    <script src="https://source.zoom.us/zoom-meeting-1.7.6.min.js"></script>
    <script type="text/javascript">
        ZoomMtg.preLoadWasm();
        ZoomMtg.prepareJssdk();
        var meetConfig = {
            apiKey: " ******",
            apiSecret: " *****",
            meetingNumber: "<?=$meetingID?>",
            userName: "malek",
            passWord: "<?=$liveClass['meeting_password']?>",
            leaveUrl: "<?php echo base_url('live_class');?>",
            role: parseInt(1, 10)
        };
        var signature = ZoomMtg.generateSignature({
            meetingNumber: meetConfig.meetingNumber,
            apiKey: meetConfig.apiKey,
            apiSecret: meetConfig.apiSecret,
            role: meetConfig.role,
            success: function(res){
                console.log(res.result);
            }
        });
        ZoomMtg.init({
            leaveUrl: meetConfig.leaveUrl,
            isSupportAV: true,
            success: function () {
                ZoomMtg.join(
                    {
                        meetingNumber: meetConfig.meetingNumber,
                        userName: meetConfig.userName,
                        signature: signature,
                        apiKey: meetConfig.apiKey,
                        passWord: meetConfig.passWord,
                        success: function(res){
                            $('#nav-tool').hide();
                        },
                        error: function(res) {
                            console.log(res);
                        }
                    }
                );
            },
            error: function(res) {
                console.log(res);
            }
        });
    </script>

```

but i always get this error :  
Your connection has timed out and you cannot join the meeting. Verify your network connectivity and try again.

can any one help ?

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [August 7, 2020, 6:33pm UTC](https://devforum.zoom.us/t/connection-timeout-when-integration-in-a-codeigniter-project/26479/2 "2020-08-07T18:33:33Z")

</div>

Hey @m.elsisi,

Please try using Web SDK version 1.7.10 instead of 1.7.6. 🙂

Let me know if that fixes the issue.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![m.elsisi](https://avatars.discourse-cdn.com/v4/letter/m/c37758/32.png) [@m.elsisi](https://devforum.zoom.us/u/m.elsisi)\
**Post date:** [August 7, 2020, 7:11pm UTC](https://devforum.zoom.us/t/connection-timeout-when-integration-in-a-codeigniter-project/26479/3 "2020-08-07T19:11:59Z")

</div>

Thanks for fast reply  
now it gives me this error  
Joining meeting timeout.  
The meeting number is not found.

---

<div class="post-metadata">

**Author:** ![m.elsisi](https://avatars.discourse-cdn.com/v4/letter/m/c37758/32.png) [@m.elsisi](https://devforum.zoom.us/u/m.elsisi)\
**Post date:** [August 9, 2020, 6:33am UTC](https://devforum.zoom.us/t/connection-timeout-when-integration-in-a-codeigniter-project/26479/4 "2020-08-09T06:33:27Z")

</div>

here is my signature

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [August 10, 2020, 7:18am UTC](https://devforum.zoom.us/t/connection-timeout-when-integration-in-a-codeigniter-project/26479/5 "2020-08-10T07:18:16Z")

</div>

Hey @m.elsisi,

You are passing in 212 as your meeting number. You need to use a real meeting number. You can debug this by [base64 decoding](https://www.base64decode.org/) your signature.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![m.elsisi](https://avatars.discourse-cdn.com/v4/letter/m/c37758/32.png) [@m.elsisi](https://devforum.zoom.us/u/m.elsisi)\
**Post date:** [August 10, 2020, 10:32am UTC](https://devforum.zoom.us/t/connection-timeout-when-integration-in-a-codeigniter-project/26479/6 "2020-08-10T10:32:41Z")

</div>

This code is supposed to host them meeting ( Create meeting id ) , or should i create the meeting id before initializing , If so could you send me an example for integrating zoom using codeigniter ?

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [August 10, 2020, 6:03pm UTC](https://devforum.zoom.us/t/connection-timeout-when-integration-in-a-codeigniter-project/26479/7 "2020-08-10T18:03:39Z")

</div>

Hey @m.elsisi,

You must create the meeting before hand. You can create meetings programmatically via the [Create Meeting API](https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetingcreate).

Unfortunately we do not have code examples in codeigniter

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [August 20, 2020, 6:03pm UTC](https://devforum.zoom.us/t/connection-timeout-when-integration-in-a-codeigniter-project/26479/8 "2020-08-20T18:03:45Z")

</div>

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.
