diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-11-16 21:11:06 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-11-16 21:11:06 +0000 |
commit | be3e4868914ac465adb6328b1338ab0ba28e7b85 (patch) | |
tree | cdd963ead56568ddf3f3f22378c0501fd0fec541 /channels/chan_sip.c | |
parent | 8c451a56ff2155c8492de380c7f2c98a17ac9e1d (diff) |
Compare technology using the pointers instead of a straight comparison based on name. (issue #8228 reported by dean bath)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@47764 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_sip.c')
-rw-r--r-- | channels/chan_sip.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 78c2b4c6e..74e319919 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -11586,7 +11586,7 @@ static void handle_response_invite(struct sip_pvt *p, int resp, char *rest, stru ast_log(LOG_WARNING, "Ooooh.. no tech! That's REALLY bad\n"); break; } - if (!strcasecmp(bridgepeer->tech->type,"SIP")) { + if (bridgepeer->tech == &sip_tech) { bridgepvt = (struct sip_pvt*)(bridgepeer->tech_pvt); if (bridgepvt->udptl) { if (p->t38.state == T38_PEER_REINVITE) { @@ -13308,7 +13308,7 @@ static int handle_request_invite(struct sip_pvt *p, struct sip_request *req, int if ((bridgepeer = ast_bridged_channel(p->owner))) { /* We have a bridge, and this is re-invite to switchover to T38 so we send re-invite with T38 SDP, to other side of bridge*/ /*! XXX: we should also check here does the other side supports t38 at all !!! XXX */ - if (!strcasecmp(bridgepeer->tech->type, "SIP")) { /* If we are bridged to SIP channel */ + if (bridgepeer->tech == &sip_tech) { bridgepvt = (struct sip_pvt*)bridgepeer->tech_pvt; if (bridgepvt->t38.state == T38_DISABLED) { if (bridgepvt->udptl) { /* If everything is OK with other side's udptl struct */ @@ -13362,7 +13362,7 @@ static int handle_request_invite(struct sip_pvt *p, struct sip_request *req, int struct ast_channel *bridgepeer = NULL; struct sip_pvt *bridgepvt = NULL; if ((bridgepeer = ast_bridged_channel(p->owner))) { - if (!strcasecmp(bridgepeer->tech->type, sip_tech.type)) { + if (bridgepeer->tech == &sip_tech) { bridgepvt = (struct sip_pvt*)bridgepeer->tech_pvt; /* Does the bridged peer have T38 ? */ if (bridgepvt->t38.state == T38_ENABLED) { |