<p>Hello <a class="user-mention" data-hovercard-user-id="29600456" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/christoph-v">@christoph-v</a></p>
<p>Below log is from S-CSCF. For some reason S-CSCF is forwarding the packets to HSS(hss.net1.test:5065) and not to AS. When I run netcat(nc -vv -u -l  5065) on HSS, I am able to see SIP packets.<br>
Not sure why ims_isc module is sending the packets to HSS. HSS host name is present only on Bind configuration and scscf.xml file.  So I am assuming that S-CSCF is picking  parameter from scscf.xml.</p>
<pre><code> 0(3491) DEBUG: ims_isc [checker.c:456]: isc_checker_find(): About to try p->s->service_profiles[a].filter_criterai_cnt
 0(3491) DEBUG: ims_isc [checker.c:467]: isc_checker_find(): DEBUG ISC: SECOND TIME About to try p->s->service_profiles_cnt!!
 0(3491) DEBUG: ims_isc [checker.c:471]: isc_checker_find(): DEBUG ISC : About to try p->s->service_profiles
 0(3491) DEBUG: ims_isc [checker.c:474]: isc_checker_find(): DEBUG ISC : About to try public identities
 0(3491) DEBUG: ims_isc [checker.c:477]: isc_checker_find(): DEBUG ISC : About to try WPSI
 0(3491) DEBUG: ims_isc [checker.c:319]: isc_check_filter_criteria(): ifc_checker_trigger: Starting expression check:
 0(3491) DEBUG: ims_isc [checker.c:239]: isc_check_spt(): ifc_check_spt:             SPT type 2 -> Method == PUBLISH ?
 0(3491) DEBUG: ims_isc [checker.c:241]: isc_check_spt(): ifc_check_spt:               Found method SUBSCRIBE
 0(3491) DEBUG: ims_isc [checker.c:340]: isc_check_filter_criteria(): ifc_checker_trigger:       - group compromised, skipping to next group
 0(3491) DEBUG: ims_isc [checker.c:239]: isc_check_spt(): ifc_check_spt:             SPT type 2 -> Method == PUBLISH ?
 0(3491) DEBUG: ims_isc [checker.c:241]: isc_check_spt(): ifc_check_spt:               Found method SUBSCRIBE
 0(3491) DEBUG: ims_isc [checker.c:333]: isc_check_filter_criteria(): ifc_checker_trigger:  - group 1 => 0.
 0(3491) DEBUG: ims_isc [checker.c:340]: isc_check_filter_criteria(): ifc_checker_trigger:       - group compromised, skipping to next group
 0(3491) DEBUG: ims_isc [checker.c:239]: isc_check_spt(): ifc_check_spt:             SPT type 2 -> Method == SUBSCRIBE ?
 0(3491) DEBUG: ims_isc [checker.c:241]: isc_check_spt(): ifc_check_spt:               Found method SUBSCRIBE
 0(3491) DEBUG: ims_isc [checker.c:333]: isc_check_filter_criteria(): ifc_checker_trigger:  - group 2 => 1.
 0(3491) DEBUG: ims_isc [checker.c:252]: isc_check_spt(): ifc_check_spt:             SPT type 3 -> Header[Event]  %= .*presence.* ?
 0(3491) DEBUG: ims_isc [checker.c:88]: isc_check_headers(): isc_check_headers: Looking for Header[Event(22)] .*presence.*
 0(3491) DEBUG: ims_isc [checker.c:99]: isc_check_headers(): isc_check_headers: Found Header[Event(22)] message-summary
 0(3491) DEBUG: ims_isc [checker.c:99]: isc_check_headers(): isc_check_headers: Found Header[Allow-Events(39)] refer, presence, presence.winfo, xcap-diff, conference
 0(3491) DEBUG: ims_isc [checker.c:261]: isc_check_spt(): ifc_check_spt:             SPT type 4 -> Session Case  == 1 ?
 0(3491) DEBUG: ims_isc [checker.c:263]: isc_check_spt(): ifc_check_spt:               Found session_case 1
 0(3491) DEBUG: ims_isc [checker.c:326]: isc_check_filter_criteria(): ifc_checker_trigger: Total compromised, aborting...
 0(3491) DEBUG: ims_isc [checker.c:518]: isc_checker_find(): isc_checker_find: MATCH -> sip:hss.net1.test:5065 () handling 0
 0(3491) DEBUG: ims_isc [isc.c:63]: isc_forward(): marking for AS <sip:hss.net1.test:5065>
 0(3491) DEBUG: ims_isc [mark.c:207]: isc_mark_drop_route(): ifc_mark_drop_route: Start ---------
 0(3491) DEBUG: ims_isc [mark.c:221]: isc_mark_drop_route(): ifc_mark_drop_route: ---------- End
 0(3491) DEBUG: ims_isc [mark.c:293]: isc_mark_write_route(): isc_mark_write_route: <Route: <sip:hss.net1.test:5065;lr>, <sip:iscmark@scscf.net1.test;lr;s=1;h=0;d=1;a=7369703a616c69636540696d732e6d6e633030312e6d63633030312e336770706e6574776f726b2e6f7267>
>
 0(3491) DEBUG: ims_isc [mark.c:355]: isc_mark_write_psu(): isc_mark_write_psu: P-Served-User: <sip:alice@net1.test>;sescase=term;regstate=reg
 0(3491) DEBUG: ims_isc [mark.c:259]: isc_mark_set(): isc_mark_set: NEW mark <sip:iscmark@net1.test;lr;s=1;h=0;d=1;a=7369703a616c69636540696d732e6d6e633030312e6d63633030312e336770706e6574776f726b2e6f7267>
</code></pre>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/pull/1538#issuecomment-394065973">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AF36ZTZhpMwus8NckBTcATZ4a_6KHffwks5t4j3RgaJpZM4UIgAy">mute the thread</a>.<img src="https://github.com/notifications/beacon/AF36Zd5WaRR0HDXnjqzu26Ge54OO3aW1ks5t4j3RgaJpZM4UIgAy.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","potentialAction":{"@type":"ViewAction","target":"https://github.com/kamailio/kamailio/pull/1538#issuecomment-394065973","url":"https://github.com/kamailio/kamailio/pull/1538#issuecomment-394065973","name":"View Pull Request"},"description":"View this Pull Request on GitHub","publisher":{"@type":"Organization","name":"GitHub","url":"https://github.com"}}</script>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/kamailio/kamailio","title":"kamailio/kamailio","subtitle":"GitHub repository","main_image_url":"https://assets-cdn.github.com/images/email/message_cards/header.png","avatar_image_url":"https://assets-cdn.github.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/kamailio/kamailio"}},"updates":{"snippets":[{"icon":"PERSON","message":"@uts09 in #1538: Hello @christoph-v \r\n\r\nBelow log is from S-CSCF. For some reason S-CSCF is forwarding the packets to HSS(hss.net1.test:5065) and not to AS. When I run netcat(nc -vv -u -l  5065) on HSS, I am able to see SIP packets. \r\nNot sure why ims_isc module is sending the packets to HSS. HSS host name is present only on Bind configuration and scscf.xml file.  So I am assuming that S-CSCF is picking \u003cDefaultroute\u003e parameter from scscf.xml.\r\n\r\n```\r\n 0(3491) DEBUG: ims_isc [checker.c:456]: isc_checker_find(): About to try p-\u003es-\u003eservice_profiles[a].filter_criterai_cnt\r\n 0(3491) DEBUG: ims_isc [checker.c:467]: isc_checker_find(): DEBUG ISC: SECOND TIME About to try p-\u003es-\u003eservice_profiles_cnt!!\r\n 0(3491) DEBUG: ims_isc [checker.c:471]: isc_checker_find(): DEBUG ISC : About to try p-\u003es-\u003eservice_profiles\r\n 0(3491) DEBUG: ims_isc [checker.c:474]: isc_checker_find(): DEBUG ISC : About to try public identities\r\n 0(3491) DEBUG: ims_isc [checker.c:477]: isc_checker_find(): DEBUG ISC : About to try WPSI\r\n 0(3491) DEBUG: ims_isc [checker.c:319]: isc_check_filter_criteria(): ifc_checker_trigger: Starting expression check:\r\n 0(3491) DEBUG: ims_isc [checker.c:239]: isc_check_spt(): ifc_check_spt:             SPT type 2 -\u003e Method == PUBLISH ?\r\n 0(3491) DEBUG: ims_isc [checker.c:241]: isc_check_spt(): ifc_check_spt:               Found method SUBSCRIBE\r\n 0(3491) DEBUG: ims_isc [checker.c:340]: isc_check_filter_criteria(): ifc_checker_trigger:       - group compromised, skipping to next group\r\n 0(3491) DEBUG: ims_isc [checker.c:239]: isc_check_spt(): ifc_check_spt:             SPT type 2 -\u003e Method == PUBLISH ?\r\n 0(3491) DEBUG: ims_isc [checker.c:241]: isc_check_spt(): ifc_check_spt:               Found method SUBSCRIBE\r\n 0(3491) DEBUG: ims_isc [checker.c:333]: isc_check_filter_criteria(): ifc_checker_trigger:  - group 1 =\u003e 0.\r\n 0(3491) DEBUG: ims_isc [checker.c:340]: isc_check_filter_criteria(): ifc_checker_trigger:       - group compromised, skipping to next group\r\n 0(3491) DEBUG: ims_isc [checker.c:239]: isc_check_spt(): ifc_check_spt:             SPT type 2 -\u003e Method == SUBSCRIBE ?\r\n 0(3491) DEBUG: ims_isc [checker.c:241]: isc_check_spt(): ifc_check_spt:               Found method SUBSCRIBE\r\n 0(3491) DEBUG: ims_isc [checker.c:333]: isc_check_filter_criteria(): ifc_checker_trigger:  - group 2 =\u003e 1.\r\n 0(3491) DEBUG: ims_isc [checker.c:252]: isc_check_spt(): ifc_check_spt:             SPT type 3 -\u003e Header[Event]  %= .*presence.* ?\r\n 0(3491) DEBUG: ims_isc [checker.c:88]: isc_check_headers(): isc_check_headers: Looking for Header[Event(22)] .*presence.*\r\n 0(3491) DEBUG: ims_isc [checker.c:99]: isc_check_headers(): isc_check_headers: Found Header[Event(22)] message-summary\r\n 0(3491) DEBUG: ims_isc [checker.c:99]: isc_check_headers(): isc_check_headers: Found Header[Allow-Events(39)] refer, presence, presence.winfo, xcap-diff, conference\r\n 0(3491) DEBUG: ims_isc [checker.c:261]: isc_check_spt(): ifc_check_spt:             SPT type 4 -\u003e Session Case  == 1 ?\r\n 0(3491) DEBUG: ims_isc [checker.c:263]: isc_check_spt(): ifc_check_spt:               Found session_case 1\r\n 0(3491) DEBUG: ims_isc [checker.c:326]: isc_check_filter_criteria(): ifc_checker_trigger: Total compromised, aborting...\r\n 0(3491) DEBUG: ims_isc [checker.c:518]: isc_checker_find(): isc_checker_find: MATCH -\u003e sip:hss.net1.test:5065 () handling 0\r\n 0(3491) DEBUG: ims_isc [isc.c:63]: isc_forward(): marking for AS \u003csip:hss.net1.test:5065\u003e\r\n 0(3491) DEBUG: ims_isc [mark.c:207]: isc_mark_drop_route(): ifc_mark_drop_route: Start ---------\r\n 0(3491) DEBUG: ims_isc [mark.c:221]: isc_mark_drop_route(): ifc_mark_drop_route: ---------- End\r\n 0(3491) DEBUG: ims_isc [mark.c:293]: isc_mark_write_route(): isc_mark_write_route: \u003cRoute: \u003csip:hss.net1.test:5065;lr\u003e, \u003csip:iscmark@scscf.net1.test;lr;s=1;h=0;d=1;a=7369703a616c69636540696d732e6d6e633030312e6d63633030312e336770706e6574776f726b2e6f7267\u003e\r\n\u003e\r\n 0(3491) DEBUG: ims_isc [mark.c:355]: isc_mark_write_psu(): isc_mark_write_psu: P-Served-User: \u003csip:alice@net1.test\u003e;sescase=term;regstate=reg\r\n 0(3491) DEBUG: ims_isc [mark.c:259]: isc_mark_set(): isc_mark_set: NEW mark \u003csip:iscmark@net1.test;lr;s=1;h=0;d=1;a=7369703a616c69636540696d732e6d6e633030312e6d63633030312e336770706e6574776f726b2e6f7267\u003e\r\n```\r\n"}],"action":{"name":"View Pull Request","url":"https://github.com/kamailio/kamailio/pull/1538#issuecomment-394065973"}}}</script>
<script type="application/ld+json">{
"@type": "MessageCard",
"@context": "http://schema.org/extensions",
"hideOriginalBody": "false",
"originator": "37567f93-e2a7-4e2a-ad37-a9160fc62647",
"title": "Re: [kamailio/kamailio] Bugfix issue 1168 - Unregistered Terminating Services (PSI) Configured at HSS (#1538)",
"sections": [
{
"text": "",
"activityTitle": "**uts09**",
"activityImage": "https://assets-cdn.github.com/images/email/message_cards/avatar.png",
"activitySubtitle": "@uts09",
"facts": [

]
}
],
"potentialAction": [
{
"name": "Add a comment",
"@type": "ActionCard",
"inputs": [
{
"isMultiLine": true,
"@type": "TextInput",
"id": "IssueComment",
"isRequired": false
}
],
"actions": [
{
"name": "Comment",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"IssueComment\",\n\"repositoryFullName\": \"kamailio/kamailio\",\n\"issueId\": 1538,\n\"IssueComment\": \"{{IssueComment.value}}\"\n}"
}
]
},
{
"targets": [
{
"os": "default",
"uri": "https://github.com/kamailio/kamailio/pull/1538#issuecomment-394065973"
}
],
"@type": "OpenUri",
"name": "View on GitHub"
},
{
"name": "Unsubscribe",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"MuteNotification\",\n\"threadId\": 337772594\n}"
}
],
"themeColor": "26292E"
}</script>