i am new to freepbx i intend to buy Goip GSM Gateway then i saw Raspbx Chan Dongle GSM Gateway
so i bought all meterials for raspbx and almost build halfway and now i am stuck unknowing the FreePBX setup/Dialing Rules
raspbx (127.0.0.1) Debian Linux 7.4 Asterisk (Ver. 11.8.0):FreePBX version: (2.11.0) Linux 3.10.29+ on armv6l
inbound Routes name : inbound
DID Number? <BL-ANK>
inbond Set Destination : Extensions <1000>
outbond Route name : out_GSM
Route CID:? <BL-ANK>
Dial Patterns that will use this Route : NXXNXXXXXX & NXXXXXX & X.
Trunk Sequence for Matched Routes 0 : Dongle (Unlocked huawei E303s-1)
Optional Destination on Congestion : Normal Congestion
Trunks Name : Dongle
Outbound CallerID: <+1SIM NUMBER>
Maximum Channels : 1
Custom Dial String : dongle/dongle0/$OUTNUM$
tried youtube aswell no luck so far almost 2 weeks of search for help find no detailed answer
so far SMS(http://raspbx/sms/) working as it is supposed to
any call come in to the SIM on the Dongle gateway answerable via pc based(sip) soft phone
i can make any call from pc based(sip) soft phone to any number via GSM Dongle
once the pc based(sip) soft phone goes offline !? while GSM GATEWAY STILL UP i want to make & Recieve calls using GSM Dongle
in another word i guess i need freepbx setup /Dialing Rules guide
such as DISA + Ring Groups + Follow Me implication for my GSM Gateway
as i said above i have only,
1 extention also using with x-lite soft phone (Extensions <1000>)
1 inbound route
1 outbound route
1 Trunk (Dongle)
MAY NOT ANSWER YOUR QUESTION DIRECTLY, THOUGHT WOULD POST IT FOR OTHERS AS A REFERENCE
Pre-requisites:
1) Verify your dongle is in the supported list by raspbx/chan_dongle
2) Voice is enabled on the dongle (using dc-locker tool)
3) follow steps per http://www.raspberry-asterisk.org/documentation/gsm-voip-gateway-with-chan_dongle/
4) connect to raspbx, type asterisk -r and type
dongle show device state dongle0
This should show that your dongle is connected to whatever network your SIM belongs to.
Now to the actual setup:
In Freepbx:
1) Click Connectivity –> Trunks -> Add Custom Trunk.
a) Provide a trunk name
b) set Outbound CallerID to the number of your SIM
c) set Custom Dial String field to dongle/dongle0/$OUTNUM$
d) set the match pattern in the first row under Dialed Number Manipulation Rules to
NXXNXXXXXX (do not change anything in other fields in that row).
e) Submit changes
f) Apply config
2) Click Connectivity -> Outbound routes
a) Provide a route name
b) set the third column in first row of Dial Patterns that will use this Route to
NXXNXXXXXX (this is the field before / and 1st of the fields in [ and ])
c) select the trunk created in step 1 above under Trunk Sequence for Matched Routes for
row 0
3) Click Applications -> Generic SIP device
a) Set extension number
b) Set Display name
c) Set password for secret field under Device Options
d) Set nat to Yes for nat field under Device Options (needed if your SIP extension is
out of your home network or behind a firewall)
e) Submit
f) Apply config
4) Click Connectivity -> Inbound routes
a) Provide a name/Description
b) Select Extensions and select your SIP extension created in Step 3 above.
c) Submit
d) Apply config
5) Click Settings -> Asterisk SIP settings
a) set NAT to yes (if needed)
b) set proper IP configuration values
c) Submit changes
d) Apply config
At this point, you should be able to connect your SIP client to your raspbx within the home network. Make sure it works fine before you actually try to access raspbx from other networks.
My config was E169 on raspbx(raspberry pi) using an AT&T SIM card in the USA.
Access from outside of home network requires port forwarding in your router.
Personally, i had trouble in this setup as I had not set the NXXNXXXXX in the steps above and my calls were not working. It was not mentioned on the raspbx site. Once I set the text in the dial plan fields, calls were going through fine..
Last edit: Sriram R 2014-04-17
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi guys, I bought new Huawei E169, its detected successfully on Raspbx as modem, updated everything, but the dongle trunk is not picking the call. when I call, the sim card shows as its off. but if I send SMS to the sim card, its picking and displaying on the screen, even forwarding to the number I set. but inbound calls are not getting connected, any advice is highly apprecitaed
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm sorry m8 but how do you imagine to make phone calls when your VOIP phone of offline?
What do you want to use instead of it?
It's impossible unless you have a second trunk that would forward your call onto a mobile or something. With the setup you have it is not possible. Imagine someone calls you on the GSM dongle number. The call comes in. Where is it supposed to go next? You have to decide where you want to receive that call. Then it might be possible to help you.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks for your reply , as i mentioned in Pastebin ,
i have an extra google voice account ,once i dial that google voice account i wants to google voice to forwarded (to some free of charge SIP chennels) and contact my Dongle sim to make call outs (same like a prepaid phone card functions)
as of now when i call my goog number call goes to (EXT 1000 & if no answer ring group) IVR then DISA then i can dial out from my Dongle (Exactly as type of set up i was looking, for call out)
other end
i want, if anybody call my dongle that call route through dongle (some free of charge SIP chennels) and contact my google voice (i used above) or call my cell phone in USA
i am intend to use replace my current sim with foreign sim and ship it to destination country.
so far inbound call to dongle sim says invalid response then goes IVR then to <100 ext> voice mail then it just hung up !
even if you can give me whole new FreePBX GUI dialing rules i shold be using for my desired need , appreciated
and yes i did use Raspbx*CLI> " dongle cmd dongle0 AT^SYSCFG=13,0,3FFFFFFF,0,3 " command to limit my dongle sim card data usage to zero
thanks Sriram,
i was looking for that dial plan/ Dialing Rules at first and some how manged to get to that point and little more than that
but still not yet understood whole process
so still trying out new rules as of typing this post
Last edit: remainD 2014-04-18
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hey guys, thanks for all your guides. - raspbx is acutally the most useful distribution I know!
Luckily, I already managed to performe outbound routes, but I do not receive incomming calls. - There is even no log in asterisk -rvvvvv. :(
My extensions_custom.conf shows looks as following: [from-trunk-dongle]
exten => sms,1,Verbose(Incoming SMS from ${CALLERID(num)} ${BASE64_DECODE(${SMS$
exten => sms,n,Set(FILE(/var/log/asterisk/sms.txt,,,a)=${STRFTIME(${EPOCH},,%Y-$
exten => sms,n,System(echo >> /var/log/asterisk/sms.txt)
exten => sms,n,Hangup()
exten => .,1,Set(CALLERID(name)=${CALLERID(num)})
exten => .,n,Goto(from-trunk,${EXTEN},1)
I've tried to set up the inbound route with and without my phone number as DID and forwarded it to a registered extension, but anyway... It does not even show up in the asterisk log.
Any help would be highly apprichiated!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Did anybody tried to enable call waiting and make the inbound route to a queue?
Let's say I have one dongle with one sim card if I called the dongle it will ring the up phone and every thing is good but I someone else called the dongle and call waiting is enabled I will lose both calls and dongle will get disconnected
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Guys,
I have Huawei E169 modem, its successfully detected on raspbx, and I added the install-dongle, the modem is forwarding sms correctly, but its not recongizing the calls, when I call the sim, it just goes to voice mail. any advice ?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
For people having problems with chan_dongle I suggest to post the entire dongle configuration file (or a link to it) as well as the output of "dongle show devices" from Asterisk console.
Last edit: AndrewZ 2016-04-01
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
i am new to freepbx i intend to buy Goip GSM Gateway then i saw Raspbx Chan Dongle GSM Gateway
so i bought all meterials for raspbx and almost build halfway and now i am stuck unknowing the FreePBX setup/Dialing Rules
raspbx (127.0.0.1) Debian Linux 7.4 Asterisk (Ver. 11.8.0):FreePBX version: (2.11.0) Linux 3.10.29+ on armv6l
inbound Routes name : inbound
DID Number? <BL-ANK>
inbond Set Destination : Extensions <1000>
outbond Route name : out_GSM
Route CID:? <BL-ANK>
Dial Patterns that will use this Route : NXXNXXXXXX & NXXXXXX & X.
Trunk Sequence for Matched Routes 0 : Dongle (Unlocked huawei E303s-1)
Optional Destination on Congestion : Normal Congestion
Trunks Name : Dongle
Outbound CallerID: <+1SIM NUMBER>
Maximum Channels : 1
Custom Dial String : dongle/dongle0/$OUTNUM$
i did spend a lot of time on
http://www.freepbx.org/forum
http://nerdvittles.com/
http://www.raspberry-asterisk.org/ does not give me any clue
https://sourceforge.net/p/raspbx/discussion
tried youtube aswell no luck so far almost 2 weeks of search for help find no detailed answer
so far SMS(http://raspbx/sms/) working as it is supposed to
any call come in to the SIM on the Dongle gateway answerable via pc based(sip) soft phone
i can make any call from pc based(sip) soft phone to any number via GSM Dongle
once the pc based(sip) soft phone goes offline !? while GSM GATEWAY STILL UP i want to make & Recieve calls using GSM Dongle
in another word i guess i need freepbx setup /Dialing Rules guide
such as DISA + Ring Groups + Follow Me implication for my GSM Gateway
as i said above i have only,
1 extention also using with x-lite soft phone (Extensions <1000>)
1 inbound route
1 outbound route
1 Trunk (Dongle)
i created log & detailed link here http://pastebin.com/ekX7kM4w
anybody here able to give me better detailed setup for Raspbx GSM Gateway much appreciated
Last edit: remainD 2014-04-18
MAY NOT ANSWER YOUR QUESTION DIRECTLY, THOUGHT WOULD POST IT FOR OTHERS AS A REFERENCE
Pre-requisites:
1) Verify your dongle is in the supported list by raspbx/chan_dongle
2) Voice is enabled on the dongle (using dc-locker tool)
3) follow steps per http://www.raspberry-asterisk.org/documentation/gsm-voip-gateway-with-chan_dongle/
4) connect to raspbx, type asterisk -r and type
dongle show device state dongle0
This should show that your dongle is connected to whatever network your SIM belongs to.
Now to the actual setup:
In Freepbx:
1) Click Connectivity –> Trunks -> Add Custom Trunk.
a) Provide a trunk name
b) set Outbound CallerID to the number of your SIM
c) set Custom Dial String field to dongle/dongle0/$OUTNUM$
d) set the match pattern in the first row under Dialed Number Manipulation Rules to
NXXNXXXXXX (do not change anything in other fields in that row).
e) Submit changes
f) Apply config
2) Click Connectivity -> Outbound routes
a) Provide a route name
b) set the third column in first row of Dial Patterns that will use this Route to
NXXNXXXXXX (this is the field before / and 1st of the fields in [ and ])
c) select the trunk created in step 1 above under Trunk Sequence for Matched Routes for
row 0
3) Click Applications -> Generic SIP device
a) Set extension number
b) Set Display name
c) Set password for secret field under Device Options
d) Set nat to Yes for nat field under Device Options (needed if your SIP extension is
out of your home network or behind a firewall)
e) Submit
f) Apply config
4) Click Connectivity -> Inbound routes
a) Provide a name/Description
b) Select Extensions and select your SIP extension created in Step 3 above.
c) Submit
d) Apply config
5) Click Settings -> Asterisk SIP settings
a) set NAT to yes (if needed)
b) set proper IP configuration values
c) Submit changes
d) Apply config
At this point, you should be able to connect your SIP client to your raspbx within the home network. Make sure it works fine before you actually try to access raspbx from other networks.
My config was E169 on raspbx(raspberry pi) using an AT&T SIM card in the USA.
Access from outside of home network requires port forwarding in your router.
Personally, i had trouble in this setup as I had not set the NXXNXXXXX in the steps above and my calls were not working. It was not mentioned on the raspbx site. Once I set the text in the dial plan fields, calls were going through fine..
Last edit: Sriram R 2014-04-17
That clearly does not answer his question since he states that his dongle is working fine.
Hi guys, I bought new Huawei E169, its detected successfully on Raspbx as modem, updated everything, but the dongle trunk is not picking the call. when I call, the sim card shows as its off. but if I send SMS to the sim card, its picking and displaying on the screen, even forwarding to the number I set. but inbound calls are not getting connected, any advice is highly apprecitaed
I'm sorry m8 but how do you imagine to make phone calls when your VOIP phone of offline?
What do you want to use instead of it?
It's impossible unless you have a second trunk that would forward your call onto a mobile or something. With the setup you have it is not possible. Imagine someone calls you on the GSM dongle number. The call comes in. Where is it supposed to go next? You have to decide where you want to receive that call. Then it might be possible to help you.
Thanks for your reply , as i mentioned in Pastebin ,
i have an extra google voice account ,once i dial that google voice account i wants to google voice to forwarded (to some free of charge SIP chennels) and contact my Dongle sim to make call outs (same like a prepaid phone card functions)
as of now when i call my goog number call goes to (EXT 1000 & if no answer ring group) IVR then DISA then i can dial out from my Dongle (Exactly as type of set up i was looking, for call out)
other end
i want, if anybody call my dongle that call route through dongle (some free of charge SIP chennels) and contact my google voice (i used above) or call my cell phone in USA
i am intend to use replace my current sim with foreign sim and ship it to destination country.
please have a look at my Pastebin link http://pastebin.com/ekX7kM4w , (its too much text to post it here)
so far inbound call to dongle sim says invalid response then goes IVR then to <100 ext> voice mail then it just hung up !
even if you can give me whole new FreePBX GUI dialing rules i shold be using for my desired need , appreciated
and yes i did use Raspbx*CLI> " dongle cmd dongle0 AT^SYSCFG=13,0,3FFFFFFF,0,3 " command to limit my dongle sim card data usage to zero
thanks Sriram,
i was looking for that dial plan/ Dialing Rules at first and some how manged to get to that point and little more than that
but still not yet understood whole process
so still trying out new rules as of typing this post
Last edit: remainD 2014-04-18
Hey guys, thanks for all your guides. - raspbx is acutally the most useful distribution I know!
Luckily, I already managed to performe outbound routes, but I do not receive incomming calls. - There is even no log in asterisk -rvvvvv. :(
My extensions_custom.conf shows looks as following:
[from-trunk-dongle]
exten => sms,1,Verbose(Incoming SMS from ${CALLERID(num)} ${BASE64_DECODE(${SMS$
exten => sms,n,Set(FILE(/var/log/asterisk/sms.txt,,,a)=${STRFTIME(${EPOCH},,%Y-$
exten => sms,n,System(echo >> /var/log/asterisk/sms.txt)
exten => sms,n,Hangup()
exten => .,1,Set(CALLERID(name)=${CALLERID(num)})
exten => .,n,Goto(from-trunk,${EXTEN},1)
I've tried to set up the inbound route with and without my phone number as DID and forwarded it to a registered extension, but anyway... It does not even show up in the asterisk log.
Any help would be highly apprichiated!
Hi,
did you manage to fix the issue?
I have exactly the same problem.
Any help would be appreciated.
Did anybody tried to enable call waiting and make the inbound route to a queue?
Let's say I have one dongle with one sim card if I called the dongle it will ring the up phone and every thing is good but I someone else called the dongle and call waiting is enabled I will lose both calls and dongle will get disconnected
Hi Guys,
I have Huawei E169 modem, its successfully detected on raspbx, and I added the install-dongle, the modem is forwarding sms correctly, but its not recongizing the calls, when I call the sim, it just goes to voice mail. any advice ?
For people having problems with chan_dongle I suggest to post the entire dongle configuration file (or a link to it) as well as the output of "dongle show devices" from Asterisk console.
Last edit: AndrewZ 2016-04-01
This is how GOIP unit setup. tested and working
http://samyantoun.50webs.com/asterisk/goip/
Is it possible that some one can update this detail tutorial? I'm using FreePBX 14 and Asterisk 13 and I am stuck on
3) Click Applications -> Generic SIP device
5) Click Settings -> Asterisk SIP settings
feeling hopeless as I can't seem to get my GSM-VoIP to work...
Hi,
I don't have this point in my FreePBX:
"3) Click Applications -> Generic SIP device "
what i'm doing wrong?
I put a copy of my RaPi GSM notes over at
https://forum.core-electronics.com.au/t/rapi-gsm-gateway/2666