I have a few thoughts. I don't know if these are actually wrong on your
system, maybe they got lost in the process of anonymizing.
On 5/17/06, Syed ZIA <[EMAIL PROTECTED]> wrote:
Hello folks, with your help I am able to run my [EMAIL PROTECTED] 2.7now....
everything seems fine but I have one issue... I have a DID
from and all i need to do is receive this DID on my box and get it
transfered to my PSTN gateway through a SIP URI... I am getting this DID to
my box as i can see it on the CDR but some how its not going any where
here is what i am doing in my config files.....Just to let you know I am
using the default sip.conf files and extentions.conf which came with the
installation........... I just added these lines in it.
sip.conf
externip=1.2.3.4.5.67.89 ; my asterisk box ip
localnet=192.168.1.109/255.255.255.0 ;since i am behind NAT
This should probably read 192.168.1.0/255.255.255.0 to specify the subnet
rather than a single IP. All the same I don't think it would cause the
problem you're describing.
[DID PROVIDER]
host = IP.of.DID.PROVIDER
type = friend
insecure = very
context = from-sip-external
extentions.conf
[DID] ; all incoming calls from DID provide
exten => 14161234567,2,Dial(SIP/[EMAIL PROTECTED],,60,r) ; where
14162345678 is my DID and 12.345.111 is my pstn gateway
exten => 14161234567,4,Hangup
I can't remember trying to write an extension without a step 1 but I think
that's fatal. I usually write the the first 4 steps with a noop like:
exten => 1234,1,noop(some debug info maybe for extension ${EXTEN})
exten => 1234,2,noop
...
That way I can easily add debug stuff at the beginning and avoid having to
renumber the rest of the thing.
If what you've shown is actually what's in your files, you should make sure
that you have a consecutively numbered set of steps and try it again.
I don't have an [EMAIL PROTECTED] box handy right now but I thought there was a
way to
define the DID and direct it to a local extension or an extension of type
'custom'. The [EMAIL PROTECTED] dialplan is extensible using the custom .conf
files as
Alex indicates but if you can do it within the GUI, then you know you're not
overriding any of the built in functionality.
Another thought is to setup your PSTN gateway as a trunk in FreePBX. Then
setup a route statement so that you make sure you can dial out using it.
(for instance, dial 8 instead of 9 for an outside line on the PSTN gateway)
It simplifies your script because now you only have to do
dial(SIP/Trunkname/4161234567). And if it breaks down, you can always test
the PSTN gateway independently of your script and all the other junk.
You should make sure that you can recieve on a local extension first. Then
see if you can design a custom extension from within the GUI.
Other things to consider are NAT issues and things like that. Testing DID
to a local phone will determine whether you've got an issue with the
[EMAIL PROTECTED]/extension or a network issue getting to the PSTN gateway.
Good luck and keep us posted on your progress.
Dave
--
David Donovan
Consultant
Fulcrum Solutions