I'm new to asterisk and I'm having trouble grasping all the nuances.
I have successfully made calls to inbound extension using the originate function and played some audio files. But now I need to call real-world phone numbers. I have already set up sip trunk in my asterisk config but I'm having an issue calling through sip/trunk.
await channel.originate({
context: "from-internal",
endpoint: "SIP/TRUNK_ABC/XXXXXX",
// app: "channel-dump",
extension: "test",
callerId: "asterisk",
});
Running the following code just gives me an allocation failed error.
Can anyone point me in the right direction? Thanks
I'm new to asterisk and I'm having trouble grasping all the nuances.
I have successfully made calls to inbound extension using the originate function and played some audio files. But now I need to call real-world phone numbers. I have already set up sip trunk in my asterisk config but I'm having an issue calling through sip/trunk.
Running the following code just gives me an
allocation failederror.Can anyone point me in the right direction? Thanks