Re: [asterisk-users] Need to spoof the callerid using the AMI Originate
Thank you Tiago. I was been able to set the callerid name and number using the Originate action’s variables. The problem I am currently running into is the SIP messages RPID portion always indicates the caller id has not been screened. Even when I set the CALLERID(name-pres) (or CALLERID(num-pres) variables to allowed_passed_screened, the RPID portion of the SIP message always indicates it has not passed screening. The only way I can get that setting to be passed to the SIP Provider the way our Freeswitch does is if I do as you describe (additionally setting the name-pres/num-pres variables in the local dialplan). It would be convenient if the Originate call had the ability to toggle those flags. At least there is a solution. Have a great day! Dan From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Tiago Geada Sent: Sunday, July 06, 2014 1:22 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] Need to spoof the callerid using the AMI Originate Actually you shold do that on MyContext On 6 July 2014 19:21, Tiago Geada tiago.ge...@gmail.commailto:tiago.ge...@gmail.com wrote: Hi, You can use a Local channel in your originate, and have a piece of local dialplan change that for you. Set(CALLERID(num)=x) On 13 June 2014 15:32, Dan Cropp d...@amtelco.commailto:d...@amtelco.com wrote: We have several customers we need to place outbound calls for (in a single system). May have to place calls for thousands of different caller ids. Customer signs a contract guaranteeing the caller id they provide is owned by them. I have everything setup for AMI Originate and can place the calls. However, I’m encountering a problem with the caller id. The system I’m dialing through requires my contact to be something like 1234@xyz. If I set the CallerID to something like Jane Doe 1234 it will correctly set my Contact so the system accepts the call and it dials the number. However, the SIP INVITE message From field is set to “Jane Doe” 1...@xxx.xxx.xxx.xxxmailto:1...@xxx.xxx.xxx.xxx Is there a way to make the SIP INVITE message have different caller id values for the From and the Contact fields? Additionally, is it possible to set the callerid number value to a PSTN number instead of a SIP number@domain? I tried setting the callerid(num) via the variable field, but that doesn’t seem to work. Below is a sample of the AMI Originate message I’m sending. Action: Originate ActionID: MyAction Channel: SIP/xxx.xxx.xxx.xxx/1234567890 Exten: testing Context: MyContext Priority: 1 Timeout: 3 CallerID: Jane Doe 123 Variable: CALLERID(num)=222333 Async: true Have a great day! Dan -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Need to spoof the callerid using the AMI Originate
Hi, You can use a Local channel in your originate, and have a piece of local dialplan change that for you. Set(CALLERID(num)=x) On 13 June 2014 15:32, Dan Cropp d...@amtelco.com wrote: We have several customers we need to place outbound calls for (in a single system). May have to place calls for thousands of different caller ids. Customer signs a contract guaranteeing the caller id they provide is owned by them. I have everything setup for AMI Originate and can place the calls. However, I’m encountering a problem with the caller id. The system I’m dialing through requires my contact to be something like 1234@xyz. If I set the CallerID to something like Jane Doe 1234 it will correctly set my Contact so the system accepts the call and it dials the number. However, the SIP INVITE message From field is set to “Jane Doe” 1...@xxx.xxx.xxx.xxx Is there a way to make the SIP INVITE message have different caller id values for the From and the Contact fields? Additionally, is it possible to set the callerid number value to a PSTN number instead of a SIP number@domain? I tried setting the callerid(num) via the variable field, but that doesn’t seem to work. Below is a sample of the AMI Originate message I’m sending. Action: Originate ActionID: MyAction Channel: SIP/xxx.xxx.xxx.xxx/1234567890 Exten: testing Context: MyContext Priority: 1 Timeout: 3 CallerID: Jane Doe 123 Variable: CALLERID(num)=222333 Async: true Have a great day! Dan -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Need to spoof the callerid using the AMI Originate
Actually you shold do that on MyContext On 6 July 2014 19:21, Tiago Geada tiago.ge...@gmail.com wrote: Hi, You can use a Local channel in your originate, and have a piece of local dialplan change that for you. Set(CALLERID(num)=x) On 13 June 2014 15:32, Dan Cropp d...@amtelco.com wrote: We have several customers we need to place outbound calls for (in a single system). May have to place calls for thousands of different caller ids. Customer signs a contract guaranteeing the caller id they provide is owned by them. I have everything setup for AMI Originate and can place the calls. However, I’m encountering a problem with the caller id. The system I’m dialing through requires my contact to be something like 1234@xyz. If I set the CallerID to something like Jane Doe 1234 it will correctly set my Contact so the system accepts the call and it dials the number. However, the SIP INVITE message From field is set to “Jane Doe” 1...@xxx.xxx.xxx.xxx Is there a way to make the SIP INVITE message have different caller id values for the From and the Contact fields? Additionally, is it possible to set the callerid number value to a PSTN number instead of a SIP number@domain? I tried setting the callerid(num) via the variable field, but that doesn’t seem to work. Below is a sample of the AMI Originate message I’m sending. Action: Originate ActionID: MyAction Channel: SIP/xxx.xxx.xxx.xxx/1234567890 Exten: testing Context: MyContext Priority: 1 Timeout: 3 CallerID: Jane Doe 123 Variable: CALLERID(num)=222333 Async: true Have a great day! Dan -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
[asterisk-users] Need to spoof the callerid using the AMI Originate
We have several customers we need to place outbound calls for (in a single system). May have to place calls for thousands of different caller ids. Customer signs a contract guaranteeing the caller id they provide is owned by them. I have everything setup for AMI Originate and can place the calls. However, I'm encountering a problem with the caller id. The system I'm dialing through requires my contact to be something like 1234@xyz. If I set the CallerID to something like Jane Doe 1234 it will correctly set my Contact so the system accepts the call and it dials the number. However, the SIP INVITE message From field is set to Jane Doe 1...@xxx.xxx.xxx.xxxmailto:1...@xxx.xxx.xxx.xxx Is there a way to make the SIP INVITE message have different caller id values for the From and the Contact fields? Additionally, is it possible to set the callerid number value to a PSTN number instead of a SIP number@domain? I tried setting the callerid(num) via the variable field, but that doesn't seem to work. Below is a sample of the AMI Originate message I'm sending. Action: Originate ActionID: MyAction Channel: SIP/xxx.xxx.xxx.xxx/1234567890 Exten: testing Context: MyContext Priority: 1 Timeout: 3 CallerID: Jane Doe 123 Variable: CALLERID(num)=222333 Async: true Have a great day! Dan -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users