Setting channel variable on every inbound call

Where is the easiest, safest, durable place to set a couple channel variables for inbound calls?

Most channel drivers allow you to set variables for calls from a given endpoint, which you would do in the relevant customisation file for that driver.

You could also change the incoming context to a custom one, which sets the variables, then jumps to from-pstn.

The best option is going to depend on whether they are really variables, and on of what they are funcitons.

A good starting point might be…

I’m using pjsip and I don’t see the option in there. I do see the option in the previous chan_sip but I’m not using that anymore. Putting it in the sip settings seems to make the most sense. I’d rather not screw around with the dialplan if I can.

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