[OpenSER-Users-ES] A vueltas con los REFER y NOTIFY

Saúl Ibarra saghul at gmail.com
Thu May 22 19:37:04 CEST 2008


Tengo algún bug con las transferencias y demás, que no consigo
encontrar, así que primero os comento el escenario:

* OpenSER en el 5060 y Asterisk en el 5070.
* OpenSER manda _todos_ los INVITEs a Asterisk.

Problema: cuando hago una transferencia ciega (Linksys SPA 962), esta
se hace correctamente, pero Asterisk genera unos NOTIFY de que la
transferencia ha molado pero estos llegan 'tarde', es decir, yo veo el
BYE primero, y el SPA responde con 500, internal error.

Si hago esta misma prueba, en cambio, twinkle me da 481 call
leg/transaction does not exist.

Tengo un lio mental de idas y vueltas que ya no se ni como me llamo
:-/ alguien puede arrojarme un poco de luz? Pego el trozo de los
notify 'extraños', pero si no queda claro me comentáis y pego más :)

U +0.467928 10.10.0.207:5060 -> 10.245.145.27:5060
BYE sip:1002 at 10.245.145.27:5070 SIP/2.0
Via: SIP/2.0/UDP 10.10.0.207;rport;branch=z9hG4bKujfnbjtf
Route: <sip:10.245.145.27;lr=on;ftag=as531abf67>
Max-Forwards: 70
To: "1001" <sip:1002 at 10.245.145.27>;tag=as531abf67
From: <sip:1002 at 10.245.145.27>;tag=rmdfb
Call-ID: 20bdbda553b883e167a5f5bc70d3614d at 10.245.145.27
CSeq: 679 BYE
User-Agent: Twinkle/1.2
Content-Length: 0


#
U +0.000084 10.245.145.27:5060 -> 10.245.145.27:5070
BYE sip:1002 at 10.245.145.27:5070 SIP/2.0
Record-Route: <sip:10.245.145.27;lr=on;ftag=rmdfb>
Via: SIP/2.0/UDP 10.245.145.27;branch=z9hG4bKcd03.4373a225.0
Via: SIP/2.0/UDP 10.10.0.207;rport=5060;branch=z9hG4bKujfnbjtf
Max-Forwards: 69
To: "1001" <sip:1002 at 10.245.145.27>;tag=as531abf67
From: <sip:1002 at 10.245.145.27>;tag=rmdfb
Call-ID: 20bdbda553b883e167a5f5bc70d3614d at 10.245.145.27
CSeq: 679 BYE
User-Agent: Twinkle/1.2
Content-Length: 0


#
U +0.000170 10.245.145.27:5070 -> 10.245.145.27:5060
SIP/2.0 200 OK
Via: SIP/2.0/UDP
10.245.145.27;branch=z9hG4bKcd03.4373a225.0;received=10.245.145.27
Via: SIP/2.0/UDP 10.10.0.207;rport=5060;branch=z9hG4bKujfnbjtf
Record-Route: <sip:10.245.145.27;lr=on;ftag=rmdfb>
From: <sip:1002 at 10.245.145.27>;tag=rmdfb
To: "1001" <sip:1002 at 10.245.145.27>;tag=as531abf67
Call-ID: 20bdbda553b883e167a5f5bc70d3614d at 10.245.145.27
CSeq: 679 BYE
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces
Contact: <sip:1002 at 10.245.145.27:5070>
Content-Length: 0


#
U +0.000055 10.245.145.27:5060 -> 10.10.0.207:5060
SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.10.0.207;rport=5060;branch=z9hG4bKujfnbjtf
Record-Route: <sip:10.245.145.27;lr=on;ftag=rmdfb>
From: <sip:1002 at 10.245.145.27>;tag=rmdfb
To: "1001" <sip:1002 at 10.245.145.27>;tag=as531abf67
Call-ID: 20bdbda553b883e167a5f5bc70d3614d at 10.245.145.27
CSeq: 679 BYE
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces
Contact: <sip:1002 at 10.245.145.27:5070>
Content-Length: 0


#
U +0.000063 10.245.145.27:5070 -> 10.245.145.27:5060
BYE sip:1001 at 10.10.0.117:2051;line=fz4l5erk SIP/2.0
Via: SIP/2.0/UDP 10.245.145.27:5070;branch=z9hG4bK3da09380;rport
Route: <sip:10.245.145.27;lr=on;ftag=uis0u0n2nf>
From: <sip:1000 at 10.245.145.27>;tag=as4e20d609
To: "1001" <sip:1001 at 10.245.145.27>;tag=uis0u0n2nf
Call-ID: 3c268d8d7ef4-zkdscipg2k5n at snom320-00041327D5A5
CSeq: 102 BYE
User-Agent: Asterisk PBX
Max-Forwards: 70
Content-Length: 0


#
U +0.000085 10.245.145.27:5060 -> 10.10.0.117:2051
BYE sip:1001 at 10.10.0.117:2051;line=fz4l5erk SIP/2.0
Record-Route: <sip:10.245.145.27;lr=on;ftag=as4e20d609>
Via: SIP/2.0/UDP 10.245.145.27;branch=z9hG4bKb8a6.de1dc2e.0
Via: SIP/2.0/UDP 10.245.145.27:5070;branch=z9hG4bK3da09380;rport=5070
From: <sip:1000 at 10.245.145.27>;tag=as4e20d609
To: "1001" <sip:1001 at 10.245.145.27>;tag=uis0u0n2nf
Call-ID: 3c268d8d7ef4-zkdscipg2k5n at snom320-00041327D5A5
CSeq: 102 BYE
User-Agent: Asterisk PBX
Max-Forwards: 69
Content-Length: 0


#
U +0.075955 10.10.0.117:2051 -> 10.245.145.27:5060
SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.245.145.27;branch=z9hG4bKb8a6.de1dc2e.0
Via: SIP/2.0/UDP 10.245.145.27:5070;branch=z9hG4bK3da09380;rport=5070
From: <sip:1000 at 10.245.145.27>;tag=as4e20d609
To: "1001" <sip:1001 at 10.245.145.27>;tag=uis0u0n2nf
Call-ID: 3c268d8d7ef4-zkdscipg2k5n at snom320-00041327D5A5
CSeq: 102 BYE
Contact: <sip:1001 at 10.10.0.117:2051;line=fz4l5erk>;flow-id=1
User-Agent: snom320/6.5.17
RTP-RxStat: Total_Rx_Pkts=613,Rx_Pkts=613,Rx_Pkts_Lost=49858,Remote_Rx_Pkts_Lost=0
RTP-TxStat: Total_Tx_Pkts=632,Tx_Pkts=632,Remote_Tx_Pkts=0
Content-Length: 0


#
U +0.000055 10.245.145.27:5060 -> 10.245.145.27:5070
SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.245.145.27:5070;branch=z9hG4bK3da09380;rport=5070
From: <sip:1000 at 10.245.145.27>;tag=as4e20d609
To: "1001" <sip:1001 at 10.245.145.27>;tag=uis0u0n2nf
Call-ID: 3c268d8d7ef4-zkdscipg2k5n at snom320-00041327D5A5
CSeq: 102 BYE
Contact: <sip:1001 at 10.10.0.117:2051;line=fz4l5erk>;flow-id=1
User-Agent: snom320/6.5.17
RTP-RxStat: Total_Rx_Pkts=613,Rx_Pkts=613,Rx_Pkts_Lost=49858,Remote_Rx_Pkts_Lost=0
RTP-TxStat: Total_Tx_Pkts=632,Tx_Pkts=632,Remote_Tx_Pkts=0
Content-Length: 0


#
U +1.651697 10.245.145.27:5070 -> 10.245.145.27:5060
NOTIFY sip:1000 at 10.10.0.130:5060 SIP/2.0
Via: SIP/2.0/UDP 10.245.145.27:5070;branch=z9hG4bK52500328;rport
Route: <sip:10.245.145.27;lr=on;ftag=as25eff628>
From: "1001" <sip:1000 at 10.245.145.27>;tag=as25eff628
To: <sip:1000 at 10.245.145.27>;tag=a577e6cbe81ba280i0
Contact: <sip:1000 at 10.245.145.27:5070>
Call-ID: 794d618a30c588a41db81f701b58cd78 at 10.245.145.27
CSeq: 103 NOTIFY
User-Agent: Asterisk PBX
Max-Forwards: 70
Remote-Party-ID: "1001" <sip:1001 at 10.245.145.27>;privacy=off;screen=no
Event: refer;id=102
Subscription-state: active
Content-Type: message/sipfrag;version=2.0
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces
Content-Length: 21

SIP/2.0 183 Ringing

#
U +0.000109 10.245.145.27:5060 -> 10.10.0.130:5060
NOTIFY sip:1000 at 10.10.0.130:5060 SIP/2.0
Record-Route: <sip:10.245.145.27;lr=on;ftag=as25eff628>
Via: SIP/2.0/UDP 10.245.145.27;branch=z9hG4bKd39e.527b1925.0
Via: SIP/2.0/UDP 10.245.145.27:5070;branch=z9hG4bK52500328;rport=5070
From: "1001" <sip:1000 at 10.245.145.27>;tag=as25eff628
To: <sip:1000 at 10.245.145.27>;tag=a577e6cbe81ba280i0
Contact: <sip:1000 at 10.245.145.27:5070>
Call-ID: 794d618a30c588a41db81f701b58cd78 at 10.245.145.27
CSeq: 103 NOTIFY
User-Agent: Asterisk PBX
Max-Forwards: 69
Remote-Party-ID: "1001" <sip:1001 at 10.245.145.27>;privacy=off;screen=no
Event: refer;id=102
Subscription-state: active
Content-Type: message/sipfrag;version=2.0
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces
Content-Length: 21

SIP/2.0 183 Ringing

#
U +0.066982 10.10.0.130:5060 -> 10.245.145.27:5060
SIP/2.0 200 OK
To: <sip:1000 at 10.245.145.27>;tag=a577e6cbe81ba280i0
From: "1001" <sip:1000 at 10.245.145.27>;tag=as25eff628
Call-ID: 794d618a30c588a41db81f701b58cd78 at 10.245.145.27
CSeq: 103 NOTIFY
Via: SIP/2.0/UDP 10.245.145.27;branch=z9hG4bKd39e.527b1925.0
Via: SIP/2.0/UDP 10.245.145.27:5070;branch=z9hG4bK52500328;rport=5070
Record-Route: <sip:10.245.145.27;lr=on;ftag=as25eff628>
Server: Linksys/SPA962-5.1.15(aSC)
Content-Length: 0


#
U +0.000056 10.245.145.27:5060 -> 10.245.145.27:5070
SIP/2.0 200 OK
To: <sip:1000 at 10.245.145.27>;tag=a577e6cbe81ba280i0
From: "1001" <sip:1000 at 10.245.145.27>;tag=as25eff628
Call-ID: 794d618a30c588a41db81f701b58cd78 at 10.245.145.27
CSeq: 103 NOTIFY
Via: SIP/2.0/UDP 10.245.145.27:5070;branch=z9hG4bK52500328;rport=5070
Record-Route: <sip:10.245.145.27;lr=on;ftag=as25eff628>
Server: Linksys/SPA962-5.1.15(aSC)
Content-Length: 0


#
U +3.932491 10.245.145.27:5070 -> 10.245.145.27:5060
NOTIFY sip:1000 at 10.10.0.130:5060 SIP/2.0
Via: SIP/2.0/UDP 10.245.145.27:5070;branch=z9hG4bK52500328;rport
Route: <sip:10.245.145.27;lr=on;ftag=as25eff628>
From: "1001" <sip:1000 at 10.245.145.27>;tag=as25eff628
To: <sip:1000 at 10.245.145.27>;tag=a577e6cbe81ba280i0
Contact: <sip:1000 at 10.245.145.27:5070>
Call-ID: 794d618a30c588a41db81f701b58cd78 at 10.245.145.27
CSeq: 103 NOTIFY
User-Agent: Asterisk PBX
Max-Forwards: 70
Remote-Party-ID: "1001" <sip:1001 at 10.245.145.27>;privacy=off;screen=no
Event: refer;id=102
Subscription-state: active
Content-Type: message/sipfrag;version=2.0
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces
Content-Length: 21

SIP/2.0 183 Ringing

#
U +0.000071 10.245.145.27:5060 -> 10.245.145.27:5070
SIP/2.0 200 OK
To: <sip:1000 at 10.245.145.27>;tag=a577e6cbe81ba280i0
From: "1001" <sip:1000 at 10.245.145.27>;tag=as25eff628
Call-ID: 794d618a30c588a41db81f701b58cd78 at 10.245.145.27
CSeq: 103 NOTIFY
Via: SIP/2.0/UDP 10.245.145.27:5070;branch=z9hG4bK52500328;rport=5070
Record-Route: <sip:10.245.145.27;lr=on;ftag=as25eff628>
Server: Linksys/SPA962-5.1.15(aSC)
Content-Length: 0


#
U +0.630294 10.245.145.27:5070 -> 10.245.145.27:5060
NOTIFY sip:1000 at 10.10.0.130:5060 SIP/2.0
Via: SIP/2.0/UDP 10.245.145.27:5070;branch=z9hG4bK52500328;rport
Route: <sip:10.245.145.27;lr=on;ftag=as25eff628>
From: "1001" <sip:1000 at 10.245.145.27>;tag=as25eff628
To: <sip:1000 at 10.245.145.27>;tag=a577e6cbe81ba280i0
Contact: <sip:1000 at 10.245.145.27:5070>
Call-ID: 794d618a30c588a41db81f701b58cd78 at 10.245.145.27
CSeq: 103 NOTIFY
User-Agent: Asterisk PBX
Max-Forwards: 70
Remote-Party-ID: "1001" <sip:1001 at 10.245.145.27>;privacy=off;screen=no
Event: refer;id=102
Subscription-state: active
Content-Type: message/sipfrag;version=2.0
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces
Content-Length: 21

SIP/2.0 183 Ringing

#
U +0.000088 10.245.145.27:5060 -> 10.10.0.130:5060
NOTIFY sip:1000 at 10.10.0.130:5060 SIP/2.0
Record-Route: <sip:10.245.145.27;lr=on;ftag=as25eff628>
Via: SIP/2.0/UDP 10.245.145.27;branch=z9hG4bKd39e.627b1925.0
Via: SIP/2.0/UDP 10.245.145.27:5070;branch=z9hG4bK52500328;rport=5070
From: "1001" <sip:1000 at 10.245.145.27>;tag=as25eff628
To: <sip:1000 at 10.245.145.27>;tag=a577e6cbe81ba280i0
Contact: <sip:1000 at 10.245.145.27:5070>
Call-ID: 794d618a30c588a41db81f701b58cd78 at 10.245.145.27
CSeq: 103 NOTIFY
User-Agent: Asterisk PBX
Max-Forwards: 69
Remote-Party-ID: "1001" <sip:1001 at 10.245.145.27>;privacy=off;screen=no
Event: refer;id=102
Subscription-state: active
Content-Type: message/sipfrag;version=2.0
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces
Content-Length: 21

SIP/2.0 183 Ringing

#
U +0.053425 10.10.0.130:5060 -> 10.245.145.27:5060
SIP/2.0 500 Internal Server Error
To: <sip:1000 at 10.245.145.27>;tag=a577e6cbe81ba280i0
From: "1001" <sip:1000 at 10.245.145.27>;tag=as25eff628
Call-ID: 794d618a30c588a41db81f701b58cd78 at 10.245.145.27
CSeq: 103 NOTIFY
Via: SIP/2.0/UDP 10.245.145.27;branch=z9hG4bKd39e.627b1925.0
Via: SIP/2.0/UDP 10.245.145.27:5070;branch=z9hG4bK52500328;rport=5070
Record-Route: <sip:10.245.145.27;lr=on;ftag=as25eff628>
Server: Linksys/SPA962-5.1.15(aSC)
Content-Length: 0


#
U +0.000052 10.245.145.27:5060 -> 10.245.145.27:5070
SIP/2.0 500 Internal Server Error
To: <sip:1000 at 10.245.145.27>;tag=a577e6cbe81ba280i0
From: "1001" <sip:1000 at 10.245.145.27>;tag=as25eff628
Call-ID: 794d618a30c588a41db81f701b58cd78 at 10.245.145.27
CSeq: 103 NOTIFY
Via: SIP/2.0/UDP 10.245.145.27:5070;branch=z9hG4bK52500328;rport=5070
Record-Route: <sip:10.245.145.27;lr=on;ftag=as25eff628>
Server: Linksys/SPA962-5.1.15(aSC)
Content-Length: 0


Tnhx 4 any help.


-- 
Saúl -- "Nunca subestimes el ancho de banda de un camión lleno de disketes."
----------------------------------------------------------------
http://www.saghul.net/




More information about the Users-es mailing list