Follow me issue

Greetings all,

I have installed Asterisk 1.4 with B410P card and everything seems to work fine. I can receive and make outgoing calls. I want to use the followme feature of asterisk but it doesn’t seem to work fine. What i want to do once an incoming call is detected is forward it to a my office phone, if not answered forward it to my house phone, if not answered forward it to my cellphone and finally if not answered send it to voicemail. The following is the code i use in extensions.conf:

[demo]
exten => _X.,1,Answer()
;exten => _X.,n,Background(transfer)
exten => _X.,n,Followme(100)
exten => _X.,n,Voicemail(100,u)

The following is what i have in followme.conf:

[100]
musicclass=>default
context=>demo
number=>61889143,20
takecall=>1
declinecall=>2
call-from-prompt=>followme/call-from
followme-norecording-prompt=>followme/no-recording
followme-options-prompt=>followme/options
followme-pls-hold-prompt=>followme/pls-hold-while-try
followme-status-prompt=>followme/status
followme-sorry-prompt=>followme/sorry

At the moment i’m trying to call only one number.

When i call the asterisk box, i hear the ‘transfer’ file playing and then i hear the background music. Asterisk is trying to connect the call but the destination phone doesn’t ring. After a while i’ll be transferred to voicemail. The following is what i see in CLI:

P[ 1] channel with stid:0 for one second still in use!
P[ 1] I IND :NEW_CHANNEL oad:019xxxxxxx dad:03xxxxxxxx pid:5 state:none
P[ 1]  --> channel:1 mode:TE cause:16 ocause:16 rad: cad:
P[ 1]  --> info_dad: onumplan:0 dnumplan:2 rnumplan:  cpnnumplan:0
P[ 1] Chan not existing at the moment bc->l3id:20004 bc:0x82681ec event:NEW_CHANNEL port:1 channel:1
P[ 1] NO USERUESRINFO
P[ 1]  --> TRANSPARENT Mode
P[ 1] I IND :SETUP oad:019xxxxxxx dad:03xxxxxxxx pid:5 state:none
P[ 1]  --> channel:1 mode:TE cause:16 ocause:16 rad: cad:
P[ 1]  --> info_dad: onumplan:0 dnumplan:2 rnumplan:  cpnnumplan:0
P[ 1]  --> Bearer: Speech
P[ 1]  --> Codec: Alaw
P[ 1]  --> Bearer: Speech
P[ 1]  --> Codec: Alaw
P[ 0]  --> * NEW CHANNEL dad:03xxxxxxxx oad:019xxxxxxx
P[ 1] read_config: Getting Config
P[ 1]  --> CTON: Unknown
P[ 1]  --> PRES: Restricted (0)
P[ 1]  --> SCREEN: Unscreened (0)
P[ 1] I SEND:PROCEEDING oad:019xxxxxxx dad:003xxxxxxxx pid:5
P[ 1]  --> channel:1 mode:TE cause:16 ocause:16 rad: cad:
P[ 1]  --> info_dad: onumplan:0 dnumplan:2 rnumplan:  cpnnumplan:0
    -- Executing [003xxxxxxxx@demo:1] Answer("mISDN/1-u3", "") in new stack
P[ 1] * ANSWER:
P[ 1]  --> empty cad using dad
P[ 1] I SEND:CONNECT oad:019xxxxxxx dad:003xxxxxxxx pid:5
P[ 1]  --> channel:1 mode:TE cause:16 ocause:16 rad: cad:003xxxxxxxx
P[ 1]  --> info_dad: onumplan:0 dnumplan:2 rnumplan:  cpnnumplan:0
    -- Executing [003xxxxxxxx@demo:2] FollowMe("mISDN/1-u3", "100") in new stack
    -- <mISDN/1-u3> Playing 'followme/pls-hold-while-try' (language 'en')
P[ 1] I IND :CONNECT_ACKNOWLEDGE  oad:019xxxxxxx dad:003xxxxxxxx pid:5 state:CONNECTED
P[ 1]  --> channel:1 mode:TE cause:16 ocause:16 rad: cad:003xxxxxxxx
P[ 1]  --> info_dad: onumplan:0 dnumplan:2 rnumplan:  cpnnumplan:0
    -- Started music on hold, class 'default', on mISDN/1-u3

After the above i see the following. This will be repeated 7 times:

-- calling 61889143@demo
    -- Executing [61889143@demo:1] Answer("Local/61889143@demo-6c8e,2", "") in new stack
    -- Local/61889143@demo-6c8e,1 answered mISDN/1-u3
    -- Starting playback of followme/call-from
    -- Executing [61889143@demo:2] FollowMe("Local/61889143@demo-6c8e,2", "100") in new stack
    -- <Local/61889143@demo-6c8e,1> Playing 'followme/no-recording' (language 'en')
    -- <Local/61889143@demo-6c8e,2> Playing 'followme/pls-hold-while-try' (language 'en')
    -- Playback of name file appears to be done.
    -- <Local/61889143@demo-6c8e,1> Playing 'followme/options' (language 'en')
    -- Started music on hold, class 'default', on Local/61889143@demo-6c8e,2

Then the call will be forwarded to voicemail:

-- calling 61889143@demo
    -- Executing [61889143@demo:1] Answer("Local/61889143@demo-27bc,2", "") in new stack
    -- Executing [61889143@demo:2] FollowMe("Local/61889143@demo-27bc,2", "100") in new stack
    -- Local/61889143@demo-27bc,1 answered Local/61889143@demo-e74f,2
    -- Starting playback of followme/call-from
    -- <Local/61889143@demo-27bc,1> Playing 'followme/no-recording' (language 'en')
    -- <Local/61889143@demo-27bc,2> Playing 'followme/pls-hold-while-try' (language 'en')
    -- Playback of name file appears to be done.
    -- <Local/61889143@demo-52fd,1> Playing 'followme/options' (language 'en')
    -- Playback of the next step file appears to be done.
    -- We've been waiting for digits longer than we should have.
    -- <Local/61889143@demo-532b,1> Playing 'followme/no-recording' (language 'en')
    -- We've been waiting for digits longer than we should have.
    -- <Local/61889143@demo-6c8e,1> Playing 'followme/no-recording' (language 'en')
    -- We've hit our timeout for this step. Drop everyone and move on to the next one. -5
    -- Stopped music on hold on Local/61889143@demo-6c8e,2
    -- Stopped music on hold on Local/61889143@demo-5305,2
    -- Stopped music on hold on Local/61889143@demo-52fd,2
    -- Stopped music on hold on Local/61889143@demo-532b,2
    -- Stopped music on hold on Local/61889143@demo-be00,2
    -- Stopped music on hold on Local/61889143@demo-e74f,2
    -- Stopped music on hold on mISDN/1-u3
    -- Executing [00361911095@demo:3] VoiceMail("mISDN/1-u3", "100|u") in new stack
    -- <mISDN/1-u3> Playing 'vm-theperson' (language 'en')
.....
.....

I don’t really understand why the destination phone is not ringing. From what i can see is that asterisk is saying that is playing the ‘call-from’ file, which i believe is supposed to be played when the destination party picks up the phone.
One thing i’m not sure of is the context=>demo in the followme.conf file. I’m not sure if that’s the right context or not.

I would really appreciate any help.
Thanks in advance
Ladio

Hi all,

I managed to fix the problem. Well actually it is a configuration problem.
I just created a context with the following info:

[outgoing]
exten => _X.,1,Dial(mISDN/1/${EXTEN})

Now i use this context at the followme.conf and everything works fine.

Cheers,
Ladio