Hi There,
I am having bit of trouble, while configuring asterisk to accept calls from radio when i press the PTT button/ or send DTMF signals. I want this call to be routed to any normal SIP phone.
Now, for this i have setup rpt.conf, and create a usb radio device in usbradio.conf, with contexts added in extensions.conf for both calls from sip phone to radio and vice-versa, i.e. calls from radio to sip phone.
Now, My calls are functional one-sided, i.e. i am able to seamlessly start a call from sip-phone, dialling to my radio and using * and # able to mimic PTT functionality.
However, radio is unable to call my sip, even when “collect_function_digits” is picking up my dtmf signals.
ASTERISK CLI ERROR:
SRC (null)
[Jan 8 11:19:58] NOTICE[17600]: app_rpt.c:6811 collect_function_digits: digits=3005 source=0
@@@@ Digits collected: 3005, source: 0
DC_COMPLETEQUIET
ABOUT TO RETURN
Test Point: The Function called in sayfile is: rpt/node
– <DAHDI/pseudo-1200986978> Playing ‘rpt/node.slin’ (language ‘en’)
– <DAHDI/pseudo-1200986978> Playing ‘rpt/connection_failed.slin’ (language ‘en’)
*CLI> – Hungup ‘DAHDI/pseudo-1200986978’
RPT (TP1): The value phone mode is 0
USB_INDICATE (TP2) : ACRUK dev=usb_610 TX OFF >>
RPT: Received AST_FRAME_DTMF_BEGIN on Channel Radio/usb_610
RPT: Received AST_FRAME_DTMF on Channel Radio/usb_610
It is Not Simple
myrpt->inpadtest 0
CALL MODE 0
Following is my Extensions.conf for radio context:
exten = 610,1,set(CALLERID(num)=“961”)
exten = 610,n,RPT(610|P)
exten = 611,1,set(CALLERID(num)=“961”)
exten = 611,n,RPT(611|S)
[Radio_1]
exten = _.,1,Set(CALLERID(num)=610)
exten = _.,n,SIPAddHeader(Call-Info: answer-after=1)
exten = _.,n,Goto(DLPN_Dialplan,${EXTEN},1)
Following is RPT.conf:
[610]
rxchannel = Radio/usb_610
context = Radio_1
callerid = “610”
duplex = 1
linktolink = no
linkmongain = 0
erxgain = -3
etxgain = 3
scheduler = schedule
functions = functions
phone_functions = functions
link_functions = functions
callonvox = 1
ivoxcontext = Radio_1
ivoxexten = 3005
telemetry = telemetry
morse = morse
wait_times = wait-times
accountcode = RADIO
hangtime = 5000
althangtime = 4000
totime = 180000
idrecording = |iWA4XYZ
idtalkover = |iWA4XYZ
idtime = 540000
politeid = 30000
unlinkedct = ct2
remotect = ct3
linkunkeyct = ct8
holdofftelem = 0
telemdefault = 1
telemdynamic = 1
And, lastly, this is my usbradio.conf:
[usb_610]
eeprom = 0
hdwtype = 0
rxboost = 1
rxctcssrelax = 1
rxsqhyst = 3000
txctcssdefault = 100.0
rxctcssfreqs = 100.0,91.5
txctcssfreqs = 100.0,91.5
rxctcssoverride = 0
carrierfrom = vox
ctcssfrom = usb
rxdemod = speaker
rxsquelchdelay = 30
rxondelay = 0
txboost = 0
txprelim = no
txlimonly = yes
txtoctype = notone
txmixa = voice
txmixb = none
invertptt = 0
duplex = 2
duplex3 = 0