[asterisk-bugs] [Asterisk 0010685]: Wrong (???) user on incoming call
noreply at bugs.digium.com
noreply at bugs.digium.com
Wed Sep 19 10:00:33 CDT 2007
The following issue has been RESOLVED.
======================================================================
http://bugs.digium.com/view.php?id=10685
======================================================================
Reported By: dario
Assigned To: file
======================================================================
Project: Asterisk
Issue ID: 10685
Category: Channels/chan_sip/General
Reproducibility: always
Severity: minor
Priority: normal
Status: resolved
Asterisk Version: 1.4.11
SVN Branch (only for SVN checkouts, not tarball releases): N/A
SVN Revision (number only!):
Disclaimer on File?: N/A
Request Review:
Resolution: no change required
Fixed in Version:
======================================================================
Date Submitted: 09-10-2007 07:53 CDT
Last Modified: 09-19-2007 10:00 CDT
======================================================================
Summary: Wrong (???) user on incoming call
Description:
I have 3 gateways, two audiocodes and one cisco with PRI interface. The
first AC have number 9980, second 9981. I make a call from 9980 to 9981 but
I want to make this call via cisco gateway.
I see INVITE from 9980 to SIP server, INVITE from SIP server to Cisco and
INVITE from Cisco to SIP server. But when server receive last INVITE, it
make wrong decision. I think that server should check context remote for
this invite because it incoming from Cisco, but server check context
zebra0.
My sip.conf:
[9980] ;ZEBRA
host=dynamic
defaultip=192.168.162.2
type=friend
context=zebra0
t38pt_udptl = yes
dtmfmode=auto
username=9980
password=xxx
canreinvite=yes
disallow=all
allow=g729,alaw
[9981] ;ZEBRA
host=dynamic
defaultip=192.168.161.77
type=friend
context=zebra1
t38pt_udptl = yes
dtmfmode=auto
username=9981
password=xxx
canreinvite=yes
disallow=all
allow=g729,alaw
[cisco]
host=192.168.119.225
disallow=all
insecure=port,invite
type=friend
context=remote
t38pt_udptl = yes ; Default false
dtmf=auto
allow=g729
allow=alaw
qualify=yes
My extensions.conf
[remote]
exten => _9980,1,Set(__TRANSFER_CONTEXT=zebra0)
exten => _9980,2,Goto(zebra0,${EXTEN},1)
exten => _9981,1,Set(__TRANSFER_CONTEXT=zebra1)
exten => _9981,2,Goto(zebra2,${EXTEN},1)
[zebra0]
exten => _9980,1,Dial(SIP/${EXTEN},60,t)
[zebra1]
exten => _9981,1,Dial(SIP/${EXTEN},60,t)
======================================================================
----------------------------------------------------------------------
file - 09-19-07 10:00
----------------------------------------------------------------------
This is a configuration issue. chan_sip is looking at the From header which
is being passed along as 9980, and thus matching on the 9980 user. Please
set the fromuser setting to ensure your username gets matched correctly. If
you need to convey callerid as well please set trustrpid=yes in general and
sendrpid=yes in your peers/friends.
Issue History
Date Modified Username Field Change
======================================================================
09-19-07 10:00 file Note Added: 0070795
======================================================================
More information about the asterisk-bugs
mailing list