[AsteriskBrasil] Aceitar chamadas por IP
Hudson Cardoso
hudsoncardoso em hotmail.com
Quarta Dezembro 10 16:43:39 BRST 2014
Boa tarde colegas...Estou fazendo uma conexão com a voipgroup, mas estou tendo problemas em programarno realtime, preciso fazer com que qualquer conexão vinda de um determinado IP seja aceito, e preciso pegar a informação que está no campo "TO :", mas não estou conseguindo fazer isso, alguém pode me dar uma dica ? Obrigado.
From: <sip:05749055110 at sipgw5026.com>;tag=3627225520-923616To: <sip:554837170801 at 177.53.240.29;user=phone>
<--- SIP read from UDP:177.53.240.29:5060 --->INVITE sip:548199200 at 201.47.73.162:5060 SIP/2.0Contact: <sip:05749055110 at 200.162.139.25:5060>CSeq: 1 INVITEFrom: <sip:05749055110 at sipgw5026.com>;tag=3627225520-923616To: <sip:554837170801 at 177.53.240.29;user=phone>Via: SIP/2.0/UDP 177.53.240.29:5060;branch=z9hG4bK4aa6460558cde3deVia: SIP/2.0/UDP 200.162.139.25:5060;branch=z9hG4bK99556a0f633dc3ef4f18dcd89798069cRecord-Route: <sip:177.53.240.29:5060;lr>Diversion: <sip:04837170801 at 200.162.139.25>;privacy=offAccept: application/sdpAllow: CANCEL, ACK, INVITE, BYE, OPTIONS, REGISTER, NOTIFY, INFO, REFER, SUBSCRIBE, PRACK, UPDATE, MESSAGE, PUBLISHContent-Type: application/sdpCall-Id: 292184675-3627225520-923612 at gbnd-nxt02.transit.spo.brMax-Forwards: 69Content-Length: 427supported: 100rel
v=0o=gbnd-nxt02 1662 1662 IN IP4 200.162.139.25s=sip callc=IN IP4 200.162.139.28t=0 0m=audio 21988 RTP/AVP 18 98 96 97 8 0 101 13a=rtpmap:98 G.729a/8000a=rtpmap:96 G.729ab/8000a=rtpmap:97 G.729b/8000a=rtpmap:101 telephone-event/8000a=fmtp:101 0-15a=fmtp:18 annexb=yesa=ptime:20a=rtpmap:13 CN/8000a=X-vrzcap:vbd Ver=1 Mode=FaxPr ModemRtpRed=0a=X-vrzcap:identification bin=CMG1116 Prot=mgcp App=MG<------------->--- (16 headers 16 lines) ---Sending to 177.53.240.29:5060 (NAT)Using INVITE request as basis request - 292184675-3627225520-923612 at gbnd-nxt02.transit.spo.brNo matching peer for '05749055110' from '177.53.240.29:5060'[2014-12-10 16:32:19] NOTICE[1805]: chan_sip.c:23142 handle_request_invite: Sending fake auth rejection for device <sip:05749055110 at sipgw5026.com>;tag=3627225520-923616
<--- Reliably Transmitting (NAT) to 177.53.240.29:5060 --->SIP/2.0 401 UnauthorizedVia: SIP/2.0/UDP 177.53.240.29:5060;branch=z9hG4bK4aa6460558cde3de;received=177.53.240.29;rport=5060Via: SIP/2.0/UDP 200.162.139.25:5060;branch=z9hG4bK99556a0f633dc3ef4f18dcd89798069cFrom: <sip:05749055110 at sipgw5026.com>;tag=3627225520-923616To: <sip:554837170801 at 177.53.240.29;user=phone>;tag=as558b5185Call-ID: 292184675-3627225520-923612 at gbnd-nxt02.transit.spo.brCSeq: 1 INVITEServer: X-LiteAllow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISHSupported: replaces, timerWWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="29853ffc"Content-Length: 0
Hudson
(048) 8413-7000
Para quem nao cre, nenhuma prova converte,Para aquele que cre, nenhuma prova precisa.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://asteriskbrasil.org/pipermail/asteriskbrasil/attachments/20141210/3fe57e16/attachment-0001.html>
Mais detalhes sobre a lista de discussão AsteriskBrasil