SOLVED Obihai Obi110 as a FXO device

Status
Not open for further replies.

trumee

New Member
Oct 14, 2018
8
0
1
48
Hello,

I have an Obihai Obi110 device which is connected to a landline. I want to use it as an FXO device with Freeswitch/Fusionpbx. I have setup the SP1 Service and have specified 'li' in X_InboundCallRoute. In Fusionpbx my dial plan is as follows:

Code:
<extension name="transfer.International" continue="false" uuid="6d1673d9-bc23-4a2f-8da7-fa82c578b566">
    <condition field="${user_exists}" expression="false"/>
    <condition field="destination_number" expression="^(\+1|001)(\d{10,20})$">
        <action application="export" data="call_direction=outbound"/>
        <action application="set" data="effective_caller_id_name=${outbound_caller_id_name}"/>
        <action application="set" data="hangup_after_bridge=true"/>
        <action application="unset" data="call_timeout"/>
        <action application="set" data="continue_on_fail=true"/>
        <action application="bridge" data="sofia/internal/$1@172.16.2.3"/>
    </condition>
</extension>

The Obihai device is at 172.16.2.3. Unfortunately, my OBI device simply reboots when i try to make a call. Any idea what could be the issue?
 

trumee

New Member
Oct 14, 2018
8
0
1
48
Thanks, I looked at the Freeswitch page. Any idea what the following means:

Code:
<action application="bridge" data="{originate_timeout=25},${group_call(bria@${domain_name}+A)},${group_call(deskphone@${domain_name}+A)}"/>

I tried calling from the phone connected to the FXS port of the Obihai, and it was able to route calls correctly through the FXO (PSTN) port.
 

trumee

New Member
Oct 14, 2018
8
0
1
48
I changed the dial string to {absolute_codec_string=PCMU}sofia/internal/$3@172.16.2.3 and it worked. The dial plan which works is as follows:
Code:
<extension name="transfer.International" continue="false" uuid="6d1673d9-bc23-4a2f-8da7-fa82c578b566">
    <condition field="${user_exists}" expression="false"/>
    <condition field="destination_number" expression="^(\+|00)(1)(\d{10,20})$">
        <action application="export" data="call_direction=outbound"/>
        <action application="set" data="effective_caller_id_name=Landline"/>
        <action application="set" data="effective_caller_id_number=11111"/>
        <action application="set" data="callee_id_number=$1"/>
        <action application="set" data="hangup_after_bridge=false"/>
        <action application="set" data="ignore_early_media=true"/>
        <action application="unset" data="call_timeout"/>
        <action application="set" data="continue_on_fail=true"/>
        <action application="bridge" data="{absolute_codec_string=PCMU}sofia/internal/$3@172.16.2.3"/>
    </condition>
</extension>
 
Status
Not open for further replies.