fabioprado / asterisk-chan-dongle

Automatically exported from code.google.com/p/asterisk-chan-dongle
Other
0 stars 0 forks source link

e1750: asterisk crashing under Tomato #142

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hello,
I’m trying to get my e1750 working on Asus rt66u router under Tomato. I 
enabled driver for it with “modprobe option” command. I also replaced  { 
0x12d1, 0x1001, { 2, 1, /* 0 */ } },  with  “{ 0x12d1, 0x1001, { 4, 3, /* 0 
*/ } },”  in pdiscovery.c. USSD requests works ok in asterisk, but asterisk 
crashes when I’m trying to dial or answer. My asterisk doesn’t support 
debugging so I replaced ast_debug with ast_verb to see what is going on:

  == Using SIP RTP CoS mark 5
    -- Executing [88007008000@dl6000:1] Dial("SIP/6000-00000000", "Dongle/dongle0/+78007008000") in new stack
    -- [dongle0] create cpvt for call_idx 1 dir 0 state 'initialize'
 [dongle0] Calling dongle0/+78007008000 on Dongle/dongle0-0100000000
  == [dongle0] callingpres: Presentation Allowed, Passed Screen
       > [dongle0] insert task with 4 commands begin with 'AT+CLIR' expected response 'OK' after head of queue
       > [dongle0] write command 'AT+CLIR' expected response 'OK' length 10
]      > [dongle0] [AT+CLIR=2
    -- Called Dongle/dongle0/+78007008000
       > [dongle0] receive 6 byte, used 6, free 2042, read 0, write 6
       > [dongle0] [
OK
]
    -- [dongle0] AT+CLIR sent successfully
       > [dongle0] remove command 'AT+CLIR' expected response 'OK' real 'OK' cmd 1/4 flags 0x02 from queue
       > [dongle0] write command 'ATD' expected response 'OK' length 17
]      > [dongle0] [ATD+78007008000;
tom*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
Asterisk ending (0).

Sometimes it goes a bit further ATD:

]      > [dongle0] [ATD+78007008000;
       > [dongle0] receive 19 byte, used 19, free 2029, read 0, write 19
       > [dongle0] [
OK

^ORIG:1,0
]
 [dongle0] ATD sent successfully for call id 1
       > [dongle0] remove command 'ATD' expected response 'OK' real 'OK' cmd 2/4 flags 0x02 from queue
       > [dongle0] write command 'AT+CLCC' expected response 'OK' length 8
]      > [dongle0] [AT+CLCC
 [dongle0] ORIG Received call_index: 1 call_type 0
 [dongle0] call idx 1 mpty 0, change state from 'initialize' to 'dialing' has channel
tom*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
Asterisk ending (0).

PS: I tested it also under Ubuntu on my PC and it works ok with the same 
settings. 

Original issue reported on code.google.com by 4l0...@gmail.com on 9 Aug 2013 at 5:11

GoogleCodeExporter commented 9 years ago
I found how to enable debug log in logger.conf and tried to connect e1750 thru 
hub:

[Aug  9 18:04:51] DEBUG[4124]: helpers.c:55 get_at_clir_value: [dongle0] 
callingpres: Presentation Allowed, Passed Screen
[Aug  9 18:04:51] DEBUG[4124]: at_queue.c:129 at_queue_add: [dongle0] insert 
task with 4 commands begin with 'AT+CLIR' expected response 'OK' after head of 
queue
[Aug  9 18:04:51] DEBUG[4124]: at_queue.c:249 at_queue_run: [dongle0] write 
command 'AT+CLIR' expected response 'OK' length 10
    -- Called Dongle/dongle0/88007008000
[Aug  9 18:04:51] DEBUG[4124]: channel.c:5254 set_format: Set channel 
Dongle/dongle0-0100000000 to read format slin
[Aug  9 18:04:51] DEBUG[4124]: channel.c:5254 set_format: Set channel 
SIP/6000-00000000 to write format slin
[Aug  9 18:04:51] DEBUG[4124]: channel.c:5254 set_format: Set channel 
SIP/6000-00000000 to read format slin
[Aug  9 18:04:51] DEBUG[4117]: at_response.c:145 at_response_ok: [dongle0] 
AT+CLIR sent successfully
[Aug  9 18:04:51] DEBUG[4117]: at_queue.c:224 at_queue_remove_cmd: [dongle0] 
remove command 'AT+CLIR' expected response 'OK' real 'OK' cmd 1/4 flags 0x02 
from queue
[Aug  9 18:04:51] DEBUG[4117]: at_queue.c:249 at_queue_run: [dongle0] write 
command 'ATD' expected response 'OK' length 16
[Aug  9 18:04:51] DEBUG[4124]: channel.c:5254 set_format: Set channel 
Dongle/dongle0-0100000000 to write format slin
[Aug  9 18:04:51] DEBUG[4117]: at_response.c:221 at_response_ok: [dongle0] ATD 
sent successfully for call id 1
[Aug  9 18:04:51] DEBUG[4117]: at_queue.c:224 at_queue_remove_cmd: [dongle0] 
remove command 'ATD' expected response 'OK' real 'OK' cmd 2/4 flags 0x02 from 
queue
[Aug  9 18:04:51] DEBUG[4117]: at_queue.c:249 at_queue_run: [dongle0] write 
command 'AT+CLCC' expected response 'OK' length 8
[Aug  9 18:04:51] DEBUG[4117]: at_response.c:635 at_response_orig: [dongle0] 
ORIG Received call_index: 1 call_type 0
[Aug  9 18:04:51] DEBUG[4117]: channel.c:1011 change_channel_state: [dongle0] 
call idx 1 mpty 0, change state from 'initialize' to 'dialing' has channel
tom*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
Asterisk ending (0).

Original comment by 4l0...@gmail.com on 9 Aug 2013 at 6:26

GoogleCodeExporter commented 9 years ago
To resolve this issue i  installed asterisk11 (instead of 18) from here 
https://www.lancethepants.com/files/index.php?dir=Tomatoware/v0.3%20%2B%20Asteri
sk/ and chan-dongle from here 
https://github.com/jstasiak/asterisk-chan-dongle/tree/3485ac50c337bb0f70d68f2fa4
d62ea3beee568a and it worked without any modifications!

Original comment by 4l0...@gmail.com on 10 Aug 2013 at 3:41