I have configured baresip to call a locally running asterisk instance, which has a custom module called app_knisper with dial plan file app_knisper.conf in /etc/asterisk directory.
I have verified that the module is running when asterisk starts.
I would like asterisk to run the app_knisper dialplan when baresip user calls.
in ~/.baresip/accounts I have added a line for the baresip user
NOTICE[23543]: res_pjsip_session.c:4000 new_invite: baresip: Call (UDP:192.168.2.249:35527) to extension 'baresip' rejected because extension not found in context 'from-internal'.
I have configured baresip to call a locally running asterisk instance,
NOTICE[23543]: res_pjsip_session.c:4000 new_invite: baresip: Call
(UDP:192.168.2.249:35527) to extension ābaresipā rejected because
extension not found in context āfrom-internalā.
I think that message is pretty clear.
Calls from baresip are going into the āfrom-internalā context (because you
defined this in pjsip.conf), and the incoming call is trying to reach the
extension ābaresipā which you have not defined in that context.
~/.baresip/accounts` I have added a line for the baresip user
You would need to change the dialplan, or have it dial the extension in the dialplan that already exists. The dialplan isnāt in this post so we canāt say otherwise.
What kind of experience do you have with Asterisk?
Thanks, folks, Iām afraid my knowledge of asterisk is minimal. But, I have made some modifications and now the call goes through. I moved my dialplan code into extensions.conf where it belongs,
and changed the context in pjsip.conf to match the context in extensions.conf
I am using Background to wait for dtmf, is there a default file I can play while running Background ?
Here is the beginning of my app_knisper context section in extensions.conf, which is incorrect
as ask-user file does not exist.
[app_knisper]
exten => s,1,Answer()
same => n,Set(CHANNEL(musicclass)=default) ; default hold music for now
same => n,Background(ask-user) ; Prompt the user to enter an option
I havenāt done an Asterisk install for a long time, but when I did them, the default music class was populated with some CC licensed music (although our marketing people didnāt think much of it).
You donāt need to set the class to default unless something has changed it.
You can populate the directory with any files in one of the standard Asterisk formats, subject to available codecs, and your having a licence to use its contents.