Summary: | ASTERISK-18903: Asterisk 10 RC2 Drops To Address from SIP Message | ||||||
Reporter: | Shaun Clark (shaunc869) | Labels: | |||||
Date Opened: | 2011-11-21 19:09:57.000-0600 | Date Closed: | 2011-11-23 10:23:15.000-0600 | ||||
Priority: | Major | Regression? | |||||
Status: | Closed/Complete | Components: | Channels/chan_sip/General Channels/chan_sip/Messaging | ||||
Versions: | 10.0.0-rc2 | Frequency of Occurrence | Constant | ||||
Related Issues: |
| ||||||
Environment: | Attachments: | ||||||
Description: | I have this as a test in my extensions.conf file: [messages] exten => 7777,1,Set(MESSAGE(body)=Hello back!) exten => 7777,2,MessageSend(sip:503XXXXXXX@67.231.8.XXX) When I call the extension I get this result: -- Executing [7777@messages:1] Set("SIP/901-00000042", "MESSAGE(body)=Hello back!") in new stack -- Executing [7777@messages:2] MessageSend("SIP/901-00000042", "sip:503XXXXXXX@67.231.8.XXX") in new stack Reliably Transmitting (NAT) to 67.231.8.XXX:5060: MESSAGE sip:67.231.8.XXX SIP/2.0 Via: SIP/2.0/UDP 107.22.85.XXX:5060;branch=z9hG4bK3d4cc080;rport Max-Forwards: 70 From: "asterisk" <sip:asterisk@107.22.85.XXX>;tag=as00bf1c28 To: <sip:67.231.8.XXX> Contact: <sip:asterisk@107.22.85.XXX:5060> Call-ID: 28b41180431f90532cd26fc647d93bb8@174.129.239.190:0 CSeq: 102 MESSAGE User-Agent: Asterisk PBX 10.0.0-beta2 Content-Type: text/plain;charset=UTF-8 Content-Length: 11 Hello back! --- Scheduling destruction of SIP dialog '28b41180431f90532cd26fc647d93bb8@174.129.239.190:0' in 32000 ms (Method: MESSAGE) -- Auto fallthrough, channel 'SIP/901-00000042' status is 'UNKNOWN' Scheduling destruction of SIP dialog 'MTI1MDJmMzM4ZWJmMTY5MmU2MzFjYjBmMmY5M2I5OGI.' in 32000 ms (Method: INVITE) <--- Reliably Transmitting (NAT) to 50.43.101.83:63263 ---> SIP/2.0 603 Declined Via: SIP/2.0/UDP 50.43.101.83:63263;branch=z9hG4bK-d8754z-cd88897beba3903f-1---d8754z-;received=50.43.101.83;rport=63263 From: <sip:901@107.22.85.XXX>;tag=92362c37 To: <sip:7777@107.22.85.XXX>;tag=as33a732fd Call-ID: MTI1MDJmMzM4ZWJmMTY5MmU2MzFjYjBmMmY5M2I5OGI. CSeq: 1 INVITE Server: Asterisk PBX 10.0.0-beta2 Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH Supported: replaces, timer Content-Length: 0 <------------> Notice the to field drops the phone number, it should be "To: <sip:503XXXXXXX@67.231.8.XXX>", but instead it gets cut down to: "To: <sip:67.231.8.XXX>". Thanks! | ||||||
Comments: | By: David Vossel (dvossel) 2011-11-22 09:58:02.074-0600 What happens when you do this? [messages] exten => 7777,1,Set(MESSAGE(body)=Hello back!) exten => 7777,n,Set(MESSAGE_DATA(To)=sip:503XXXXXXX@64.231.8.XXX) exten => 7777,2,MessageSend(sip:503XXXXXXX@67.231.8.XXX) By: Shaun Clark (shaunc869) 2011-11-22 10:08:44.303-0600 exten => 7777,1,Set(MESSAGE(Body)=Hello back) exten => 7777,2,Set(MESSAGE_DATA(To)=sip:1503XXXXXXX@sms-proxy-01.helloworld.com) exten => 7777,3,MessageSend(sip:1503XXXXXXX@sms-proxy-01.helloworld.com) <------------> -- Executing [7777@from-internal:1] GoTo("SIP/901-0000004a", "messages,7777,1") -- Goto (messages,7777,1) -- Executing [7777@messages:1] Set("SIP/901-0000004a", "MESSAGE(Body)=Hello back") in new stack -- Executing [7777@messages:2] Set("SIP/901-0000004a", "MESSAGE_DATA(To)=sip:1503XXXXXXX@sms-proxy-01.helloworld.com") in new stack -- Executing [7777@messages:3] MessageSend("SIP/901-0000004a", "sip:1503XXXXXXX@sms-proxy-01.helloworld.com") in new stack > ast_get_srv: SRV lookup for '_sip._udp.sms-proxy-01.helloworld.com' mapped to host sipgw-196.jfk1.helloworld.com, port 5060 Reliably Transmitting (NAT) to 67.231.8.196:5060: MESSAGE sip:sms-proxy-01.helloworld.com SIP/2.0 Via: SIP/2.0/UDP 107.22.85.XXX:5060;branch=z9hG4bK660bc769;rport Max-Forwards: 70 From: "asterisk" <sip:asterisk@107.22.85.XXX>;tag=as1f79d4fd To: <sip:sms-proxy-01.helloworld.com> Contact: <sip:asterisk@107.22.85.XXX:5060> Call-ID: 62e302db49b9519e1e41177a463a1011@174.129.239.190:0 CSeq: 102 MESSAGE User-Agent: Asterisk PBX 10.0.0-beta2 To: sip:1503XXXXXXX@sms-proxy-01.helloworld.com Content-Type: text/plain;charset=UTF-8 Content-Length: 10 Hello back --- Scheduling destruction of SIP dialog '62e302db49b9519e1e41177a463a1011@174.129.239.190:0' in 32000 ms (Method: MESSAGE) -- Auto fallthrough, channel 'SIP/901-0000004a' status is 'UNKNOWN' Scheduling destruction of SIP dialog 'ZWRkOGYyMmUzM2VjMmZkMjhhNGNiMGQ5MDZjZTE4ZWU.' in 32000 ms (Method: INVITE) <--- Reliably Transmitting (NAT) to 50.43.101.XX:7650 ---> SIP/2.0 603 Declined Via: SIP/2.0/UDP 50.43.101.XX:7650;branch=z9hG4bK-d8754z-76498e254789af76-1---d8754z-;received=50.43.101.XX;rport=7650 From: <sip:901@107.22.85.XXX>;tag=35144501 To: <sip:7777@107.22.85.XXX>;tag=as3599300f Call-ID: ZWRkOGYyMmUzM2VjMmZkMjhhNGNiMGQ5MDZjZTE4ZWU. CSeq: 1 INVITE Server: Asterisk PBX 10.0.0-beta2 Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH Supported: replaces, timer Content-Length: 0 <------------> By: Shaun Clark (shaunc869) 2011-11-23 11:24:33.887-0600 I now get this error: <------------> -- Executing [7777@from-internal:1] GoTo("SIP/901-00000001", "messages,7777,1") -- Goto (messages,7777,1) -- Executing [7777@messages:1] Set("SIP/901-00000001", "MESSAGE(Body)=Hello back") in new stack -- Executing [7777@messages:2] Set("SIP/901-00000001", "MESSAGE_DATA(To)=sip:1503XXXXXXX@sms-proxy-01.helloworld.com") in new stack -- Executing [7777@messages:3] MessageSend("SIP/901-00000001", "sip:1503XXXXXXX@sms-proxy-01.helloworld.com") in new stack > ast_get_srv: SRV lookup for '_sip._udp.sms-proxy-01.helloworld.com' mapped to host sipgw-196.jfk1.helloworld.com, port 5060 Reliably Transmitting (NAT) to 67.231.8.196:5060: MESSAGE sip:1503XXXXXXX@sms-proxy-01.helloworld.com SIP/2.0 Via: SIP/2.0/UDP 107.22.85.XXX:5060;branch=z9hG4bK7aa08820;rport Max-Forwards: 70 From: "asterisk" <sip:asterisk@107.22.85.XXX>;tag=as00b7e986 To: <sip:1503XXXXXXX@sms-proxy-01.helloworld.com> Contact: <sip:asterisk@107.22.85.XXX:5060> Call-ID: 6fc3aa26070d865c33980ccf1c3d7984@174.129.239.190:0 CSeq: 102 MESSAGE User-Agent: Asterisk PBX SVN-branch-10-r346040 To: sip:1503XXXXXXX@sms-proxy-01.helloworld.com Content-Type: text/plain;charset=UTF-8 Content-Length: 10 Hello back --- Scheduling destruction of SIP dialog '6fc3aa26070d865c33980ccf1c3d7984@174.129.239.190:0' in 32000 ms (Method: MESSAGE) -- Auto fallthrough, channel 'SIP/901-00000001' status is 'UNKNOWN' Scheduling destruction of SIP dialog 'NTY3ZjdhNDU4YWUxNjgyODU4ODY5MjdhNmE4OWE4ODE.' in 32000 ms (Method: INVITE) <--- Reliably Transmitting (NAT) to 50.43.101.XX:28127 ---> SIP/2.0 603 Declined Via: SIP/2.0/UDP 50.43.101.XX:28127;branch=z9hG4bK-d8754z-6f665606a1fbaf51-1---d8754z-;received=50.43.101.XX;rport=28127 From: <sip:901@107.22.85.XXX>;tag=c30a904a To: <sip:7777@107.22.85.XXX>;tag=as35203488 Call-ID: NTY3ZjdhNDU4YWUxNjgyODU4ODY5MjdhNmE4OWE4ODE. CSeq: 1 INVITE Server: Asterisk PBX SVN-branch-10-r346040 Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH Supported: replaces, timer Content-Length: 0 <------------> <--- SIP read from UDP:67.231.8.196:5060 ---> SIP/2.0 100 Trying Via: SIP/2.0/UDP 107.22.85.XXX:5060;branch=z9hG4bK7aa08820;rport=5060 From: "asterisk" <sip:asterisk@107.22.85.XXX>;tag=as00b7e986 To: <sip:1503XXXXXXX@sms-proxy-01.helloworld.com> Call-ID: 6fc3aa26070d865c33980ccf1c3d7984@174.129.239.190:0 CSeq: 102 MESSAGE To: sip:1503XXXXXXX@sms-proxy-01.helloworld.com Server: Bandwidth.com CLEC Content-Length: 0 <-------------> --- (9 headers 0 lines) --- <--- SIP read from UDP:50.43.101.XX:28127 ---> ACK sip:7777@107.22.85.XXX SIP/2.0 Via: SIP/2.0/UDP 50.43.101.XX:28127;branch=z9hG4bK-d8754z-6f665606a1fbaf51-1---d8754z-;rport Max-Forwards: 70 To: <sip:7777@107.22.85.XXX>;tag=as35203488 From: <sip:901@107.22.85.XXX>;tag=c30a904a Call-ID: NTY3ZjdhNDU4YWUxNjgyODU4ODY5MjdhNmE4OWE4ODE. CSeq: 1 ACK Content-Length: 0 <-------------> --- (8 headers 0 lines) --- <--- SIP read from UDP:67.231.8.196:5060 ---> SIP/2.0 484 Address Incomplete Call-ID: 6fc3aa26070d865c33980ccf1c3d7984@174.129.239.190:0 CSeq: 102 MESSAGE From: "asterisk" <sip:asterisk@107.22.85.XXX>;tag=as00b7e986 To: <sip:1503XXXXXXX@bandwidth.nextamh.syniverse.com>;tag=172.21.1.115338+1+dde1001c+2ac81b2a Via: SIP/2.0/UDP 107.22.85.XXX:5060;received=107.22.85.XXX;branch=z9hG4bK7aa08820;rport=5060 Server: DC-SIP/2.0 Content-Length: 0 <-------------> --- (8 headers 0 lines) --- -- Got SIP MESSAGE response 484 "Address Incomplete" back from host '67.231.8.196:5060' Really destroying SIP dialog '6fc3aa26070d865c33980ccf1c3d7984@174.129.239.190:0' Method: MESSAGE <--- SIP read from UDP:50.43.101.XX:28127 ---> <-------------> cent01*CLI> Should I open another issue? |