Call transfer failed

Hi,

I am trying to forward a call but can not succeed.
Steps:

  1. First I dial from 901 to 900 and the call connects.
  2. Then at the client extension 900 on which call is received in step 1 above, I dial 902# to connect the call from 901 to 902
  3. Then I hear the tone that "It is an invalid extension. Please try again."
    Please Let me know what is wrong here ?

Following is the configuration:
Topology:
Here, 3 clients with extensions 900,901,902 are connected to the asterisk server.


client1[900]<------------------>|
client2[901]<------------------>|<---->AsteriskServer
client3[902]<------------------>|

sip.conf
[900]
type=friend
disallow=all
allow=alaw
host=10.0.16.36
port=5060
dtmfmode=rfc2833
qualify=yes
canreinvite=yes
insecure=port
context=default

[901]
type=friend
disallow=all
allow=alaw
host=10.0.16.37
port=5060
dtmfmode=rfc2833
qualify=yes
canreinvite=yes
insecure=port
context=default

[902]
type=friend
disallow=all
allow=alaw
host=10.0.16.38
port=5060
dtmfmode=rfc2833
qualify=yes
canreinvite=yes
insecure=port
context=default

extensions.conf
[default]
exten => _90X,1,Dial(SIP/${EXTEN},tT)

features.conf
[general]
context => default
comebacktoorigin = yes
courtesytone = beep
parkedplay = both
parkedcalltransfers = both
transferdigittimeout => 1
xfersound = beep
xferfailsound = beeperr
pickupexten = *8
featuredigittimeout = 1000
atxfernoanswertimeout = 15
atxfer => *2

Please suggest the necessary changes for this configuration.

Regards,
Chetan Dua

902# will not match _90X. I suspect the problem is in the phones’ dialplans, not the Asterisk configuration.

(There is a fairly normal level of deprecated options and bad security practice in the Asterisk configuration.)

Then what statement should be mentioned in extensions.conf to match the call transfer keyword corresponding to 902# ?
OR
what number should be dialed at one of the clients to transfer the call to extension 902 for the above mentioned configuration ?

902#, or _90X#, or _90X.

Note you will need to substring the extension to remove the #.

I have tried that in the dialplan but it doesn’t work.

extensions.conf
exten => 900,1,Dial(SIP/${EXTEN},tT)
exten => 901,1,Dial(SIP/${EXTEN},tT)
exten => 902,1,Dial(SIP/${EXTEN},tT)

exten => 902#,1,Set(number=${EXTEN:0:-1})
exten => 902#,n,Dial(SIP/${number})

There is a weird thing that I observed in asterisk. The logs do not show the extension dialed for transfer. So I could not resolve the problem any further.

Thanks anyways :smile:

Regards,
Chetan Dua