Skip to content

Can i use originate for outbound call using sip trunk #150

Description

@unique1o1

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions