keywords: ip pbx voip gateway gsm gateway

×

Notice

The forum is in read only mode.
× Questions about G400/G410 Cards.

Bad progress indication while dialing on GSM channel

12 years 4 months ago #7622 by j_pok
Hi,
I have a G400P GSM gateway with 2 SIMs installed. Incoming call on any of them should be routed to another one and dialed out. Problem is when I have GSM extra channels on both sides, progress indication is completely bad and I hear ringing where I should be hearing a progress indication from GSM network.

My testing setup is simple, in extensions.ael:

context from-gsm {
Dial(EXTRA/3/722207899);
}

The caller starts to hear ringing tone just after the call leaves asterisk few seconds BEFORE it actually starts ringing on the phone and continues to hear it even if the called cell phone refuses the call and operator starts to play a message "The person you are calling is unavailable". Which is very confusing for the caller.

When I try the same setup with for example SIP channel and dial from SIP phone to GSM gate, everything works ok. I can post a part of asterisk log if it's needed. Any ideas? Thank you.

Best regards,
Jiri Pokorny
12 years 4 months ago #7623 by Joe.Yung
Hello,

Please post a complete call log here after increasing highter of the verbose on the console. Meanwhile, please let us know your software enviroments.

12 years 4 months ago #7624 by j_pok
System is Centos 6:
2.6.32-71.el6.x86_64 #1 SMP Fri May 20 03:51:51 BST 2011 x86_64 x86_64 x86_64 GNU/Linux
Versions used:
asterisk-1.6.2.20
chan_extra-1.2.1
dahdi-linux-complete-2.5.0.2+2.5.0.2
Verbose log from asterisk including gsm intense debug:
1:<< \r\nRING\r\n
1:<< \r\n+CLIP: "+420773802141",145,"",,"",0\r\n
m20.c:804 m20_receive: call 1 on channel -1 enters state 6 (Call Present)
gsm.c:1567 gsm_need_more_info: call 1 on channel 1 enters state 25 (Overlap Receiving)
    -- Accepting call from '+420773802141' to 's' on channel 1, span 1
    -- Executing [s@from-gsm:1] Dial("EXTRA/1-1", "EXTRA/3/722207899") in new stack
-- Making new call for cr 13
    -- Requested transfer capability: 0x00 - SPEECH
2:>> ATD722207899;\r\n
gsm.c:1682 gsm_setup: call 13 on channel 1 enters state 1 (Call Initiated)
    -- Called 3/722207899
2:<< \r\nOK\r\n
2:>> AT+QAUDCH=1\r\n
2:<< \r\nOK\r\n
2:>> AT+CLVL?\r\n
    -- EXTRA/3-1 is proceeding passing it to EXTRA/1-1
gsm.c:160 gsm_call_proceeding: call 1 on channel 1 enters state 9 (Incoming Call Proceeding)
    -- EXTRA/3-1 is making progress passing it to EXTRA/1-1
2:<< \r\n+CLVL: 40\r\n\r\nOK\r\n
    -- PROGRESS with cause code 0 received
    -- EXTRA/3-1 is making progress passing it to EXTRA/1-1
    -- EXTRA/3-1 is making progress passing it to EXTRA/1-1
2:<< \r\nMO RING\r\n
2:<< \r\n+CSQN: 24, 0\r\n
1:<< \r\nRING\r\n
1:<< \r\n+CLIP: "+420773802141",145,"",,"",0\r\n
1:<< \r\nRING\r\n
1:<< \r\n+CLIP: "+420773802141",145,"",,"",0\r\n
2:<< \r\n+CSQN: 22, 2\r\n
1:<< \r\nRING\r\n
1:<< \r\n+CLIP: "+420773802141",145,"",,"",0\r\n
2:<< \r\n+CSQN: 21, 2\r\n
[Nov 28 22:06:53] NOTICE[1996]: chan_sip.c:22170 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 21
2:<< \r\n+CSQN: 19, 3\r\n
1:<< \r\nRING\r\n
1:<< \r\n+CLIP: "+420773802141",145,"",,"",0\r\n
1:<< \r\nRING\r\n
1:<< \r\n+CLIP: "+420773802141",145,"",,"",0\r\n
2:<< \r\n+CSQN: 20, 0\r\n
1:<< \r\nRING\r\n
1:<< \r\n+CLIP: "+420773802141",145,"",,"",0\r\n
1:<< \r\nNO CARRIER\r\n
m20.c:941 m20_receive: call 1 on channel 1 enters state 0 (Null)
NEW_HANGUP DEBUG: Destroying the call, ourstate Null, peerstate Null
    -- Channel 1, span 1 got hangup, cause 19
    -- Channel 1, span 1 received AOC-E charging -603974704 units
NEW_HANGUP DEBUG: Calling at_hangup, ourstate Call Initiated, peerstate Overlap sending
gsm.c:186 gsm_call_disconnect: call 13 on channel 1 enters state 11 (Disconnect Request)
2:>> ATH\r\n
    -- Hungup 'EXTRA/3-1'
  == Spawn extension (from-gsm, s, 1) exited non-zero on 'EXTRA/1-1'
    -- Hungup 'EXTRA/1-1'
2:<< \r\n+CSQN: 19, 0\r\n
2:<< \r\nOK\r\n
m20.c:870 m20_receive: call 13 on channel 1 enters state 0 (Null)
NEW_HANGUP DEBUG: Calling at_hangup, ourstate Null, peerstate Null
NEW_HANGUP DEBUG: Destroying the call, ourstate Null, peerstate Null
    -- Channel 1, span 2 received AOC-E charging -268423232 units
Thanks...
12 years 4 months ago #7627 by Joe.Yung
Jiri Pokorny,

I've tested that with your environments except the Operation System. My operation system is CentOS-5.6 32bits.

And I tried to reappear what you said above. The methord is: Outbound call -->GSM module A--> GSM module B --> My cell phone. Based on my result, it seemed to be fine.

My dialplan is also simple:

[from-gsm]
exten=>s,1,Answer()
exten=>s,2,Dial(extra/3/137XXXXXXXX)
exten=>s,3,Hangup()

Right now, I am not sure if understand what is your meanning? Initially, I thought it should be like this:

You make a call to GSM module A, then route this call out from GSM B. Then, the called party is being ringing and has received it. But the caller still hears the ringing tone. Even if the called party refused to receive the call and the caller is still able to hear the ringing tone, am I right?


To make more progress, I suggest sending invitation to my MSN: This email address is being protected from spambots. You need JavaScript enabled to view it.. And will post solution once we successfully solve it.

My complete call log is below:


*CLI> 1:<< \r\n+CSQN: 22, 0\r\n
1:<< \r\nRING\r\n
1:<< \r\n+CLIP: "075582535362",129,"",,"",0\r\n
m20.c:804 m20_receive: call 1 on channel -1 enters state 6 (Call Present)
gsm.c:1567 gsm_need_more_info: call 1 on channel 1 enters state 25 (Overlap Receiving)
-- Accepting call from '075582535362' to 's' on channel 1, span 1
-- Executing [s@from-gsm:1] Answer("EXTRA/1-1", "") in new stack
gsm.c:1585 gsm_answer: call 1 on channel 1 enters state 8 (Connect Request)
1:>> ATA\r\n
-- Executing [s@from-gsm:2] Dial("EXTRA/1-1", "extra/3/137XXXXXXX") in new stack
-- Making new call for cr 3
-- Requested transfer capability: 0x00 - SPEECH
2:>> ATD137XXXXXXX;\r\n
gsm.c:1682 gsm_setup: call 3 on channel 1 enters state 1 (Call Initiated)
-- Called 3/137XXXXXXX
2:<< \r\nOK\r\n
2:>> AT+QAUDCH=1\r\n
2:<< \r\nOK\r\n
2:>> AT+CLVL?\r\n
-- EXTRA/3-1 is proceeding passing it to EXTRA/1-1
-- EXTRA/3-1 is making progress passing it to EXTRA/1-1
2:<< \r\n+CLVL: 40\r\n\r\nOK\r\n
-- PROGRESS with cause code 0 received
-- EXTRA/3-1 is making progress passing it to EXTRA/1-1
-- EXTRA/3-1 is making progress passing it to EXTRA/1-1
1:<< \r\n+CSQN: 22, 0\r\n
1:<< \r\nOK\r\n
m20.c:836 m20_receive: call 1 on channel 1 enters state 10 (Active)
1:<< \r\n+CSQN: 22, 7\r\n
2:<< \r\n+CSQN: 24, 7\r\n
2:<< \r\n+CSQN: 25, 7\r\n
2:<< \r\nMO RING\r\n
1:<< \r\n+CSQN: 21, 6\r\n
2:<< \r\n+CSQN: 23, 0\r\n
1:<< \r\n+CSQN: 20, 0\r\n
2:<< \r\n+CSQN: 26, 0\r\n
-- Remote UNIX connection
1:<< \r\n+CSQN: 21, 7\r\n
2:<< \r\n+CSQN: 25, 0\r\n
1:<< \r\n+CSQN: 20, 7\r\n
2:<< \r\n+CSQN: 26, 0\r\n
1:<< \r\n+CSQN: 19, 7\r\n
2:<< \r\nMO CONNECTED\r\n
-- EXTRA/3-1 answered EXTRA/1-1
1:<< \r\n+CSQN: 14, 7\r\n
2:<< \r\n+CSQN: 24, 0\r\n
1:<< \r\n+CSQN: 22, 7\r\n
2:<< \r\n+CSQN: 25, 7\r\n
1:<< \r\n+CSQN: 20, 7\r\n
2:<< \r\n+CSQN: 24, 7\r\n
2:<< \r\nNO CARRIER\r\n
2:>> AT+CSQ\r\n
m20.c:853 m20_receive: call 3 on channel 1 enters state 0 (Null)
NEW_HANGUP DEBUG: Calling at_hangup, ourstate Null, peerstate Null
NEW_HANGUP DEBUG: Destroying the call, ourstate Null, peerstate Null
-- Channel 1, span 2 got hangup, cause 16
-- Hungup 'EXTRA/3-1'
== Spawn extension (from-gsm, s, 2) exited non-zero on 'EXTRA/1-1'
NEW_HANGUP DEBUG: Calling at_hangup, ourstate Active, peerstate Active
gsm.c:186 gsm_call_disconnect: call 1 on channel 1 enters state 11 (Disconnect Request)
2:<< \r\n+CSQ: 24,7\r\n\r\nOK\r\n
-- Making new call for cr 3
1:>> ATH\r\n
-- Hungup 'EXTRA/1-1'
1:<< \r\nOK\r\n
m20.c:870 m20_receive: call 1 on channel 1 enters state 0 (Null)
NEW_HANGUP DEBUG: Calling at_hangup, ourstate Null, peerstate Null
NEW_HANGUP DEBUG: Destroying the call, ourstate Null, peerstate Null
-- Channel 1, span 1 received AOC-E charging 164501472 units
2:<< \r\n+CSQN: 28, 0\r\n
1:<< \r\n+CSQN: 22, 0\r\n


Time to create page: 0.036 seconds
Powered by Kunena Forum