Asterisk-14.7.6 configuration

Hello, Am working on Asterisk for just two months. I configured some extensions and conference with confbridge. Everything is working fine but i want do three others thing. i have read a lot thing but till know i did not find something.
1- conference begin time and end time configuration
2-Phone Alcatel lucent premium Desktop connect on Asterisk
3-How to configure the SIP trunk between my SIP server and another SIP server.

Thanks.

  1. Timed contexts or GotoIfTIme().

  2. I know nothing about the third party product.

  3. Same as for an ITSP except that you can probably use static addresses on both sides (and it is better if you can), rather than having one side register.

Hello David
Thank you,can i have have a sample of usage the time timed contexts or GotoIfTime please,i mean an example of utilisation?

https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Application_GotoIfTime

The below code will only play ‘Hello World’ on Mondays, all other days will play ‘Goodbye’

exten => s,1,GotoIfTime(mon,*,*,*?MONDAY)
 same => n,Playback(goodbye)
 same => n,Hangup()
 same => n(MONDAY),Playback(hello-world)
 same => n,Hangup()

These are supplied with Asterisk (in the sample configuration files).

Hello David and johnkiniston
Thanks for your answer.
But it is still the same. I want to use this for a conference starting time and ending time.
Here is my configuration:

Extension.conf

[INTERNO]
exten=> _89xxx,1,Dial(SIP/${EXTEN},20,tr)
exten=> _89xxx,2,Hangup()

;
;CONFERENCE - GUEST
;
exten => 666,1,ExecIfTime(14:50-15:00,mon-sun,,?Dial(SIP/666,50,T)
exten => 666,1,Progress()
exten => 666,2,Wait(1)
exten => 666,3,ConfBridge(1,default_bridge,default_user)

;
;CONFERENCE - ADMIN
;
exten => 777,1,ExecIfTime(14:50-15:00,mon-sun,,?Dial(SIP/777,50,T)
exten => 777,1,Progress()
exten => 777,2,Wait(1)
exten => 777,3,ConfBridge(1,default_bridge,admin_user)

Confbridge.conf
[general]

[admin_user]
type=user
pin=5555
marked=yes
admin=yes
music_on_hold_when_empty=yes
announce_user_count=yes
dsp_drop_silence=yes
denoise=yes
;announce_join_leave=yes

[default_user]
type=user
pin=1234
wait_marked=yes
end_marked=yes
music_on_hold_when_empty=yes
announce_user_count=yes
dsp_drop_silence=yes
denoise=yes
;announce_join_leave=yes

[default_bridge]
type=bridge
language=fr
max_members=10
video_mode = follow_talker

Thanks

Hello @david551 and @johnkiniston
Can you help please?

Thanks.

Tagging people directly as a means of bumping your post isn’t good community behavior. The people who have responded to you previously have done so out of their generosity. They’re not being paid to do it.

1 Like

Hello @malcolmd
Okay get it.

thank you.

Hello
Can someone help me please ?
:frowning_face:

You have two priority ones on both extensions.

Your parentheses don’t match.

Correcting for those, you appear to want to call the device with the same name as the extension if the call arrives in one ten minute period, and enter the conference if that call fails. At other times, you seem to want to enter the conference unconditionally.

This doesn’t seem to match your initial description of the requirement.

If you want a wildcard match for an extension, you must use upper case, rather than lower case, “X”.

You haven’t provided a log to show how the call fails.

You haven’t provided your attempt at using a “trunk”.

Hello David
i changed my extension.conf and i do not have trunks.

[INTERNO]
exten=> _89xxx,1,Dial(SIP/${EXTEN},20,tr)
exten=> _89xxx,2,Hangup()

exten => 666,1,GotoIfTime(14:10-15:00,mon-sun,?CONF,666)
exten => 777,1,GotoIfTime(14:10-15:00,mon-sun,?CONF,777,3)

[CONF]
;
;CONFERENCE - GUEST
;
#exten => 666,1,ExecIfTime(14:50-15:00,mon-sun,,?Dial(SIP/666,50,T))
exten => 666,1,Progress()
exten => 666,2,Wait(1)
exten => 666,3,ConfBridge(1,default_bridge,default_user)

;
;CONFERENCE - ADMIN
;
#exten => 777,1,ExecIfTime(14:50-15:00,mon-sun,,?Dial(SIP/777,50,T)
exten => 777,1,Progress()
exten => 777,2,Wait(1)
exten => 777,3,ConfBridge(1,default_bridge,admin_user)

Here my log when i try to call 777 or 666

In addition to the points already noted, GoTo destination can be truncated on the left, not on the right.

Hello David
What you mean by “truncated” please?