Hi,

I am trying to register a subscriber with a user=phone parameter. I want
the user=phone parameter to be passed to the TAS for the 3rd-party
registration.

It looks like sprout receives the To header as:

To: <sip:[email protected];user=phone>

But sends the HSS lookup to Homestead like this:

07-03-2016 14:35:53.552 UTC Debug httpconnection.cpp:623: Sending HTTP
request :
http://ec2-52-3-140-139.compute-1.amazonaws.com:8888/impi/%2B6505550202%40example.com/registration-status?impu=sip%3A%2B6505550202%40example.com&visited-network=example.com&auth-type=REG
(trying 172.31.45.86) on new connection

which fails to find my IMPU because I have sip:[email protected]
;user=phone in the HSS. So the registration fails.

I tried adding a second IMPU in the HSS without user=phone (i.e.
sip:[email protected]), but then Homestead finds that entry and
Sprout sends the 3rd-party reg to the TAS without user=phone.

Is there a way to preserve the user=phone param throughout the whole
registration?

I tried adding enforce_user_phone=Y and enforce_global_only_lookups=Y to my
/etc/cleawater/shared_config file but that didn't seem to help.

cheers
Steve Yeoman
07-03-2016 14:44:50.823 UTC Verbose pjsip: tcps0x7fa8700a TCP transport destroyed with reason 70016: End of file (PJ_EEOF)
07-03-2016 14:44:54.294 UTC Debug pjsip: sip_endpoint.c Processing incoming message: Request msg REGISTER/cseq=2 (rdata0x238c8a8)
07-03-2016 14:44:54.294 UTC Verbose common_sip_processing.cpp:120: RX 952 bytes Request msg REGISTER/cseq=2 (rdata0x238c8a8) from UDP 172.31.33.66:5054:
--start msg--

REGISTER sip:example.com;user=phone SIP/2.0
Via: SIP/2.0/UDP 172.31.33.66:5054;branch=z9hG4bK+747e956d7a0757034ea7a148e308ae931+sip+4+a64de9f4
From: <sip:[email protected];user=phone>;tag=172.31.33.66+4+c2fd8086+e7791506
Content-Length: 0
P-Charging-Function-Addresses: ccf=pri_ccf_address
Require: Path
Path: <sip:172.31.33.66:5054;lr>
P-Charging-Vector: icid-value=9f80bcc0e1ae60184fabb42154f5ec59
Supported: gruu
To: <sip:[email protected];user=phone>
Call-ID: 0gQAAC8WAAACBAAALxYAABygN6DSz3uAH+OabEETmoVDanSkEztVGOo3W6vy3ZyU@172.31.33.66
CSeq: 2 REGISTER
Max-Forwards: 69
User-Agent: Quaff SIP Scripting Engine
Authorization: Digest username="[email protected]"
P-Visited-Network-ID: example.com
Contact: <sip:172.31.34.74:34795;transport=UDP>;Expires=3600;+sip.instance="<urn:uuid:84140c8c-3754-5c95-a59b-c686a90df68c>";+g.3gpp.smsip
Route: <sip:172.31.45.86:5052;lr>
P-Access-Network-Info: 3GPP-E-UTRAN-FDD


--end msg--
07-03-2016 14:44:54.294 UTC Debug pjutils.cpp:1648: Logging SAS Call-ID marker, Call-ID 0gQAAC8WAAACBAAALxYAABygN6DSz3uAH+OabEETmoVDanSkEztVGOo3W6vy3ZyU@172.31.33.66
07-03-2016 14:44:54.294 UTC Debug thread_dispatcher.cpp:253: Queuing cloned received message 0x7fa8700c7cf8 for worker threads
07-03-2016 14:44:54.294 UTC Debug thread_dispatcher.cpp:149: Worker thread dequeue message 0x7fa8700c7cf8
07-03-2016 14:44:54.294 UTC Debug pjsip: sip_endpoint.c Distributing rdata to modules: Request msg REGISTER/cseq=2 (rdata0x7fa8700c7cf8)
07-03-2016 14:44:54.294 UTC Debug uri_classifier.cpp:167: home domain: true, local_to_node: false, is_gruu: false, enforce_user_phone: true, prefer_sip: true, treat_number_as_phone: false
07-03-2016 14:44:54.294 UTC Debug uri_classifier.cpp:197: Classified URI as 1
07-03-2016 14:44:54.294 UTC Debug authentication.cpp:666: Authentication module invoked
07-03-2016 14:44:54.294 UTC Debug authentication.cpp:532: Request does not need authentication - not on S-CSCF port
07-03-2016 14:44:54.294 UTC Debug authentication.cpp:676: Request does not need authentication
07-03-2016 14:44:54.294 UTC Debug uri_classifier.cpp:167: home domain: true, local_to_node: false, is_gruu: false, enforce_user_phone: true, prefer_sip: true, treat_number_as_phone: false
07-03-2016 14:44:54.294 UTC Debug uri_classifier.cpp:197: Classified URI as 1
07-03-2016 14:44:54.294 UTC Debug basicproxy.cpp:92: Process REGISTER request
07-03-2016 14:44:54.295 UTC Verbose sproutletproxy.cpp:436: Sproutlet Proxy transaction (0x7fa81c00c790) created
07-03-2016 14:44:54.295 UTC Debug basicproxy.cpp:1247: Report SAS start marker - trail (8)
07-03-2016 14:44:54.295 UTC Debug pjutils.cpp:674: Cloned Request msg REGISTER/cseq=2 (rdata0x7fa8700c7cf8) to tdta0x7fa81c00cc10
07-03-2016 14:44:54.295 UTC Debug pjsip: tsx0x7fa81c00f Transaction created for Request msg REGISTER/cseq=2 (rdata0x7fa8700c7cf8)
07-03-2016 14:44:54.295 UTC Debug pjsip: tsx0x7fa81c00f Incoming Request msg REGISTER/cseq=2 (rdata0x7fa8700c7cf8) in state Null
07-03-2016 14:44:54.295 UTC Debug pjsip: tsx0x7fa81c00f State changed from Null to Trying, event=RX_MSG
07-03-2016 14:44:54.295 UTC Debug basicproxy.cpp:213: tsx0x7fa81c00f098 - tu_on_tsx_state UAS, TSX_STATE RX_MSG state=Trying
07-03-2016 14:44:54.295 UTC Debug pjsip:       endpoint Response msg 408/REGISTER/cseq=2 (tdta0x7fa81c00f800) created
07-03-2016 14:44:54.295 UTC Debug sproutletproxy.cpp:102: Find target Sproutlet for request
07-03-2016 14:44:54.295 UTC Debug sproutletproxy.cpp:136: Found next routable URI: sip:172.31.45.86:5052;lr
07-03-2016 14:44:54.295 UTC Debug sproutletproxy.cpp:175: No Sproutlet found using service name or host
07-03-2016 14:44:54.295 UTC Debug sproutletproxy.cpp:180: Find default service for port 5052
07-03-2016 14:44:54.295 UTC Verbose sproutletproxy.cpp:1062: Created Sproutlet icscf-0x7fa81c0008c0 for Request msg REGISTER/cseq=2 (tdta0x7fa81c00cc10)
07-03-2016 14:44:54.295 UTC Verbose sproutletproxy.cpp:1967: Routing Request msg REGISTER/cseq=2 (tdta0x7fa81c00cc10) (1000 bytes) to downstream sproutlet icscf:
--start msg--

REGISTER sip:example.com;user=phone SIP/2.0
Via: SIP/2.0/UDP 172.31.33.66:5054;received=172.31.33.66;branch=z9hG4bK+747e956d7a0757034ea7a148e308ae931+sip+4+a64de9f4
From: <sip:[email protected];user=phone>;tag=172.31.33.66+4+c2fd8086+e7791506
P-Charging-Function-Addresses: ccf=pri_ccf_address
Require: Path
Path: <sip:172.31.33.66:5054;lr>
P-Charging-Vector: icid-value="9f80bcc0e1ae60184fabb42154f5ec59"
Supported: gruu
To: <sip:[email protected];user=phone>
Call-ID: 0gQAAC8WAAACBAAALxYAABygN6DSz3uAH+OabEETmoVDanSkEztVGOo3W6vy3ZyU@172.31.33.66
CSeq: 2 REGISTER
Max-Forwards: 69
User-Agent: Quaff SIP Scripting Engine
Authorization: Digest response="", username="[email protected]", nonce=""
P-Visited-Network-ID: example.com
Contact: <sip:172.31.34.74:34795;transport=UDP>;expires=3600;+sip.instance="<urn:uuid:84140c8c-3754-5c95-a59b-c686a90df68c>";+g.3gpp.smsip
Route: <sip:172.31.45.86:5052;lr>
P-Access-Network-Info: 3GPP-E-UTRAN-FDD
Content-Length:  0


--end msg--
07-03-2016 14:44:54.295 UTC Debug pjutils.cpp:691: Cloned tdta0x7fa81c00cc10 to tdta0x7fa81c0109e0
07-03-2016 14:44:54.295 UTC Debug sproutletproxy.cpp:1123: Remove top Route header Route: <sip:172.31.45.86:5052;lr>
07-03-2016 14:44:54.295 UTC Debug sproutletproxy.cpp:1640: Adding message 0x7fa81c010ff0 => txdata 0x7fa81c010a88 mapping
07-03-2016 14:44:54.295 UTC Verbose sproutletproxy.cpp:1492: icscf-0x7fa81c0008c0 pass initial request Request msg REGISTER/cseq=2 (tdta0x7fa81c0109e0) to Sproutlet
07-03-2016 14:44:54.295 UTC Debug acr.cpp:49: Created ACR (0x7fa81c012a10)
07-03-2016 14:44:54.295 UTC Debug icscfsproutlet.cpp:185: I-CSCF initialize transaction for REGISTER request
07-03-2016 14:44:54.295 UTC Debug icscfrouter.cpp:347: Perform UAR - impi [email protected], impu sip:[email protected], vn example.com, auth_type REG
07-03-2016 14:44:54.296 UTC Debug httpconnection.cpp:183: Allocated CURL handle 0x7fa81c012e20
07-03-2016 14:44:54.296 UTC Debug httpresolver.cpp:71: HttpResolver::resolve for host ec2-52-3-140-139.compute-1.amazonaws.com, port 8888, family 2
07-03-2016 14:44:54.296 UTC Debug baseresolver.cpp:505: Attempt to parse ec2-52-3-140-139.compute-1.amazonaws.com as IP address
07-03-2016 14:44:54.296 UTC Verbose dnscachedresolver.cpp:237: Check cache for ec2-52-3-140-139.compute-1.amazonaws.com type 1
07-03-2016 14:44:54.296 UTC Debug dnscachedresolver.cpp:243: No entry found in cache
07-03-2016 14:44:54.296 UTC Debug dnscachedresolver.cpp:246: Create cache entry pending query
07-03-2016 14:44:54.297 UTC Debug dnscachedresolver.cpp:279: Create and execute DNS query transaction
07-03-2016 14:44:54.297 UTC Debug dnscachedresolver.cpp:291: Wait for query responses
07-03-2016 14:44:54.298 UTC Debug dnscachedresolver.cpp:432: Received DNS response for ec2-52-3-140-139.compute-1.amazonaws.com type A
07-03-2016 14:44:54.298 UTC Debug dnsparser.cpp:90: Parsing DNS message
000000: 684f8180 00010001 00000000 10656332 2d35322d 332d3134 302d3133 3909636f    hO.. .... .... .ec2 -52- 3-14 0-13 9.co 
000020: 6d707574 652d3109 616d617a 6f6e6177 7303636f 6d000001 0001c00c 00010001    mput e-1. amaz onaw s.co m... .... .... 
000040: 00000014 0004ac1f 2d56                                                     .... .... -V                            

07-03-2016 14:44:54.298 UTC Debug dnsparser.cpp:95: Parsing header at offset 0x0
07-03-2016 14:44:54.298 UTC Debug dnsparser.cpp:98: 1 questions, 1 answers, 0 authorities, 0 additional records
07-03-2016 14:44:54.298 UTC Debug dnsparser.cpp:103: Parsing question 1 at offset 0xc
07-03-2016 14:44:54.298 UTC Debug dnsparser.cpp:229: Parsed domain name = ec2-52-3-140-139.compute-1.amazonaws.com, encoded length = 42
07-03-2016 14:44:54.298 UTC Debug dnsparser.cpp:112: Parsing answer 1 at offset 0x3a
07-03-2016 14:44:54.298 UTC Debug dnsparser.cpp:229: Parsed domain name = ec2-52-3-140-139.compute-1.amazonaws.com, encoded length = 2
07-03-2016 14:44:54.298 UTC Debug dnsparser.cpp:282: Resource Record NAME=ec2-52-3-140-139.compute-1.amazonaws.com TYPE=A CLASS=IN TTL=20 RDLENGTH=4
07-03-2016 14:44:54.298 UTC Debug dnsparser.cpp:287: Parse A record RDATA
07-03-2016 14:44:54.298 UTC Debug dnsparser.cpp:142: Answer records
ec2-52-3-140-139.compute-1.amazonaws.com 20      IN      A       172.31.45.86

07-03-2016 14:44:54.298 UTC Debug dnsparser.cpp:143: Authority records

07-03-2016 14:44:54.298 UTC Debug dnsparser.cpp:144: Additional records

07-03-2016 14:44:54.298 UTC Debug dnscachedresolver.cpp:701: Adding record to cache entry, TTL=20, expiry=1457361914
07-03-2016 14:44:54.298 UTC Debug dnscachedresolver.cpp:705: Update cache entry expiry to 1457361914
07-03-2016 14:44:54.298 UTC Debug dnscachedresolver.cpp:647: Adding ec2-52-3-140-139.compute-1.amazonaws.com to cache expiry list with deletion time of 1457362214
07-03-2016 14:44:54.298 UTC Debug dnscachedresolver.cpp:295: Received all query responses
07-03-2016 14:44:54.298 UTC Debug dnscachedresolver.cpp:323: Pulling 1 records from cache for ec2-52-3-140-139.compute-1.amazonaws.com A
07-03-2016 14:44:54.298 UTC Debug baseresolver.cpp:353: Found 1 A/AAAA records, randomizing
07-03-2016 14:44:54.298 UTC Debug baseresolver.cpp:495: 172.31.45.86:8888 transport 6 is not blacklisted
07-03-2016 14:44:54.298 UTC Debug baseresolver.cpp:374: Added a server, now have 1 of 5
07-03-2016 14:44:54.298 UTC Debug baseresolver.cpp:412: Adding 0 servers from blacklist
07-03-2016 14:44:54.298 UTC Debug httpconnection.cpp:623: Sending HTTP request : http://ec2-52-3-140-139.compute-1.amazonaws.com:8888/impi/%2B6505550202%40example.com/registration-status?impu=sip%3A%2B6505550202%40example.com&visited-network=example.com&auth-type=REG (trying 172.31.45.86) on new connection
07-03-2016 14:44:54.304 UTC Debug httpconnection.cpp:638: Received HTTP response: status=404, doc=
07-03-2016 14:44:54.304 UTC Debug communicationmonitor.cpp:78: Check communication monitor state for alarm 1001
07-03-2016 14:44:54.304 UTC Debug communicationmonitor.cpp:88: Alarm currently clear - successful attempts 1, failures 0
07-03-2016 14:44:54.304 UTC Error httpconnection.cpp:771: cURL failure with cURL error code 0 (see man 3 libcurl-errors) and HTTP error code 404
07-03-2016 14:44:54.304 UTC Debug acr.cpp:83: Sending Null ACR (0x7fa81c012a10)
07-03-2016 14:44:54.304 UTC Info pjutils.cpp:1601: Cloning header! 140360001067840
07-03-2016 14:44:54.304 UTC Info pjutils.cpp:1601: Cloning header! 140360001066272
07-03-2016 14:44:54.304 UTC Debug sproutletproxy.cpp:1640: Adding message 0x7fa81c081020 => txdata 0x7fa81c080ab8 mapping
07-03-2016 14:44:54.304 UTC Verbose sproutletproxy.cpp:1321: icscf-0x7fa81c0008c0 sending Response msg 403/REGISTER/cseq=2 (tdta0x7fa81c080a10)
07-03-2016 14:44:54.304 UTC Debug sproutletproxy.cpp:1647: Removing message 0x7fa81c010ff0 => txdata 0x7fa81c010a88 mapping
07-03-2016 14:44:54.304 UTC Debug sproutletproxy.cpp:1398: Free message tdta0x7fa81c0109e0
07-03-2016 14:44:54.304 UTC Debug pjsip: tdta0x7fa81c01 Destroying txdata Request msg REGISTER/cseq=2 (tdta0x7fa81c0109e0)
07-03-2016 14:44:54.304 UTC Debug sproutletproxy.cpp:1655: Processing actions from sproutlet - 1 responses, 0 requests, 0 timers
07-03-2016 14:44:54.304 UTC Debug sproutletproxy.cpp:1741: Aggregating response with status code 403
07-03-2016 14:44:54.304 UTC Debug sproutletproxy.cpp:1791: 3xx/4xx/5xx/6xx response
07-03-2016 14:44:54.304 UTC Debug sproutletproxy.cpp:1795: Best 3xx/4xx/5xx/6xx response so far
07-03-2016 14:44:54.304 UTC Debug sproutletproxy.cpp:1682: All UAC responded
07-03-2016 14:44:54.305 UTC Debug sproutletproxy.cpp:1647: Removing message 0x7fa81c081020 => txdata 0x7fa81c080ab8 mapping
07-03-2016 14:44:54.305 UTC Debug pjsip: tsx0x7fa81c00f Sending Response msg 403/REGISTER/cseq=2 (tdta0x7fa81c080a10) in state Trying
07-03-2016 14:44:54.305 UTC Debug pjsip:  sip_resolve.c Target '172.31.33.66:5054' type=UDP resolved to '172.31.33.66:5054' type=UDP (UDP transport)
07-03-2016 14:44:54.305 UTC Verbose common_sip_processing.cpp:136: TX 583 bytes Response msg 403/REGISTER/cseq=2 (tdta0x7fa81c080a10) to UDP 172.31.33.66:5054:
--start msg--

SIP/2.0 403 Forbidden
Via: SIP/2.0/UDP 172.31.33.66:5054;received=172.31.33.66;branch=z9hG4bK+747e956d7a0757034ea7a148e308ae931+sip+4+a64de9f4
Call-ID: 0gQAAC8WAAACBAAALxYAABygN6DSz3uAH+OabEETmoVDanSkEztVGOo3W6vy3ZyU@172.31.33.66
From: <sip:[email protected];user=phone>;tag=172.31.33.66+4+c2fd8086+e7791506
To: <sip:[email protected];user=phone>;tag=z9hG4bK+747e956d7a0757034ea7a148e308ae931+sip+4+a64de9f4
CSeq: 2 REGISTER
P-Charging-Vector: icid-value="9f80bcc0e1ae60184fabb42154f5ec59"
P-Charging-Function-Addresses: ccf=pri_ccf_address
Content-Length:  0


--end msg--
07-03-2016 14:44:54.305 UTC Debug pjsip: tsx0x7fa81c00f State changed from Trying to Completed, event=TX_MSG
07-03-2016 14:44:54.305 UTC Debug basicproxy.cpp:213: tsx0x7fa81c00f098 - tu_on_tsx_state UAS, TSX_STATE TX_MSG state=Completed
07-03-2016 14:44:54.305 UTC Verbose sproutletproxy.cpp:1733: icscf-0x7fa81c0008c0 suiciding
07-03-2016 14:44:54.305 UTC Debug sproutletproxy.cpp:1068: Destroying SproutletWrapper 0x7fa81c010850
07-03-2016 14:44:54.305 UTC Debug acr.cpp:83: Sending Null ACR (0x7fa81c012a10)
07-03-2016 14:44:54.305 UTC Debug acr.cpp:54: Destroyed ACR (0x7fa81c012a10)
07-03-2016 14:44:54.305 UTC Debug sproutletproxy.cpp:1077: Free original request Request msg REGISTER/cseq=2 (tdta0x7fa81c00cc10) (tdta0x7fa81c00cc10)
07-03-2016 14:44:54.305 UTC Debug thread_dispatcher.cpp:193: Worker thread completed processing message 0x7fa8700c7cf8
07-03-2016 14:44:54.305 UTC Debug thread_dispatcher.cpp:199: Request latency = 10501us
_______________________________________________
Clearwater mailing list
[email protected]
http://lists.projectclearwater.org/mailman/listinfo/clearwater_lists.projectclearwater.org

Reply via email to