Re: [asterisk-users] How does Ast use IP vs FQDN for SIP header fields

2016-08-04 Thread Annus Fictus

hello,

try to add fromdomain=yourdomain

in your trunk configuration.

regards


El 04/08/2016 a las 21:20, Telium Technical Support escribió:


We are working with an ISP that needs Asterisk to place a FQDN name in 
the SIP ‘FROM’ and ‘INVITE’ fields – where Asterisk is currently using 
an IP address.  A SIP trace shows the following from my Asterisk box:


INVITE sip:62351155@1.1.1.1 SIP/2.0

Via: SIP/2.0/UDP 2.2.2.2:5060;branch=z9hG4bK49f1d30e

From: "MYNAM" ;tag=as3d9596b0

We tried adding hosts file entries mapping these IP’s to hostname’s 
but Asterisk didn’t use them.  Can someone suggest how to do this?






-- 
_
-- 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] How does Ast use IP vs FQDN for SIP header fields

2016-08-04 Thread Telium Technical Support
We are working with an ISP that needs Asterisk to place a FQDN name in the
SIP 'FROM' and 'INVITE' fields - where Asterisk is currently using an IP
address.  A SIP trace shows the following from my Asterisk box:

 

INVITE sip:62351155@1.1.1.1 SIP/2.0

Via: SIP/2.0/UDP 2.2.2.2:5060;branch=z9hG4bK49f1d30e

From: "MYNAM" ;tag=as3d9596b0

 

We tried adding hosts file entries mapping these IP's to hostname's but
Asterisk didn't use them.  Can someone suggest how to do this?

 

 

-- 
_
-- 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] DAHDI Dynamic span as INT device identificator

2016-08-04 Thread Rafael dos Santos Saraiva
Hi

Is it possible assign an INT identification to dynamic device in DAHDI?
Example:

This is device: DYN/eth/eth1/04:74:A1:00:0A:AE/0
I want call this as span 1

I saw the assigned-spans.conf and aparently can be this.

Thanks in advance.


-- 

[image: Sua Foto]  Rafael S. Saraiva
Porto Alegre - RS | Mobile:  (51) 8174-7956


-- 
_
-- 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] Removing mailbox and password prompt for voicemail

2016-08-04 Thread Israel Gottlieb
Hi
Could please show us your dialplan as you have it now and the lines in the
log on that call it would probably help a lot more

בתאריך 4 באוג׳ 2016 5:00 PM,‏ "Nabeel"  כתב:

> What happens when you dial "*98" from your own
>> phone.
>
>
> I get password prompt if a password is set, and no password prompt if no
> password is set.
>
>
> On 4 August 2016 at 14:36, D'Arcy J.M. Cain  wrote:
>
>> On Thu, 4 Aug 2016 14:03:39 +0100
>> Nabeel  wrote:
>> > I should add, a password is *always* asked if a password has been set.
>> > There isn't a way to bypass that.
>>
>> Then something is wrong.
>>
>> http://darcy.vex.net/star98.mp3
>>
>> --
>> D'Arcy J.M. Cain
>> System Administrator, Vex.Net
>> http://www.Vex.Net/ IM:da...@vex.net
>> VoIP: sip:da...@vex.net
>>
>
> I wonder if the difference could be due to different Asterisk versions or
> the use of ODBC storage. For me, no password is asked only if I don't set a
> password. In other cases, it does. But i'll keep testing.
>
> --
> _
> -- 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] Removing mailbox and password prompt for voicemail

2016-08-04 Thread Nabeel
>
> What happens when you dial "*98" from your own
> phone.


I get password prompt if a password is set, and no password prompt if no
password is set.


On 4 August 2016 at 14:36, D'Arcy J.M. Cain  wrote:

> On Thu, 4 Aug 2016 14:03:39 +0100
> Nabeel  wrote:
> > I should add, a password is *always* asked if a password has been set.
> > There isn't a way to bypass that.
>
> Then something is wrong.
>
> http://darcy.vex.net/star98.mp3
>
> --
> D'Arcy J.M. Cain
> System Administrator, Vex.Net
> http://www.Vex.Net/ IM:da...@vex.net
> VoIP: sip:da...@vex.net
>

I wonder if the difference could be due to different Asterisk versions or
the use of ODBC storage. For me, no password is asked only if I don't set a
password. In other cases, it does. But i'll keep testing.
-- 
_
-- 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] Removing mailbox and password prompt for voicemail

2016-08-04 Thread D'Arcy J.M. Cain
On Thu, 4 Aug 2016 09:38:24 -0400
"Robert Berlin"  wrote:
> A password prompt is avoidable with a ",s" in the VoicemailMain
> appdata 

Perhaps you should read the whole thread before replying.  Variations
of your suggestions have been made a number of times.  Also, please
watch the attributions.  I am not the one trying to make this work.

-- 
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] Removing mailbox and password prompt for voicemail

2016-08-04 Thread Robert Berlin
A password prompt is avoidable with a ",s" in the VoicemailMain appdata 
  
   Robert Berlin
 Manager of Operations & Systems Development
 Florida High Speed Internet
 (321) 205-1100 x109

  

  
  

  


 From: "D'Arcy J.M. Cain" 
Sent: Thursday, August 04, 2016 9:36 AM
To: "Nabeel" 
Cc: asterisk-users@lists.digium.com
Subject: Re: [asterisk-users] Removing mailbox and password prompt for 
voicemail   
On Thu, 4 Aug 2016 14:03:39 +0100
Nabeel  wrote:
> I should add, a password is *always* asked if a password has been set.
> There isn't a way to bypass that.

Then something is wrong.

http://darcy.vex.net/star98.mp3

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

Re: [asterisk-users] Removing mailbox and password prompt for voicemail

2016-08-04 Thread D'Arcy J.M. Cain
On Thu, 4 Aug 2016 14:03:39 +0100
Nabeel  wrote:
> I should add, a password is *always* asked if a password has been set.
> There isn't a way to bypass that.

Then something is wrong.

http://darcy.vex.net/star98.mp3

-- 
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] Removing mailbox and password prompt for voicemail

2016-08-04 Thread D'Arcy J.M. Cain
On Thu, 4 Aug 2016 14:03:25 +0100
A J Stiles  wrote:
> To get rid of the "Mailbox?" prompt, you need to supply a mailbox as
> a parameter to the VoicemailMain() command:

That's why I suggested this extension at the start of this thread.

exten => *98,1,Verbose(0,${CHANNEL(peername)} calling voicemail)
same => n,VoicemailMain(${CHANNEL(peername)}@VoiceMail,s)
same => n,Hangup

-- 
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] Removing mailbox and password prompt for voicemail

2016-08-04 Thread Robert Berlin
Excuse my formatting here, this is my first contribution to the list. I 
believe I understand what you are trying to accomplish. In my dial plans I 
have extension 87 setup to go to a peers voicemail box directly without 
need for a password. The App/Appdata I call is as shown below. Hope this 
helps!
  
 VoicemailMain(${SIPPEER(${CHANNEL(peername)}:mailbox)},s)
  
   Robert Berlin
 Manager of Operations & Systems Development
 Florida High Speed Internet
 (321) 205-1100

  

  
  

  


 From: "D'Arcy J.M. Cain" 
Sent: Thursday, August 04, 2016 9:13 AM
To: "Nabeel" 
Cc: asterisk-users@lists.digium.com
Subject: Re: [asterisk-users] Removing mailbox and password prompt for 
voicemail   
On Thu, 4 Aug 2016 14:01:27 +0100
Nabeel  wrote:
> You seem to misunderstand even after I have explained. I don't need a
> password when calling my mailbox from my own registered phone (not

And the extension I suggested in answer to your original question will
do that for you. Are you saying that pressing "*98" from your phone
requests a password?

> calling from any other phone). I don't need to call my mailbox from
> other phones on the planet, so I don't need a password. Consider the

You need a password to protect your mailbox from people entering '*'
during your message. The extension I gave you bypasses the password
when you call from your own phone.

> voicemail you get from your mobile network on your mobile phone. You
> don't access it from any phone in the world; you only access it from
> the mobile phone which has your SIM, and you probably don't enter a
> password for it.

Yes but if someone accesses it from another phone it damn well better
ask for a password before serving up my messages.

> The password is only asked if a password has been set. A password is
> also asked if any number is entered after the 'mailbox' prompt.

>From outside phones. What happens when you dial "*98" from your own
phone.

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

Re: [asterisk-users] Removing mailbox and password prompt for voicemail

2016-08-04 Thread D'Arcy J.M. Cain
On Thu, 4 Aug 2016 14:01:27 +0100
Nabeel  wrote:
> You seem to misunderstand even after I have explained.  I don't need a
> password when calling my mailbox from my own registered phone (not

And the extension I suggested in answer to your original question will
do that for you.  Are you saying that pressing "*98" from your phone
requests a password?

> calling from any other phone). I don't need to call my mailbox from
> other phones on the planet, so I don't need a password.  Consider the

You need a password to protect your mailbox from people entering '*'
during your message.  The extension I gave you bypasses the password
when you call from your own phone.

> voicemail you get from your mobile network on your mobile phone. You
> don't access it from any phone in the world; you only access it from
> the mobile phone which has your SIM, and you probably don't enter a
> password for it.

Yes but if someone accesses it from another phone it damn well better
ask for a password before serving up my messages.

> The password is only asked if a password has been set. A password is
> also asked if any number is entered after the 'mailbox' prompt.

>From outside phones.  What happens when you dial "*98" from your own
phone.

-- 
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] Removing mailbox and password prompt for voicemail

2016-08-04 Thread A J Stiles
On Thursday 04 Aug 2016, Nabeel wrote:
> On 30 July 2016 at 19:32, D'Arcy J.M. Cain  wrote:
> > Not playing the prompt changes nothing.  If someone presses '*' while
> > listening to your answer message then they are in your mailbox.  You
> > better have a password that they need to enter to continue.
> 
> I have now tested the 'Unavailable' message by pressing "*" while listening
> to the recorded message. I can confirm that this does NOT directly enter to
> the called number's mailbox. It actually enter's the registered
> device's/caller's own mailbox. Therefore, this does not necessitate setting
> a password.
> 
> The problem is that the 'mailbox' prompt allows a way for accessing any
> other mailbox, which is not necessary in my case. If anyone knows a way to
> remove this 'mailbox' prompt, please let me know.
> 
> Nabeel

To get rid of the "Mailbox?" prompt, you need to supply a mailbox as a 
parameter to the VoicemailMain() command:

exten => ,y,VoicemailMail(${mbox})

This takes you straight to the mailbox specified by ${mbox} .  If mailboxes are 
simply the same as extension numbers, then you can just use ${CALLERID(num)} 
here.  Otherwise, you may need a script to look them up in a database.

If you also add the "s" option, like this:

exten => ,y,,VoicemailMail(${mbox},s)

Then this will also get rid of the "Password?" prompt  (and therefore presume 
you are already authenticated).  Therefore, this should *only* be used in one 
of the following situations:

(1)  In a small, intimate business environment, where there is full mutual 
trust between all personnel and nobody has any secrets from anybody else.

(2)  Where sufficient precautions have been taken to ensure that phones are 
physically secure against unwanted access.

The latter is the approach usually taken by telcos with their basic voicemail 
configuration; your messages can only be retrieved from your own phone, which 
normally is either behind a locked door  (if it is a land line)  or about your 
person  (if it is a mobile).

For instance, you might have something like this in your Dialplan.  
"get_mailbox.agi" is an AGI script  (not included)  for looking up the mailbox 
associated with a caller's number and populating a channel variable "mbox", or 
leaving it empty in the event of an error.  "ajs-vm_not_avail.wav" is a sound 
file  (also not included)  announcing that voicemail is not available.

exten => 1571,1,AGI(get_mailbox.agi,${CALLERID(num)})
exten => 1571,n,GotoIf($[${mbox}]?mbox_ok:mbox_err)
exten => 1571,n(mbox_ok),VoicemailMain(${mbox}, s)
exten => 1571,n,Hangup()
exten => 1571,n(mbox_ng),Playback(ajs-vm_not_avail)
exten => 1571,n,Hangup()

-- 
AJS

Note:  Originating address only accepts e-mail from list!  If replying off-
list, change address to asterisk1list at earthshod dot co dot uk .

-- 
_
-- 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] Removing mailbox and password prompt for voicemail

2016-08-04 Thread Nabeel
> On 4 August 2016 at 13:18, D'Arcy J.M. Cain  wrote:
>
>>  without asking for a password.
>>
>
>
I should add, a password is *always* asked if a password has been set.
There isn't a way to bypass that.
-- 
_
-- 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] Removing mailbox and password prompt for voicemail

2016-08-04 Thread Nabeel
On 4 August 2016 at 13:18, D'Arcy J.M. Cain  wrote:

>
> Let's get this straight.  You call yourself from any phone in the world
> and press '*' while listening to the message, you wind up in your own
> mailbox and you believe that means that you don't need a password?  Do
> you think that the phone system somehow knows that it is you calling
> and not one of the other 7.4 billion people on the planet.  The
> password is how it knows.
>

You seem to misunderstand even after I have explained.  I don't need a
password when calling my mailbox from my own registered phone (not calling
from any other phone). I don't need to call my mailbox from other phones on
the planet, so I don't need a password.  Consider the voicemail you get
from your mobile network on your mobile phone. You don't access it from any
phone in the world; you only access it from the mobile phone which has your
SIM, and you probably don't enter a password for it.


> This seems to conflict with the first paragraph.  Are you being asked
> for the mailbox number or the password?  In a properly set up system,
> entering '*' during the message should put you into the callee's
> mailbox and ask for a password.  Calling '*98' from your own phone, if
> the extension I originally showed you exists, should put you directly
> into your own mailbox without asking for a password.


The password is only asked if a password has been set. A password is also
asked if any number is entered after the 'mailbox' prompt.

Nabeel
-- 
_
-- 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] Removing mailbox and password prompt for voicemail

2016-08-04 Thread D'Arcy J.M. Cain
On Thu, 4 Aug 2016 09:12:53 +0100
Nabeel  wrote:
> On 30 July 2016 at 19:32, D'Arcy J.M. Cain  wrote:
> > Not playing the prompt changes nothing.  If someone presses '*'
> > while listening to your answer message then they are in your
> > mailbox.  You better have a password that they need to enter to
> > continue.
>
> I have now tested the 'Unavailable' message by pressing "*" while
> listening to the recorded message. I can confirm that this does NOT
> directly enter to the called number's mailbox. It actually enter's
> the registered device's/caller's own mailbox. Therefore, this does
> not necessitate setting a password.

Let's get this straight.  You call yourself from any phone in the world
and press '*' while listening to the message, you wind up in your own
mailbox and you believe that means that you don't need a password?  Do
you think that the phone system somehow knows that it is you calling
and not one of the other 7.4 billion people on the planet.  The
password is how it knows.

> The problem is that the 'mailbox' prompt allows a way for accessing
> any other mailbox, which is not necessary in my case. If anyone knows
> a way to remove this 'mailbox' prompt, please let me know.

This seems to conflict with the first paragraph.  Are you being asked
for the mailbox number or the password?  In a properly set up system,
entering '*' during the message should put you into the callee's
mailbox and ask for a password.  Calling '*98' from your own phone, if
the extension I originally showed you exists, should put you directly
into your own mailbox without asking for a password.

I think that it is well past the time to tell us what your setup is and
exactly what you are trying to accomplish.  I think that you may be
making the common error of telling us your solution (remove mailbox
prompt) rather than your actual problem.

-- 
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] Removing mailbox and password prompt for voicemail

2016-08-04 Thread ka

On 2016-08-04 09:12, Nabeel wrote:

The problem is that the 'mailbox' prompt allows a way for accessing
any other mailbox, which is not necessary in my case. If anyone knows
a way to remove this 'mailbox' prompt, please let me know.



Not having followed the thread from the beginning I must admit, not sure 
if the 's' flag has been suggested to you?  What I have in my dial plan 
is


exten => 100,n,VoicemailMain(s${CALLERID(num)})

So callers can dial 100 from their phones and get immediately into their 
mailboxes without any sort of authentication.


This does have security concerns as anyone can walk up to anybody else's 
phone and start dialling to listen to someone else's messages.  In my 
installation this is not a problem, but could be a problem elsewhere.


Apologies if the thread was about something entirely different and this 
was not the problem.


regards
Adam


--
_
-- 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] Removing mailbox and password prompt for voicemail

2016-08-04 Thread Nabeel
On 30 July 2016 at 19:32, D'Arcy J.M. Cain  wrote:
>
>
> Not playing the prompt changes nothing.  If someone presses '*' while
> listening to your answer message then they are in your mailbox.  You
> better have a password that they need to enter to continue.



I have now tested the 'Unavailable' message by pressing "*" while listening
to the recorded message. I can confirm that this does NOT directly enter to
the called number's mailbox. It actually enter's the registered
device's/caller's own mailbox. Therefore, this does not necessitate setting
a password.

The problem is that the 'mailbox' prompt allows a way for accessing any
other mailbox, which is not necessary in my case. If anyone knows a way to
remove this 'mailbox' prompt, please let me know.

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