I am hitting this curl POST -
http://X.X.X.X:8088/ari/channels?endpoint=SIP%2F556155551000&priority=1&app=default&callerId=556155551001&timeout=30&api_key=asterisk:asterisk
Here, I am trying to call endpoint - 556155551000 from 556155551001 but i am getting below error -
{
“error”: “Allocation failed”
}
Also, in extension.conf , i have configured to transfer call to another instance like below -
exten => 556155551000,1,Dial(SIP/${EXTEN}@SBC-SP1IN)
Here’s sip.conf
[SBC-SP1IN]
type=friend
host=X.X.X.X
context=outbound-demo
disallow=all
allow=ulaw
allow=alaw
allow=gsm
dtmfmode=info
If I comment out call transfer in extensions.conf and add an entry for 556155551000 in sip.conf and connect my zoiper with 556155551000, i am getting a call in zoiper. So looks like when i am trying to forward call to another instance, i am getting this error.
Any input on this?
pchero
March 31, 2023, 5:14am
2
Hi risri89,
Seems like you didn’t set up the ARI application.
When you use the stasis(ARI), the application must be set up before its use. And to set up the ARI application, take a look here(https://wiki.asterisk.org/wiki/display/AST/Getting+Started+with+ARI ).
Thank you.
Kind regards,
Sungtae
2023년 3월 31일 (금) 오후 1:32, risri89 via Asterisk Community <notifications@asterisk.discoursemail.com >님이 작성:
pchero
March 31, 2023, 5:23am
3
Oh… I think I was wrong.
Allocation failed means could find the correct channel endpoint. In this case, it couldn’t find the channel endpoint 556155551000
.
I’m not sure you have endpoint 556155551000 if not you need to add the new endpoint for that. Or you can try this.
endpoint=sip%2FSBC-SP1IN
Kind regards,
Sungtae
2023년 3월 31일 (금) 오후 2:14, Sung-tae Kim <pchero21@gmail.com >님이 작성:
1 Like
system
Closed
April 30, 2023, 1:31pm
5
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.