External calls from asterisk

Post Reply
Hukaparya
Member
Posts: 4
Joined: 21 Oct 2015 07:55

External calls from asterisk

Post by Hukaparya »

Hello Everybody!
I have a problem with my OXE and Asterisk.

I have connected Asterisk to my OXE, set up TrunkGroup for it and it is woking well except external calls from asterisk
When i'm dialing local numbers (****)or city numbers, like 9*******,it's working, but when i'm dialing mobile or other city number(90*********),
i get SIP/2.0 488 Not Acceptable Here

Here is tracing of a call:

1510569112 -> RECEIVE MESSAGE FROM NETWORK (192.168.12.137:5060 [UDP])
----------------------utf8-----------------------
INVITE sip:90503000000@192.168.12.130 SIP/2.0
Via: SIP/2.0/UDP 192.168.12.137:5060;branch=z9hG4bK711ac90c
Max-Forwards: 70
From: <sip:2222@192.168.12.137>;tag=as23f8a849
To: <sip:90503000000@192.168.12.130>
Contact: <sip:2222@192.168.12.137:5060>
Call-ID: 40b9ad6d153f6db24af089bb4903f55c@192.168.12.137:5060
CSeq: 102 INVITE
User-Agent: Asterisk
Date: Mon, 13 Nov 2017 10:31:49 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Type: application/sdp
Content-Length: 400

v=0
o=root 665388695 665388695 IN IP4 192.168.12.137
s=Asterisk PBX 11.23.1
c=IN IP4 192.168.12.137
t=0 0
m=audio 16674 RTP/AVP 97 18 3 4 0 8 101
a=rtpmap:97 iLBC/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:3 GSM/8000
a=rtpmap:4 G723/8000
a=fmtp:4 annexa=no
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
-------------------------------------------------

1510569112 -> F22DD [CRequest::CRequest] Creation of a request (RECEIVED FROM NETWORK)
1510569112 -> [CIOCom::receiveRequest] Received CRequest F22DD ref=1
1510569112 -> [CIOCom::checkHostInBlackList] host=192.168.12.137
1510569112 -> [CIOCom::checkHostInBlackList] host=192.168.12.137
1510569112 -> [CIOCom::receiveRequest] rport1 not empty
1510569112 -> [CDispatcher::onIncomingRequest()]
1510569112 -> [CDispatcher::processRequestFromManagerIndex()] start at index 0
1510569112 -> 102 [CCallManager::onIncomingRequest()]
1510569112 -> [CMotorCallManager::callFactory] For call : 40b9ad6d153f6db24af089bb4903f55c@192.168.12.137:5060.
1510569112 -> [CMotorCall :: CMotorCall()] Oxe_Version_Name = OmniPCX Enterprise R9.1 i1.605.21
1510569112 -> [CMotorCallManager::callFactory]=2c1e7120.
1510569112 -> 11ee [CCall::receiveRequest] INVITE
1510569112 -> 11ee [CCall::getDialog] Confirmed Dialog is not found (ID = ;as23f8a849)
1510569112 -> 11ee [CCall::getDialog] Initial Dialog Server not found
1510569112 -> 1519 [CDialog::receiveRequest]
1510569112 -> 1519 [CDialog::receiveInviteRequest]
1510569112 -> 21dc [CTransaction::changeState] STATE CHANGED TO INITIAL
1510569112 -> 21dc [CTransaction::changeState] notifying the parent dialog
1510569112 -> 1519 [CDialog::onTransactionState(pTrans = 21dc, previousState = Terminated, currentState = Initial, reason = None]
1510569112 -> 21dc [CTransInitialState::receiveRequest] Transaction changes to Proceeding state
1510569112 -> 21dc [CTransaction::changeState] STATE CHANGED TO PROCEEDING
1510569112 -> 21dc [CTransaction::changeState] notifying the parent dialog
1510569112 -> 1519 [CDialog::onTransactionState(pTrans = 21dc, previousState = Initial, currentState = Proceeding, reason = Request reception]
1510569112 -> 21dc [CTransProceedingState::createResponse] CResponse 5B490 ref=1
1510569112 -> 5B490 [CMessage::send] sip_sendMessage (192.168.12.137:5060)
1510569112 -> SEND MESSAGE TO NETWORK (192.168.12.137:5060 [UDP]) (BUFF LEN = 265)
----------------------utf8-----------------------
SIP/2.0 100 Trying
To: <sip:90503000000@192.168.12.130>
From: <sip:2222@192.168.12.137>;tag=as23f8a849
Call-ID: 40b9ad6d153f6db24af089bb4903f55c@192.168.12.137:5060
CSeq: 102 INVITE
Via: SIP/2.0/UDP 192.168.12.137:5060;branch=z9hG4bK711ac90c
Content-Length: 0

-------------------------------------------------
1510569112 -> 1519 [CDialog::receiveInviteRequest] a new Server INVITE transaction is in progress
1510569112 -> [CSessionTimerContext::CSessionTimerContext] New CSessionTimerContext from request (Server, UA)
1510569112 -> [CSessionTimerContext::updateAfterRefreshReception] Update CSessionTimerContext (refresh reception)
1510569112 -> [CSessionTimerContext::updateSupported] Request timer supported
1510569112 -> [CSessionTimerContext::updateSessionExpires] Session-Expires updated : 0
1510569112 -> [CSessionTimerContext::setRefreshMethod] Allow refreshMethod=INVITE
1510569112 -> 1519 [CDialog::addTransaction] added transaction 21dc with branch z9hG4bK711ac90c, with CSeq 102
1510569112 -> 11ee [CCall::checkAuthentication] INVITE
1510569112 -> 11ee[CMotorCall::controlAuthentication] ---*--- AUTH ---*--- Control authentication
1510569112 -> [CGwMngData::isAuthenticationRequiredForThisClient] 192.168.12.137 .
1510569112 -> [isDomainFromGwExt] Host from request is : 192.168.12.137.
1510569112 -> [isDomainFromGwExt] User from request is : 2222
1510569112 -> isDomainFromGwExt--> GwExt=9
1510569112 -> domain from External Gateway 9.
1510569112 -> 11ee[CMotorCall::setFilterUsedMode] To be traced = 0
1510569112 -> [getFromHeader].
1510569112 -> [isUserDeclared] 2222@192.168.12.137
1510569112 -> isUserDeclared] NOT found in the dictionnary.
1510569112 -> [isSeplosStation] other station
1510569112 -> [isDomainFromGwExt] Host from request is : 192.168.12.137.
1510569112 -> [isDomainFromGwExt] User from request is : 2222
1510569112 -> isDomainFromGwExt--> GwExt=9
1510569112 -> 11ee[CMotorCall::toGatewayOrProxy] request for proxydomain=192.168.12.130.
1510569112 -> [isValidGwExt] ext gw 9 is valid
1510569112 -> 11ee[CMotorCall ABCF ExtGW
1510569112 -> [isUserRegistred] getRegistration=90503000000.
1510569112 -> [isUserRegistred] result=-1.
1510569112 -> 11ee[CMotorCall::onReceiveRequest] request for gateway.
1510569112 -> 11ee[CMotorCall::onReceiveRequest] state = INITIAL_STATE.
1510569112 -> 11ee[CMotorCall::methodInviteReceived] nb available licenses=20 .
1510569112 -> [isUserDeclared] 2222@192.168.12.137
1510569112 -> isUserDeclared] NOT found in the dictionnary.
1510569112 -> 11ee[CMotorCall::compareDialogFromContext] presumed to be the same Dialog
1510569112 -> 11ee[CMotorCall::methodInviteReceived] Invite => update the inviteContext.
1510569112 -> [CForkedBranch::CForkedBranch] context = 0x2c1e7554.
1510569112 -> 11ee[CMotorCall::methodInviteReceived] reqUri stored: sip:2222@192.168.12.137:5060
1510569112 -> 11ee[CMotorCall::methodInviteReceived] CAC = 0
1510569112 -> [receiveInviteMessage] Call: 40b9ad6d153f6db24af089bb4903f55c@192.168.12.137:5060 eqt: -1 INITIAL_STATE received a message.
1510569112 -> [decodeInviteCLIR].
1510569112 -> [receiveInviteMessage] INFO present in Allow header
1510569112 -> [isValidGwExt] ext gw 9 is valid
1510569112 -> am_I_PCS SCSWorking : NO
1510569112 -> [isValidGwExt] ext gw 9 is valid
1510569112 -> check_extgw_PCSstate EXTGW is : 9
1510569112 -> The check_extgw_PCSstate extgwid : 9
1510569112 -> The state of PCS which rescued the extgw is : -1
1510569112 -> [isValidGwExt] ext gw 9 is valid
1510569112 -> [isSessionTimerTooSmall].
1510569112 -> 11ee[CMotorCall::analyseSessionTimer] exit with uacGatewayMode=0 uacRefresher=0.
1510569112 -> [decodeInviteSDP].
1510569112 -> [checkSdpValidity] Sdp contains 1 media description(s).
1510569112 -> [checkSdpValidity] Media 0 type 1 contains 7 formats.
1510569112 -> [checkSdpValidity] Format : 97.
1510569112 -> [checkSdpValidity] Format : 18.
1510569112 -> [convertSdpIntoTsdp] Sdp contains 1 media description(s).
1510569112 -> [convertSdpIntoTsdp] No Direction in the session part.
1510569112 -> [convertSdpIntoTsdp] Check the direction in Session part - result:0.
1510569112 -> [convertSdpIntoTsdp] The audio media contains 7 format(s).
1510569112 -> [convertSdpIntoTsdp] Format 0 is 97.
1510569112 -> [convertSdpIntoTsdp] Format 1 is 18.
1510569112 -> [convertSdpIntoTsdp] Format 2 is 3.
1510569112 -> [convertSdpIntoTsdp] Format 3 is 4.
1510569112 -> [convertSdpIntoTsdp] Format 4 is 0.
1510569112 -> [convertSdpIntoTsdp] Format 5 is 8.
1510569112 -> [convertSdpIntoTsdp] Format 6 is 101.
1510569112 -> [convertSdpIntoTsdp] Get the direction.
1510569112 -> [convertSdpIntoTsdp] Direction is sendrecv.
1510569112 -> [convertSdpIntoTsdp] The connection is at session level.
1510569112 -> [convertSdpIntoTsdp] Connection address retrieved in sdp: 192.168.12.137.
1510569112 -> [convertIPStrIntoTuipv] 192.168.12.137 => 192.168.12.137
1510569112 -> [receiveInviteMessage] NO 100rel REQUIRED for this call.
1510569112 -> [isCACWithInvalidMediaAddr].
1510569112 -> [decodeInviteTo].
1510569112 -> [decodeInviteReferredBy].
1510569112 -> [decodeInviteACSBU].
1510569112 -> 11ee[CMotorCall::setFilterUsedMode] To be traced = 0
1510569112 -> 11ee[emitEventToMonitel] content size (lginfo): 656
1510569112 -> [ipc_thread] IPC Thread : Ipc reception 2090.
1510569112 -> [ipc_thread] IPC Thread : TCL thread signaled.
1510569112 -> [CMotorCallManager::insertCallwithEqt] CMotorCall 1986 inserted.
1510569112 -> 11ee[sendLgEvtSipCreate] Event sent on eqt : 1986
1510569112 -> 11ee[CMotorCall::getOutgoingCall] outgoingCall:0
1510569112 -> 11ee [CCall::getCallDuplicationData]
1510569112 -> [CViaSetSerializer::copy] Added via 7c49 at index 0
1510569112 -> 11ee [CCall::getCallDuplicationData] : Request URI = sip:90503000000@192.168.12.130, Call ID = 40b9ad6d153f6db24af089bb4903f55c@192.168.12.137:5060, Local URI = sip:90503000000@192.168.12.130, Local Tag = , Remote URI = sip:2222@192.168.12.137, Remote Tag = as23f8a849, Local CSeq = 457431524, Remote CSeq = 102
1510569112 -> [CViaSetSerializer::serialize] Serialized via set : ViaSerialize=Via: SIP/2.0/UDP 192.168.12.137:5060;branch=z9hG4bK711ac90c
1510569112 -> SendToSipgwCpuSec: Message sent to the STAND-BY CPU
1510569112 -> [receiveInviteMessage] send RemoteSdp to the StandBy.
1510569112 -> SendToSipgwCpuSec: Message sent to the STAND-BY CPU
1510569112 -> [exec_ipc] in 2089.
1510569112 -> [display_ipc_in] ------------ Begin ---------------
1510569112 -> neqt : 1986 Id : -1
1510569112 -> REQUEST FAILURE
1510569112 -> xx : 88
1510569112 -> RELATIVE REQUEST : INVITE
1510569112 -> [display_ipc_in] ------------- End ----------------
1510569112 -> [CMotorCallManager::onIncomingEvent] an event 10767 arrived on the eqt 1986--1.
1510569112 -> [CMotorCallManager::onIncomingEvent] state = PROCEEDING_STATE.
1510569112 -> [onIncomingEvent] REQUEST FAILURE arrived.
1510569112 -> [receiveRequestFailureEvent] Call: 40b9ad6d153f6db24af089bb4903f55c@192.168.12.137:5060 eqt: 1986 PROCEEDING_STATE received an event.
1510569112 -> 11ee[CMotorCall::getOutgoingCall] outgoingCall:0
1510569112 -> [receiveRequestFailureEvent] incoming call.
1510569112 -> [isValidGwExt] ext gw 9 is valid
1510569112 -> 11ee[CMotorCall ABCF ExtGW
1510569112 -> 11ee [CCall::makeGenericResponse] 488
1510569112 -> 11ee [CCall::getDialog] Confirmed Dialog is not found (ID = ;as23f8a849)
1510569112 -> 11ee [CCall::getDialog] Returning Initial Dialog Server
1510569112 -> 1519 [CDialog::createResponse] 488
1510569112 -> 21dc [CTransProceedingState::createResponse] CResponse 5B491 ref=1
1510569112 -> 5B491 [CMessage::send] sip_sendMessage (192.168.12.137:5060)
1510569112 -> SEND MESSAGE TO NETWORK (192.168.12.137:5060 [UDP]) (BUFF LEN = 445)
----------------------utf8-----------------------
SIP/2.0 488 Not Acceptable Here
Allow: INVITE, ACK, CANCEL, BYE, PRACK, NOTIFY, REFER, SUBSCRIBE, OPTIONS, UPDATE
User-Agent: OmniPCX Enterprise R9.1 i1.605.21
To: <sip:90503000000@192.168.12.130>;tag=c24f8ccbd4c5e9a6e5b765ab2f46e318
From: <sip:2222@192.168.12.137>;tag=as23f8a849
Call-ID: 40b9ad6d153f6db24af089bb4903f55c@192.168.12.137:5060
CSeq: 102 INVITE
Via: SIP/2.0/UDP 192.168.12.137:5060;branch=z9hG4bK711ac90c
Content-Length: 0

-------------------------------------------------
1510569112 -> 5B490 [~CResponse] resp(100) 40b9ad6d153f6db24af089bb4903f55c@192.168.12.137:5060 102 INVITE
1510569112 -> 21dc [CTransProceedingState::createResponse] Final : Transaction changes to Completed state
1510569112 -> 21dc [CTransaction::changeState] STATE CHANGED TO COMPLETED
1510569112 -> 21dc [CTransaction::changeState] notifying the parent dialog
1510569112 -> 1519 [CDialog::onTransactionState(pTrans = 21dc, previousState = Proceeding, currentState = Completed, reason = Final resp creation]
1510569112 -> 21dc [CTransaction::startTimer] Timer G is started (delay = 500 ms)
1510569112 -> 21dc [CTransaction::startTimer] Timer H is started (delay = 32000 ms)
1510569112 -> 1519 [CDialog::updateRouteSet] there are 0 record-route headers
1510569112 -> SendToSipgwCpuSec: Message sent to the STAND-BY CPU
1510569112 -> [exec_ipc] in end 2089.
1510569112 -> RECEIVE MESSAGE FROM NETWORK (192.168.12.137:5060 [UDP])
----------------------utf8-----------------------
ACK sip:90503000000@192.168.12.130 SIP/2.0
Via: SIP/2.0/UDP 192.168.12.137:5060;branch=z9hG4bK711ac90c
Max-Forwards: 70
From: <sip:2222@192.168.12.137>;tag=as23f8a849
To: <sip:90503000000@192.168.12.130>;tag=c24f8ccbd4c5e9a6e5b765ab2f46e318
Contact: <sip:2222@192.168.12.137:5060>
Call-ID: 40b9ad6d153f6db24af089bb4903f55c@192.168.12.137:5060
CSeq: 102 ACK
User-Agent: Asterisk
Content-Length: 0



When i dial short number, instead of "REQUEST FAILURE" i'm getting "INFORMATIONAL " and the call is working well.

I think there is some access problem, but I'm new in Alcatel, can You tell me where should I look?
User avatar
cavagnaro
Alcatel Unleashed Certified Guru
Alcatel Unleashed Certified Guru
Posts: 7014
Joined: 14 Sep 2005 19:45
Location: Brasil, Porto Alegre
Contact:

Re: External calls from asterisk

Post by cavagnaro »

Check if the sip trunk has the correct public COS to make those calls.


Enviado de meu E6633 usando Tapatalk

Ignorance is not the problem, the problem is the one who doesn't want to learn

OTUC/ICS ACFE/ACSE R3.0/4.0/5.0/6.0
Certified Genesys CIV 8.5
Certified Genesys Troubleshooting 8.5
Certified Genesys BEP 8.x
Genesys Developer
Hukaparya
Member
Posts: 4
Joined: 21 Oct 2015 07:55

Re: External calls from asterisk

Post by Hukaparya »

Sorry, but i just dont understand, how to do it, and coudn't find here on forum
I set Trunk category ID 31 for SIP Trunk, but I just don't know what parameters I have to change to give it access to these calls
vad
Alcatel Unleashed Certified Guru
Alcatel Unleashed Certified Guru
Posts: 3806
Joined: 23 Sep 2004 06:47

Re: External calls from asterisk

Post by vad »

As I understand - you have path (outgoing call from Asterisk user via OXE):
Asterisk user-Asterisk-SIP-OXE-External network (provider)?
OXE external connection - PRA? Do you have something in t3 trace (for problem calls) - provider reject call or OXE?
May be some reason for call reject.
F.e. problem with discriminator.
Check - OXE user entity/ discriminator selector (by default 1) and TG entity/ discriminator selector (by default 0). May be you use different real discriminator for OXE user call and transit (Asterisk user) call.
User avatar
cavagnaro
Alcatel Unleashed Certified Guru
Alcatel Unleashed Certified Guru
Posts: 7014
Joined: 14 Sep 2005 19:45
Location: Brasil, Porto Alegre
Contact:

Re: External calls from asterisk

Post by cavagnaro »

Hukaparya wrote:Sorry, but i just dont understand, how to do it, and coudn't find here on forum
I set Trunk category ID 31 for SIP Trunk, but I just don't know what parameters I have to change to give it access to these calls
Get a user that can make all type of calls, get its Public COS. Now assign same COS to the trunk. Test it.


Enviado de meu E6633 usando Tapatalk

Ignorance is not the problem, the problem is the one who doesn't want to learn

OTUC/ICS ACFE/ACSE R3.0/4.0/5.0/6.0
Certified Genesys CIV 8.5
Certified Genesys Troubleshooting 8.5
Certified Genesys BEP 8.x
Genesys Developer
Hukaparya
Member
Posts: 4
Joined: 21 Oct 2015 07:55

Re: External calls from asterisk

Post by Hukaparya »

cavagnaro wrote: 14 Nov 2017 08:28
Hukaparya wrote:Sorry, but i just dont understand, how to do it, and coudn't find here on forum
I set Trunk category ID 31 for SIP Trunk, but I just don't know what parameters I have to change to give it access to these calls
Get a user that can make all type of calls, get its Public COS. Now assign same COS to the trunk. Test it.


Enviado de meu E6633 usando Tapatalk
OH, It was so easy! I was digging in "Categories" for few days, didn't know what to do, 31 access category, 64 public access category :? :(
And I just had to assign COS for TG like for usual user :shock:
Thanx a lot, cavagnaro, vad!!!!!!!
User avatar
cavagnaro
Alcatel Unleashed Certified Guru
Alcatel Unleashed Certified Guru
Posts: 7014
Joined: 14 Sep 2005 19:45
Location: Brasil, Porto Alegre
Contact:

Re: External calls from asterisk

Post by cavagnaro »

Ermmmm...if you are doing this sort of integration then entities and categories should be your ABC already learned and understood...check system documentation. You will mess it very ugly if not


Enviado de meu E6633 usando Tapatalk

Ignorance is not the problem, the problem is the one who doesn't want to learn

OTUC/ICS ACFE/ACSE R3.0/4.0/5.0/6.0
Certified Genesys CIV 8.5
Certified Genesys Troubleshooting 8.5
Certified Genesys BEP 8.x
Genesys Developer
vad
Alcatel Unleashed Certified Guru
Alcatel Unleashed Certified Guru
Posts: 3806
Joined: 23 Sep 2004 06:47

Re: External calls from asterisk

Post by vad »

Problem was with Public access COS in TG?
Strange, I think - by default TG Public access COS in TG management not used (for COS using - TG must by privet and checked item "barring" in local TG parameters).
User avatar
cavagnaro
Alcatel Unleashed Certified Guru
Alcatel Unleashed Certified Guru
Posts: 7014
Joined: 14 Sep 2005 19:45
Location: Brasil, Porto Alegre
Contact:

Re: External calls from asterisk

Post by cavagnaro »

On SIP scenarios the one who makes the call for the other party is the Trunk. So it needs permissions to do so.


Enviado de meu E6633 usando Tapatalk

Ignorance is not the problem, the problem is the one who doesn't want to learn

OTUC/ICS ACFE/ACSE R3.0/4.0/5.0/6.0
Certified Genesys CIV 8.5
Certified Genesys Troubleshooting 8.5
Certified Genesys BEP 8.x
Genesys Developer
Post Reply

Return to “Trunk Groups”