]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-5700 --resolve
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 15 Aug 2013 16:19:51 +0000 (21:19 +0500)
committerAnthony Minessale <anthm@freeswitch.org>
Thu, 15 Aug 2013 16:20:22 +0000 (21:20 +0500)
src/mod/endpoints/mod_sofia/mod_sofia.c

index 907de17a206dcd7d80734d17b759210835df5c0d..e9297c0c77a54e27dbc75aec7820521d46ac798a 100644 (file)
@@ -297,11 +297,13 @@ char *generate_pai_str(private_object_t *tech_pvt)
                        pai = switch_core_session_sprintf(tech_pvt->session, "%s: \"%s\" <%s>%s\n"
                                                                                          "X-FS-Display-Name: %s\nX-FS-Display-Number: %s\n",
                                                                                          header, callee_name, callee_number,
-                                                                                         tech_pvt->cid_type == CID_TYPE_RPID ? ";party=calling;privacy=off;screen=no" : "",
+                                                                                         tech_pvt->cid_type == CID_TYPE_RPID && !switch_stristr("aastra", ua) ?
+                                                                                         ";party=calling;privacy=off;screen=no" : "",
                                                                                          callee_name, callee_number);
                } else {
                        pai = switch_core_session_sprintf(tech_pvt->session, "%s: \"%s\" <%s>%s\n", header, callee_name, callee_number,
-                                                                                         tech_pvt->cid_type == CID_TYPE_RPID ? ";party=calling;privacy=off;screen=no" : "");
+                                                                                         tech_pvt->cid_type == CID_TYPE_RPID && !switch_stristr("aastra", ua) ?
+                                                                                         ";party=calling;privacy=off;screen=no" : "");
                }
 
        }