* You are viewing the archive for August 20th, 2012

Extensions Mask As Variable?

Hi, How to define a extension mask as global variable in Ast 1.8? For example:
[globals]
MYVARIABLE = _15[7-9]X

I tried this way but it did not work.

Thanks Att, Rafael Saraiva

Asterisk 11 – BLF On Custom Devices

In testing Asterisk 11, I’ve found that Asterisk doesn’t seem to be sending BLF updates to SIP peers that have subscribed to a hint looking at a Custom device if that Custom device state is RINGING or RING_INUSE. All other states seem to be working correctly.

The hint section of the dialplan is:
[hints]
exten => _3XX,hint,Custom:${EXTEN}

Console shows the following for core show hints with no calls:
-= Registered Asterisk Dial Plan Hints =-
_3XX@hints : Custom:${EXTEN} State:Idle Watchers 0
302@hints : Custom:302 State:Idle Watchers 2
303@hints : Custom:303 State:Idle Watchers 2
301@hints : Custom:301 State:Idle Watchers 2

And with a ringing call (301 calling 302):
-= Registered Asterisk Dial Plan Hints =-
_3XX@hints : Custom:${EXTEN} State:Idle Watchers 0
302@hints : Custom:302 State:Ringing Watchers 2
303@hints : Custom:303 State:Idle Watchers 2
301@hints : Custom:301 State:InUse Watchers 2

And after 302 picks up (301 and 302 on a call):
-= Registered Asterisk Dial Plan Hints =-
_3XX@hints : Custom:${EXTEN} State:Idle Watchers 0
302@hints : Custom:302 State:InUse Watchers 2
303@hints : Custom:303 State:Idle Watchers 2
301@hints : Custom:301 State:InUse Watchers 2

And after 303 tries to call 302 while 301 & 302 are still on a call (301 & 302 on a call, plus 303 calling 302):
-= Registered Asterisk Dial Plan Hints =-
_3XX@hints : Custom:${EXTEN} State:Idle Watchers 0
302@hints : Custom:302 State:InUse&Ringing Watchers 2
303@hints : Custom:303 State:InUse Watchers 2
301@hints : Custom:301 State:InUse Watchers 2

But despite the above, the BLF fields on my phones (Cisco SPA 509G for all 3 extensions) only update for Idle or InUse – they do not show the Ringing or InUse&Ringing statuses. I have verified the SPA phones BLFs do still show the correct Ringing and InUse&Ringing statuses if they subscribe directly to a SIP device’s state with the hint – the issue only seems to be effecting Custom devices. Can anyone think of anything else I should check?

Thank you,

Noah Engelberth MetaLINK Technologies

Asterisk 11 Queue Calls – Emulate Dial(b) Functionality

I currently run an Asterisk 10 system with hotdesking functionality set up. Several of the users have worked with a system in the past that supported BLF on their IP phones, and would like their current phones to behave in a similar fashion. Right now I have a really kludgy system that mostly works, but doesn’t consistently trigger the cleanup macro to “clear” the device state on the end of a call. Rather than continue to beat my head against the wall playing “which context isn’t firing an h extension to dump calls into the cleanup macro”, I decided to investigate Asterisk 11 for the new Dial() b function and the new hangup handler CHANNEL variable.

I have the hints working more or less correctly on direct calls to/from the phones, making use of the b and U functions in Dial() and some judicious use of GROUP channel variables and CHANNEL(hangup_handler_wipe). But, on my live system, sometimes the users receive calls from a queue, and I don’t see any way with the queue calls to emulate the b functionality in Dial() to be able to set the agent extension’s device state to RINGING when the queue call gets created. Obviously, I can use membergosub to set the agent to “INUSE” after they pick up the call (like Dial() U), but is there anything that I can use to manipulate the channel that is calling the agent while/before it is ringing?

Thank you,

Noah Engelberth MetaLINK Technologies

Digium Phones

I have been looking for the specs (format, bit rate, ect) on custom ringtones for digium phones. Using the DPMA how would I deliver the ringtone to a digium phone?

Asterisk As TLS Server As Well As TLS Client

Hi,

I have to connect 3 Asterisk servers,each of them being TLS server for his clients and connected in both way in TLS with both others asterisk, each having hi own Common Name. Is this possible?

I set up 2 asterik’s , one server and the other client, this is OK. But I can’t deal with certificats generated on both servers.

I tried to put tlscertfile ans tlscafile in the peer definition, each pointing to the certificate generated by the server, but thatÅ› not working.

Thanks for any hint.


Daniel

DTMF Issue.

Hi

I’ve got a little issue with DTMF/IVR on my Asterisk. I got 3 types of ATA
on the network who autenticate the phones: Linksys PAP2, Overtek OT-ATA200SP+ and Opticom VoIP 690. They autenticate at the VoIP
server at the same network all with g729 codecs and rfc2833 for the DTMF. Making calls via the Overtek ATA the DTMF works fine but at the others ATA
it doesn’t.

My config:

- asterisk 1.6.2.13
- dahdi 2.3.0.1
- The phones connected are all physical phones