Outbound call issue with ARI

I’m facing issue when I trigger outbound call from ARI with postman, but with same context I could able to trigger an outbound call on console

Below is my dial plan


[initial-test]
exten => _+91X.,1,NoOp(this default extension ${EXTEN} ======)
	same => n,Hangup()

could able to trigger the call successfully with below command
console dial +91XXXXXXXXXX@initial-test

Below is postman body

{
    "endpoint": "SIP/airtel/+91XXXXXXXXXX",(destination number)
    "extension": "initial-test",
    "callerId": "+9140XXXXXXXX"(provider number)
}

Post man url : http://localhost:8088/ari/channels
With postman I could I’m able to trigger call but I’m getting below error

[Jul  3 09:02:13] WARNING[746][C-00000002]: pbx.c:4510 __ast_pbx_run: Channel 'SIP/airtel-00000001' sent to invalid extension but no invalid handler: context,exten,priority=default,initial-test,1

Can someone help me in this

This is fixed by adding extension as the destination number as shown below

{
    "endpoint": "SIP/airtel/+91XXXXXXXXXX",
    "extension": "+91XXXXXXXXXX",
    "context": "initial-test"
}

But it is initiating two calls at a time on same phone number, what could be the issue?

This is resolved by adding provider number in endpoint instead of destination number as shown below

{
“endpoint”: “SIP/airtel/+91XXXXXXXXX”,( Pilot number)
“extension”: “+91XXXXXXXXX”,( destination number)
“context”: “initial-outbound”
}

Thank you

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.