Can't dial PSTN number with * prefixed in the number

Hi,

I’m having issues dialing out with a number that starts with an *… Basically, I have my caller id blocked so if I want my callee to see my caller id, I need to prefix the called number with *82. However, if I do this, I get a forbidden error… Help please.

I have the following setup…
Asterisk 10.5.0
SPA3102

in my Dial plan, i have a Dial(SIP/10000/*82${EXTEN},120)

Error I’m getting is:

-- Executing [+6512345678@Family:10] Dial("SIP/1111-00000000", "SIP/10000/*8287654321,120") in new stack

== Using SIP RTP CoS mark 5
– Called SIP/10000/*8287654321
[Nov 1 18:57:38] WARNING[18120]: chan_sip.c:20893 handle_response_invite: Received response: “Forbidden” from ‘“Caller” sip:1111@192.168.1.101;tag=as312796c5’
== Everyone is busy/congested at this time (1:0/1/0)

This is probably an issue with the gateway, although you could try URI encoding the *.

Thanks David55, any idea how I can do that?

google.co.uk/search?q=uriencoding

Thanks for the google query… I was thinking of something more specific to Asterisk and not a general search.

I think the problem is with my SPA3102. :frowning: Anybody know why it’s not accepting the “*”?

Found the problem…

If I do a SendDTMF(*), this drops my call… Regardless if it’s an internal or a PSTN call… Same issue with this guy.

viewtopic.php?f=1&t=78240

However, his solution does not work for me… Any other way?

Solved the problem… Had to be set with the right dial plan…

forums.whirlpool.net.au/archive/332476