linphone-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Linphone-developers] How to do remote provisioning??


From: Dave Osbourne
Subject: Re: [Linphone-developers] How to do remote provisioning??
Date: Tue, 29 Oct 2019 10:57:48 +0000
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0

Hi Rhys,

Not sure if this helps, but this is what I send:
<config xsi:schemaLocation="http://www.linphone.org/xsds/lpconfig.xsd">
<section name="misc">
<entry name="fromuri">jsull@DOMAIN</entry>
</section>
<section name="sound">
<entry name="echocancellation">0</entry>
<entry name="echolimiter">0</entry>
<entry name="noisegate">0</entry>
<entry name="eq_active">0</entry>
<entry name="agc">0</entry>
<entry name="playback_gain_db">1</entry>
<entry name="mic_gain_db">5</entry>
</section>
<section name="net">
<entry name="download_bw">0</entry>
<entry name="upload_bw">0</entry>
<entry name="adaptive_rate_control">0</entry>
<entry name="firewall_policy">0</entry>
<entry name="mtu">1000</entry>
</section>
<section name="app">
<entry name="wifi_only">1</entry>
</section>
<section name="sip">
<entry name="sip_port">5060</entry>
<entry name="sip_random_port">1</entry>
<entry name="guess_hostname">0</entry>
<entry name="contact">paul%40DOMAIN</entry>
<entry name="inc_timeout">15</entry>
<entry name="use_info">1</entry>
<entry name="use_ipv6">0</entry>
<entry name="register_only_when_network_is_up">1</entry>
<entry name="default_proxy">-1</entry>
<entry name="auto_net_state_mon">1</entry>
<entry name="keepalive_period">3000</entry>
<entry name="auto_answer_replacing_calls">1</entry>
<entry name="media_encryption_mandatory">0</entry>
<entry name="ping_with_options">0</entry>
<entry name="use_rfc2833">0</entry>
</section>
<section name="rtp">
<entry name="audio_rtp_port">7076</entry>
<entry name="video_rtp_port">9078</entry>
<entry name="audio_jitt_comp">60</entry>
<entry name="video_jitt_comp">60</entry>
<entry name="nortp_timeout">30</entry>
</section>
<section name="audio_codec_0">
<entry name="mime">G729</entry>
<entry name="rate">8000</entry>
<entry name="channels">1</entry>
<entry name="enabled">1</entry>
</section>
<section name="auth_info_0">
<entry name="username">356833054500073_XXXX3591679</entry>
<entry name="userid">356833054500073_XXXX3591679</entry>
<entry name="passwd">z2jmd92lpz05amc</entry>
<entry name="realm">anyrealm</entry>
</section>
<section name="proxy_0">
<entry name="reg_proxy">sip:ipbx.DOMAIN</entry>
<entry name="reg_route"/>
<entry name="reg_identity">sip:356833054500073_XXXX3591679@ipbx.DOMAIN</entry>
<entry name="reg_expires">3600</entry>
<entry name="reg_sendregister">1</entry>
<entry name="publish">0</entry>
<entry name="dial_escape_plus">0</entry>
</section>
</config>
and it works, in that after the script runs I see an identity light up.

I'm NOT using a recent version of linphone, I'm happy to help if I can...

Dave


On 2019-10-29 09:52, Rhys Tufvesson wrote:

I have a hopefully simple question, how do I get remote provisioning to work??

My setup is:

  • Mac OS
  • Koa server: To get config from
  • Virtualbox: To install ubuntu VM on
  • Ubuntu 18.04 VM: To install linphone on

The linphone in question does fetch the config from the koa server, as I can see the request coming in and the config being added to the response body.

The configs I've returned from the server to the linphone so far are:

[net]
download_bw=2048
upload_bw=1024
firewall_policy=ice
stun_server=stun.linphone.org

[sip]
sip_tcp_port=5070
ping_with_options=0
media_encryption=none
dscp=0x0

[proxy_0]
reg_proxy=sip.mydomain.com:5061;transport=tls
reg_expires=900
reg_sendregister=1
publish=0
dial_escape_plus=1
push_notification_allowed=1

And I also tried the example xml config provided on Belledonne Communications own github as below:


<?xml version="1.0" encoding="UTF-8"?>
<config xmlns="http://www.linphone.org/xsds/lpconfig.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.linphone.org/xsds/lpconfig.xsd lpconfig.xsd">

    <section name="proxy_default_values">
        <entry name="avpf" overwrite="true">1</entry>
        <entry name="dial_escape_plus" overwrite="true">0</entry>
        <entry name="publish" overwrite="true">0</entry>
        <entry name="quality_reporting_collector" overwrite="true">sip:address@hidden;transport=tls</entry>
        <entry name="quality_reporting_enabled" overwrite="true">1</entry>
        <entry name="quality_reporting_interval" overwrite="true">180</entry>
        <entry name="reg_expires" overwrite="true">31536000</entry>
        <entry name="reg_identity" overwrite="true">sip:?@sip.linphone.org</entry>
        <entry name="reg_proxy" overwrite="true">&lt;sip:sip.linphone.org;transport=tls&gt;</entry>
        <entry name="reg_sendregister" overwrite="true">1</entry>
        <entry name="refkey" overwrite="true">push_notification</entry>
        <entry name="realm" overwrite="true">sip.linphone.org</entry>
        <entry name="nat_policy_ref" overwrite="true">nat_policy_default_values</entry>
    </section>

    <section name="nat_policy_default_values">
        <entry name="stun_server" overwrite="true">stun.linphone.org</entry>
        <entry name="protocols" overwrite="true">stun,ice</entry>
    </section>

    <section name="sip">
        <entry name="rls_uri" overwrite="true">sips:address@hidden</entry>
        <entry name="auto_net_state_mon" overwrite="true">1</entry>
    </section>

    <section name="assistant">
        <entry name="domain" overwrite="true">sip.linphone.org</entry>
        <entry name="algorithm" overwrite="true">SHA-256</entry>
        <entry name="password_max_length" overwrite="true">-1</entry>
        <entry name="password_min_length" overwrite="true">1</entry>
        <entry name="username_length" overwrite="true">-1</entry>
        <entry name="username_max_length" overwrite="true">64</entry>
        <entry name="username_min_length" overwrite="true">1</entry>
        <entry name="username_regex" overwrite="true">^[a-z0-9+_.\-]*$</entry>
    </section>
    <section name="lime">
        <entry name="lime_server_url" overwrite="true">https://lime.linphone.org/lime-server/lime-server.php</entry>
    </section>
</config>

But the above configs do nothing.

Any advice on what I may have missed will be greatly appreciated.


_______________________________________________
Linphone-developers mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/linphone-developers


reply via email to

[Prev in Thread] Current Thread [Next in Thread]