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.
- Is there a way to allow a Local channel to behave like a PJSIP channel ?
- Is there a way to set CALLERID before or while entering “channel originate Local/1@mytest application Playback tt-monkeys …” ?
- 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