Outbound call: Received response: Fordbidden

Hello,

When I dial a number starting with *, I get a strange answer from asterisk and a busy tone: WARNING[2582]: chan_sip.c:12198 handle_response_invite: Received response: “Frobidden” from “Jack”…

I’m trying to set the call forwarding of my phone provider, and in order to do that, I need to dial *05 + the number to forward calls to… Well, as each time I dial a number starting with *, it fails, I cannot forward my calls!

In my dial plan: exten=_101XXXXXXXX,1,Dial(SIP/*059${EXTEN:3}@101), and it fails for example.

Can you please help?? Thanks!

I assume you are not trying to dial out with *05. Check your phone config… I had to modify extentions.conf and phone dial plan to be able to use *67

Well, I did modify my dial plan to do some tests, but it didn’t work. Even, if I directly dial a number starting with *.
For example: exten=1212,1,Dial(SIP/*05996133555@101)

On my phone, I just dial 1212, and it calls this number *05996133555. In the CLI, i can see that the number called is the right one, starting with *, but I still receive this forbidden response.

Please help!

Thanks!

here is example from my extensions.conf:

exten => _*67.,1,dial(SIP/${EXTEN:0}@mypeer,60,Tt

see the difference: exten => _

Ok, I tried using this line in my extensions.conf :

exten=_*05.,1,dial(SIP/${EXTEN:0}@101)

Now, when I dial a number starting with *05, I get that as an answer:
chan_sip.c:13885 handle_request_invite: Call from ‘75’ to extension ‘*05’ rejected because extension not found.

It looks like it doesn’t even try to dial all the digits I input after the *05, it just reads *05 and stops.

Do you have any idea why do I get this as an answer?

Any idea why asterisk doesn’t take the whole number but stops after *05 and tries to find the corresponding extension? Which of course doesn’t exist as my goal is to dial *05 + “my number” on my PSTN line…

[quote=“biknit”]Ok, I tried using this line in my extensions.conf :

exten=_*05.,1,dial(SIP/${EXTEN:0}@101)

Now, when I dial a number starting with *05, I get that as an answer:
chan_sip.c:13885 handle_request_invite: Call from ‘75’ to extension ‘*05’ rejected because extension not found.[/quote]
It looks like your dialplan can’t find a channel labeled with 101 to dial out. Do you have such a channel?

Yes I do, 101 is a peer channel. In fact it’s my PSTN gateway used as a peer. I’m making all my calls through it and it works well.

If it is a PSTN gateway through zaptel, then I believe you need to use zaptel and not SIP to dial. Just a wild guess because I don’t use zaptel.

The gateway is registered in my SIP.conf using:

[101]
type=peer
host=192.168.10.190
insecure=port
context=employees

So I don’t use zaptel. It works for all the other numbers I dial, as soon as i have an * in it, it fails!

Make sure there isn’t a dial-plan string on your gateway prohibits a dialing pattern with *.

yay! In fact, you were right, * and # weren’t allowed in my gateway dial plan… It’s a fixed issue now, thx a lot!