tomster schrieb:Zumindest beim 350'er ist wohl laut Homepage von Portech in der Version 350S nun ein SMS-Feature implementiert. Ob es sich dabei um eine HW-Modifikation oder lediglich ein FW-Update handelt kann ich nicht sagen...
Aber es könnte sein, dass das 370 diese Funktion nachgereicht bekommt. Frag einfach mal nach bei Portech.
Ich bräuchte noch mehr Informationen über deine Konfiguration. Welche Hardware, Telefonanlage, wie miteinander verbunden, wie sieht die extension.conf aus???cohibnig schrieb:Aber das Gateway gebt abt und dann kann ich eine interne Nummer wählen. Dann komme ich zu einer Nebenstelle. Aber direkt zum Asterisk geht nicht. Wie greift das Gateway auf den Context zu. Vielleicht habe ich dort einen Fehler?
[GSM_Gateway_out]
username=40
type=friend
secret=40
qualify=yes
insecure=very
host=192.168.10.245
fromuser=40
context=from-pstn
canreinvite=no
Und eine Extensions mit:
[40]
username=40
type=friend
secret=40
record_out=Adhoc
record_in=Adhoc
qualify=no
port=5060
nat=never
mailbox=40@device
host=dynamic
dtmfmode=rfc2833
context=from-internal
canreinvite=no
callerid=Gateway <40>
[from-internal]
; applications are now mostly all found in from-internal-additional in _custom.conf
include => parkedcalls
include => from-internal-custom
;allow phones to dial other extensions
include => ext-fax
;allow phones to access generated contexts
;
; MODIFIED (PL)
;
; Currently the include for findmefollow is being auto-generated before ext-local which is the desired behavior.
; However, I haven't been able to do anything that I know of to force this. We need to determine if it should
; be hardcoded into here to make sure it doesn't change with some configuration. For now I will leave it out
; until we can discuss this.
;
include => from-internal-additional
exten => s,1,Macro(hangupcall)
exten => h,1,Macro(hangupcall)
[from-internal-custom]
include => from-internal-trixbox
;1234,1,Playback(demo-congrats) ; extensions can dial 1234
;1234,2,Hangup()
;h,1,Hangup()
;include => custom-recordme ; extensions can also dial 5678
; custom-count2four,s,1 can be used as a custom target for
; a Digital Receptionist menu or a Call Group
;[custom-count2four]
;s,1,SayDigits(1234)
;s,2,Hangup
; custom-recordme,5678,1 can be used as a custom target for
; a Digital Receptionist menu or a Call Group
;[custom-recordme]
;exten => 5678,1,Wait(2)
;exten => 5678,2,Record(/tmp/asterisk-recording:gsm)
;exten => 5678,3,Wait(2)
;exten => 5678,4,Playback(/tmp/asterisk-recording)
;exten => 5678,5,Wait(2)
;exten => 5678,6,Hangup
[from-internal-trixbox]
include => custom-speed-dial
exten => _*8.,1,Pickup(${EXTEN:2}) ; GXP-2000 phone press BLF to pick up ringing call
;exten => _**.,1,Pickup(${EXTEN:2}) ; GXP-2000 phone press BLF to pick up ringing call
;exten => _*8.,1,Pickup(2)
exten => *61,1,Answer
exten => *61,2,AGI(weather.agi)
exten => *61,3,Hangup
exten => *62,1,Answer
exten => *62,2,AGI(wakeup.php)
exten => *62,3,Hangup
exten => 611,1,Answer
exten => 611,2,Wait(1)
exten => 611,3,DigitTimeout(7)
exten => 611,4,ResponseTimeout(10)
exten => 611,5,Flite("At the beep enter the three character airport code for the weather report you wish to retrieve.")
exten => 611,6,Read(APCODE,beep,3)
exten => 611,7,Flite("Please hold a moment while we contact the National Weather Service for your report.")
exten => 611,8,AGI(nv-weather.php|${APCODE})
exten => 611,9,NoOp(Wave file: ${TMPWAVE})
exten => 611,10,Playback(${TMPWAVE})
exten => 611,11,Hangup
; CallingCard application
;add an incoimf route for the DID to Custom App: (un-comment next line)
;custom-callingcard,s,1
; un-comment the 6 lines below to work on incoming DIDs
;[custom-callingcard]
;exten => s,1,Answer
;exten => s,2,Wait,2
;exten => s,3,DeadAGI,a2billing.php
;exten => s,4,Wait,2
;exten => s,5,Hangup
asterisk1*CLI>
<-- SIP read from 192.168.10.245:5060:
REGISTER sip:192.168.10.248 SIP/2.0
Via: SIP/2.0/UDP 192.168.10.245:5060;rport;branch=z9hG4bK314d53bfac990e76aa1d7cea39bc1c23
From: <sip:[email protected]>;tag=6319e488
To: <sip:[email protected]>
Call-ID: [email protected]
Contact: <sip:[email protected]:5060>
CSeq: 4 REGISTER
Expires: 300
Authorization: Digest username="40",realm="asterisk",nonce="76404ab8",response="d083d8ae6b0ae5f01f9dc381521a2b52",uri="sip:192.168.10.248",algorithm=MD5
User-Agent: CMI CM5K
Content-Length: 0
--- (11 headers 0 lines)---
Using latest REGISTER request as basis request
Sending to 192.168.10.245 : 5060 (NAT)
Transmitting (no NAT) to 192.168.10.245:5060:
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 192.168.10.245:5060;rport;branch=z9hG4bK314d53bfac990e76aa1d7cea39bc1c23;received=192.168.10.245
From: <sip:[email protected]>;tag=6319e488
To: <sip:[email protected]>
Call-ID: [email protected]
CSeq: 4 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Contact: <sip:[email protected]>
Content-Length: 0
---
Transmitting (no NAT) to 192.168.10.245:5060:
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.10.245:5060;rport;branch=z9hG4bK314d53bfac990e76aa1d7cea39bc1c23;received=192.168.10.245
From: <sip:[email protected]>;tag=6319e488
To: <sip:[email protected]>;tag=as6c071aad
Call-ID: [email protected]
CSeq: 4 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Contact: <sip:[email protected]>
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="46543323"
Content-Length: 0
---
Scheduling destruction of call '[email protected]' in 15000 ms
asterisk1*CLI>
<-- SIP read from 217.116.119.252:5060:
--- (0 headers 0 lines) Nat keepalive ---
asterisk1*CLI>
<-- SIP read from 217.116.119.252:5060:
--- (0 headers 0 lines) Nat keepalive ---
asterisk1*CLI>
<-- SIP read from 192.168.10.245:5060:
REGISTER sip:192.168.10.248 SIP/2.0
Via: SIP/2.0/UDP 192.168.10.245:5060;rport;branch=z9hG4bK27df2cbd6a3799ce10aa3a798b46170f
From: <sip:[email protected]>;tag=6319e488
To: <sip:[email protected]>
Call-ID: [email protected]
Contact: <sip:[email protected]:5060>
CSeq: 5 REGISTER
Expires: 300
Authorization: Digest username="40",realm="asterisk",nonce="46543323",response="09386c11065ffadcbfe4526d16607033",uri="sip:192.168.10.248",algorithm=MD5
User-Agent: CMI CM5K
Content-Length: 0
--- (11 headers 0 lines)---
Using latest REGISTER request as basis request
Sending to 192.168.10.245 : 5060 (NAT)
Transmitting (no NAT) to 192.168.10.245:5060:
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 192.168.10.245:5060;rport;branch=z9hG4bK27df2cbd6a3799ce10aa3a798b46170f;received=192.168.10.245
From: <sip:[email protected]>;tag=6319e488
To: <sip:[email protected]>
Call-ID: [email protected]
CSeq: 5 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Contact: <sip:[email protected]>
Content-Length: 0
---
Transmitting (no NAT) to 192.168.10.245:5060:
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.10.245:5060;rport;branch=z9hG4bK27df2cbd6a3799ce10aa3a798b46170f;received=192.168.10.245
From: <sip:[email protected]>;tag=6319e488
To: <sip:[email protected]>;tag=as6c071aad
Call-ID: [email protected]
CSeq: 5 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Expires: 300
Contact: <sip:[email protected]:5060>;expires=300
Date: Wed, 22 Nov 2006 19:34:44 GMT
Content-Length: 0
Kann sich auch noch nichts tun, weil es noch nicht mit dem asterisk verbunden ist.cohibnig schrieb:Wenn ich nun die Handynummer anrufe tut sich gar nichts.
Und hier wirds interressant! Genau das brauchen wir.cohibnig schrieb:Erst wenn es abhebt und ich eine Durchwahl wähle, dann tut sich was.
-- Executing Macro("SIP/40-087b3530", "exten-vm|15|15") in new stack
-- Executing Macro("SIP/40-087b3530", "user-callerid") in new stack
-- Executing GotoIf("SIP/40-087b3530", "0?report") in new stack
-- Executing GotoIf("SIP/40-087b3530", "0?start") in new stack
-- Executing Set("SIP/40-087b3530", "REALCALLERIDNUM=40") in new stack
-- Executing NoOp("SIP/40-087b3530", "REALCALLERIDNUM is 40") in new stack
-- Executing Set("SIP/40-087b3530", "AMPUSER=40") in new stack
-- Executing Set("SIP/40-087b3530", "AMPUSERCIDNAME=GSM Gateway") in new stack
-- Executing GotoIf("SIP/40-087b3530", "0?report") in new stack
-- Executing Set("SIP/40-087b3530", "CALLERID(all)=GSM Gateway <40>") in new stack
-- Executing NoOp("SIP/40-087b3530", "Using CallerID "GSM Gateway" <40>") in new stack
-- Executing Set("SIP/40-087b3530", "FROMCONTEXT=exten-vm") in new stack
-- Executing Set("SIP/40-087b3530", "VMBOX=15") in new stack
-- Executing Set("SIP/40-087b3530", "EXTTOCALL=15") in new stack
-- Executing Set("SIP/40-087b3530", "CFUEXT=") in new stack
-- Executing Set("SIP/40-087b3530", "RT=15") in new stack
-- Executing Macro("SIP/40-087b3530", "record-enable|15|IN") in new stack
-- Executing GotoIf("SIP/40-087b3530", "0 > 0?2:4") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing AGI("SIP/40-087b3530", "recordingcheck|20061123-163314|1164295994.3") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
recordingcheck|20061123-163314|1164295994.3: Inbound recording not enabled
-- AGI Script recordingcheck completed, returning 0
-- Executing NoOp("SIP/40-087b3530", "No recording needed") in new stack
-- Executing GotoIf("SIP/40-087b3530", "0?dolocaldial|1") in new stack
-- Executing Macro("SIP/40-087b3530", "dial|15|tr|15") in new stack
-- Executing AGI("SIP/40-087b3530", "dialparties.agi") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi
dialparties.agi: Starting New Dialparties.agi
-- dialparties.agi: priority is 1
dialparties.agi: Caller ID name is 'GSM Gateway' number is '40'
dialparties.agi: Methodology of ring is 'none'
-- dialparties.agi: Added extension 15 to extension map
-- dialparties.agi: Extension 15 cf is disabled
-- dialparties.agi: Extension 15 do not disturb is disabled
> dialparties.agi: extnum: 15
> dialparties.agi: exthascw: 0
> dialparties.agi: exthascfb: 0
> dialparties.agi: extcfb:
> dialparties.agi: exthascfu: 0
> dialparties.agi: extcfu:
== Parsing '/etc/asterisk/manager.conf': Found
== Parsing '/etc/asterisk/manager_custom.conf': Found
== Manager 'admin' logged on from 127.0.0.1
== Manager 'admin' logged off from 127.0.0.1
> dialparties.agi: ExtensionState: 0
-- dialparties.agi: Checking CW and CFB status for extension 15
-- dialparties.agi: DbSet CALLTRACE/15 to 40
-- AGI Script dialparties.agi completed, returning 0
-- Executing SetCIDNum("SIP/40-087b3530", "040") in new stack
-- Executing Dial("SIP/40-087b3530", "SIP/15|15|tr") in new stack
-- Called 15
-- SIP/15-08750738 is ringing
-- SIP/15-08750738 answered SIP/40-087b3530
== Spawn extension (macro-dial, s, 11) exited non-zero on 'SIP/40-087b3530' in macro 'dial'
== Spawn extension (macro-dial, s, 11) exited non-zero on 'SIP/40-087b3530' in macro 'exten-vm'
== Spawn extension (macro-dial, s, 11) exited non-zero on 'SIP/40-087b3530'
-- parse_srv: SRV mapped to host sipgate.de, port 5060