Prefix number for incoming calls

Hi all!

Are there any possibility to set the prefix number on the dialplan for incoming calls with variables?

For example:
exten = s,n,Set(CALLERID(num)={prefix()}{CALLERID(num)})

I supose that maybe if the trunk provider sends me the prefix with the number maybe is more simply right?

Thanks,

Yes. It’s just a string at this point, so you can use variables the same way as in constructing any other dialplan application call.

Note that variables don’t have parameters and you forgot to mark your dialplan up correctly (using </>) for the forum.

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