* You are viewing the archive for the ‘Asterisk-Users’ Category

Script to automatically update externip. Useful for a host with dynamic public IP

On Monday 06 Feb 2012, John Cahill wrote:
> logger -s “checksetexternip.sh: External IP address
> has changed, changing /etc/asterisk/sip_general_custom.conf” grep -v
> “externip” /etc/asterisk/sip_general_custom.conf >
> /etc/asterisk/sip_general_custom.conf.tmp echo “externip=$EXTERNIP”
> >> /etc/asterisk/sip_general_custom.conf.tmp cp
> /etc/asterisk/sip_general_custom.conf.tmp
> /etc/asterisk/sip_general_custom.conf rm
> /etc/asterisk/sip_general_custom.conf.tmp

You could also do something like:

sed -i -e “s/^externip *=.*/externip = $EXTERNIP/”
/etc/asterisk/sip.conf

Apologies for the wrapped code.

Regards,

Are there any ATAs that support IP6?

Are there any ATAs that support IPv6 in the wild, given that IP4 address
are running out?

/voipfc

res_http_post.so questions

In short – is this module essential for the running of Asterisk? What is
its function? Is there a help/list where I could find a description of
what it does? Thanks!

dial a queue

No :(

2012/2/6, Danny Nicholas :
> Queue(8888)?
>
> —–Original Message—–
> From: asterisk-users-bounces@lists.digium.com
> [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Alejandro
> Cabrera Obed
> Sent: Monday, February 06, 2012 1:40 PM
> To: Asterisk Users Mailing List – Non-Commercial Discussion
> Subject: Re: [asterisk-users] Custom extension: dial a queue
>
> No, Local/queue/8888 don’t work at all :(
>
> 2012/2/6, Danny Nicholas
:
>> Local/queue/8888?
>>
>> —–Original Message—–
>> From: asterisk-users-bounces@lists.digium.com
>> [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of
>> Alejandro Cabrera Obed
>> Sent: Monday, February 06, 2012 1:19 PM
>> To: Asterisk Users Mailing List – Non-Commercial Discussion
>> Subject: [asterisk-users] Custom extension: dial a queue
>>
>> Dear, I need to create a custom device extension in order to dial a
>> local queue.
>>
>> Suppose my queue number is 8888, how can fill the Dial field from the
>> custom extension ???
>>
>> Because if I put just 8888 or Local/8888, I don’t succeed.
>>
>> Thanks a lot
>>
>> –
>> _____________________________________________________________________
>> — 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
>>
>
>
> –
> Alejandro Cabrera Obed
> aco1967@gmail.com
> www.alejandrocabrera.com.ar
>
> –
> _____________________________________________________________________
> — 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
>

Playback with noanswer in AGI

Hi All,

I want to play a file in agi but dont want to answer the call

I am dialing through sip phone and running asterisk 1.8.6,

I tried following with no luck

$agi->exec(“Progress”);
$agi->exec(“Playback $filetoplay,noanswer”);
$agi->hangup();

When I dial I can’t hear the audio but if I answer the call or remove
noanswer argument I can hear the audio.

phpAGI’s stream_file didn’t help either.

I ended up with ResetCDR() before hangup to reset billsec, duration and
disposition but don’t want to do it this way.

What could be the problem?

From Voip-info.org :
*noanswer*: Play the sound file, but don’t answer the channel first (if
hasn’t been answered already). Not all channels support playing messages
while still on hook.

Is it because the channel is not supported?

Regards,
Zohair Raza