Issue with DID
Posted: Thu Nov 21, 2019 9:28 am
Hello guys, please help
I have configured my outbound and inbound calls and they are working perfectly just that i have a small issue with my DID (I don't actually know which DID is being received by my server instead of (237)222518041). It only works perfectly when i activate the default DID and routes to my ingroup
When i have:
exten => _X.,1,AGI(agi-DID_route.agi)
exten => _X.,n,Hangup()
In extensions.conf, the output of my cli is:
NOTICE[1756][C-0000003d]: chan_sip.c:26401 handle_request_invite: Call from 'IntercoCamtel106' (188.40.XX.XX:5060) to extension 's' rejected because extension not found in context 'trunkinbound'.
when i now enters:
exten => s,2,AGI(agi-DID_route.agi)
exten => s,1,NoOp(X|${EXTEN}|CID${CALLERID(NUM)}|SIPID${SIPCALLID}|SIPDO${SIPDOMAIN}|SIPUA${SIPUSERAGENT}|SIPURI${SIPURI}|CODEC${SIP_CODEC}|SIPURIO${SIP_URI_OPTIONS}|AU${RTPAUDIOQOS}|VI${RTPVIDEOQOS}|H${HINT})
exten => s,n,Handup()
the cli output is :
Using SIP RTP CoS mark 5
> 0x7fa9ac01d310 -- Strict RTP learning after remote address set to: 188.40.XX.XX:17146
-- Executing [s@trunkinbound:1] NoOp("SIP/WVC-00000035", "X|s|CID237242197145|SIPID0f2720b9755125e70649d50b794e7dec@188.40.XX.XX:5060|SIPDO172.17.2.3|SIPUA|SIPURIsip:237242197145@188.40.XX.X:5060|CODEC|SIPURIO|AU|VI|H") in new stack
-- Executing [s@trunkinbound:2] AGI("SIP/WVC-00000035", "agi-DID_route.agi") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/agi-DID_route.agi
-- <SIP/WVC-00000035>AGI Script agi-DID_route.agi completed, returning 0
-- Auto fallthrough, channel 'SIP/WVC-00000035' status is 'UNKNOWN'
[Nov 21 15:21:14] WARNING[25085][C-00000045]: func_hangupcause.c:140 hangupcause_read: Unable to find information for channel
-- Executing [h@trunkinbound:1] AGI("SIP/WVC-00000035", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0--------------------)") in new stack
-- <SIP/WVC-00000035>AGI Script agi://127.0.0.1:4577/call_log--HVcauses ... ----------) completed, returning 0
I have configured my outbound and inbound calls and they are working perfectly just that i have a small issue with my DID (I don't actually know which DID is being received by my server instead of (237)222518041). It only works perfectly when i activate the default DID and routes to my ingroup
When i have:
exten => _X.,1,AGI(agi-DID_route.agi)
exten => _X.,n,Hangup()
In extensions.conf, the output of my cli is:
NOTICE[1756][C-0000003d]: chan_sip.c:26401 handle_request_invite: Call from 'IntercoCamtel106' (188.40.XX.XX:5060) to extension 's' rejected because extension not found in context 'trunkinbound'.
when i now enters:
exten => s,2,AGI(agi-DID_route.agi)
exten => s,1,NoOp(X|${EXTEN}|CID${CALLERID(NUM)}|SIPID${SIPCALLID}|SIPDO${SIPDOMAIN}|SIPUA${SIPUSERAGENT}|SIPURI${SIPURI}|CODEC${SIP_CODEC}|SIPURIO${SIP_URI_OPTIONS}|AU${RTPAUDIOQOS}|VI${RTPVIDEOQOS}|H${HINT})
exten => s,n,Handup()
the cli output is :
Using SIP RTP CoS mark 5
> 0x7fa9ac01d310 -- Strict RTP learning after remote address set to: 188.40.XX.XX:17146
-- Executing [s@trunkinbound:1] NoOp("SIP/WVC-00000035", "X|s|CID237242197145|SIPID0f2720b9755125e70649d50b794e7dec@188.40.XX.XX:5060|SIPDO172.17.2.3|SIPUA|SIPURIsip:237242197145@188.40.XX.X:5060|CODEC|SIPURIO|AU|VI|H") in new stack
-- Executing [s@trunkinbound:2] AGI("SIP/WVC-00000035", "agi-DID_route.agi") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/agi-DID_route.agi
-- <SIP/WVC-00000035>AGI Script agi-DID_route.agi completed, returning 0
-- Auto fallthrough, channel 'SIP/WVC-00000035' status is 'UNKNOWN'
[Nov 21 15:21:14] WARNING[25085][C-00000045]: func_hangupcause.c:140 hangupcause_read: Unable to find information for channel
-- Executing [h@trunkinbound:1] AGI("SIP/WVC-00000035", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0--------------------)") in new stack
-- <SIP/WVC-00000035>AGI Script agi://127.0.0.1:4577/call_log--HVcauses ... ----------) completed, returning 0