summaryrefslogtreecommitdiff
path: root/channels/chan_sip.c
diff options
context:
space:
mode:
authorMatteo Brancaleoni <mbrancaleoni@espia.it>2003-03-07 06:00:13 +0000
committerMatteo Brancaleoni <mbrancaleoni@espia.it>2003-03-07 06:00:13 +0000
commitf2c4538f612a8976c7cc8893000165fa06733ddb (patch)
tree9cf97910c36b158e27853b640770c246ff9e8066 /channels/chan_sip.c
parenta8723ad68f80bafb65ee6a66d2b4b1f6a7ee01c8 (diff)
Fri Mar 7 07:00:00 CET 2003
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@634 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_sip.c')
-rwxr-xr-xchannels/chan_sip.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 726218f0a..059709e5d 100755
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -2516,6 +2516,8 @@ static int check_user(struct sip_pvt *p, struct sip_request *req, char *cmd, cha
while(user) {
if (!strcasecmp(user->name, of)) {
p->nat = user->nat;
+ if (p->rtp)
+ ast_rtp_setnat(p->rtp, p->nat);
if (!(res = check_auth(p, req, p->randdata, sizeof(p->randdata), user->name, user->secret, cmd, uri))) {
strncpy(p->context, user->context, sizeof(p->context) - 1);
if (strlen(user->callerid) && strlen(p->callerid))