Originate Call From Cli Does Not Work For SIP Line…

Home » Asterisk Users » Originate Call From Cli Does Not Work For SIP Line…
Asterisk Users 1 Comment

I have a SIP line that is working fine when I make calls from IP
phones. I can send and receive calls. The problem is that if I try to dial from the CLI using the originate command or use an AMI connection to originate a call I get the following error:

originate SIP/protel-out/0445540881644 application playback tt-monkeys WARNING[12950]: chan_sip.c:20437 handle_response_invite: Received response: “Forbidden” from ‘”Anonymous”
;tag=as79fffc8d’

Here is the sip.conf entry for that line:

[protel-out]
defaultuser=XXXXXXXXXX
secret=XXXXXXXX
fromuser=XXXXXXXXXX
type=peer fromdomain=i2next.com.mx host=i2next.com.mx disallowed_methods = UPDATE
nat=no qualify=no insecure=port,invite directmedia=no disallow=all allow=g729
context=entrada trustrpid=yes sendrpid=yes

As I mentioned it works if I dial from a phone. CLI or AMI fails.

One thought on - Originate Call From Cli Does Not Work For SIP Line…

  • Carlos Chavez писал 02.08.2012 20:24:

    SIP/protel-out/0445540881644 application playback tt-monkeys

    And if you route it via local context? For example, originate local/outgoing/0445540881644 application playback tt-monkeys

    where
    “outgoing” is your context which knows how to route 0445 prefix