git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11636
d0543943-73ff-0310-b7d9-
9358b9ac24b2
} else {
destination_number = sip->sip_request->rq_url->url_user;
}
- check_decode(destination_number, session);
}
-
+ if (!destination_number && sip->sip_to && sip->sip_to->a_url) {
+ destination_number = sip->sip_to->a_url->url_user;
+ }
+
+ if (destination_number) {
+ check_decode(destination_number, session);
+ } else {
+ destination_number = "service";
+ }
+
if (sip->sip_to && sip->sip_to->a_url) {
const char *host, *user;
int port;