Re: [asterisk-users] Flowroute: howto set outbound callerid (ast 1.4)?

2012-07-10 Thread Alex Balashov
SIPAddHeader() comes to mind. :-) 




-- Alex

--
Sent from my Samsung mobile, and thus lacking in the refinement one might 
expect from a proper keyboard. 

Alex Balashov - Principal
Evariste Systems LLC
235 E Ponce de Leon Ave
Suite 106
Decatur, GA 30030
Tel: +1-678-954-0670
Web: http://www.evaristesys.com/Patrick Lists asterisk-l...@puzzled.xs4all.nl 
wrote:Hi,

The flowroute website mentions that they set callerid on outbound calls 
based on the presence of (in order of preference): 
P-Asserted-Identity, Remote-Party-ID or From:.

I've been trying to make outbound callerid work via flowroute to no 
avail. Does anyone have an extensions.conf / sip.conf snippet howto make 
this work? This is for Asterisk 1.4.44.

Thanks!
Patrick

--
_
-- 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] Flowroute: howto set outbound callerid (ast 1.4)?

2012-07-10 Thread Patrick Lists

On 10-07-12 18:29, Alex Balashov wrote:

SIPAddHeader() comes to mind. :-)


Yup I got that far :) I tried things like (with correct name  number):

exten = _1ZX,1,SipAddHeader(P-Asserted-Identity: Global 
Minties Corp sip:19995551212@AST_BOX_FQDN)


But that did not work as flowroute always sends VOIP CALLER and a ton 
of different numbers on outbound calls. So I guess I am doing something 
wrong but I can't figure out what.


Regards,
Patrick

--
_
-- 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] Flowroute: howto set outbound callerid (ast 1.4)?

2012-07-10 Thread Ira

At 09:20 AM 7/10/2012, you wrote:
I've been trying to make outbound callerid work via flowroute to no 
avail. Does anyone have an extensions.conf / sip.conf snippet howto 
make this work? This is for Asterisk 1.4.44.


This is a section of code I use to choose outgoing callerid for my 
Flowroute lines. I have a number of companies and this lets the 
caller select what the called parts sees.


Ira

  same = n(got0),set(thiscid=NOONE2345678901)
  same = n,goto(gotcallerid)
  same = n(got1),set(thiscid=Bob and Lucy3124726322)
  same = n,goto(gotcallerid)
  same = n(got2),set(thiscid=31247240223124724022)
  same = n,goto(gotcallerid)
  same = n(got3),set(thiscid=Mustang3126925021)
  same = n,goto(gotcallerid)



--
_
-- 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] Flowroute: howto set outbound callerid (ast 1.4)?

2012-07-10 Thread Danny Nicholas
Check your users.conf - this looks like an override issue to me.

-Original Message-
From: asterisk-users-boun...@lists.digium.com
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Patrick Lists
Sent: Tuesday, July 10, 2012 11:45 AM
To: asterisk-users@lists.digium.com
Subject: Re: [asterisk-users] Flowroute: howto set outbound callerid (ast
1.4)?

On 10-07-12 18:29, Alex Balashov wrote:
 SIPAddHeader() comes to mind. :-)

Yup I got that far :) I tried things like (with correct name  number):

exten = _1ZX,1,SipAddHeader(P-Asserted-Identity: Global Minties
Corp sip:19995551212@AST_BOX_FQDN)

But that did not work as flowroute always sends VOIP CALLER and a ton of
different numbers on outbound calls. So I guess I am doing something wrong
but I can't figure out what.

Regards,
Patrick

--
_
-- 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] Flowroute: howto set outbound callerid (ast 1.4)?

2012-07-10 Thread Warren Selby
On Tue, Jul 10, 2012 at 11:45 AM, Patrick Lists 
asterisk-l...@puzzled.xs4all.nl wrote:

 On 10-07-12 18:29, Alex Balashov wrote:

 SIPAddHeader() comes to mind. :-)


 Yup I got that far :) I tried things like (with correct name  number):

 exten = _1ZX,1,SipAddHeader(P-**Asserted-Identity: Global
 Minties Corp sip:19995551212@AST_BOX_FQDN**)

 But that did not work as flowroute always sends VOIP CALLER and a ton of
 different numbers on outbound calls. So I guess I am doing something wrong
 but I can't figure out what.



You can't* set the outbound name.  That's defined in the national caller id
name database that the receiving phone company dips into.  As far as I
know, Flowroute does not add entries to this database, nor do they dip it
when you receive a call to pass the caller ID name on inbound calls.  Other
providers do.

* - You may be able to set it if you're calling other users on the
Flowroute network, I'm not sure.  But in general, once your call leaves the
Flowroute network, the only way to get the CNAM info is from a CNAM dip to
the national database (I don't recall the actual name).

-- 
Thanks,
--Warren Selby, dCAP
http://www.SelbyTech.com http://www.selbytech.com
--
_
-- 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] Flowroute: howto set outbound callerid (ast 1.4)?

2012-07-10 Thread Patrick Lists

On 10-07-12 18:49, Warren Selby wrote:

You can't* set the outbound name.  That's defined in the national caller
id name database that the receiving phone company dips into.  As far as
I know, Flowroute does not add entries to this database, nor do they dip
it when you receive a call to pass the caller ID name on inbound calls.
Other providers do.


Thank you for your feedback Warren. I removed the outbound name but 
still get random numbers  VOIP CALLER on outbound calls. Googling I 
tried some more:


SipAddHeader(P-Asserted-Identity: sip:19995551212@AST_BOX_FQDN)
SipAddHeader(P-Asserted-Identity: 19995551212)
SipAddHeader(P-Preferred-Identity: sip:19995551212@AST_BOX_FQDN)
SipAddHeader(P-Preferred-Identity: 19995551212)

But none of them work. So unless someone has the magic incantation howto 
make this work I'll open a ticket with flowroute.


Regards,
Patrick

--
_
-- 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] Flowroute: howto set outbound callerid (ast 1.4)?

2012-07-10 Thread Warren Selby
On Tue, Jul 10, 2012 at 12:34 PM, Patrick Lists 
asterisk-l...@puzzled.xs4all.nl wrote:

 Thank you for your feedback Warren. I removed the outbound name but still
 get random numbers  VOIP CALLER on outbound calls. Googling I tried some
 more:

 SipAddHeader(P-Asserted-**Identity: sip:19995551212@AST_BOX_FQDN**)
 SipAddHeader(P-Asserted-**Identity: 19995551212)
 SipAddHeader(P-Preferred-**Identity: sip:19995551212@AST_BOX_FQDN**)
 SipAddHeader(P-Preferred-**Identity: 19995551212)

 But none of them work. So unless someone has the magic incantation howto
 make this work I'll open a ticket with flowroute.



I use Flowroute.  My outbound callerID is set as follows:

[outgoing]
exten = _X.,1,Verbose(Outound call from ${callidnum} to ${EXTEN} on
${STRFTIME(${EPOCH},,%D)} at ${STRFTIME(${EPOCH},,%T)})
exten = _X.,n,Set(CALLERID(num)=${callidnum})
exten = _X.,n,Goto(outgoing-dial,${EXTEN},1)

[outgoing-dial]
exten = _NXXNXX,1,Dial(SIP/1${EXTEN}@flowroute)

exten = _1NXXNXX,1,Dial(SIP/${EXTEN}@flowroute)


${callidnum} is a variable from my SIP peer (setvar=callidnum=7133437300).
This always passes my proper phone number when I make outbound calls.

-- 
Thanks,
--Warren Selby, dCAP
http://www.SelbyTech.com http://www.selbytech.com
--
_
-- 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] Flowroute: howto set outbound callerid (ast 1.4)?

2012-07-10 Thread Patrick Lists

On 10-07-12 18:48, Danny Nicholas wrote:

Check your users.conf - this looks like an override issue to me.


Thank you for your feedback Danny. users.conf is default and has not 
been touched.


Regards,
Patrick

--
_
-- 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] Flowroute: howto set outbound callerid (ast 1.4)?

2012-07-10 Thread Patrick Lists

On 10-07-12 18:47, Ira wrote:

At 09:20 AM 7/10/2012, you wrote:

I've been trying to make outbound callerid work via flowroute to no
avail. Does anyone have an extensions.conf / sip.conf snippet howto
make this work? This is for Asterisk 1.4.44.


This is a section of code I use to choose outgoing callerid for my
Flowroute lines. I have a number of companies and this lets the caller
select what the called parts sees.

Ira

   same = n(got0),set(thiscid=NOONE2345678901)
   same = n,goto(gotcallerid)
   same = n(got1),set(thiscid=Bob and Lucy3124726322)
   same = n,goto(gotcallerid)
   same = n(got2),set(thiscid=31247240223124724022)
   same = n,goto(gotcallerid)
   same = n(got3),set(thiscid=Mustang3126925021)
   same = n,goto(gotcallerid)


Thank you for that snippet Ira. You and Warren were spot on. All is fine 
now.


Thanks!
Patrick

--
_
-- 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] Flowroute: howto set outbound callerid (ast 1.4)?

2012-07-10 Thread Patrick Lists

On 10-07-12 19:48, Warren Selby wrote:

On Tue, Jul 10, 2012 at 12:34 PM, Patrick Lists
asterisk-l...@puzzled.xs4all.nl
mailto:asterisk-l...@puzzled.xs4all.nl wrote:

Thank you for your feedback Warren. I removed the outbound name but
still get random numbers  VOIP CALLER on outbound calls. Googling
I tried some more:

SipAddHeader(P-Asserted-__Identity: sip:19995551212@AST_BOX_FQDN__)
SipAddHeader(P-Asserted-__Identity: 19995551212)
SipAddHeader(P-Preferred-__Identity: sip:19995551212@AST_BOX_FQDN__)
SipAddHeader(P-Preferred-__Identity: 19995551212)

But none of them work. So unless someone has the magic incantation
howto make this work I'll open a ticket with flowroute.



I use Flowroute.  My outbound callerID is set as follows:

[outgoing]
exten = _X.,1,Verbose(Outound call from ${callidnum} to ${EXTEN} on
${STRFTIME(${EPOCH},,%D)} at ${STRFTIME(${EPOCH},,%T)})
exten = _X.,n,Set(CALLERID(num)=${callidnum})
exten = _X.,n,Goto(outgoing-dial,${EXTEN},1)

[outgoing-dial]
exten = _NXXNXX,1,Dial(SIP/1${EXTEN}@flowroute)

exten = _1NXXNXX,1,Dial(SIP/${EXTEN}@flowroute)


${callidnum} is a variable from my SIP peer
(setvar=callidnum=7133437300).  This always passes my proper phone
number when I make outbound calls.


Thank you for that snippet Warren. I setup a different US DID and called 
that one via flowroute and the callerid worked. Previously I called a 
voip.ms toll-free number. I'll blame it on (lack of) carrier 
interoperability :) Good to know outbound callerid works without having 
to use magic SipAddHeader incantations.


Thanks!
Patrick

--
_
-- 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