Context gets erased from the extensions.conf (Solved)

Hello, I’m using freepbx with asterisk. When I include a context for a2billing in extensions.conf or additional ext .conf it gets erased after i close the file, I’m editing with winscp3. this is basically what I want to set up.

include => outbound-allroutes
exten => s,1,Answer
exten => s,2,Wait,2
exten => s,3,DeadAGI,a2billing.php
exten => s,4,Wait,2
exten => s,5,Hangup

I don’t know where to place it if extensions.conf or ext.add.conf and what part then how do I call it? do I use the inbound route and use what kind of syntax “custom-a2billing,s,1”

or if you have a better way I would like to hear it.

Thanks for the help.

Put custom extensions in extensions_custom.conf

Call it using:


Thanks colinjack, I did not notice there is a custom_conf, it’s name sample.

I’ll rename it and the context to it. See what happens.

Thanks a lot for the reply.