Asterisk ARI call from external to external - asterisk

I want to make a call using Asterisk 13 ARI from my mobile number to another mobile number.
I have tried different calls but all return "Allocation failed" response:
endpoint:my_mobile_number,extension:other_mobile_number,context:from-trunk
endpoint:SIP/my_mobile_number,extension:other_mobile_number,context:from-trunk
endpoint:SIP/my_mobile_number,extension:other_mobile_number,context:from-external
endpoint:my_mobile_number,extension:other_mobile_number,context:from-external
etc.
How can I initiate a call from my mobile phone to another mobile phone using ARI?
EDIT
arheops answer helped me find the working code:
endpoint:Local/my_mobile_number#from-internal,extension:other_mobile_number,context:from-internal,priority:1
Thank you!

Unfortanly you can't use ARI without understanding asterisk internals. You need read some book for beginners.
endpoint:Local/my_mobile_number#out_context,extension:other_mobile_number,context:out_context,priority:1
endpoint:SIP/my_mobile_number#myprovider_sip,extension:other_mobile_number,context:out_context,priority:1
both variant have be working

Related

How to set up node-red on rasbian to get information from a ble-energy-harvesting button?

at first: I'm not a BLE expert so I try to describe my problem as good as I can and I apologize in advance if I don't use the right terms or definitions.
I've bought a BLE-Energy-Harvesting button of type PTM 215B (1).
I've installed node-red on Raspberry-Pi 2b (2)
Locally on node-red the package node-red-contrib-generic-ble was install with npm (3)
when node-red is started I can see the elements of generic-ble-package and so I tried to configure the "Generic Ble In"-Item.
When I scan for devices, I have to push and release the button several times till it is shown in the list - that's no wonder because without these actions the button has no energy.
But then it gets complicated. When I click on "Apply", the item tries to get the GATT(ributes) from the button.The problem is - as far as I understood - the button doesn't have any.
From the CLI I've used bluetoothctl to scan for devices and I've seen that the button is always recognized by the system (on-button-pressed and on-button-released).
I've also tried with different other node-red packaged but they had even more problems ( e.g. noble (4) could not be installed properly and it looks like abandoned )
I assume the problem is sitting in front of the screen but this is the second Saturday I'm trying to "install a button" and I really don't know how to proceed.
I've read (somewhere) that one of the strength of BLE is the possible usage of energy-harvesting -sensors. But does the "general-ble"-package do the job?
-If yes, how?
-If no, which package should I use?
I'd really like to use a node-red-package because I want to expand an already existing flow.
I appreciate any help and/or link.
Thank you in advance.
Regards,
Mr P
Additional info:
Raspbian: VERSION="10 (buster)"
npm --version: 6.14.8
node-red: 1.2.6: Maintenance Release
Ref.
(1) https://www.enocean.com/en/products/enocean_modules_24ghz_ble/ptm-215b/
(2) https://nodered.org/docs/getting-started/raspberrypi
(3) https://flows.nodered.org/node/node-red-contrib-generic-ble
(4) https://flows.nodered.org/node/node-red-contrib-noble
I found the way to do the job:
I installed the ble-beacon-scanner (1) and that works fine for my purpose.
As I understood: Beacons use ble-notifications, which don't share attributes and don't need a continuous connectivity.
The generic library unfortunately doesn't offer this part of the ble-protocol.
Thank you all.
Regards,
Mr P
(1) https://flows.nodered.org/node/node-red-contrib-blebeacon-scanner

Is there a way to play sound on mobile when task finished

Maybe I didn't search to good, but I wonder is there a way to play a sound on my Apple mobile device when the task is finished, for example call to apply?
Best Regards
(This is one of many possible answers, and happens to work very well for me.)
I use Pushbullet and RPushbullet. After the initial setup (free account and free use), from any R instance (that has connectivity with the internet) I can run pbNote('note', 'title', 'body of note'), and it "instantly" comes up on my computer and mobile.
Because it is an R package/function, it can be easily scripted to meet whatever static/dynamic needs may arise. It can also send images (I'm told), files, addresses (think google maps), and lists.
I'm using the twitteR package and tweet something when a long-lasting task is done. You can then setup a second twitter account to follow the account you tweet to from R and set an alarm for new tweets.
To be able to tweet from R, you have to go through all the authentication steps for Twitter, though.
I use my own github package to send a text. This is wrapping python code I didn't write and don't understand so I maintain it for myself but have not been able to address other people's problems:
https://github.com/trinker/gmailR
So the use may look something like:
gmail(to=cell2email(5555555555, "sprint"), password = "password")
Including this at the end of the script sends me a text when the long task is complete. This really is taking advantage that cell numbers can be turned into email addresses if the cell carrier is known.

BTstack on MSP430F5438A + CC2564 bluetooth module

First, is there any good documentation for the btstack API's. I am trying to learn how to fully use btstack , send and receive data, look for devices within range and initiate connection.I am implementing this for MSP-430F5438A + CC2564 Bluetooth module.
http://code.google.com/p/btstack/wiki/MSP430GettingStarted
This website has some examples, but I am still confused, I need someone to break it down for me.Is there a template that I can start of. Anything would be helpful. If there is a step by step reference on how to connect to a device and exchange packets, it would be really great. Thanks is advance
In the regular "GettingStarted" page is a little explanation on what goes on in the packet handler, which is the main part of where you basically put all of your new code.

Qt: How to sign up for phone call notification?

I have looked around to find something that could help me receive notification in my app when the device is receiving a phone call.
I found this: QTelephonyCallInfo
But the that one doesn't seem to exist any more.
Can anyone help me out here?
Thanks in advance!
I am using QDesktopServices for calling a number:
QDesktopServices::openUrl(QUrl("tel:*number*"));
However, it does not dial automatically. The user must confirm the phone call first.
Can't be done in using Qt classes yet.You will have to use native classes to achieve this.
For symbian you might be interested in CTelephony Class

tiny URL api Automati in flex 3

i am working in application of twitter in flex 3 and action script 3 , this in the text area when the user write my application automatically change http address to a short address but i don't know find the address within the text you can help me please..
thanks in advance
if you can use http webservices try to use one provided by bit.ly to shorten url
http://code.google.com/p/bitly-api/wiki/ApiDocumentation#/shorten
http://api.bit.ly/shorten?version=2.0.1&longUrl=' + textarea.text}" result="doSomething(event)"/>
I've never used this api, so research before use: http://userflex.wordpress.com/2008/05/29/tinyurl-flex-library/
It looks like a set of utility functions a simple as: TinyURL.create(url,callbackFunction);
Best of luck,
Jeremy

Resources