[Asterisk-Users] extension mobility and CDR logging questions

Pavel Jezek pavel.jezek at i.cz
Wed Jul 13 14:19:40 MST 2005


Hi, I have one solution example, how to solve extension mobility feature 
with asterisk, this idea is from one * expert from this forum, some 
months ago... ;-)
look bellow...
PJ




Roaming Extensions - these are FUN.

; these style extensions go into your local dialplan
exten => 1005,1,DBGet(CHANNELS=CHANNELS/1005)
exten => 1005,2,Macro(roamexten,1005,${CHANNELS})

exten => _*99XXXX,1,DBGet(FOO=CHANNELS/${EXTEN:3})
exten => _*99XXXX,2,DBDel(CHANNELS/${EXTEN:3})
exten => _*99XXXX,3,Playback(extras/extension)
exten => _*99XXXX,4,SayDigits(${EXTEN:3})
exten => _*99XXXX,5,Playback(extras/disabled)
exten => _*99XXXX,6,Hangup()
exten => _*99XXXX,102,Cut(CHANRES=CHANNEL|-|1)
exten => _*99XXXX,103,DBPut(CHANNELS/${EXTEN:3}=${CHANRES})
exten => _*99XXXX,104,Playback(extras/extension)
exten => _*99XXXX,105,SayDigits(${EXTEN:3})
exten => _*99XXXX,106,Playback(extras/enabled)
exten => _*99XXXX,107,Hangup()


;this is a new macro
;if you don't use a stdexten macro, you can change that to whatever, but 
that will require a little work on your part.

[macro-roamexten]

exten => s,1,DBGet(CALLDEXTEN=CHANNELS/${ARG1})
exten => s,2,Macro(stdexten,${ARG1},${ARG2})
exten => s,102,VoiceMail(u${ARG1})



NOTE: This is version 1.  I will make a version 2 later that will allow 
you to transport your per-extension CallerID also.















KRTorio wrote:
> I intend to add to my asterisk system a feature similar to cisco call
> manager's extension mobility so that  agents can log in to any phone
> in the office and keep their profile (ex. the agent's specific
> directory number). But before doing that, I need to confirm that
> asterisk doesn't have a native solution for that (ex.
> application/addon), and that nobody has come up with their own
> solution to it.
>
> Is it also possible for asterisk to include in the CDR any information
> about the agent who made/received the call?
>
> Ideas/suggestions are also welcome.
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
>   



More information about the asterisk-users mailing list