AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Programmierung allgemein Programmieren allgemein Asterisk legt nicht auf, wenn caller auflegt

Asterisk legt nicht auf, wenn caller auflegt

Ein Thema von geisi · begonnen am 4. Feb 2010 · letzter Beitrag vom 30. Mär 2010
Antwort Antwort
geisi

Registriert seit: 19. Sep 2003
449 Beiträge
 
Delphi 6 Professional
 
#1

Asterisk legt nicht auf, wenn caller auflegt

  Alt 4. Feb 2010, 07:40
hallo! habe das problem, wenn ein SIP-Phone (das am Asterisk registriert ist) nach außen telefoniert und auflegt, bevor das Ziel abhebt, dann läutet es am Ziel endlos weiter. Wenn das Ziel aber abgehoben hat und das SIP-Phone dann auflegt, dann wird ganz normal aufgelegt. Intern von SIP-Phone zu SIP-Phone funktioniert alles wunderbar.

sip.conf:
Code:
[general]
vmexten=*97
disallow=all
allow=ulaw
allow=alaw
context=from-sip-external
callerid=Unknown
notifyringing=yes
notifyhold=yes
limitonpeers=yes
tos_sip=cs3
tos_audio=ef
tos_video=af41
sendrpid=yes
trustrpid=yes

register=<USERNAME>:<PASSWORT>@<IP-SIP-ANMELDESERVER>

[CityCom]
context=from_sip_citycom
dtmfmode=inband
fromdomain=<IP-SIP-ANMELDESERVER>
fromuser=<USERNAME>
host=<IP-SIP-ANMELDESERVER>
insecure=port,invite
nat=no
qualify=no
disallow=all
allow=alaw
secret=<PASSWORT>
type=friend
username=<USERNAME>

[<USERNAME>]
secret=<PASSWORT>
type=user
context=from_sip_citycom
host=dynamic
transfer=no
dtmfmode=inband

[75]
deny=0.0.0.0/0.0.0.0
type=friend
secret=1234
qualify=yes
port=5060
pickupgroup=
permit=0.0.0.0/0.0.0.0
nat=no
mailbox=75@device
host=dynamic
dtmfmode=rfc2833
dial=SIP/75
context=from-innovaphones
canreinvite=no
callgroup=
callerid=75
accountcode=
call-limit=50
dial-befehl
Code:
Dial(SIP/<NUMBER>@CityCom,300,rg)
was mach ich falsch? kann ich da mit Wireshark vielleicht was überprüfen?
mfg geisi
  Mit Zitat antworten Zitat
Benutzerbild von Sanchez
Sanchez

Registriert seit: 24. Apr 2003
Ort: Neumarkt Stmk
892 Beiträge
 
Delphi XE6 Enterprise
 
#2

Re: Asterisk legt nicht auf, wenn caller auflegt

  Alt 4. Feb 2010, 08:13
Hallo,

Grundsätzlich solltest du jede Extension mit einem Hangup beenden:
Code:
exten => <extension>,n,Hangup()
Ich denke, das sollte deom Problem beheben.

grüße,
daniel
Daniel
Testen ist feige!
  Mit Zitat antworten Zitat
geisi

Registriert seit: 19. Sep 2003
449 Beiträge
 
Delphi 6 Professional
 
#3

Re: Asterisk legt nicht auf, wenn caller auflegt

  Alt 4. Feb 2010, 08:53
Hab ich schon probiert, aber nach dem dial-befehl wird nur noch die h-extension ausgeführt. Und dort hab ich ein hangup eingebaut, bringt aber nichts.

EDIT:
auszug aus extensions.conf
Code:
exten => _0.,1,NoOp(Connecting to extern)
exten => _0.,n,Dial(SIP/${EXTEN}@CityCom,300,rg)
exten => _0.,n,HangUp
exten => h,1,HangUp
mfg geisi
  Mit Zitat antworten Zitat
geisi

Registriert seit: 19. Sep 2003
449 Beiträge
 
Delphi 6 Professional
 
#4

Re: Asterisk legt nicht auf, wenn caller auflegt

  Alt 4. Feb 2010, 12:59
mir ist aufgefallen, dass das HangUp nach dem Dial nur ausgeführt wird, wenn das Ziel abgehoben hat.

auszug aus extension.conf
Code:
exten => _.,1,Dial(SIP/${EXTEN}@CityCom,300,r)
exten => _.,n,HangUp
exten => h,1,HangUp
Versuch 1:
SIP-Phone auf mein Mobiltelefon. das SIP-Phone legt bevor das Mobiltelefon abhebt auf.
Code:
== Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
    -- Executing [0664xxxxxxx@from-innovaphones:1] Dial("SIP/75-b7142358", "SIP/0664xxxxxxx@CityCom,300,r") in new stack
  == Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
    -- Called 0664xxxxxxx@CityCom
    -- SIP/CityCom-08efa2d8 is ringing
  == Spawn extension (from-innovaphones, 0664xxxxxxx, 1) exited non-zero on 'SIP/75-b7142358'
    -- Executing [h@from-innovaphones:1] Hangup("SIP/75-b7142358", "") in new stack
  == Spawn extension (from-innovaphones, h, 1) exited non-zero on 'SIP/75-b7142358'
Ergebnis: am Ziel läutet es weiter, obwohl das SIP-Phone schon längst aufgelegt hat.

Versuch 2:
SIP-Phone auf mein Mobiltelefon. das SIP-Phone legt erst auf, wenn das Mobiltelefon abgehoben hat.
Code:
  == Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
    -- Executing [0664xxxxxxx@from-innovaphones:1] Dial("SIP/75-b7130780", "SIP/0664xxxxxxx@CityCom,300,r") in new stack
  == Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
    -- Called 0664xxxxxxx@CityCom
    -- SIP/CityCom-08efa2d8 is ringing
    -- SIP/CityCom-08efa2d8 answered SIP/75-b7130780
    -- Executing [h@from-innovaphones:1] Hangup("SIP/75-b7130780", "") in new stack
  == Spawn extension (from-innovaphones, h, 1) exited non-zero on 'SIP/75-b7130780'
  == Spawn extension (from-innovaphones, 0664xxxxxxx, 1) exited non-zero on 'SIP/75-b7130780'
    -- Executing [h@from-innovaphones:1] Hangup("SIP/75-b7130780", "") in new stack
  == Spawn extension (from-innovaphones, h, 1) exited non-zero on 'SIP/75-b7130780'
Ergebnis: beim ziel wird auch richtig aufgelegt

bitte hilfe!!!
mfg geisi
  Mit Zitat antworten Zitat
geisi

Registriert seit: 19. Sep 2003
449 Beiträge
 
Delphi 6 Professional
 
#5

Re: Asterisk legt nicht auf, wenn caller auflegt

  Alt 15. Feb 2010, 07:52
kann mir keiner weiterhelfen????
mfg geisi
  Mit Zitat antworten Zitat
geisi

Registriert seit: 19. Sep 2003
449 Beiträge
 
Delphi 6 Professional
 
#6

Re: Asterisk legt nicht auf, wenn caller auflegt

  Alt 30. Mär 2010, 07:25
hallo, sieht vielleicht jemand einen fehler in meinen sip einstellungen?
Code:
Global Settings:
----------------
  UDP SIP Port:          5060
  UDP Bindaddress:       0.0.0.0
  TCP SIP Port:          Disabled
  TLS SIP Port:          Disabled
  Videosupport:          No
  Textsupport:           No
  AutoCreate Peer:       No
  Ignore SDP sess. ver.: No
  Match Auth Username:   No
  Allow unknown access:  Yes
  Allow subscriptions:   Yes
  Allow overlap dialing: Yes
  Allow promsic. redir:  No
  Enable call counters:  No
  SIP domain support:    No
  Realm. auth:           No
  Our auth realm         asterisk
  Call to non-local dom.: Yes
  URI user is phone no:  No
  Always auth rejects:   No
  Call limit peers only: Yes
  Direct RTP setup:      No
  User Agent:            Asterisk PBX 1.6.0.17
  SDP Session Name:      Asterisk PBX 1.6.0.17
  SDP Owner Name:        root
  Reg. context:          (not set)
  Regexten on Qualify:   No
  Caller ID:             Unknown
  From: Domain:          
  Record SIP history:    Off
  Call Events:           Off
  T38 fax pt UDPTL:      No
  SIP realtime:          Disabled
  Qualify Freq :         60000 ms

Network QoS Settings:
---------------------------
  IP ToS SIP:            CS3
  IP ToS RTP audio:      EF
  IP ToS RTP video:      AF41
  IP ToS RTP text:       CS0
  802.1p CoS SIP:        4
  802.1p CoS RTP audio:  5
  802.1p CoS RTP video:  6
  802.1p CoS RTP text:   5
  Jitterbuffer enabled:  No
  Jitterbuffer forced:   No
  Jitterbuffer max size: -1
  Jitterbuffer resync:   -1
  Jitterbuffer impl:    
  Jitterbuffer log:      No

Network Settings:
---------------------------
  SIP address remapping: Disabled, no localnet list
  Externhost:            <none>
  Externip:              0.0.0.0:0
  Externrefresh:         10
  Internal IP:           127.0.0.1:5060
  STUN server:           0.0.0.0:0

Global Signalling Settings:
---------------------------
  Codecs:                0xc (ulaw|alaw)
  Codec Order:           ulaw:20,alaw:20
  Relax DTMF:            No
  RFC2833 Compensation:  No
  Compact SIP headers:   No
  RTP Keepalive:         0 (Disabled)
  RTP Timeout:           0 (Disabled)
  RTP Hold Timeout:      0 (Disabled)
  MWI NOTIFY mime type:  application/simple-message-summary
  DNS SRV lookup:        Yes
  Pedantic SIP support:  No
  Reg. min duration      60 secs
  Reg. max duration:     3600 secs
  Reg. default duration: 120 secs
  Outbound reg. timeout: 20 secs
  Outbound reg. attempts: 0
  Notify ringing state:  Yes
  Notify hold state:     Yes
  SIP Transfer mode:     open
  Max Call Bitrate:      384 kbps
  Auto-Framing:          No
  Outb. proxy:           <not set>
  Session Timers:        Accept
  Session Refresher:     uas
  Session Expires:       1800 secs
  Session Min-SE:        90 secs
  Timer T1:              500
  Timer T1 minimum:      100
  Timer B:               32000

Default Settings:
-----------------
  Context:               from-sip-external
  Nat:                   RFC3581
  DTMF:                  rfc2833
  Qualify:               0
  Use ClientCode:        No
  Progress inband:       Never
  Language:              
  MOH Interpret:         default
  MOH Suggest:          
  Voice Mail Extension:  *97

----
mfg geisi
  Mit Zitat antworten Zitat
Benutzerbild von Phoenix
Phoenix
(Moderator)

Registriert seit: 25. Jun 2002
Ort: Hausach
7.605 Beiträge
 
#7

Re: Asterisk legt nicht auf, wenn caller auflegt

  Alt 30. Mär 2010, 08:07
Hi Geisi,

der Thread hier ist leider eher ein Monolog. Ich befürchte, es sieht so aus als ist hier niemand, der sich mit Asterisk auskennt. Schau doch mal bei http://serverfault.com/ oder http://superuser.com/ - ich denke da ist die Chance höher dass jemand schonmal an einem Asterisk rumgespielt hat als hier.
Sebastian Gingter
Phoenix - 不死鳥, Microsoft MVP, Rettungshundeführer
Über mich: Sebastian Gingter @ Thinktecture Mein Blog: https://gingter.org
  Mit Zitat antworten Zitat
Themen-Optionen Thema durchsuchen
Thema durchsuchen:

Erweiterte Suche
Ansicht

Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 05:22 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz