×

24x7 Customer Supports

1 Live Chat Supports.
2 Customer Support Portal.
3 Email & And Phone Calls.

If you still have problems, please let us know, by sending an email to [email protected] . Thank you!

Available Support By Phone

Mon-Fri 9:00AM - 6:00PM
Sat - 9:00AM-2:00PM
Sundays by appointment only!
 New support ticket
 Knowledge base
QUESTIONS? CALL: + 1 (234) 9000880
  • Store
  • Privacy Policy
  • SUPPORT

SIP TRUNK Malaysia- Business SIP Trunking- No #1 VoIP Service Providers

SIP TRUNK Malaysia- Business SIP Trunking- No #1 VoIP Service Providers

Ditch The Big Bill & Switch To The Voiplid Network. Save 50% Or More On Your Phone Bill.

T + 1 (234) 9000880
Email: [email protected]

Voiplid Network
33-01, 33RD FLOOR, MENARA KECK SENG,, 203, JALAN BUKIT BINTANG, 55100 Kuala Lumpur, Wilayah Persekutuan Kuala Lumpur.

Open in Google Maps
  • Home
  • Wholesale
  • SIP Trunking
  • Cloud
    • Contact Center
    • Hosted PBX
  • DID Number
    • DID Numbers Coverage
    • TOLL-FREE
    • Wholesale DID
  • Call Rates
  • Contact Us
  • No products in cart.
Login
  • Home
  • Blog Voiplid Network
  • Connect your phone to RasPBX via Bluetooth (with chan_mobile)
Alex Hill
Wednesday, 05 January 2022 / Published in Uncategorized

Connect your phone to RasPBX via Bluetooth (with chan_mobile)

Hello guys! In this video I’ll see you how toconnect your phone to Raspberry Pi via Bluetooth and how to add a Custom Trunk so that you’ll beable to spawn telephone calls use mobile channel. If you are here for the first time, my honour isThomas and one of the goals of this channel is to show you how to configure some VoIP relatedhardware and software and this video is actually 1 of 2 videos about exerting Asterisk mobilechannel. Today I will show you how to reach telephone calls expending your phone paired to Raspberry PiBluetooth Adapter and in the next one I will show you how to receive them on your headset. So let’sget started! At the very beginnings I will just tell you that we will not cover RasPBX installation because we have submerge that in our other videos and on our hotkey4 04 website, so if you need anyhelp with that, really follow those tutorials. Now, after logging into our RasPBX we willquickly check status of our bluetooth services and we will do this using “service bluetooth status”( this is quite obvious) and as you can see here, our service is active, it’s running and there’s some”sap move failed” but we don’t have to worry about that because we’re not going to use this.But whatwe have to do is to create our main config file. As you can see if we do “ls -l/ etc/ asterisk”we have a bunch of config records but there is no file announced chan_mobile.conf, so tocreate that we will do “cd/ etc/ asterisk” and here “touch chan_mobile.conf” to create the record and “chown asterisk: chan_mobile.com” datum to change the user, because as you can see all ofthose enters are owned by “asterisk” user and group.Then we will enter this datum with let’ssay “nano” – my favorite editor. So “nano chan_mobile.conf” and here we will definesome variables. We will need a[ general] area and now we will merely named “interval= 30 “( this is number of seconds between trying to connect to manoeuvres ). Then we will define ouradapter and for that we will need “id” and “address”( and this is going to be a MAC address of theadapter) and since we are going to use phone for outgoing ties, we will define “phone0″( you can have more of those) and we’ll characterize four variables: the authorities concerned will mounted “context”( and inFreePBX the most obvious will be “incoming-mobile” ), the authorities concerned will specified an “address”( and this is the mac addressof our phone) and we will gave “adapter” and “port”( this is rfcomm port that will be used toconnect to our telephone ). And you need to fill all those informations because if you don’t, ifwe enroll Asterisk console and do “module load chan_mobile.so”, as you can see weare unable to laden the module, because we have incorrect configuration of our main file. To fillall this necessary data we will use this “hcitool”. And at the very beginning we will do “hcitool dev”and it will expose the MAC address of our built-in bluetooth adapter in ourRaspberry Pi 4. Let’s just simulate this MAC address going to be home to our file and in[ adapter] sectionwe have this address and we will really paste this copied intelligence. and we have “id”. For “id”I recommend only consuming adapter honour which is “hci0”, however you can use any unique specify, you canplace let’s say “internaladapter”, basically … what it is you demand. It needs to be unique. Butfor simplicity I will just stay with “hci0”. After saving we will go back to using “hcitool scan”and this as it says will scan for all those compatible devicesthat have their bluetooth on and after a second we will find our iPhone.And once again wewill precisely duplicate the MAC address and going to be home to our config folder. Now with this emulated MAC address wewill complete the details on our phone0. So we will set an address, imitation the refer of our adapter( so ifyou set “id” of adapter “hci0” the authorities concerned will imitate the same ). And we don’t have information about the port sowe will just sit “1”, so that this module won’t propel a mistake. And after saving we can once againgo to our Asterisk console with “asterisk -rvvv”, do “module load chan_mobile.so” and voila – our module is loaded. Now after checking, if your phone can be discovered, we aregoing to do “mobile search” and this will take a few seconds and after a while you will see yourphone.And at the same time you will see a pop-up window on your telephone that’ raspbx’ tried to pairwith your maneuver, so accept the request. So we can see this MAC address of our phone, we can see thatthe “type” is phone and we have “port” and in our case it’s “8”. So we will once again exit our Asteriskconsole and supersede “1” with “8”. And now comes the touchy division: you probably have noticedthat our bluetooth machine phone0 has connected, it was initializing, but there was an error andit got disconnected. If you scan the internet you will find a few solutions for that. WhatI found that actually duties: it’s using “rfcomm”. And the authorities concerned will do “rfcomm bind 8 phoneMACaddress”. And what it does – this “rfcomm” command associatesthe paired device id with a serial manoeuvre list and so if we do “ls -l/ dev/ rf* “you will see this newly createddevice.So now going back to our Asterisk wewill do “core restart now” and after restart “mobile show devices” and you will see that ourphone is connected. If exploiting “rfcomm” doesn’t help, you might try restarting your Asterisk or evenrebooting the whole Raspberry. If this doesn’t help maybe you will have to do a google pursuit, because not every phone jobs the same way. So since we have our configuration labor, wecan do a test run and as I often do, we will do “channel originate portable/ phone0/ NUMBER application MusicOnHold” The amount is called andas you can seeit is ringing.If I rebuttal, the telephone get connected and it startsplaying this music on hold. So everything is ready, so we can disconnect and switch to ourweb browser to do the rest of the configuration. Now, after logging in, we will go to “Connectivity”> “Trunks”> “Add Trunk” and from this dropdown schedule we will “Add Custom Trunk”. As a trunk”Name” you can mount anything.I will just use “mobile_phone0”. We don’t need to set”Outbound CallerID”because this will be set by my SIM card carrier.And we will set “1” “Maximum channel”.We don’t need any directs in second tab.However in the third one: “Custom Settings”we need to set up “Custom Dial String” and this will look like: “mobile/ phone0 /$ OUTNUM$ “. Then after referring, we will see an error becausewe didn’t provided our Outbound CallerID but we don’t have to worry about that. Next we will go to”Outbound routes” and as a direction “Name” we can begin “mobile_phone0” and inour “Trunk Sequence”we will select this route that “weve created” a few seconds before that.In our “Dial Patterns” we will need to define when this route should be used( we have a niceexplanation how to use those structures ). In the most basic scenario, you can just go “ZX.”and this will allow you to call mostly anywhere. However it is worth considering whether thecost of mobile communications for a given route will be too high, so to restrict that I will usejust “ZXXXXXXXX” to call just local digits. Then we will touched “Submit” and our FreePBXconfiguration is ready. if we are to be able made “Apply Config” and research if all drives as it should.For testing intents I have logged in “1 00 ” extension and I will phone this 2277070 70( which is my officephone number) and you can see in a dialplan that it is connecting, this last wrinkle showsthat it is dialing this “mobile/ phone0/ 2277070 70 “. If I pick up, this channelis answered. With the “core show channels verbose” you can seeall the details about thisconnection. So everything is running smoothly. So as we said at the outset, you should knowhow to pair your phone to bluetooth adapter of your Raspberry Pi.In the next video, I will showyou how to create an extension and receive thosecalls on your headset. So I hope that members can enjoyedit, have a wonderful dayand see you next one ..

for more click here

  • Tweet
Tagged under: asterisk, bluetooth, mobile, raspberry

What you can read next

A Look at Basic VoIP Implementation – The VoIP Report
What is SIP Trunking
Hosted VoIP vs SIP Trunking – How to Choose? #GetVoIP

Recent Posts

  • Why Your Phone in the Cloud is the Right Choice for Business

    A small business moving its business systems to...
  • What Hardware Is Needed To Install A VoIP Phone System?

    What Hardware is Needed to Install a VoIP Phone...
  • What Is a Cloud PBX & How Does it Work?

    In this article, we’ll explain the ins an...
  • Common VoIP Issues and How to Fix Them

    Common VoIP Issues and How to Fix Them Problems...
  • What is SIP Trunking

    What Is SIP trunking Hey, this is Adam from Voi...

Recent Comments

    Categories

    • Business VOIP Providers
    • How VoIP
    • sip trunking
    • Technology

    Choose your action

    Sign in to your Voiplid Cloud Account.

    Need Help?

    Asia Server

    Login to Asia Server.

    Europe Server

    Login to Europe Server.

    • DID Numbers Agreement
    • Termination Agreement
    • About Voiplid Network
    • Privacy Statement
    • Customer Agreement
    • Blog & News
    • APP Development
    • VoIP JITTER Speed Test
    • Virtual Phone Numbers
    • Documentation
    • DID Numbers Agreement
    • Termination Agreement
    • About Voiplid Network
    • Privacy Statement
    • Customer Agreement
    • Blog & News
    SIP TRUNK Malaysia- Business SIP Trunking- No #1 VoIP Service Providers

    Voiplid Network™ Internet phone service allows residential and business customers to use their cable modem, DSL modem, or other Broadband Internet connection to make and receive Voice over IP (VoIP) phone calls using an ordinary touch-tone telephone. Bring Your Own Device™ (BYOD™) plans allow customers to connect their own SIP devices, including IP phones, softphones, and Asterisk PBXs. SmartSIP™ and SecureSIP™ technologies by Voiplid Network optimize the routing of network voice traffic, providing the best possible quality voice transmission for each customer's phone device, and automatically configures Voiplid Network Authorized BYOD™ devices.
    * Significant restrictions apply to Unlimited Plans. Consult the Terms and Conditions for details.
    ** Unlimited World Plans do not include calls to International Mobile Phone Numbers or to Special Services Numbers such as Toll-Free or Caller-Paid Information Services or 900 Numbers.
    © 2013-2020 Voiplid Network. All Rights Reserved, unless noted.
    Voiplid Network services are not related to, provided by, or endorsed by Voiplid Network Corporation.
    © 2017 MYTEL NETWORK All rights reserved.

    TOP
    Log In ×
    Login With OTP
    Resend OTP(00:30)
    Don't have an account?
    Signup

    Resend OTP (00:30)
    Back to login
    • (+93) Afghanistan
    • (+355) Albania
    • (+213) Algeria
    • (+1) American Samoa
    • (+376) Andorra
    • (+244) Angola
    • (+1) Anguilla
    • (+1) Antigua
    • (+54) Argentina
    • (+374) Armenia
    • (+297) Aruba
    • (+61) Australia
    • (+43) Austria
    • (+994) Azerbaijan
    • (+973) Bahrain
    • (+880) Bangladesh
    • (+1) Barbados
    • (+375) Belarus
    • (+32) Belgium
    • (+501) Belize
    • (+229) Benin
    • (+1) Bermuda
    • (+975) Bhutan
    • (+591) Bolivia
    • (+599) Bonaire, Sint Eustatius and Saba
    • (+387) Bosnia and Herzegovina
    • (+267) Botswana
    • (+55) Brazil
    • (+246) British Indian Ocean Territory
    • (+1) British Virgin Islands
    • (+673) Brunei
    • (+359) Bulgaria
    • (+226) Burkina Faso
    • (+257) Burundi
    • (+855) Cambodia
    • (+237) Cameroon
    • (+1) Canada
    • (+238) Cape Verde
    • (+1) Cayman Islands
    • (+236) Central African Republic
    • (+235) Chad
    • (+56) Chile
    • (+86) China
    • (+57) Colombia
    • (+269) Comoros
    • (+682) Cook Islands
    • (+225) Côte d'Ivoire
    • (+506) Costa Rica
    • (+385) Croatia
    • (+53) Cuba
    • (+599) Curaçao
    • (+357) Cyprus
    • (+420) Czech Republic
    • (+243) Democratic Republic of the Congo
    • (+45) Denmark
    • (+253) Djibouti
    • (+1) Dominica
    • (+1) Dominican Republic
    • (+593) Ecuador
    • (+20) Egypt
    • (+503) El Salvador
    • (+240) Equatorial Guinea
    • (+291) Eritrea
    • (+372) Estonia
    • (+251) Ethiopia
    • (+500) Falkland Islands
    • (+298) Faroe Islands
    • (+691) Federated States of Micronesia
    • (+679) Fiji
    • (+358) Finland
    • (+33) France
    • (+594) French Guiana
    • (+689) French Polynesia
    • (+241) Gabon
    • (+995) Georgia
    • (+49) Germany
    • (+233) Ghana
    • (+350) Gibraltar
    • (+30) Greece
    • (+299) Greenland
    • (+1) Grenada
    • (+590) Guadeloupe
    • (+1) Guam
    • (+502) Guatemala
    • (+44) Guernsey
    • (+224) Guinea
    • (+245) Guinea-Bissau
    • (+592) Guyana
    • (+509) Haiti
    • (+504) Honduras
    • (+852) Hong Kong
    • (+36) Hungary
    • (+354) Iceland
    • (+91) India
    • (+62) Indonesia
    • (+98) Iran
    • (+964) Iraq
    • (+353) Ireland
    • (+44) Isle Of Man
    • (+972) Israel
    • (+39) Italy
    • (+1) Jamaica
    • (+81) Japan
    • (+44) Jersey
    • (+962) Jordan
    • (+7) Kazakhstan
    • (+254) Kenya
    • (+686) Kiribati
    • (+965) Kuwait
    • (+996) Kyrgyzstan
    • (+856) Laos
    • (+371) Latvia
    • (+961) Lebanon
    • (+266) Lesotho
    • (+231) Liberia
    • (+218) Libya
    • (+423) Liechtenstein
    • (+370) Lithuania
    • (+352) Luxembourg
    • (+853) Macau
    • (+389) Macedonia
    • (+261) Madagascar
    • (+265) Malawi
    • (+60) Malaysia
    • (+960) Maldives
    • (+223) Mali
    • (+356) Malta
    • (+692) Marshall Islands
    • (+596) Martinique
    • (+222) Mauritania
    • (+230) Mauritius
    • (+262) Mayotte
    • (+52) Mexico
    • (+373) Moldova
    • (+377) Monaco
    • (+976) Mongolia
    • (+382) Montenegro
    • (+1) Montserrat
    • (+212) Morocco
    • (+258) Mozambique
    • (+95) Myanmar
    • (+264) Namibia
    • (+674) Nauru
    • (+977) Nepal
    • (+31) Netherlands
    • (+687) New Caledonia
    • (+64) New Zealand
    • (+505) Nicaragua
    • (+227) Niger
    • (+234) Nigeria
    • (+683) Niue
    • (+672) Norfolk Island
    • (+850) North Korea
    • (+1) Northern Mariana Islands
    • (+47) Norway
    • (+968) Oman
    • (+92) Pakistan
    • (+680) Palau
    • (+970) Palestine
    • (+507) Panama
    • (+675) Papua New Guinea
    • (+595) Paraguay
    • (+51) Peru
    • (+63) Philippines
    • (+48) Poland
    • (+351) Portugal
    • (+1) Puerto Rico
    • (+974) Qatar
    • (+242) Republic of the Congo
    • (+40) Romania
    • (+262) Runion
    • (+7) Russia
    • (+250) Rwanda
    • (+290) Saint Helena
    • (+1) Saint Kitts and Nevis
    • (+508) Saint Pierre and Miquelon
    • (+1) Saint Vincent and the Grenadines
    • (+685) Samoa
    • (+378) San Marino
    • (+239) Sao Tome and Principe
    • (+966) Saudi Arabia
    • (+221) Senegal
    • (+381) Serbia
    • (+248) Seychelles
    • (+232) Sierra Leone
    • (+65) Singapore
    • (+1) Sint Maarten
    • (+421) Slovakia
    • (+386) Slovenia
    • (+677) Solomon Islands
    • (+252) Somalia
    • (+27) South Africa
    • (+82) South Korea
    • (+211) South Sudan
    • (+34) Spain
    • (+94) Sri Lanka
    • (+1) St. Lucia
    • (+249) Sudan
    • (+597) Suriname
    • (+268) Swaziland
    • (+46) Sweden
    • (+41) Switzerland
    • (+963) Syria
    • (+886) Taiwan
    • (+992) Tajikistan
    • (+255) Tanzania
    • (+66) Thailand
    • (+1) The Bahamas
    • (+220) The Gambia
    • (+670) Timor-Leste
    • (+228) Togo
    • (+690) Tokelau
    • (+676) Tonga
    • (+1) Trinidad and Tobago
    • (+216) Tunisia
    • (+90) Turkey
    • (+993) Turkmenistan
    • (+1) Turks and Caicos Islands
    • (+688) Tuvalu
    • (+1) U.S. Virgin Islands
    • (+256) Uganda
    • (+380) Ukraine
    • (+971) United Arab Emirates
    • (+44) United Kingdom
    • (+1) United States
    • (+598) Uruguay
    • (+998) Uzbekistan
    • (+678) Vanuatu
    • (+58) Venezuela
    • (+84) Vietnam
    • (+681) Wallis and Futuna
    • (+212) Western Sahara
    • (+967) Yemen
    • (+260) Zambia
    • (+263) Zimbabwe