Need to see visitor's/caller's ip country before it is connected

Discussion in 'General Discussion' started by Komran, Sep 18, 2017.

  1. Komran

    Komran New Member

    Hello All,
    I put Flashphoner button on my web site, and some one visitor on site click the button to connect a sip soft phone extension, I need to know any API in Flashphoner which give visitor's/caller's IP address or country name to destination sip phone extension before it is connected or after a couple of second of the talk is started... or any help or API in documentation of Flashphoner get visitor's/caller's IP address or country name.
    Thanks in advance.
    Regards
    Komran S.
  2. Max

    Max Administrator Staff Member

    Hello
    WCS server sends REST/HTTP request
    Code:
    /connect
    {
    "sessionId": "192.168.22.10:50322/192.168.88.59:8443",
    ..
    }
    Here
    192.168.22.10 is IP address of connected user.
    So you can authenticate user by IP before connection established.
    Here you can find full documentation about REST Methods:
    https://flashphoner.com/docs/wcs5/wcs_docs/html/en/wcs-rest-methods/
    You need method 'connect':
    https://flashphoner.com/docs/wcs5/w.../index.html?method_connect_scheme_of_work.htm
    Please let us know if something unclear from the docs.

Share This Page