I'm an asterisk programming novice and I need help with finding the correct syntax to match and set an outgoing call from a specific user from a specific SIP Trunk and set as a specific caller id, i.e.:
User A from SIP Trunk A @ exten 202 ==> dialing out ==> set callerid = 3101234567
User B from SIP Trunk B @ exten 202 ==> dialing out ==> set callerid = 3101235555
The problem is that the calls are originating from another PBX, i.e. MS Lync, via a SIP Trunk.
So my thinking is, I need to find out the outgoing SIP info of the caller, if it matches, set the caller id via:
So I'm not sure if i need to use a marco or gotoif or what...Please help.