two dongles - one working ok, second not

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

two dongles - one working ok, second not

Postby nysander » Mon Jul 28, 2014 7:57 am

at first thanks for Devs for such great application

I wanted to implement calling via huawei usb dongles and have problem after adding second one.

two agents connected and online, calls from dongle0 received by both.

dongle.conf

Code: Select all
[dongle0]
group=1
context=trunkinbound
audio=/dev/ttyUSB7              ; tty port for audio connection;        no default value
data=/dev/ttyUSB8               ; tty port for AT commands;             no default value
exten=+48517000000

; or you can omit both audio and data together and use imei=123456789012345 and/or imsi=123456789012345
;  imei and imsi must contain exactly 15 digits !
;  imei/imsi discovery is available on Linux only
;imei=123456789012345
;imsi=123456789012345

; if audio and data set together with imei and/or imsi audio and data has precedence
;   you can use both imei and imsi together in this case exact match by imei and imsi required



[dongle1]
group=1
context=trunkinbound
audio=/dev/ttyUSB4              ; tty port for audio connection;        no default value
data=/dev/ttyUSB3               ; tty port for AT commands;             no default value
exten=+48531000000


carrier configuration

Code: Select all
exten => _X.,1,AGI(agi://127.0.0.1:4577/call_log)
;exten => _X.,2,Dial(Dongle/r1/${EXTEN:3})
exten => _X.,2,Dial(Dongle/dongle1/${EXTEN:3})
;exten => _X.,2,Dial(Dongle/dongle0/${EXTEN:3})
exten => _X.,3,Hangup


when call is made from "r1" and dongle0 is chossen or dongle0 is forced everything works ok, but when call is made from "r1" and dongle1 is choosen or dongle1 is forced call is disconnected after answering by client and do not appear on agent screen (like it is with dongle0)

below is output from CLI

for dongle0 - connection established and working ok

Code: Select all
  == Manager 'sendcron' logged on from 127.0.0.1
    -- Executing [948505000000@default:1] AGI("Local/948505000000@default-00000031;2", "agi://127.0.0.1:4577/call_log") in new stack
    -- <Local/948505000000@default-00000031;2>AGI Script agi://127.0.0.1:4577/call_log completed, returning 0
    -- Executing [948505000000@default:2] Dial("Local/948505000000@default-00000031;2", "Dongle/dongle0/505000000") in new stack
    -- Called Dongle/dongle0/505000000
    -- Dongle/dongle0-0100000015 is making progress passing it to Local/948505000000@default-00000031;2
  == Manager 'sendcron' logged on from 127.0.0.1
  == Manager 'sendcron' logged off from 127.0.0.1
  == Manager 'sendcron' logged on from 127.0.0.1
  == Manager 'sendcron' logged off from 127.0.0.1
  == Manager 'sendcron' logged on from 127.0.0.1
  == Manager 'sendcron' logged off from 127.0.0.1
    -- Dongle/dongle0-0100000015 answered Local/948505000000@default-00000031;2
       > Channel Local/948505000000@default-00000031;1 was answered.
    -- Executing [8368@default:1] Playback("Local/948505000000@default-00000031;1", "sip-silence") in new stack
    -- <Local/948505000000@default-00000031;1> Playing 'sip-silence.gsm' (language 'en')
  == Manager 'sendcron' logged off from 127.0.0.1
    -- Executing [8368@default:2] AGI("Dongle/dongle0-0100000015", "agi://127.0.0.1:4577/call_log") in new stack
    -- Executing [h@default:1] AGI("Local/948505000000@default-00000031;2", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16-----ANSWER-----10-----0") in new stack
    -- <Dongle/dongle0-0100000015>AGI Script agi://127.0.0.1:4577/call_log completed, returning 0
    -- Executing [8368@default:3] AGI("Dongle/dongle0-0100000015", "agi-VDAD_ALL_outbound.agi,NORMAL-----LB") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/agi-VDAD_ALL_outbound.agi
    -- <Dongle/dongle0-0100000015>AGI Script agi-VDAD_ALL_outbound.agi completed, returning 0
    -- Executing [192*168*001*007*8600051@default:1] Goto("Dongle/dongle0-0100000015", "default,8600051,1") in new stack
    -- Goto (default,8600051,1)
    -- Executing [8600051@default:1] MeetMe("Dongle/dongle0-0100000015", "8600051,F") in new stack
    -- <Local/948505000000@default-00000031;2>AGI Script agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16-----ANSWER-----10-----0 completed, returning 0
  == Spawn extension (default, 948505000000, 2) exited non-zero on 'Local/948505000000@default-00000031;2'
  == Manager 'sendcron' logged on from 127.0.0.1
    -- Executing [58600051@default:1] MeetMe("Local/58600051@default-00000032;2", "8600051,Fmq") in new stack
       > Channel Local/58600051@default-00000032;1 was answered.
    -- Executing [8309@default:1] Answer("Local/58600051@default-00000032;1", "") in new stack
    -- Executing [8309@default:2] Monitor("Local/58600051@default-00000032;1", "wav,20140728-144207_505000000") in new stack
    -- Executing [8309@default:3] Wait("Local/58600051@default-00000032;1", "3600") in new stack
  == Manager 'sendcron' logged off from 127.0.0.1
  == Spawn extension (default, 8600051, 1) exited non-zero on 'Dongle/dongle0-0100000015'
    -- Executing [h@default:1] AGI("Dongle/dongle0-0100000015", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16---------------") in new stack
    -- <Dongle/dongle0-0100000015>AGI Script agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16--------------- completed, returning 0


for dongle1 - connection established, answered and disconnected:

Code: Select all
    -- Executing [948505000000@default:1] AGI("Local/948505000000@default-00000030;2", "agi://127.0.0.1:4577/call_log") in new stack
    -- <Local/948505000000@default-00000030;2>AGI Script agi://127.0.0.1:4577/call_log completed, returning 0
    -- Executing [948505000000@default:2] Dial("Local/948505000000@default-00000030;2", "Dongle/dongle1/505000000") in new stack
    -- Called Dongle/dongle1/505000000
    -- Dongle/dongle1-010000001d is making progress passing it to Local/948505000000@default-00000030;2
    -- Dongle/dongle1-010000001d answered Local/948505000000@default-00000030;2
       > Channel Local/948505000000@default-00000030;1 was answered.
    -- Executing [8368@default:1] Playback("Local/948505000000@default-00000030;1", "sip-silence") in new stack
  == Manager 'sendcron' logged off from 127.0.0.1
    -- <Local/948505000000@default-00000030;1> Playing 'sip-silence.gsm' (language 'en')
    -- Executing [8368@default:2] AGI("Local/948505000000@default-00000030;1", "agi://127.0.0.1:4577/call_log") in new stack
    -- <Local/948505000000@default-00000030;1>AGI Script agi://127.0.0.1:4577/call_log completed, returning 0
    -- Executing [8368@default:3] AGI("Local/948505000000@default-00000030;1", "agi-VDAD_ALL_outbound.agi,NORMAL-----LB") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/agi-VDAD_ALL_outbound.agi
    -- <Local/948505000000@default-00000030;1>AGI Script agi-VDAD_ALL_outbound.agi completed, returning 0
    -- Executing [8368@default:4] AGI("Local/948505000000@default-00000030;1", "agi-VDAD_ALL_outbound.agi,NORMAL-----LB") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/agi-VDAD_ALL_outbound.agi
    -- <Local/948505000000@default-00000030;1>AGI Script agi-VDAD_ALL_outbound.agi completed, returning 0
    -- Executing [8368@default:5] Hangup("Local/948505000000@default-00000030;1", "") in new stack
  == Spawn extension (default, 8368, 5) exited non-zero on 'Local/948505000000@default-00000030;1'
    -- Executing [h@default:1] AGI("Local/948505000000@default-00000030;1", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16---------------") in new stack
    -- <Local/948505000000@default-00000030;1>AGI Script agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16--------------- completed, returning 0
    -- Executing [h@default:1] AGI("Local/948505000000@default-00000030;2", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16-----ANSWER-----16-----3") in new stack
    -- <Local/948505000000@default-00000030;2>AGI Script agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16-----ANSWER-----16-----3 completed, returning 0
  == Spawn extension (default, 948505000000, 2) exited non-zero on 'Local/948505000000@default-00000030;2'


both dongles have subscriber number set on them

number 948505000000 is example called number

do you have any idea why connection after answering by client is not connected to conference but disconnected? please help
now:
[vicidial]: ViciBox 6.0 Ast 1.8.29.0-vici | vd-2.10-448a-140706-0927 ------ SIP connected to GSM Gateway
[GSM Gateway]: Asterisk 1.8.29.0 | chan_dongle-1.1.r14 | 7x Huawei Dongles (E156G, E169, E1550 voice enabled)
nysander
 
Posts: 52
Joined: Wed Jul 23, 2014 5:06 am

Re: two dongles - one working ok, second not

Postby ghgp » Tue Jul 29, 2014 5:12 am

I haven't used this setup, but can you confirm the other dongle is working ok?
ghgp
 
Posts: 13
Joined: Mon Jul 28, 2014 1:38 am

Re: two dongles - one working ok, second not

Postby nysander » Tue Jul 29, 2014 4:19 pm

after switching to vicibox 6.0 both work with 2 way audio, so this problem is now not important ( I won't go back again to centos 5.9 and goautodial 3.3)

atm I got other problem described on other of my posts (cannot paste link here)
now:
[vicidial]: ViciBox 6.0 Ast 1.8.29.0-vici | vd-2.10-448a-140706-0927 ------ SIP connected to GSM Gateway
[GSM Gateway]: Asterisk 1.8.29.0 | chan_dongle-1.1.r14 | 7x Huawei Dongles (E156G, E169, E1550 voice enabled)
nysander
 
Posts: 52
Joined: Wed Jul 23, 2014 5:06 am


Return to Support

Who is online

Users browsing this forum: Google [Bot] and 95 guests