[Tutorial] - GCPhone - Adding calls and job messages

This is my config.json. Can u look on it? I was looking for mistake in this file but I have no idea what is wrong there :frowning:

Oh … your file are totally broken.

Her file modified :

{
    "reseau": "Gannon",

    "themeColor": "#303f9f",
    "colors": [
        "#EF5350",
        "#EC407A",
        "#AB47BC",
        "#7E57C2",
        "#5C6BC0",
        "#42A5F5",
        "#29B6F6",
        "#26C6DA",
        "#26A69A",
        "#66BB6A",
        "#9CCC65",
        "#D4E157",
        "#FFCA28",
        "#FFA726",
        "#FF7043",
        "#8D6E63",
        "#78909C"
    ],

    "useFormatNumberFrance": false,

    "useWebRTCVocal": false,
    "RTCConfig": {
        "iceServers": [{
            "urls": ["turn:gannon.ovh"],
            "username": "jojo",
            "credential": "pass"
        }]
    },


    "background": {
        "Calvin & Hobbes": "back001.jpg",
        "Destiny": "back002.jpg",
        "Stormtrooper": "back003.jpg",
        "Custom URL": "URL"
    },
    "background_default": {
        "label": "Calvin & Hobbes",
        "value": "back001.jpg"
    },


    "coque": {
        "Sansumg S8": "s8.png",
        "Iphone X": "iphonex.png",
        "Brick Base": "base.png",
        "Transparent": "transparent.png"
    },
    "coque_default": {
        "label": "Sansumg S8",
        "value": "s8.png"
    },


    "serviceCall": [{
            "display": "Police",
            "icon": "/html/static/img/icons_app/bank.png",
            "subMenu": [
				{
                    "title": "Envoyer un message",
                    "eventName": "esx_addons_gcphone:call",
                    "type": {
                        "number": "police"
                    }
                },
                {
                    "title": "Appeler le standard",
                    "eventName": "gcphone:autoCallNumber",
                    "type": {
                        "number": "911"
                    }
                },
                {
                    "title": "Signaler une agression",
                    "eventName": "esx_addons_gcphone:call",
                    "type": {
                        "number": "police",
                        "message": "Victime d'agression"
                    }
                }
            ]
        },
        {
            "display": "Ambulance",
            "backgroundColor": "red",
            "subMenu": [{
                "title": "Envoyer un message",
                "eventName": "esx_addons_gcphone:call",
                "type": {
                    "number": "ambulance"
                }
            }]
        }, {
            "display": "Army",
            "backgroundColor": "red",
            "subMenu": [{
                "title": "Envoyer un message",
                "eventName": "esx_addons_gcphone:call",
                "type": {
                    "number": "army"
                }
            }]
        }, {
            "display": "FIB",
            "backgroundColor": "red",
            "subMenu": [{
                "title": "Envoyer un message",
                "eventName": "esx_addons_gcphone:call",
                "type": {
                    "number": "fib"
                }
            }]
        }, {
            "display": "Juge",
            "backgroundColor": "red",
            "subMenu": [{
                "title": "Envoyer un message",
                "eventName": "esx_addons_gcphone:call",
                "type": {
                    "number": "juge"
                }
            }]
        }, {
            "display": "Avocat",
            "backgroundColor": "red",
            "subMenu": [{
                "title": "Envoyer un message",
                "eventName": "esx_addons_gcphone:call",
                "type": {
                    "number": "avocat"
                }
            }]
        }, {
            "display": "Agent de Securite",
            "backgroundColor": "red",
            "subMenu": [{
                "title": "Envoyer un message",
                "eventName": "esx_addons_gcphone:call",
                "type": {
                    "number": "security"
                }
            }]
        }, {
            "display": "Espion",
            "backgroundColor": "red",
            "subMenu": [{
                "title": "Envoyer un message",
                "eventName": "esx_addons_gcphone:call",
                "type": {
                    "number": "Espion"
                }
            }]
        }, {
            "display": "Tueur à gage contract oral baladins",
            "backgroundColor": "red",
            "subMenu": [{
                "title": "Envoyer un message",
                "eventName": "esx_addons_gcphone:call",
                "type": {
                    "number": "baladins"
                }
            }]
        }, {
            "display": "Voiture Concessionaire",
            "backgroundColor": "grey",
            "subMenu": [{
                "title": "Envoyer un message",
                "eventName": "esx_addons_gcphone:call",
                "type": {
                    "number": "cardealer"
                }
            }]
        }, {
            "display": "Helicoptere concessionaire",
            "backgroundColor": "grey",
            "subMenu": [{
                "title": "Envoyer un message",
                "eventName": "esx_addons_gcphone:call",
                "type": {
                    "number": "aircraftdealer"
                }
            }]
        }, {
            "display": "Bateau concessionaire",
            "backgroundColor": "grey",
            "subMenu": [{
                "title": "Envoyer un message",
                "eventName": "esx_addons_gcphone:call",
                "type": {
                    "number": "dock"
                }
            }]
        }, {
            "display": "Mecano",
            "backgroundColor": "grey",
            "subMenu": [{
                "title": "Envoyer un message",
                "eventName": "esx_addons_gcphone:call",
                "type": {
                    "number": "mecano"
                }
            }]
        }, {
            "display": "Armurier",
            "backgroundColor": "grey",
            "subMenu": [{
                "title": "Envoyer un message",
                "eventName": "esx_addons_gcphone:call",
                "type": {
                    "number": "armurier"
                }
            }]
        }, {
            "display": "Gang Cartel",
            "backgroundColor": "grey",
            "subMenu": [{
                "title": "Envoyer un message",
                "eventName": "esx_addons_gcphone:call",
                "type": {
                    "number": "cartel"
                }
            }]
        }, {
            "display": "Gang Mafia",
            "backgroundColor": "grey",
            "subMenu": [{
                "title": "Envoyer un message",
                "eventName": "esx_addons_gcphone:call",
                "type": {
                    "number": "mafia"
                }
            }]
        }, {
            "display": "Gang",
            "backgroundColor": "grey",
            "subMenu": [{
                "title": "Envoyer un message",
                "eventName": "esx_addons_gcphone:call",
                "type": {
                    "number": "gang"
                }
            }]
        }, {
            "display": "Gang Biker",
            "backgroundColor": "grey",
            "subMenu": [{
                "title": "Envoyer un message",
                "eventName": "esx_addons_gcphone:call",
                "type": {
                    "number": "biker"
                }
            }]
        }, {
            "display": "Eboueur",
            "backgroundColor": "orange",
            "subMenu": [{
                "title": "Envoyer un message",
                "eventName": "esx_addons_gcphone:call",
                "type": {
                    "number": "eboueur"
                }
            }]
        }, {
            "display": "Taxi",
            "backgroundColor": "orange",
            "subMenu": [{
                "title": "Envoyer un message",
                "eventName": "esx_addons_gcphone:call",
                "type": {
                    "number": "taxi"
                }
            }]
        }, {
            "display": "Bus",
            "backgroundColor": "orange",
            "subMenu": [{
                "title": "Envoyer un message",
                "eventName": "esx_addons_gcphone:call",
                "type": {
                    "number": "bus"
                }
            }]
        }, {
            "display": "Journaliste",
            "backgroundColor": "orange",
            "subMenu": [{
                "title": "Envoyer un message",
                "eventName": "esx_addons_gcphone:call",
                "type": {
                    "number": "reporter"
                }
            }]
        }, {
            "display": "Chauffeur pilote",
            "backgroundColor": "orange",
            "subMenu": [{
                "title": "Envoyer un message",
                "eventName": "esx_addons_gcphone:call",
                "type": {
                    "number": "pilot"
                }
            }]
        }, {
            "display": "Chauffeur rally",
            "backgroundColor": "orange",
            "subMenu": [{
                "title": "Envoyer un message",
                "eventName": "esx_addons_gcphone:call",
                "type": {
                    "number": "rally"
                }
            }]
        }, {
            "display": "Discotheque Bar Striptease",
            "backgroundColor": "green",
            "subMenu": [{
                "title": "Envoyer un message",
                "eventName": "esx_addons_gcphone:call",
                "type": {
                    "number": "disco"
                }
            }]
        }, {
            "display": "Bahama Bar Deluxe",
            "backgroundColor": "green",
            "subMenu": [{
                "title": "Envoyer un message",
                "eventName": "esx_addons_gcphone:call",
                "type": {
                    "number": "bahama"
                }
            }]
        }, {
            "display": "Cuisinier ambulant",
            "backgroundColor": "green",
            "subMenu": [{
                "title": "Envoyer un message",
                "eventName": "esx_addons_gcphone:call",
                "type": {
                    "number": "foodtruck"
                }
            }]
        }, {
            "display": "vendeur de tabac",
            "backgroundColor": "green",
            "subMenu": [{
                "title": "Envoyer un message",
                "eventName": "esx_addons_gcphone:call",
                "type": {
                    "number": "tabac"
                }
            }]
        }, {
            "display": "Agent Immobilier",
            "backgroundColor": "green",
            "subMenu": [{
                "title": "Envoyer un message",
                "eventName": "realestateagent",
                "type": {
                    "number": "realestateagent"
                }
            }]
        }
    ],


    "apps": [{
            "name": "Téléphone",
            "icons": "/html/static/img/icons_app/call.png",
            "routeName": "appels",
            "inHomePage": true
        },
        {
            "name": "Messages",
            "icons": "/html/static/img/icons_app/sms.png",
            "routeName": "messages",
            "inHomePage": true,
            "puceRef": "nbMessagesUnread"
        },
        {
            "name": "Contacts",
            "icons": "/html/static/img/icons_app/contacts.png",
            "routeName": "contacts",
            "inHomePage": true
        },
        {
            "name": "Paramètres",
            "icons": "/html/static/img/icons_app/settings.png",
            "routeName": "parametre",
            "inHomePage": true
        },
        {
            "name": "Bank",
            "icons": "/html/static/img/icons_app/bank.png",
            "routeName": "bank",
            "inHomePage": false
        },
        {
            "name": "Bourse",
            "icons": "/html/static/img/icons_app/bourse.png",
            "routeName": "bourse",
            "enabled": true
        },
        {
            "name": "Photo",
            "icons": "/html/static/img/icons_app/photo.png",
            "routeName": "photo"
        },
        {
            "name": "Dark Chat",
            "icons": "/html/static/img/icons_app/tchat.png",
            "routeName": "tchat"
        },
        {
            "name": "9GAG",
            "icons": "/html/static/img/icons_app/9gag.png",
            "routeName": "9gag"
        }
    ]
}

Still nothing. Any suqqestions?

Yep,

Get a clean file her : https://github.com/HalCroves/gcphone :smiley:

Hello I have an FXSrver that is non esx but I use gcphone can I still do this?

What should I do with mysql-async file?

You can test :slight_smile:

The mysql-async files of my github are only included for people who do not have it

If you have mysql-async, ignore it.

1 Like

where can i change the language of for example at telephone favorites or recent in another language

Hi o7,
Check in your config.json

i cant find it…

i mean how i can change A.E. the title number in another language

Still nothing, I used ur version and everything is the same.

Yep, i have see that.

I have commit a update from my github : https://github.com/HalCroves/gcphone/tree/mysql-async-3.x

Ok, sorry wrong files.
Check in gcphone/html/static/js/app.js, line 1804.

So this version should make this phone usefull? :smile:

Affirmative, i have tested in my server test :stuck_out_tongue:

1 Like

I’ve got next problem. I readed all comments below links on GitHub, downloaded all files what did u upload and still nothing - errors. Any ideas?
Phone is not showing. :confused:

Wtf,

What artefact do do you use?

Which version of mysql-async do you use?

Do you use completely my phone?

Did you empty your cache?

Do you have another phone?

Which host do you live?

I really do not understand your dysfunction. I just tested again and everything works … :disappointed_relieved:

  1. Idk what do you mean.
  2. I’m using v2.1.1.
  3. Yes.
  4. Yes, but earlier - I’ll try one more time.
  5. No.
  6. Zap.