Hi Henry,

Are you using a web frontend? If you are using freepbx, you will need more than that (mysqldb, and recrete asterisk config files).

If not you need to make the change permenent and readable by the part of your dialplan that will make the outbound call. The actial astarisk variables for caller ID are:

        CALLERID(name)
        CALLERID(number)

  So your code could look something like this:

        exten => *37,1,Read(SPOOFID,agent-newlocation,10,3)
        exten => *37,n,Set(CALLERID(number)=${SPOOFID})
        exten => *37,n,SayDigits(${SPOOFID})
        exten => *37,n,Set(DB(SPOOFID/${agent_extension})=${SPOOFID})

  That way you can use:

         ${DB(SPOOFID/${agent_extension})}

  To get the value back at any time.

Henry L.Coleman wrote:
Hi all, I've been attempting to change the outbound CID from an extension using 
the dial plan.

exten => *37,1,Read(SPOOFID,agent-newlocation,10,3)
exten => *37,2,Set(????????)=${SPOOFID})
exten => *37,3,SayDigits(${SPOOFID})

Help anyone ????????




Henry L.Coleman [VoIP-PBX.ca]
-------------------------------------------------





---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


--
----
Andre Courchesne - Consultant
http://www.net-forces.com
Phone: (514) 667-8448
MSN: [email protected]
Skype: VoipForces

L'information contenue dans le présent document est la propriété de Andre Courchesne. Et est divulguée en toute confidentialité. Cette information ne doit pas être utilisée, divulguée à d'autres personnes ou reproduite sans le consentement écrit explicite de Andre Courchesne.

The information contained in this document is confidential and property of Andre Courchesne. It shall not be used, disclosed to others or reproduced without the express written consent of Andre Courchesne.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to