Dear Forum
Here I have a solution for passing calls from my GSM Gateway
through a IAX2 Trunk to an external FPBX.
My Setup looks like this :
(GSMGateway)->(FPBX1)==(IAX2trunk)==(FPBX2)->(AGIScript)
The GSMGateway acts like a normal SIP Phone (Configured with Extension 400).
So I create an extension for the GSMGateway. All incoming GSM Calls will be
forwarded to this number : 9500 (You can configure this is the GSMGateway).
9 is the prefix of my outgoing route. This route will pass the extension 500
to the IAX2 trunk.
The context of the IAX2 trunk is from-internal (My GSMGateway (400) context
is from-internal).
On the other side FPBX2 will receive my calls and execute a AGI Script.
I add an incoming route with the DID Number 500 and destination is my
AGI Script.
Now I check whats the context name of my incoming route. You will find
the context name in extensions_additional.conf
In the IAX2 Trunk settings I put this context name in the incoming route section.
So whats happen now?
- I call my GSMGateway with my Cellphone.
- The GSMGateway forward my call to 9500
- 9 is my prefix to the IAX2 trunk
- this trunk will contact FPBX2
- 500 is an incoming number. This will execute my AGI script.
This solution works for me. You can configure everything from the GUI.
I’m very happy with the quality of the call. Average ping between the PBX’es
is around 40ms. As GSMGateway I use a VADcore GoIP device.
Other ideas and criticism are welcome.
Best regards,
benny