]> 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:19:57 +0000 (21:19 +0500)
src/mod/endpoints/mod_sofia/mod_sofia.c

index 2f193c051a6f8ea166f5b98b589354b8be1f56a9..1f1e090a1b8cd8d88bf7a5f49f3e97cf1022496b 100644 (file)
@@ -284,11 +284,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" : "");
                }
 
        }