We are new using FreeSW(Fusion), we are familiar with Asterisk A2 and Freepbx
We are struggling to register GSM gateways or any Sip gateway when there is no Public IP
but Dynamic, registering Sip extensions works well, what’s the solution to register a Granstream ATA
or a Dinstar GSM gaeway behibd NAT
If you are saying that FreeSwitch needs to register to the Grandstream or the
Dinstar, then it’s simply not possible unless you can tell FreeSwitch what IP
address to connect to (and it must be reachable as well).
If the Grandstream or the Dinstar can register to FreeSwitch, then it’s
exactly the same as using a telephone, which can both accept and place calls.
Port forwarding could work, but in my experience it’s difficult to get the RTP
ports forwarded inbound through common routers (outbound, private-to-public
generally works fine), and without that, SIP will work to set up a call, and
there will be no audio (or more likely, it’ll be one-way).
use a regexp or lua script to get the sofia_contact, and then replace the user part to whatever you need before originte or bridge. There’s a complete example shows how to do that in the book 《FreeSWITCH权威指南》