[Asterisk-Users] Call forwarding
JanM
asterisk-pbx at kraftnat.aland.fi
Tue Oct 21 04:45:22 MST 2003
I have talked to my Telco and they allow me to send the whole range of numbers that we are using. This is what * says (where 018539226 is the number I´m calling from to test the redirection):
Asterisk Ready.
-- Remote UNIX connection
-- Executing Dial("CAPI[contr2/910]", "SIP/BYEXTENSION at 226|5") in new stack
-- Called 910 at 226
-- SIP/226-26c8 is ringing
-- SIP/226-26c8 is ringing
-- Nobody picked up in 5000 ms
-- Executing Dial("CAPI[contr2/910]", "CAPI/526018539226:BBYEXTENSION") in new stack
-- Called 526018539226:B910
-- CAPI[contr2/526018539226]/1 is making progress passing it to CAPI[contr2/910]
== Spawn extension (default, 910, 2) exited non-zero on 'CAPI[contr2/910]'
asterisk*CLI>
I think this is an easy thing to do but I don´t seem to get it right..., any more idea´s anyone?
---JanM---
> -----Ursprungligt meddelande-----
> Från: asterisk-users-admin at lists.digium.com
> [mailto:asterisk-users-admin at lists.digium.com]För Jean-Christophe Heger
> Skickat: den 21 oktober 2003 13:42
> Till: asterisk-users at lists.digium.com
> Ämne: Re: [Asterisk-Users] Call forwarding
>
>
> Wipeout is right on the fact you cannot announce yourself with a phone
> number which is not allowed by your operator, else anybody could announce
> itself with any number. But it could be authorized for special cases.
>
> Regarding your example, if you belong som MSNs 526xxx, and 226 matches the
> MSN 526266 you could say:
>
> exten => 910,2,Dial,CAPI/526${CALLERIDNUM}:bmymobilenr|20
> or even
> exten => 910,2,Dial,CAPI/${CALLERIDNUM}:bmymobilenr|20
>
> The right syntax is ${...}, and not $(...).
>
> Most of the time, you can use the revelant numbers where the
> point-to-point
> switching is made. The rest of the MSN is automatically completed by the
> operator.
>
> Of course, the outgoing MSN must match the ones you've defined in
> capi.conf.
> Try to announce the incoming MSN with the 3 last digits and see how it
> works.
>
> Jean-Christophe
>
> ----- Original Message -----
> From: "JanM" <asterisk-pbx at kraftnat.aland.fi>
> To: <asterisk-users at lists.digium.com>
> Sent: Tuesday, October 21, 2003 12:05 PM
> Subject: [Asterisk-Users] Call forwarding
>
>
> Hi all,
>
> I would like to forward an incoming call to my mobile with the incoming
> callerID after ten seconds, I have tried with this:
>
> exten => 910,1,Dial,SIP/BYEXTENSION at 226|10
> exten => 910,2,Dial,CAPI/526$(CALLERIDNUM):bmymobilenr|20
> exten => 910,3,Voicemail,u226
> exten => 910,102,Voicemail,b226
>
> The second row is not right and I can´t get it to work, any idea´s?
>
> ---JanM---
>
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
More information about the asterisk-users
mailing list