We recently purchased Dinstar DWG 2000C - 4G GSM Gateway, and we were unable to make it work properly.
We need a basic usage. This gateway had 3 SIM Cards/Channels which we registered as 3 SIP channels on asterisk - gsm0 to gsm2. That works.
When user calls asterisk, we want to be able to dial all these SIP channels. After first user responds to a call, other SIP channels (mobile phones) should stop ringing. The problem that we have is that as soon as the first line is connected, when the next user calls asterisk reply that ALL SIP lines are busy. This looks like some error in config, and I am posting our sip.conf and also extensions.conf. Hope that someone will be able to help.
You are calling 2 channels at the same time and there is no gms2 dial command so when another tries to call out the channel are already in use.
If you want to cascade available channels do:
exten => yourexten,yourpriority,Dial(yourchannel1)
same => n,Dial(yourchannel2)
same => n,Dial(yourchannel3)
The first one dials on both SIMs at once. The second dials on one SIM and then dials on the second, if the first one fails.
I am somewhat concerned about parallel dialing over the air interface as air interface channels are scarce resources which are better used for genuinely mobile phones.
i am not sure why that would matter. this clearly is something else. few minutes ago i tried picking a gsm1 line, and in that case, gsm0 was not busy in the next call… so to wrap up:
when i pick gsm0 and try to call this extension again , the gsm1 reports busy,
and when i pick gsm1 and try to call this extension again, gsm0 rings.
i use this:
exten => s,n,Dial(SIP/gsm0/063263587&SIP/gsm1/062440209,m(astrocentar))
Thanks David, but that doesn’t help in any way. To return to topic, here is an update.
It does seem to have something to do with Dinstar DWG 2000C Gateway, here’s why.
New update.
There seems to be a problem in misconfig of the GSM Gateway, since the calls from gsm0 are actually reaching 062440209 and calls from gsm1 are reaching 063263587 somehow.
1 - Tried that, however unfortunately, Dinstar is not responding (sent mail 3 days ago)
2 - Here is a trace.
-- Executing [8215@from-pstn:1] Answer("SIP/lokal2-0000007c", "") in new stack
localhostCLI>
localhostCLI>
– Executing [8215@from-pstn:2] Goto(“SIP/lokal2-0000007c”, “astronew,s,1”) in new stack
– Goto (astronew,s,1)
– Executing [s@astronew:1] Answer(“SIP/lokal2-0000007c”, “”) in new stack
– Executing [s@astronew:2] Set(“SIP/lokal2-0000007c”, “VOLUME(TX)=0”) in new stack
– Executing [s@astronew:3] Dial(“SIP/lokal2-0000007c”, “DAHDI/36&SIP/gsm0/063263587&SIP/gsm1/062440209,m(astrocentar)”) in new stack
– Called 36
== Using SIP RTP CoS mark 5
– Called gsm0/063263587
== Using SIP RTP CoS mark 5
– Called gsm1/062440209
– Started music on hold, class ‘astrocentar’, on SIP/lokal2-0000007c
[Jan 9 14:54:59] NOTICE[26045]: channel.c:3168 __ast_read: Dropping incompatible voice frame on SIP/lokal2-0000007c of format alaw since our native format has changed to 0x2 (gsm)
localhostCLI>
– DAHDI/36-1 is ringing
[Jan 9 14:54:59] WARNING[26045]: mp3/interface.c:216 decodeMP3: Junk at the beginning of frame 49443303
– SIP/gsm0-0000007d is making progress passing it to SIP/lokal2-0000007c
– SIP/gsm1-0000007e is making progress passing it to SIP/lokal2-0000007c
localhostCLI>
localhostCLI>
localhostCLI>
localhostCLI>
localhostCLI>
[Jan 9 14:54:59] NOTICE[26045]: rtp.c:1144 process_rfc3389: Comfort noise support incomplete in Asterisk (RFC 3389). Please turn off on client if possible. Client IP: 192.168.1.50
[Jan 9 14:54:59] NOTICE[26045]: rtp.c:1144 process_rfc3389: Comfort noise support incomplete in Asterisk (RFC 3389). Please turn off on client if possible. Client IP: 192.168.1.50
localhostCLI>
localhostCLI>
– DAHDI/36-1 is ringing
– DAHDI/36-1 is ringing
– SIP/gsm0-0000007d answered SIP/lokal2-0000007c
– Hungup ‘DAHDI/36-1’
– Stopped music on hold on SIP/lokal2-0000007c
– Started music on hold, class ‘default’, on SIP/gsm0-0000007d
[Jan 9 14:55:12] WARNING[26045]: mp3/interface.c:216 decodeMP3: Junk at the beginning of frame 49443303
== Using SIP RTP CoS mark 5
– Executing [8215@from-pstn:1] Answer(“SIP/lokal2-0000007f”, “”) in new stack
– Executing [8215@from-pstn:2] Goto(“SIP/lokal2-0000007f”, “astronew,s,1”) in new stack
– Goto (astronew,s,1)
– Executing [s@astronew:1] Answer(“SIP/lokal2-0000007f”, “”) in new stack
– Executing [s@astronew:2] Set(“SIP/lokal2-0000007f”, “VOLUME(TX)=0”) in new stack
– Executing [s@astronew:3] Dial(“SIP/lokal2-0000007f”, “DAHDI/36&SIP/gsm0/063263587&SIP/gsm1/062440209,m(astrocentar)”) in new stack
– Called 36
== Using SIP RTP CoS mark 5
– Called gsm0/063263587
== Using SIP RTP CoS mark 5
– Called gsm1/062440209
– Started music on hold, class ‘astrocentar’, on SIP/lokal2-0000007f
[Jan 9 14:55:19] NOTICE[26046]: channel.c:3168 __ast_read: Dropping incompatible voice frame on SIP/lokal2-0000007f of format alaw since our native format has changed to 0x2 (gsm)
– DAHDI/36-1 is ringing
[Jan 9 14:55:19] WARNING[26046]: mp3/interface.c:216 decodeMP3: Junk at the beginning of frame 49443303
– Got SIP response 486 “Busy Here” back from 192.168.1.50
– SIP/gsm1-00000081 is busy
– SIP/gsm0-00000080 is making progress passing it to SIP/lokal2-0000007f
[Jan 9 14:55:19] NOTICE[26046]: rtp.c:1144 process_rfc3389: Comfort noise support incomplete in Asterisk (RFC 3389). Please turn off on client if possible. Client IP: 192.168.1.50
– DAHDI/36-1 is ringing
– Got SIP response 486 “Busy Here” back from 192.168.1.50
– SIP/gsm0-00000080 is busy
– DAHDI/36-1 is ringing
– DAHDI/36-1 is ringing
[Jan 9 14:55:32] WARNING[26045]: rtp.c:1633 ast_rtp_read: RTP Read too short
localhost*CLI>