Hi. I'm using /var/spool/asterisk/outgoing files to place automatic calls, but I'm having trouble setting the Caller ID for the second half of the call. In other words, when we call the first number, we want the Caller ID set to our number, but then when we connect them to the second number, we want _their_ number to be the Caller ID. I've tried the following (and various approximations): Channel: Local/16193644799@outtrunk Callerid: 6193647100 MaxRetries: 5 RetryTime: 60 WaitTime: 60 Context: outtrunk Extension: 16193647100 Priority: 1 SetVar: CALLERIDNUM=6193644799 When it calls 6193644799, it properly shows a Caller ID of 6193647100. But then when it dials 6193647100, it still shows Caller ID of 6193647100 instead of 6193644799. What am I doing wrong? How do I get the Caller ID set correctly for the second half of the call? I've tried various other variables but I haven't been able to get anything to work. Thanks.
I did this for our website (to be released RSN), it has a contact form that the customer plugs in their phone number. When they do, Asterisk calls them and dumps them to an IVR. Pressing 1 in the IVR takes them to a salesperson. My working config is: In the .call file: CallerID: 18888988884 (our 800 number) SetVar: CALLINGPARTY=(caller ID of guy) In extensions.conf: [website-caller] exten => 1,1,SetCallerID(Web Caller: ${CALLINGPARTY}) (I set the caller ID that way so the salesperson knows that the caller is calling from the website) In your case, the variable you have set happens to be the same name as a global Asterisk variable, so I'm sure that's the root of the problem. Set the variable to a different name, try CALLINGPARTY like I did hth -----Original Message----- From: Jim Gottlieb [mailto:jimmy@nccom.com] Sent: Thursday, September 15, 2005 3:03 PM To: asterisk-users@lists.digium.com Subject: [Asterisk-Users] Caller ID for auto outgoing calls Hi. I'm using /var/spool/asterisk/outgoing files to place automatic calls, but I'm having trouble setting the Caller ID for the second half of the call. In other words, when we call the first number, we want the Caller ID set to our number, but then when we connect them to the second number, we want _their_ number to be the Caller ID. I've tried the following (and various approximations): Channel: Local/16193644799@outtrunk Callerid: 6193647100 MaxRetries: 5 RetryTime: 60 WaitTime: 60 Context: outtrunk Extension: 16193647100 Priority: 1 SetVar: CALLERIDNUM=6193644799 When it calls 6193644799, it properly shows a Caller ID of 6193647100. But then when it dials 6193647100, it still shows Caller ID of 6193647100 instead of 6193644799. What am I doing wrong? How do I get the Caller ID set correctly for the second half of the call? I've tried various other variables but I haven't been able to get anything to work. Thanks. _______________________________________________ --Bandwidth and Colocation sponsored by Easynews.com -- Asterisk-Users mailing list Asterisk-Users@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
Can you automatically call extensions? If so, the immediate workaround would be to define extensions that set caller id and then place the call. You could probably write a macro to do the extension definition if you have more than a few. Jim Gottlieb wrote:>Hi. I'm using /var/spool/asterisk/outgoing files to place automatic >calls, but I'm having trouble setting the Caller ID for the second half >of the call. > >In other words, when we call the first number, we want the Caller ID >set to our number, but then when we connect them to the second number, >we want _their_ number to be the Caller ID. > >I've tried the following (and various approximations): > >Channel: Local/16193644799@outtrunk >Callerid: 6193647100 >MaxRetries: 5 >RetryTime: 60 >WaitTime: 60 >Context: outtrunk >Extension: 16193647100 >Priority: 1 >SetVar: CALLERIDNUM=6193644799 > >When it calls 6193644799, it properly shows a Caller ID of 6193647100. >But then when it dials 6193647100, it still shows Caller ID of >6193647100 instead of 6193644799. > >What am I doing wrong? How do I get the Caller ID set correctly for >the second half of the call? I've tried various other variables but I >haven't been able to get anything to work. > >Thanks. >_______________________________________________ >--Bandwidth and Colocation sponsored by Easynews.com -- > >Asterisk-Users mailing list >Asterisk-Users@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 > >