<p><a class="user-mention" data-hovercard-type="user" data-hovercard-url="/users/oej/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/oej">@oej</a>: it would IMHO only be simple for "static" subscriptions like "kamailio/foo" -> on_mqtt_foo().</p>
<p>But what about wildcard subscriptions like "kamailio/+/unregister" or "kamailio/#" ? I can, of course, forbit these mappings by some validation rule but a cleaner solution would be to pattern-match each incoming message against the wildcard subscription to find the correct route.</p>
<p>It's IMHO a somewhat sophisticated feature for a later version, if the need arises. For now the mapping for incoming messages can be done in script code. We can discuss about it in more detail on the mailing list or some other channel, if you want.</p>

<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/2187?email_source=notifications&email_token=ABO7UZO4JVDA2CSB2F2DFJLQ3X5R5A5CNFSM4KCCAWZKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEH6QLZY#issuecomment-570230247">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZMIV46KA7H556NM5XLQ3X5R5ANCNFSM4KCCAWZA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZKH6OXIXFUSRWDBCE3Q3X5R5A5CNFSM4KCCAWZKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEH6QLZY.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/2187?email_source=notifications\u0026email_token=ABO7UZO4JVDA2CSB2F2DFJLQ3X5R5A5CNFSM4KCCAWZKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEH6QLZY#issuecomment-570230247",
"url": "https://github.com/kamailio/kamailio/pull/2187?email_source=notifications\u0026email_token=ABO7UZO4JVDA2CSB2F2DFJLQ3X5R5A5CNFSM4KCCAWZKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEH6QLZY#issuecomment-570230247",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>