[Asterisk-Users] Transferring from cell phone
Chris Coulthurst
asterisk at shuksan.com
Mon Aug 15 22:31:06 MST 2005
I set up a context to allow me to call in to my * server (via Teliax in this case using IAX2) from my cellphone, and let me do a number of things, including dial other extensions, AND dial outbound again so callers could see my proper work CallerID when I use this service. Is there a way to be able to transfer calls to other extensions of my asterisk server FROM the cell phone/ This isn't a Zap channel, so I'm a bit lost, but did specify the 'T' option in dial. Here's my context. Is this possible to do??
[aa_chris_disa]
exten => s,1,Read(DIALNUM,custom/enter-num-then-pound,21)
exten => s,2,Playback(connecting)
exten => s,3,GotoIf($[${LEN(${DIALNUM})} < 5 ]?4:8) ; IF SHORTED THAN 5, its internal so dial internal
exten => s,4,SetCallerID("Chris Mobile" <205>)
exten => s,5,Dial(Local/${DIALNUM}@unlimited/n) ;DIAL INTERNAL EXTENSION
exten => s,6,Playback(call-terminated)
exten => s,7,Goto(aa_chris_start,s,1)
exten => s,8,Gotoif($[${LEN(${DIALNUM})} = 7]?s,9:s,14) ;IF 7 DIGITS DIALED, ITS LOCAL, PREPEND THE AREA CODE
exten => s,9,SetCIDNum(9999999999)
exten => s,10,Dial(${IPTRUNK}/360${DIALNUM},,T)
exten => s,11,Dial(SIP/360${DIALNUM}@telasip-gw,,T)
exten => s,12,Playback(all-circuits-busy-now)
exten => s,13,Goto(aa_chris_start,s,1)
exten => s,14,SetCIDNum(9999999999) ;NUMBER ISNT 7, OR LESS THAN 5 SO AREA CODE WAS ADDED
exten => s,15,Dial(${IPTRUNK}/${DIALNUM},,T)
exten => s,16,Dial(SIP/${DIALNUM}@telasip-gw,,T)
exten => s,17,Playback(all-circuits-busy-now)
exten => s,18,Goto(aa_chris_start,s,1)
exten => i,1,Goto(aa_chris_start,s,1)
Chris Coulthurst
chris at shuksan.com
--------------------------------------------------------------------------------
_______________________________________________
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20050816/64034396/attachment.htm
More information about the asterisk-users
mailing list