Hello,
I have a problem with redirecting an external call to an other external number.
If I use the internal SIP phone (60) to call 80 I get redirected to an external cellphone (+49172*****) and everything is fine.
When I call the this number from an external phone the redirection seems to work too, but the caller can’t hear the called.
[local]
exten => *80,1,Goto(redirect,0172*******,1)
exten => 80,1,Goto(redirect,0172*******,1)
[redirect]
exten => _X.,1,Set(CALLERID(all)="${CALLERID(num)}" <${CALLERID(num)}>,a)
same => n,SIPAddHeader(P-Asserted-Identity: <sip:030*********@sip.qsc.de:5060\;user=phone>)
same => n,Dial(SIP/${EXTEN}@qsc-0,120,tT)
[code][qsc]
disallow = all
allow = alaw
allow = ulaw
[60]
disallow=all
allow=ulaw
allow=alaw
allow=speex
allow=gsm
allow=h261
allow=h263
allow=h263p[/code]
thank you for reading!