Carlos Chavez
2012-Aug-02 17:24 UTC
[asterisk-users] Originate call from cli does not work for SIP line...
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" <sip:XXXXXXXXXX at anonymous.invalid>;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. -- Telecomunicaciones Abiertas de M?xico S.A. de C.V. Carlos Ch?vez Prats Director de Tecnolog?a +52-55-91169161 ext 2001 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: This is a digitally signed message part URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20120802/6d09dfa0/attachment.pgp>
Mikhail Lischuk
2012-Aug-03 08:06 UTC
[asterisk-users] Originate call from cli does not work for SIP line...
Carlos Chavez ????? 02.08.2012 20:24:> originateSIP/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 -- With Best Regards Mikhail Lischuk -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20120803/ca53a89a/attachment.htm>