Pour information, la version avec DIALSTATUS fonctionne très bien.
Pour notre sujet, j'ai ça dans la CLI (après reload évidemment, j'ai parlé de redémarrage machine à cause du fait que le reload ne faisait rien justement):
Code:
-- Executing [123@interne:1] Dial("SIP/111-00000000", "SIP/xlite,4,r") in new stack
== Using SIP RTP CoS mark 5
-- Called xlite
-- SIP/xlite-00000001 is ringing
-- SIP/xlite-00000001 answered SIP/111-00000000
-- Native bridging SIP/111-00000000 and SIP/xlite-00000001
== Using SIP RTP CoS mark 5
-- Executing [111@interne:1] Dial("SIP/114-00000002", "SIP/111,4,j") in new stack
== Using SIP RTP CoS mark 5
-- Called 111
-- Got SIP response 486 "Busy" back from 192.168.10.161
-- SIP/111-00000003 is busy
== Everyone is busy/congested at this time (1:1/0/0)
-- Executing [111@interne:2] Playback("SIP/114-00000002", "hello-world") in new stack
-- <SIP/114-00000002> Playing 'hello-world.alaw' (language 'fr')
-- Auto fallthrough, channel 'SIP/114-00000002' status is 'BUSY'
== Spawn extension (interne, 123, 1) exited non-zero on 'SIP/111-00000000'
Voici le dialplan avec lequel j'ai testé:
Code:
[general]
static=yes
writeprotect=no
priorityjumping=yes
[interne]
exten => 123,1,Dial(SIP/xlite,4,r)
exten => 116,1,Dial(SIP/114&SIP/111,4,r)
exten => 111,1,Dial(SIP/111,4,j)
exten => 111,2,Playback(hello-world)
exten => 111,102,Playback(tt-allbusy)
exten => 111,202,Playback(tt-allbusy)
et pour le sip (en résumer):
Code:
[general]
context=default
language=fr
[basic-options](!) ; a template
dtmfmode=rfc2833
context=from-office
type=friend
[public-phone](!,basic-options) ; another template inheriting basic-options
nat=no
directmedia=yes
host=dynamic
context=interne
[alaw-phone](!) ; and another one for alaw-only
disallow=all
allow=alaw
allow=gsm
[xlite](public-phone,alaw-phone)
secret = 1234
callerid= "XXXX" <123>
[100](public-phone,alaw-phone)
secret = 1234
callerid= "XXXX" <100>
[101](public-phone,alaw-phone)
secret = 1234
callerid= "XXXX" <101>