[AsteriskBrasil] Identificar Número Entrante

Ricardo Landim pangole em bol.com.br
Quarta Julho 30 16:48:05 BRT 2008


Eles não estão mandando... como disse o Itamar... vai ter que pedir pra eles
mandarem no header do sip...

2008/7/30 hamasterisk <listas.publicas em gmail.com>

> sip-server*CLI>
> <-- SIP read from 201.48.113.140:5060:
> INVITE sip:12013198 em 189.50.34.1 <sip%3A12013198 em 189.50.34.1> SIP/2.0
> Record-Route: <sip:201.48.113.140;lr=on>
> Via: SIP/2.0/UDP 201.48.113.140;branch=z9hG4bK154d.332bd161.0
> Via: SIP/2.0/UDP 201.48.113.130:5060;branch=z9hG4bK1ad62475;rport=5060
> From: "1548394571" <sip:1548394571 em 201.48.113.130<sip%3A1548394571 em 201.48.113.130>
> >;tag=as5ba152da
> To: <sip:12013198 em 201.48.113.140 <sip%3A12013198 em 201.48.113.140>>
> Contact: <sip:1548394571 em 201.48.113.130 <sip%3A1548394571 em 201.48.113.130>>
> Call-ID: 40546f06637dc18c6b6bc8080106f0a5 em 201.48.113.130
> CSeq: 102 INVITE
> User-Agent: VoIP_CTBC_1.0
> Max-Forwards: 69
> Date: Wed, 30 Jul 2008 18:35:56 GMT
> Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
> Supported: replaces
> Content-Type: application/sdp
> Content-Length: 291
>
> v=0
> o=root 21318 21318 IN IP4 201.48.113.130
> s=session
> c=IN IP4 201.48.113.130
> t=0 0
> m=audio 14084 RTP/AVP 0 8 3 101
> a=rtpmap:0 PCMU/8000
> a=rtpmap:8 PCMA/8000
> a=rtpmap:3 GSM/8000
> a=rtpmap:101 telephone-event/8000
> a=fmtp:101 0-16
> a=silenceSupp:off - - - -
> a=ptime:20
> a=sendrecv
>
> --- (16 headers 14 lines) ---
> Using INVITE request as basis request -
> 40546f06637dc18c6b6bc8080106f0a5 em 201.48.113.130
> Sending to 201.48.113.140 : 5060 (non-NAT)
> Found peer '12015331_ctbc_trunk'
> Found RTP audio format 0
> Found RTP audio format 8
> Found RTP audio format 3
> Found RTP audio format 101
> Peer audio RTP is at port 201.48.113.130:14084
> Found description format PCMU
> Found description format PCMA
> Found description format GSM
> Found description format telephone-event
> Capabilities: us - 0x50e (gsm|ulaw|alaw|g729|ilbc), peer - audio=0xe
> (gsm|ulaw|alaw)/video=0x0 (nothing), combined - 0xe (gsm|ulaw|alaw)
> Non-codec capabilities: us - 0x1 (telephone-event), peer - 0x1
> (telephone-event), combined - 0x1 (telephone-event)
> Looking for 12013198 in entrante (domain 189.50.34.1)
> list_route: hop: <sip:201.48.113.140;lr=on>
> Transmitting (NAT) to 201.48.113.140:5060:
> SIP/2.0 100 Trying
> Via: SIP/2.0/UDP 201.48.113.140;branch=z9hG4bK154d.332bd161.0;received=
> 201.48.113.140
> Via: SIP/2.0/UDP 201.48.113.130:5060;branch=z9hG4bK1ad62475;rport=5060
> From: "1548394571" <sip:1548394571 em 201.48.113.130<sip%3A1548394571 em 201.48.113.130>
> >;tag=as5ba152da
> To: <sip:12013198 em 201.48.113.140 <sip%3A12013198 em 201.48.113.140>>
> Call-ID: 40546f06637dc18c6b6bc8080106f0a5 em 201.48.113.130
> CSeq: 102 INVITE
> User-Agent: iPBX HostingVoip
> Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
> Contact: <sip:12013198 em 189.50.34.1 <sip%3A12013198 em 189.50.34.1>>
> Content-Length: 0
>
>
> ---
> We're at 189.50.34.1 port 19498
> Adding codec 0x4 (ulaw) to SDP
> Adding codec 0x8 (alaw) to SDP
> Adding codec 0x2 (gsm) to SDP
> Adding non-codec 0x1 (telephone-event) to SDP
> Reliably Transmitting (NAT) to 201.48.113.140:5060:
> SIP/2.0 200 OK
> Via: SIP/2.0/UDP 201.48.113.140;branch=z9hG4bK154d.332bd161.0;received=
> 201.48.113.140
> Via: SIP/2.0/UDP 201.48.113.130:5060;branch=z9hG4bK1ad62475;rport=5060
> Record-Route: <sip:201.48.113.140;lr=on>
> From: "1548394571" <sip:1548394571 em 201.48.113.130<sip%3A1548394571 em 201.48.113.130>
> >;tag=as5ba152da
> To: <sip:12013198 em 201.48.113.140 <sip%3A12013198 em 201.48.113.140>
> >;tag=as7b63f52d
> Call-ID: 40546f06637dc18c6b6bc8080106f0a5 em 201.48.113.130
> CSeq: 102 INVITE
> User-Agent: iPBX HostingVoip
> Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
> Contact: <sip:12013198 em 189.50.34.1 <sip%3A12013198 em 189.50.34.1>>
> Content-Type: application/sdp
> Content-Length: 261
>
> v=0
> o=root 3739 3739 IN IP4 189.50.34.1
> s=session
> c=IN IP4 189.50.34.1
> t=0 0
> m=audio 19498 RTP/AVP 0 8 3 101
> a=rtpmap:0 PCMU/8000
> a=rtpmap:8 PCMA/8000
> a=rtpmap:3 GSM/8000
> a=rtpmap:101 telephone-event/8000
> a=fmtp:101 0-16
> a=silenceSupp:off - - - -
>
> ---
> sip-server*CLI>
> <-- SIP read from 201.48.113.140:5060:
> ACK sip:12013198 em 189.50.34.1 <sip%3A12013198 em 189.50.34.1> SIP/2.0
> Record-Route: <sip:201.48.113.140;lr=on>
> Via: SIP/2.0/UDP 201.48.113.140;branch=z9hG4bK154d.332bd161.2
> Via: SIP/2.0/UDP 201.48.113.130:5060;branch=z9hG4bK673787b8;rport=5060
> From: "1548394571" <sip:1548394571 em 201.48.113.130<sip%3A1548394571 em 201.48.113.130>
> >;tag=as5ba152da
> To: <sip:12013198 em 201.48.113.140 <sip%3A12013198 em 201.48.113.140>
> >;tag=as7b63f52d
> Contact: <sip:1548394571 em 201.48.113.130 <sip%3A1548394571 em 201.48.113.130>>
> Call-ID: 40546f06637dc18c6b6bc8080106f0a5 em 201.48.113.130
> CSeq: 102 ACK
> User-Agent: VoIP_CTBC_1.0
> Max-Forwards: 69
> Content-Length: 0
>
>
> --- (12 headers 0 lines) ---
>
> 2008/7/30 Ricardo Landim <pangole em bol.com.br>
>
>> Manda a sinalização SIP...
>>
>> 2008/7/30 hamasterisk <listas.publicas em gmail.com>
>>
>>>    Caros colegas, nossa empresa tem uma central de atendimento via SIP,
>>> usando números entrante da CTBC.
>>>    Temos cerca de 25 números entrantes em cidades que temos clientes, de
>>> forma a facilitar o suporte.
>>>    Me incumbiram de levantar os dados a respeito de quantas chamadas cada
>>> número vem recebendo. Contudo, pelo que estive monitorando no Debug, a CTBC
>>> envia a chamada para o nosso login e não para o número que foi discado.
>>> Sendo assim, não tenho a menor idéia de como levantar esses dados pra
>>> gerência.
>>>    Algúem tem alguma vaga idéia? No estado em que estou, qualquer coisa
>>> ajuda.
>>>
>>> _______________________________________________
>>> Compre uma camiseta da AsteriskBrasil.org!
>>> http://www.voipmania.com.br
>>>
>>> Acesse o canal IRC de discussão sobre Asterisk em Português Brasileiro na
>>> rede Freenode.net: #asterisk-br
>>> _______________________________________________
>>> Lista de discussões AsteriskBrasil.org
>>> AsteriskBrasil em listas.asteriskbrasil.org
>>> http://listas.asteriskbrasil.org/mailman/listinfo/asteriskbrasil
>>>
>>
>>
>> _______________________________________________
>> Compre uma camiseta da AsteriskBrasil.org!
>> http://www.voipmania.com.br
>>
>> Acesse o canal IRC de discussão sobre Asterisk em Português Brasileiro na
>> rede Freenode.net: #asterisk-br
>> _______________________________________________
>> Lista de discussões AsteriskBrasil.org
>> AsteriskBrasil em listas.asteriskbrasil.org
>> http://listas.asteriskbrasil.org/mailman/listinfo/asteriskbrasil
>>
>
>
> _______________________________________________
> Compre uma camiseta da AsteriskBrasil.org!
> http://www.voipmania.com.br
>
> Acesse o canal IRC de discussão sobre Asterisk em Português Brasileiro na
> rede Freenode.net: #asterisk-br
> _______________________________________________
> Lista de discussões AsteriskBrasil.org
> AsteriskBrasil em listas.asteriskbrasil.org
> http://listas.asteriskbrasil.org/mailman/listinfo/asteriskbrasil
>
-------------- Próxima Parte ----------
Um anexo em HTML foi limpo...
URL: http://listas.asteriskbrasil.org/pipermail/asteriskbrasil/attachments/20080730/f3254a51/attachment-0001.htm 


More information about the AsteriskBrasil mailing list