Asterisk URIENCODE Dial String?

We are using freePBX 12 w/ Asterisk 11 for voicemail with Cisco Call manager. Recently upgraded from freePBX 2.5. The outbound dial string to send a call back to call manager starts with a hash/pound sign (#) and asterisk is uriencoding it so in the CLI SIP debug, the INVITE looks like:

 INVITE sip:%[email protected] SIP/2.0
Via: SIP/2.0/UDP 10.44.1.155:5060;branch=z9hG4bK7e8450a5
Max-Forwards: 70
From: <sip:[email protected]>;tag=as63f1abe1
To: <sip:%[email protected]>
Contact: <sip:[email protected]:5060>
Call-ID: 3020c88d4b3c1f3959a559a918b426[email protected]:5060
CSeq: 102 INVITE

Which of couse does not work with Cisco Call Manager. It has to look like:

INVITE sip:#[email protected] SIP/2.0
Via: SIP/2.0/UDP 10.44.1.155:5060;branch=z9hG4bK7e8450a5
Max-Forwards: 70
From: <sip:[email protected]>;tag=as63f1abe1
To: <sip:#[email protected]>
Contact: <sip:[email protected]:5060>
Call-ID: [email protected]:5060
CSeq: 102 INVITE

Can anyone tell me how to get Asterisk to send the hash instead of uriencoding it?

Hi,

Set this value on your sip trunk towards the Cisco Call Manager:

pedantic=yes

Thank you,

Daniel Friedman
Trixton LTD.

2 Likes