No such command 'channel originate ... '

Hey all!

I’m trying to originate a call from the cli but it’s not working. When I run channel originate SIP/xxxxxxxxxx@twilio-trunk application Playback echo-instruct I get No such command 'channel originate SIP/xxxxxxxxxx@twilio-trunk application Playback echo-instruct'.

Any ideas what could be wrong?"

If you run “originate SIP/xxxxxxxxxx@twilio-trunk application Playback echo-instruct” does it work? As well, what version of Asterisk are you using? Is the res_clioriginate.so module loaded?

1 Like

module load res_clioriginate.so fixed the problem. The command runs without complaint now, but I sill don’t get the call.

You’d need to provide more information, such as full console output, “sip set debug on”, configuration minus passwords, if you’d like anyone here to provide suggestions on that part.

After setting sip set debug on:

hermes-asterisk*CLI> channel originate SIP/17606228200@twilio-trunk application Playback activated
Really destroying SIP dialog ‘602845c63dcee42d514d2b3275fbf778@[::1]:5060’ Method: INVITE

/etc/asterisk/sip.conf

[twilio-trunk]
type=peer
dtmfmode=rfc4733
canreinivite=no
insecure=port,invite
host=hermes.pstn.twilio.com

Using Asterisk 14.5.0 running on CentOS 7.3 on a DigitalOceans droplet.

Not sure what else to provide.

I’m now getting

Retransmitting #10 (no NAT) to 199.48.164.5:5074:
SIP/2.0 403 Forbidden
Via: SIP/2.0/UDP 199.48.164.5:5074;branch=z9hG4bK-9699836a2d8fe9f0abf83ac42d0b7227;received=199.48.164.5;rport=5074
From: 1101sip:1101@165.227.5.20;tag=d9c8a539
To: 00184737398114sip:00184737398114@165.227.5.20;tag=as7d65ed54
Call-ID: 9699836a2d8fe9f0abf83ac42d0b7227
CSeq: 1 INVITE
Server: Asterisk PBX 14.5.0
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Length: 0

Does that mean my trunk is going to see an invite from 199.48.164.5?

No… It means it HAS seen an invite, that invite was rejected (probably bad password) and either the forbidden response didn’t reach the other side, or the other side’s ACK didn’t reach Asterisk.