Dialling 9 then number

Hi,

When I call from my nokia E71 i put 9 then a local number like 123 and dial it. The phone says address not in use.

Why does it say this?

Surely it should use 9 for outside trunk (sipgate) then dial 123.

I can post my sip and extension.conf files if that will help. The only way I have got it to work is if I make an exten entry for each number I want.

so for example:-

exten => 10200,1,Dial(SIP/10200@sipgate,30)
this works when i dial 10200 from my phone. But 910200 doesn’t.

Any help would be great! :smiley:

Try:

exten => _9XXXXX,1,Dial(SIP/${EXTEN:1}@sipgate,30)

This defines a pattern that matches 9+any five digits. It then dials the number entered by the caller, skipping the first digit (the 9, in this case), using sipgate. In effect, this dialplan statement defines 9+ as a carrier access code for sipgate.