Vielen Dank für deine Antwort. Die 1 habe ich völlig übersehen.
Jetzt steht der “SipAddHeader” auch in der Ausgabe von asterisk -r, allerdings klingelt das Mobilteil immer noch mit dem am Mobilteil eingestellten Klingelton und nicht mit “Ringer12”.
Außerdem fehlt der hintere Teil “;info=alert-external;x-line-id=0”:
-- Executing [ext@sub_prefix-75:1] Gosub("SIP/mdc_trunk_conf-1-000005a8", "ExternalRingtoneHandset,s,1") in new stack
-- Executing [s@ExternalRingtoneHandset:1] SIPRemoveHeader("SIP/mdc_trunk_conf-1-000005a8", ""Alert-Info:<http://www.notused.de>;info=alert-external;x-line-id=0"") in new stack
-- Executing [s@ExternalRingtoneHandset:2] SIPAddHeader("SIP/mdc_trunk_conf-1-000005a8", "Alert-Info: <http://127.0.0.1/Ringer12>") in new stack
Den sipgrep auf die M700 habe ich nun auch mal durchgeführt. Die “Alert-Info: <http://127.0.0.1/Ringer12>.” steht einmal mit drin:
root@mobydickWW:/etc/admin# sipgrep IPderM700
interface: eth0 (192.168.1.0/255.255.255.0)
filter: (ip) and ( portrange 5060-5061)
match: IPderM700
U 2016/05/27 14:56:06.494159 IPderMD:5060 -> IPderM700:5060
INVITE sip:BhGAnlK6L6DF3B5@IPderM700;line=27777 SIP/2.0.
Via: SIP/2.0/UDP IPderMD:5060;branch=z9hG4bK1b0f42c7.
Max-Forwards: 70.
From: “NameAusTelefonbuch” <sip:#HANDYNUMMER@IPderMD>;tag=as1e9adc24.
To: <sip:BhGAnlK6L6DF3B5@IPderM700;line=27777>.
Contact: <sip:%23HANDYNUMMER@IPderMD:5060>.
Call-ID: 0e4bb4bf30de3b650f1b554c0a5dba58@IPderMD:5060.
CSeq: 102 INVITE.
User-Agent: Asterisk PBX 11.6-cert11.
Date: Fri, 27 May 2016 12:56:06 GMT.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH.
Supported: replaces, timer.
Alert-Info: <http://127.0.0.1/Ringer12>.
Content-Type: application/sdp.
Content-Length: 289.
.
v=0.
o=root 1502922709 1502922709 IN IP4 IPderMD.
s=Asterisk PBX 11.6-cert11.
c=IN IP4 IPderMD.
t=0 0.
m=audio 11018 RTP/AVP 8 0 3 101.
a=rtpmap:8 PCMA/8000.
a=rtpmap:0 PCMU/8000.
a=rtpmap:3 GSM/8000.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-16.
a=ptime:20.
a=sendrecv.
U 2016/05/27 14:56:06.516460 IPderM700:5060 -> IPderMD:5060
SIP/2.0 100 Trying.
Via: SIP/2.0/UDP IPderMD:5060;branch=z9hG4bK1b0f42c7.
From: “NameAusTelefonbuch” <sip:%23HANDYNUMMER@IPderMD>;tag=as1e9adc24.
To: <sip:BhGAnlK6L6DF3B5@IPderM700;line=27777>.
Call-ID: 0e4bb4bf30de3b650f1b554c0a5dba58@IPderMD:5060.
CSeq: 102 INVITE.
Content-Length: 0.
.
U 2016/05/27 14:56:07.949421 IPderM700:5060 -> IPderMD:5060
SIP/2.0 180 Ringing.
Via: SIP/2.0/UDP IPderMD:5060;branch=z9hG4bK1b0f42c7.
Max-Forwards: 70.
From: “NameAusTelefonbuch” <sip:%23HANDYNUMMER@IPderMD>;tag=as1e9adc24.
To: <sip:BhGAnlK6L6DF3B5@IPderM700;line=27777>;tag=txc811t.
Call-ID: 0e4bb4bf30de3b650f1b554c0a5dba58@IPderMD:5060.
CSeq: 102 INVITE.
Contact: <sip:BhGAnlK6L6DF3B5@IPderM700;line=27777>.
Allow: INVITE, CANCEL, BYE, ACK, REGISTER, OPTIONS, REFER, SUBSCRIBE, NOTIFY, MESSAGE, INFO, PRACK, UPDATE.
Allow-Events: talk,hold.
User-Agent: snomM700/03.24.0012 (MAC=000413610DB7; SER= 00000; HW=255).
Content-Length: 0.
.
U 2016/05/27 14:56:14.280386 IPderMD:5060 -> IPderM700:5060
CANCEL sip:BhGAnlK6L6DF3B5@IPderM700;line=27777 SIP/2.0.
Via: SIP/2.0/UDP IPderMD:5060;branch=z9hG4bK1b0f42c7.
Max-Forwards: 70.
From: “NameAusTelefonbuch” <sip:#HANDYNUMMER@IPderMD>;tag=as1e9adc24.
To: <sip:BhGAnlK6L6DF3B5@IPderM700;line=27777>.
Call-ID: 0e4bb4bf30de3b650f1b554c0a5dba58@IPderMD:5060.
CSeq: 102 CANCEL.
User-Agent: Asterisk PBX 11.6-cert11.
Content-Length: 0.
.
U 2016/05/27 14:56:14.294822 IPderM700:5060 -> IPderMD:5060
SIP/2.0 200 OK.
Via: SIP/2.0/UDP IPderMD:5060;branch=z9hG4bK1b0f42c7.
Max-Forwards: 70.
From: “NameAusTelefonbuch” <sip:%23HANDYNUMMER@IPderMD>;tag=as1e9adc24.
To: <sip:BhGAnlK6L6DF3B5@IPderM700;line=27777>.
Call-ID: 0e4bb4bf30de3b650f1b554c0a5dba58@IPderMD:5060.
CSeq: 102 CANCEL.
User-Agent: snomM700/03.24.0012 (MAC=000413610DB7; SER= 00000; HW=255).
Content-Length: 0.
.
U 2016/05/27 14:56:14.300663 IPderM700:5060 -> IPderMD:5060
SIP/2.0 487 Request Terminated.
Via: SIP/2.0/UDP IPderMD:5060;branch=z9hG4bK1b0f42c7.
Max-Forwards: 70.
From: “NameAusTelefonbuch” <sip:%23HANDYNUMMER@IPderMD>;tag=as1e9adc24.
To: <sip:BhGAnlK6L6DF3B5@IPderM700;line=27777>;tag=txc811t.
Call-ID: 0e4bb4bf30de3b650f1b554c0a5dba58@IPderMD:5060.
CSeq: 102 INVITE.
Content-Length: 0.
.
U 2016/05/27 14:56:14.300779 IPderMD:5060 -> IPderM700:5060
ACK sip:BhGAnlK6L6DF3B5@IPderM700;line=27777 SIP/2.0.
Via: SIP/2.0/UDP IPderMD:5060;branch=z9hG4bK1b0f42c7.
Max-Forwards: 70.
From: “NameAusTelefonbuch” <sip:#HANDYNUMMER@IPderMD>;tag=as1e9adc24.
To: <sip:BhGAnlK6L6DF3B5@IPderM700;line=27777>;tag=txc811t.
Contact: <sip:%23HANDYNUMMER@IPderMD:5060>.
Call-ID: 0e4bb4bf30de3b650f1b554c0a5dba58@IPderMD:5060.
CSeq: 102 ACK.
User-Agent: Asterisk PBX 11.6-cert11.
Content-Length: 0.
.
U 2016/05/27 14:56:20.701737 IPderMD:5060 -> IPderM700:5060
OPTIONS sip:sceFr30CH6DF1E6@IPderM700;line=30416 SIP/2.0.
Via: SIP/2.0/UDP IPderMD:5060;branch=z9hG4bK2fe056c2.
Max-Forwards: 70.
From: “asterisk” <sip:asterisk@IPderMD>;tag=as0c13228f.
To: <sip:sceFr30CH6DF1E6@IPderM700;line=30416>.
Contact: <sip:asterisk@IPderMD:5060>.
Call-ID: 5f3a66647cf46fc37a6137ca4fda6638@IPderMD:5060.
CSeq: 102 OPTIONS.
User-Agent: Asterisk PBX 11.6-cert11.
Date: Fri, 27 May 2016 12:56:20 GMT.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH.
Supported: replaces, timer.
Content-Length: 0.
.
U 2016/05/27 14:56:20.723504 IPderM700:5060 -> IPderMD:5060
SIP/2.0 200 OK.
Via: SIP/2.0/UDP IPderMD:5060;branch=z9hG4bK2fe056c2.
Max-Forwards: 70.
From: “asterisk” <sip:asterisk@IPderMD>;tag=as0c13228f.
To: <sip:sceFr30CH6DF1E6@IPderM700;line=30416>.
Call-ID: 5f3a66647cf46fc37a6137ca4fda6638@IPderMD:5060.
CSeq: 102 OPTIONS.
Accept: application/sdp.
Accept-Encoding: identity.
Accept-Language: .
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH.
Date: Fri, 27 May 2016 12:56:20 GMT.
Supported: replaces, timer.
User-Agent: snomM700/03.24.0012 (MAC=000413610DB7; SER= 00000; HW=255).
Content-Length: 0.
.
U 2016/05/27 14:56:20.800497 IPderMD:5060 -> IPderM700:5060
OPTIONS sip:mOTQKt6Hq6DF2E9@IPderM700;line=26152 SIP/2.0.
Via: SIP/2.0/UDP IPderMD:5060;branch=z9hG4bK44bb6ed2.
Max-Forwards: 70.
From: “asterisk” <sip:asterisk@IPderMD>;tag=as7b99ad9e.
To: <sip:mOTQKt6Hq6DF2E9@IPderM700;line=26152>.
Contact: <sip:asterisk@IPderMD:5060>.
Call-ID: 43debcdf1cef185a48aa80e03f2bec57@IPderMD:5060.
CSeq: 102 OPTIONS.
User-Agent: Asterisk PBX 11.6-cert11.
Date: Fri, 27 May 2016 12:56:20 GMT.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH.
Supported: replaces, timer.
Content-Length: 0.
.
U 2016/05/27 14:56:20.822273 IPderM700:5060 -> IPderMD:5060
SIP/2.0 200 OK.
Via: SIP/2.0/UDP IPderMD:5060;branch=z9hG4bK44bb6ed2.
Max-Forwards: 70.
From: “asterisk” <sip:asterisk@IPderMD>;tag=as7b99ad9e.
To: <sip:mOTQKt6Hq6DF2E9@IPderM700;line=26152>.
Call-ID: 43debcdf1cef185a48aa80e03f2bec57@IPderMD:5060.
CSeq: 102 OPTIONS.
Accept: application/sdp.
Accept-Encoding: identity.
Accept-Language: .
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH.
Date: Fri, 27 May 2016 12:56:20 GMT.
Supported: replaces, timer.
User-Agent: snomM700/03.24.0012 (MAC=000413610DB7; SER= 00000; HW=255).
Content-Length: 0.