[asterisk-users] how to implement CLONED LINE Feature in asterisk?

D Tucny d at tucny.com
Wed Aug 5 01:06:46 CDT 2009


2009/8/4 Faheem <faheem_imt at yahoo.com>

> how to implement CLONED LINE Feature in asterisk
>
> Hey, I want to implement Clone Line feature in asterisk. I am using
> SPA-2100.
> The feature should work in this way.
>
> There are two ports in the SPA-2100 both are registered with asterisk with
> same username/password, and have the same (phone number)
>
>
>
>   *No one on the phone *
>
> *One phone in use *
>
> *Both phones in use *
>
> *Incoming Calls *
>
> Both phones ring
>
> Phone in use receives call waiting notification, unused phone rings
>
> Both phones receive call waiting notification
>
> *Outgoing Calls *
>
> Both phones can call out
>
> The unused phone can call out
>
> Neither phone can call out
>
>
>  * Inbound:
>       - Both ports will ring. Whichever port is picked up first, will field
> the call.
>       - Any additional calls that come in would give call waiting
> notification to the first line, and ring the second line.
>       - Once the second line is being utilized, all incoming calls will be
> notifications in the form of call waiting beeps.
>
>  * Outbound:
>       - You will have the ability to dial out from port one.
>       - You will be able to dial a different party on port two.
>
> *** Note ***
>          - If you have an active call on port one, and pick up port two,
> you will NOT have the same call that is currently active on port one. The
> Cloned Line will share the same voice mail and will have the same telephone
> number as the original telephone line.
>
>   -  The Cloned Line is NOT a second telephone number.  The telephone
> number that is assigned to the second phone port on the device is the same
> telephone number as the number assigned to phone port one.
>

In sip.conf
[line1]
username=line1
secret=line1password
type=friend
host=dynamic
context=outboundcalls
mailbox=1234 at default

[line2]
username=line2
secret=line2password
type=friend
host=dynamic
context=outboundcalls
mailbox=1234 at default

In extensions.conf
[default]
exten => 1234,1,NoOp(About to dial both phones)
exten => 1234,n,Macro(stdexten,${EXTEN},SIP/line1&SIP/line2)
exten => 1234,n,Hangup()

or for trunk
[default]
exten => 1234,1,NoOp(About to dial both phones)
exten => 1234,n,Gosub(stdexten(${EXTEN},SIP/line1&SIP/line2))
exten => 1234,n,Hangup()

then stdexten would be default as comes in the sample configs...

That should be everything you want if you configure the SPA-2100 to register
line 1 with username line1 and line 2 with username line2...

d
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090805/ee16bd63/attachment.htm 


More information about the asterisk-users mailing list