diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-09-30 19:59:00 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-09-30 19:59:00 +0000 |
commit | 6d231a13a71e4a0183ae2ed7784913379d9edf33 (patch) | |
tree | 05e58d7c17cbbf5b2583405a6242730f90e1a963 /channels | |
parent | 22fbb4317672229e85cc3fa76fd6220627844144 (diff) |
Fix SIP transport to ignore ;transport=udp
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3862 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rwxr-xr-x | channels/chan_sip.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 9b9cb8633..3d929c3e8 100755 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -6498,6 +6498,9 @@ static void parse_moved_contact(struct sip_pvt *p, struct sip_request *req) char *s, *e; strncpy(tmp, get_header(req, "Contact"), sizeof(tmp) - 1); s = ditch_braces(tmp); + e = strchr(s, ';'); + if (e) + *e = '\0'; if (p->promiscredir) { if (!strncasecmp(s, "sip:", 4)) s += 4; |