[asterisk-bugs] [Asterisk 0010685]: Wrong (???) user on incoming call
noreply at bugs.digium.com
noreply at bugs.digium.com
Mon Sep 10 07:58:10 CDT 2007
A NOTE has been added to this issue.
======================================================================
http://bugs.digium.com/view.php?id=10685
======================================================================
Reported By: dario
Assigned To:
======================================================================
Project: Asterisk
Issue ID: 10685
Category: Channels/chan_sip/General
Reproducibility: always
Severity: minor
Priority: normal
Status: new
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:
======================================================================
Date Submitted: 09-10-2007 07:53 CDT
Last Modified: 09-10-2007 07:58 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)
======================================================================
----------------------------------------------------------------------
dario - 09-10-07 07:58
----------------------------------------------------------------------
Sorry, I made a mistake. My extensions.conf is:
[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]
include => mm_mn
exten => _9980,1,Dial(SIP/${EXTEN},60,t)
[zebra1]
include => mm_mn
exten => _9981,1,Dial(SIP/${EXTEN},60,t)
[mm_mn]
exten => _0X.,1,Set(DTMFDIAL=${EXTEN})
exten => _0X.,2,Macro(clr-set,${CALLERID(num)})
exten => _0X.,3,Dial(SIP/192.168.119.225/${EXTEN},600,tT)
Issue History
Date Modified Username Field Change
======================================================================
09-10-07 07:58 dario Note Added: 0070253
======================================================================
More information about the asterisk-bugs
mailing list