Advice/questions on CLI channel originating

Hello,

For years, I use CLI like the one bellow to call some remote phone for quick testing.
channel originate Local/1@mytest application Playback tt-monkeys

The issue I have is if mytest context ever uses channel specific functions (le PJSIP_HEADER), I get an error as these channel specific functions arenot available on Local channels.

Within 1@mytest instructions, I often dialout a cellphone number and I also use CLI like the one bellow.
channel originate PJSIP/123456789@mytrunk application Playback tt-monkeys

The issue I have with this second method, is CALLERID is not set which doesn’t help.

  1. Is there a way to allow a Local channel to behave like a PJSIP channel ?
  2. Is there a way to set CALLERID before or while entering “channel originate Local/1@mytest application Playback tt-monkeys …” ?
  3. Alternatives ? Suggestions ? thoughts ?

For point 2, I was thinking of being able to save a couple of CALLERID, and then being able to specify which saved ID to use before originating.

channel savecallerid1 123456789
channel savecallerid2 Foo <987654321>
channel originate1 PJSIP/123456789@mytrunk application Playback tt-monkeys

Cheers

You can’t make a Local channel behave like a PJSIP channel. Even in that case with using PJSIP_HEADER on the PJSIP channel you originated, that wouldn’t result in anything because it’s not an incoming call.

The CLI originate has no functionality to set the callerid.

OK
So the best thing I can think of, using PJSIP over Local channels is required, is using an external SIPp instance.

Thanks for replying

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.