Hi. I managed to set the usb dongle with issabel, and I can receive incoming calls to the dongle and forward them to an internal extension. I can also dial from local to local extension, but I can't dial to external numbers through the trunk.
After testing several options, I've come to think that it has something to do with the trunk configuration, since changing the host to my local ip address, makes outbound calls just fine.
Please find attached my setup files:
dongle.conf
rxgain=4
txgain=4
autodeletesms=yes
resetdongle=yes
u2diag=-1
usecallingpres=yes
callingpres=allowed_passed_screen
disablesms=yes
language=es
smsaspdu=yes
mindtmfgap=0
mindtmfduration=0
mindtmfinterval=0
callwaiting=no
initstate=start
dtmf=off;(off,inband,relax,auto)
context=from-trunk
[dongle0]
;audio=/dev/ttyUSB1
imei=3547XXXXXXXXXX
imsi=73XXXXXXXXXXXX
exten=573XXXXXXXXX
group=0
[dongle1]
imei=353XXXXXXXXXXX
imsi=73XXXXXXXXXXX
exten=573XXXXXXXXX
group=0
extensions_custom.conf
[from-internal-custom]
exten => 1234,1,Playback(demo-congrats) ; extensions can dial 1234
exten => 1234,2,Hangup()
exten => h,1,Hangup()
;exten => 74.1,Dial(Dongle/dongle0/${EXTEN})
;same => n,Dial(Dongle/dongle0/${EXTEN})
; same => n,Hangup()
include => custom-recordme ; extensions can also dial 5678
include => weather-wakeup
include => calendar-event
include => conferences
include => agentlogin
; custom-count2four,s,1 can be used as a custom target for
; a Digital Receptionist menu or a Ring Group
[custom-count2four]
exten => s,1,SayDigits(1234)
exten => s,2,Hangup
[dongle-in]
exten => _X.,1,verbose("call")
same => n,Dial(SIP/1002,30)
same => Hangup()
my trunk setup
host=dynamic
disallow=all
allow=alaw,alaw,gsm
canreinvite=no
context=from-trunk
dtmfmode=rfc2833
insecure=port,invite
type=friend
language=es_CO
allowguest=yes
nat=force_rport,comedia
qualify=yes
qualifyfreq=600
and the outbound route
dial patterns:
[3]XXXXXXXXX
03.+ZXXXXXX
Trunk sequence
0 - dongle0
The dongles are registered
ssabel*CLI> dongle show devices
ID Group State RSSI Mode Submode Provider Name Model Firmware IMEI IMSI Number
dongle0 0 Free 22 5 4 COL MOV / TIGO E160 11.609.10.02.432 354XXXXXXXXXXX 732XXXXXXXXXXXX Unknown
And these are the relevant error logs when trying to dial to an external number from the local extension:
Executing [s@macro-dialout-trunk:22] Dial("SIP/1000-00000034", "SIP/trunk-gsm/30XXXXXXXX,300,dongle/dongle0/$OUTNUM$") in new stack
-- Setting operator services mode to 1.
[2019-01-22 20:51:24] WARNING[16040][C-0000002b]: app_dial.c:2455 dial_exec_full: Unable to create channel of type 'SIP' (cause 20 - Subscriber absent)
== Everyone is busy/congested at this time (1:0/0/1)
-- Executing [s@macro-dialout-trunk:23] NoOp("SIP/1000-00000034", "Dial failed for some reason with DIALSTATUS = CHANUNAVAIL and HANGUPCAUSE = 20") in new stack
-- Executing [s@macro-dialout-trunk:24] GotoIf("SIP/1000-00000034", "0?continue,1:s-CHANUNAVAIL,1") in new stack
-- Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
-- Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] Set("SIP/1000-00000034", "RC=20") in new stack
-- Executing [s-CHANUNAVAIL@macro-dialout-trunk:2] Goto("SIP/1000-00000034", "20,1") in new stack
-- Goto (macro-dialout-trunk,20,1)
-- Executing [20@macro-dialout-trunk:1] Goto("SIP/1000-00000034", "continue,1") in new stack
-- Goto (macro-dialout-trunk,continue,1)
-- Executing [continue@macro-dialout-trunk:1] NoOp("SIP/1000-00000034", "TRUNK Dial failed due to CHANUNAVAIL HANGUPCAUSE: 20 - failing through to other trunks") in new stack
-- Executing [continue@macro-dialout-trunk:2] Set("SIP/1000-00000034", "CALLERID(number)=1000") in new stack
-- Executing [3044600590@from-internal:6] Macro("SIP/1000-00000034", "outisbusy,") in new stack
-- Executing [s@macro-outisbusy:1] Progress("SIP/1000-00000034", "") in new stack
-- Executing [s@macro-outisbusy:2] GotoIf("SIP/1000-00000034", "0?emergency,1") in new stack
-- Executing [s@macro-outisbusy:3] GotoIf("SIP/1000-00000034", "0?intracompany,1") in new stack
-- Executing [s@macro-outisbusy:4] GotoIf("SIP/1000-00000034", "0?unallocated,1") in new stack
-- Executing [s@macro-outisbusy:5] GotoIf("SIP/1000-00000034", "0?unallocated,1") in new stack
-- Executing [s@macro-outisbusy:6] Playback("SIP/1000-00000034", "all-circuits-busy-now&pls-try-call-later, noanswer") in new stack
-- <SIP/1000-00000034> Playing 'all-circuits-busy-now.gsm' (language 'en')
> 0x7f0c58015980 -- Strict RTP switching to RTP remote address 192.168.40.238:51938 as source
[2019-01-22 20:51:24] NOTICE[16040][C-0000002b]: res_rtp_asterisk.c:4890 ast_rtp_read: Unknown RTP codec 95 received from '192.168.40.238:51938'
> 0x7f0c58015980 -- Strict RTP learning complete - Locking on source address 192.168.40.238:51938
[2019-01-22 20:51:26] WARNING[16040][C-0000002b]: file.c:701 ast_openstream_full: File pls-try-call-later does not exist in any format
[2019-01-22 20:51:26] WARNING[16040][C-0000002b]: file.c:1017 ast_streamfile: Unable to open pls-try-call-later (format (ulaw)): No such file or directory
[2019-01-22 20:51:26] WARNING[16040][C-0000002b]: app_playback.c:484 playback_exec: ast_streamfile failed on SIP/1000-00000034 for all-circuits-busy-now&pls-try-call-later, noanswer
-- Executing [s@macro-outisbusy:7] Congestion("SIP/1000-00000034", "20") in new stack
[2019-01-22 20:51:26] WARNING[16040][C-0000002b]: channel.c:4863 ast_prod: Prodding channel 'SIP/1000-00000034' failed
== Spawn extension (macro-outisbusy, s, 7) exited non-zero on 'SIP/1000-00000034' in macro 'outisbusy'
== Spawn extension (from-internal, 30XXXXXXXX, 6) exited non-zero on 'SIP/1000-00000034'
-- Executing [h@from-internal:1] Hangup("SIP/1000-00000034", "") in new stack
== Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/1000-00000034'
Any ideas?
thanks