[asterisk-users] setting outbound caller ID

2015-06-18 Thread Greg Woods
I have found several places where it is explained how to do this, and I
have got the following setup, but it is not working (the provider claims
they are not getting a proper caller ID setting from me).

I have a number of extensions that are shorthand, that I will use one of as
an example (real number hidden):

exten = 2473,1,Macro(callout,##)

Then this (actual number hidden again):

[macro-callout]
exten = s,1,Set(CALLERID(num)=##)
exten = s,2,Set(CALLERID(name)=##)
exten = s,3,Set(CALLERID(all)=## ##)
exten = s,4,Dial(${PROVIDER}/1${ARG1},30,tr)
exten = s,n,Hangup()


I have also tried setting only the number with the same results:

exten = s,1,Set(CALLERID(num)=##)
exten = s,2,Dial .

When I dial that extension, the call goes through, but the caller ID is not
correct at the destination.

Does this look right?

My provider claims that I am somehow sending an old number that doesn't
appear anywhere in my /etc/asterisk directory where the config files are
kept. I think they are screwed up somehow, but I wanted to see if anyone
can see anything obviously wrong with what I am doing here, because unless
I can find something wrong with my Asterisk configuration, I am probably
going to have to change providers and port my number again (I just moved
from a POTS provider Century Link to a VOIP provider).

Thank you,
--Greg
-- 
_
-- 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] setting outbound caller ID

2015-06-18 Thread Richard Kenner
 CALLERID is a read only variable.  

That's not correct.  I set it all over the place in my dialplan.

-- 
_
-- 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] setting outbound caller ID

2015-06-18 Thread Greg Woods
Thanks very much for all the responses. I now have a few more things to try.

I should have noted that I am using IAX2 rather than SIP to connect to my
provider.  I do have some internal phones that use SIP to connect to my
asterisk box, as well as some corded phones connected through a Digium
DAHDI-driven card.

I am certain that the old number that is showing up as my caller ID is not
present in any of my config files (that includes sip.conf and iax.conf,
everything in the /etc/asterisk directory has been checked).

A few things I will try tonight when I get home:

1) Turning on iax debugging (don't know why I didn't think of that)
2) Setting callerid= in the outbound dialing context in iax.conf
3) Trying a leading 1 on the number I use in the Set(CALLERID(num) call.

Since this is a thread that someone down the road is sure to stumble
across, I will post results whether or not I am successful.

--Greg
-- 
_
-- 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] setting outbound caller ID

2015-06-18 Thread D'Arcy J.M. Cain
On Thu, 18 Jun 2015 11:58:34 -0600
Kai-Uwe Jensen kujen...@gmail.com wrote:
 Set(CALLERID(number)=XX) works here.

I believe you and everyone else that says so but...

  Then someone needs to fix this page.
 
  https://wiki.asterisk.org/wiki/display/AST/Asterisk+Standard+Channel+Variables

RANT
We should be able to set up our systems based on the documentation and
not by let's try random things and see what works.
/RANT

-- 
D'Arcy J.M. Cain
System Administrator, Vex.Net
http://www.Vex.Net/ IM:da...@vex.net
VoIP: sip:da...@vex.net

-- 
_
-- 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] setting outbound caller ID

2015-06-18 Thread Kai-Uwe Jensen
Set(CALLERID(number)=XX) works here.

Also check with your VoIP provider what format they want for the number. (I
believe) most accept a  10-digit number, but I seem to remember reading
about the odd provider that wanted a leading 1.

On Thu, Jun 18, 2015 at 11:47 AM, D'Arcy J.M. Cain da...@vex.net wrote:

 On Thu, 18 Jun 2015 13:45:10 EDT
 ken...@gnat.com (Richard Kenner) wrote:

   CALLERID is a read only variable.
 
  That's not correct.  I set it all over the place in my dialplan.

 Then someone needs to fix this page.


 https://wiki.asterisk.org/wiki/display/AST/Asterisk+Standard+Channel+Variables

 --
 D'Arcy J.M. Cain
 System Administrator, Vex.Net
 http://www.Vex.Net/ IM:da...@vex.net
 VoIP: sip:da...@vex.net

 --
 _
 -- 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] error trying to get PJSIP working

2015-06-18 Thread Ryan, Travis
I'm doing an upgrade from Asterisk 11 to 13. I'm following the guide at 
https://wiki.asterisk.org/wiki/display/ast/setting+up+PJSIP+REaltime to setup 
realtime, as I use realtime on Asterisk 11 too.

I'm getting the following error when trying to connect the peer to the server.

Help? :)

Thanks,

Travis

[Jun 15 16:20:03] NOTICE[5116] res_odbc.c: res_odbc: Connected to laf [laf]
[Jun 15 16:20:03] DEBUG[5116] res_odbc.c: odbc_release_obj2(0x7f3f1c4815d8) 
called (obj-txf = (nil))
[Jun 15 16:20:03] ERROR[5116] res_pjsip_registrar.c: Unable to bind contact 
'sip:812@10.1.80.112:5062' to AOR '812'
[Jun 15 16:20:03] DEBUG[5116] res_config_odbc.c: Skip: 0; SQL: SELECT * FROM 
ps_contacts WHERE id LIKE ? ORDER BY id
[Jun 15 16:20:03] DEBUG[5116] res_config_odbc.c: Parameter 1 ('id LIKE') = 
'812;@%'
[Jun 15 16:20:03] DEBUG[5116] res_odbc.c: odbc_release_obj2(0x7f3f1c4815d8) 
called (obj-txf = (nil))
[Jun 15 16:20:03] DEBUG[5116] res_config_odbc.c: Skip: 0; SQL: SELECT * FROM 
ps_contacts WHERE id LIKE ? ORDER BY id
[Jun 15 16:20:03] DEBUG[5116] res_config_odbc.c: Parameter 1 ('id LIKE') = 
'812;@%'
[Jun 15 16:20:03] DEBUG[5116] res_odbc.c: odbc_release_obj2(0x7f3f1c4815d8) 
called (obj-txf = (nil))
[Jun 15 16:20:03] DEBUG[5116] res_config_odbc.c: Skip: 0; SQL: INSERT INTO 
ps_contacts (id, outbound_proxy, expiration_time, path, qualify_frequency, 
user_agent, uri) VALUES (?, ?, ?, ?, ?, ?, ?)
[Jun 15 16:20:03] DEBUG[5116] res_config_odbc.c: Parameter 1 ('id') = 
'812;@sip:812@10.1.80.112:5062'
[Jun 15 16:20:03] DEBUG[5116] res_config_odbc.c: Parameter 2 ('outbound_proxy') 
= ''
[Jun 15 16:20:03] DEBUG[5116] res_config_odbc.c: Parameter 3 
('expiration_time') = '1434399723'
[Jun 15 16:20:03] DEBUG[5116] res_config_odbc.c: Parameter 4 ('path') = ''
[Jun 15 16:20:03] DEBUG[5116] res_config_odbc.c: Parameter 5 
('qualify_frequency') = '0'
[Jun 15 16:20:03] DEBUG[5116] res_config_odbc.c: Parameter 6 ('user_agent') = 
'Media5-fone/4.1.3.3034 iOS/8.3'
[Jun 15 16:20:03] DEBUG[5116] res_config_odbc.c: Parameter 7 ('uri') = 
'sip:812@10.1.80.112:5062'
[Jun 15 16:20:03] WARNING[5116] res_odbc.c: SQL Execute returned an error -1: 
42S22: [MySQL][ODBC 5.1 Driver][mysqld-5.5.40-0ubuntu0.14.04.1]Unknown column 
'outbound_proxy' in 'field list' (103)
[Jun 15 16:20:03] WARNING[5116] res_odbc.c: SQL Execute error -1! Verifying 
connection to laf [laf]...
-- 
_
-- 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] setting outbound caller ID

2015-06-18 Thread D'Arcy J.M. Cain
On Thu, 18 Jun 2015 11:27:08 -0600
Greg Woods g...@gregandeva.net wrote:
 [macro-callout]
 exten = s,1,Set(CALLERID(num)=##)
 exten = s,2,Set(CALLERID(name)=##)
 exten = s,3,Set(CALLERID(all)=## ##)
 exten = s,4,Dial(${PROVIDER}/1${ARG1},30,tr)
 exten = s,n,Hangup()

CALLERID is a read only variable.  Set the information in sip.conf in
the extension.

callerid=NAME 551212


-- 
D'Arcy J.M. Cain
System Administrator, Vex.Net
http://www.Vex.Net/ IM:da...@vex.net
VoIP: sip:da...@vex.net

-- 
_
-- 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] setting outbound caller ID

2015-06-18 Thread D'Arcy J.M. Cain
On Thu, 18 Jun 2015 13:45:10 EDT
ken...@gnat.com (Richard Kenner) wrote:

  CALLERID is a read only variable.  
 
 That's not correct.  I set it all over the place in my dialplan.

Then someone needs to fix this page.

https://wiki.asterisk.org/wiki/display/AST/Asterisk+Standard+Channel+Variables

-- 
D'Arcy J.M. Cain
System Administrator, Vex.Net
http://www.Vex.Net/ IM:da...@vex.net
VoIP: sip:da...@vex.net

-- 
_
-- 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] setting outbound caller ID

2015-06-18 Thread Doug Lytle
 On Jun 18, 2015, at 1:27 PM, Greg Woods g...@gregandeva.net wrote:
 I have also tried setting only the number with the same results: 

 exten = s,1,Set(CALLERID(num)=##) 
 exten = s,2,Dial . 


I'm using:

exten = s,n,Set(CALLERID(number)=269XXX)

Also check your sip.conf, you may have hard coded the old phone number there, I 
believe you can do that on SIP and IAX trunks.

Doug

-- 
_
-- 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] setting outbound caller ID

2015-06-18 Thread Doug Lytle
 On Jun 18, 2015, at 1:47 PM, D'Arcy J.M. Cain da...@vex.net wrote:

 Then someone needs to fix this page.

They do indeed!

Doug


-- 
_
-- 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] setting outbound caller ID

2015-06-18 Thread Mark Wiater


On 6/18/2015 1:27 PM, Greg Woods wrote:
My provider claims that I am somehow sending an old number that 
doesn't appear anywhere

snip

(I just moved from a POTS provider Century Link to a VOIP provider).


Set(CALLERID(number)=${var}) works fine for me.

Perhaps some debugging on the channel could help? Set sip debug if it's 
a sip trunk?


You'll at least get to see the callerid that Asterisk is putting on the 
trunk. That might even help your new VOIP provider do some digging if 
could provide the debugging output.


Mark


--
_
-- 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] setting outbound caller ID

2015-06-18 Thread Matt Riddell

 On 18Jun, 2015, at 13:44, Greg Woods g...@gregandeva.net wrote:
 
 I am certain that the old number that is showing up as my caller ID is not 
 present in any of my config files (that includes sip.conf and iax.conf, 
 everything in the /etc/asterisk directory has been checked). 

Did you buy the number from your carrier?  Maybe it’s set on their side for the 
trunk.

--
Cheers,

Matt Riddell
___

http://www.venturevoip.com/news.php (Daily Asterisk News)
http://www.venturevoip.com/pabx_on_disk.php (PABX on a Disk)
http://www.venturevoip.com/exchange.php (Full ITSP Solution)
http://www.venturevoip.com/cc.php (Call Centre Solutions)



-- 
_
-- 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] setting outbound caller ID

2015-06-18 Thread Greg Woods
On Thu, Jun 18, 2015 at 1:26 PM, Matt Riddell li...@venturevoip.com wrote:

 Did you buy the number from your carrier?  Maybe it’s set on their side
 for the trunk.


That's what I think too, but they are denying this. I think what's
happening is they have a customer service guy interpreting logs (probably
incorrectly).

When I had a Century Link POTS line, I had a second number through my VOIP
provider that I only used rarely. The VOIP provider was used only as a
backup to cover any POTS outages (there were few), and occasionally to make
a second call when my wife was already on the line. The VOIP service was
very inexpensive (only $5/month plus a small per-minute fee when I actually
used it), plus they directly support asterisk use by supporting IAX
connections. Then I decided I wanted to save some money, since Century Link
was costing more than 8 times as much as the VOIP service, and while I was
thinking about this, a problem developed with the internal wiring in the
house (I did the demark test to confirm the CL line was OK). Since I didn't
want to pay to have the wiring repaired, I moved my main number over to the
VOIP provider. Worked great for inbound calls.

So now I have two numbers, and didn't want to pay for the extra one, so I
dropped the original VOIP number. That's where the trouble started. I want
my regular number that I ported over to be the one that shows in caller ID,
but the old one that doesn't even work any more was showing up instead. I
don't see any way that could be happening unless the provider is supplying
it, but they deny it.

At any rate, if I can figure out the right way to set the caller ID
explicitly, and assuming they honor it if I do, then none of this will
matter.

--Greg


--Greg
-- 
_
-- 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] setting outbound caller ID

2015-06-18 Thread Matt Riddell
 At any rate, if I can figure out the right way to set the caller ID 
 explicitly, and assuming they honor it if I do, then none of this will matter.

Ok, so just do exten = s,n,Set(CALLERID(all)=“Greg” 5551234)

https://wiki.asterisk.org/wiki/display/AST/Function_CALLERID

--
Cheers,

Matt Riddell
___

http://www.venturevoip.com/news.php (Daily Asterisk News)
http://www.venturevoip.com/pabx_on_disk.php (PABX on a Disk)
http://www.venturevoip.com/exchange.php (Full ITSP Solution)
http://www.venturevoip.com/cc.php (Call Centre Solutions)
-- 
_
-- 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] setting outbound caller ID

2015-06-18 Thread John Gilbert
You may need to set this up with the web portal of your ITSP. My provider 
allows both caller ID to be passed in via SIP or alternatively to have a 
pre-provisioned caller ID to be applied to all calls.

John


-- 
_
-- 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] setting outbound caller ID

2015-06-18 Thread Steve Edwards

On Thu, 18 Jun 2015, Matt Riddell wrote:


Did you buy the number from your carrier?


I prefer using 'rent' instead of 'buy' :)

--
Thanks in advance,
-
Steve Edwards   sedwa...@sedwards.com  Voice: +1-760-468-3867 PST
Newline  Fax: +1-760-731-3000

--
_
-- 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] Fax Header

2015-06-18 Thread Aşkın Yollu
Hi,
I am trying to add header to fax while sending fax. I can add some
information to header but some information added automatically (date and
page count). I want to format this information.

Header = Date | ${LOCALHEADERINFO} | ${FAXOPT(localstationid)} | Page Count

I can set LOCALHEADERINFO and FAXOPT(localstationid) but i cant find any
variable for Page Count and Date. How can i change this information.

Dialplan:
[asteriskgw_fax_live_with_header]
exten = s,1,Set(LOCALHEADERINFO=Sender ${CALLERID(number))
exten = s,n,Set(FAXOPT(localstationid)=SomeData)
exten = s,n,SendFAX(${FILEPATH},zdfs)

Thanks

-- 
Aşkın Yollu
http://blog.yollu.com
http://askin.ws
-- 
_
-- 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