Dial external number with non standard prefix

Hello All,

Asterisk 11.8.1

I must prepend all my external calls with “12345#” string. Unfortunately, Asterisk replaces the “#” symbol by %23 during a call.

exten => _8910X.,n,Dial(SIP/itsp/12345#${EXTEN})

12345#89101112131 -> 12345%2389101112131

Is it possible to change this behaviour?

Thanks a lot for your help

That’s an invalid SIP URI. What does it mean? I’m not really sure how to interpret fragments with SIP URIs.

Sending %23 is the correct way of representing octothorpe in a SIP URI.

You may find that disabling pedantic SIP checking also disables URI encoding.

Thank you so much. It helps