Hallo,
2013-03-07 08:40:33.034483 [NOTICE] switch_channel.c:968 New Channel sofia/gemeinschaft/0160X...@fritz.fonwlan.box [008f7ba0-f6d4-4a61-8fcb-a186ad86bbda]
2013-03-07 08:40:33.114683 [INFO] mod_dialplan_xml.c:557 Processing 0160XXXXXXX <0160XXXXXXX>->gateway3 in context default
2013-03-07 08:40:33.114683 [INFO] switch_cpp.cpp:1274 #E# [008f7ba0-f6d4-4a61-8fcb-a186ad86bbda] PRESENCE_INBOUND: account: 0160XXXXXXX, state: alerting
2013-03-07 08:40:33.194575 [NOTICE] switch_cpp.cpp:1274 ### [008f7ba0-f6d4-4a61-8fcb-a186ad86bbda] DIALPLAN_DOMAIN - setting default domain: 192.168.3.1
2013-03-07 08:40:33.214491 [NOTICE] mod_dptools.c:1534 CHANNEL_DATA:
Channel-State: [CS_EXECUTE]
Channel-Call-State: [RINGING]
Channel-State-Number: [4]
Channel-Name: [sofia/gemeinschaft/0160X...@fritz.fonwlan.box]
Unique-ID: [008f7ba0-f6d4-4a61-8fcb-a186ad86bbda]
Call-Direction: [inbound]
Presence-Call-Direction: [inbound]
Channel-HIT-Dialplan: [true]
Channel-Presence-ID: [0160X...@fritz.fonwlan.box]
Channel-Call-UUID: [008f7ba0-f6d4-4a61-8fcb-a186ad86bbda]
Answer-State: [ringing]
Channel-Read-Codec-Name: [PCMA]
Channel-Read-Codec-Rate: [8000]
Channel-Read-Codec-Bit-Rate: [64000]
Channel-Write-Codec-Name: [PCMA]
Channel-Write-Codec-Rate: [8000]
Channel-Write-Codec-Bit-Rate: [64000]
Caller-Direction: [inbound]
Caller-Username: [0160XXXXXXX]
Caller-Dialplan: [XML]
Caller-Caller-ID-Name: [0160XXXXXXX]
Caller-Caller-ID-Number: [0160XXXXXXX]
Caller-Network-Addr: [192.168.1.1]
Caller-ANI: [0160XXXXXXX]
Caller-Destination-Number: [gateway3]
Caller-Unique-ID: [008f7ba0-f6d4-4a61-8fcb-a186ad86bbda]
Caller-Source: [mod_sofia]
Caller-Context: [default]
Caller-Channel-Name: [sofia/gemeinschaft/0160X...@fritz.fonwlan.box]
Caller-Profile-Index: [1]
Caller-Profile-Created-Time: [1362642033074988]
Caller-Channel-Created-Time: [1362642033074988]
Caller-Channel-Answered-Time: [0]
Caller-Channel-Progress-Time: [0]
Caller-Channel-Progress-Media-Time: [0]
Caller-Channel-Hangup-Time: [0]
Caller-Channel-Transfer-Time: [0]
Caller-Channel-Resurrect-Time: [0]
Caller-Channel-Bridged-Time: [0]
Caller-Channel-Last-Hold: [0]
Caller-Channel-Hold-Accum: [0]
Caller-Screen-Bit: [true]
Caller-Privacy-Hide-Name: [false]
Caller-Privacy-Hide-Number: [false]
variable_direction: [inbound]
variable_uuid: [008f7ba0-f6d4-4a61-8fcb-a186ad86bbda]
variable_session_id: [1]
variable_sip_from_user: [0160XXXXXXX]
variable_sip_from_uri: [0160X...@fritz.fonwlan.box]
variable_sip_from_host: [fritz.fonwlan.box]
variable_channel_name: [sofia/gemeinschaft/0160X...@fritz.fonwlan.box]
variable_sip_call_id: [0CD89F43...@192.168.1.1]
variable_sip_local_network_addr: [37.5.246.34]
variable_sip_network_ip: [192.168.1.1]
variable_sip_network_port: [5060]
variable_sip_received_ip: [192.168.1.1]
variable_sip_received_port: [5060]
variable_sip_via_protocol: [udp]
variable_sip_from_user_stripped: [0160XXXXXXX]
variable_sip_from_tag: [FD02A2F98536565E]
variable_sofia_profile_name: [gemeinschaft]
variable_recovery_profile_name: [gemeinschaft]
variable_sip_full_via: [SIP/2.0/UDP 192.168.1.1:5060;branch=z9hG4bK51B06D6374E0C467]
variable_sip_full_from: [<sip:0160X...@fritz.fonwlan.box>;tag=FD02A2F98536565E]
variable_sip_full_to: [<sip:gate...@192.168.3.1:5060;gw=gateway3>]
variable_sip_req_params: [gw=gateway3]
variable_sip_req_user: [gateway3]
variable_sip_req_port: [5060]
variable_sip_req_uri: [gate...@192.168.3.1:5060]
variable_sip_req_host: [192.168.3.1]
variable_sip_to_params: [gw=gateway3]
variable_sip_to_user: [gateway3]
variable_sip_to_port: [5060]
variable_sip_to_uri: [gate...@192.168.3.1:5060]
variable_sip_to_host: [192.168.3.1]
variable_sip_contact_user: [DE6C718B011455013B498CC85B5AB]
variable_sip_contact_uri: [DE6C718B011455...@192.168.1.1]
variable_sip_contact_host: [192.168.1.1]
variable_sip_user_agent: [AVM FRITZ!Box Fon WLAN 7270 v2 54.05.05 (Jul 1 2011)]
variable_sip_via_host: [192.168.1.1]
variable_sip_via_port: [5060]
variable_max_forwards: [70]
variable_presence_id: [0160X...@fritz.fonwlan.box]
variable_sip_gateway: [gateway3]
variable_switch_r_sdp: [v=0
o=user 380011 380011 IN IP4 192.168.1.1
s=call
c=IN IP4 192.168.1.1
t=0 0
m=audio 7086 RTP/AVP 8 0 102 100 99 97 101
a=rtpmap:102 G726-32/8000
a=rtpmap:100 G726-40/8000
a=rtpmap:99 G726-24/8000
a=rtpmap:97 iLBC/8000
a=fmtp:97 mode=30
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=rtcp:7087
]
variable_sip_remote_audio_rtcp_port: [7087]
variable_remote_media_ip: [192.168.1.1]
variable_remote_media_port: [7086]
variable_sip_audio_recv_pt: [8]
variable_sip_use_codec_name: [PCMA]
variable_sip_use_codec_rate: [8000]
variable_sip_use_codec_ptime: [20]
variable_read_codec: [PCMA]
variable_read_rate: [8000]
variable_write_codec: [PCMA]
variable_write_rate: [8000]
variable_endpoint_disposition: [RECEIVED]
variable_call_uuid: [008f7ba0-f6d4-4a61-8fcb-a186ad86bbda]
variable_gs_account_node_local: [true]
variable_current_application_data: [notice]
variable_current_application: [info]
2013-03-07 08:40:33.214491 [INFO] switch_cpp.cpp:1274 ### [008f7ba0-f6d4-4a61-8fcb-a186ad86bbda] AUTH_GATEWAY - sip_req_user ~ ^gateway3, gateway=3, name: kabel_deutschland_fritzbox, ip: 192.168.1.1
2013-03-07 08:40:33.234963 [INFO] switch_cpp.cpp:1274 ### [008f7ba0-f6d4-4a61-8fcb-a186ad86bbda] CALLER_DATA - no data - unauthenticated call: /
2013-03-07 08:40:33.254555 [NOTICE] switch_cpp.cpp:1274 ### [008f7ba0-f6d4-4a61-8fcb-a186ad86bbda] INBOUND - no route
2013-03-07 08:40:33.254555 [INFO] switch_cpp.cpp:1274 ### [008f7ba0-f6d4-4a61-8fcb-a186ad86bbda] DESTINATION_NEW - unknown=0/@1, number: gateway3
2013-03-07 08:40:33.254555 [INFO] switch_cpp.cpp:1274 ### [008f7ba0-f6d4-4a61-8fcb-a186ad86bbda] DIALPLAN start - caller_id: 0160XXXXXXX "0160XXXXXXX" , number: gateway3, language: de
2013-03-07 08:40:33.254555 [INFO] switch_cpp.cpp:1274 ### [008f7ba0-f6d4-4a61-8fcb-a186ad86bbda] LOOP 1 - destination: unknown=0/@1, number: gateway3
2013-03-07 08:40:33.254555 [INFO] switch_cpp.cpp:1274 ### [008f7ba0-f6d4-4a61-8fcb-a186ad86bbda] CALLER_ID_NUMBERS - clir: false, numbers: 0160XXXXXXX
2013-03-07 08:40:33.274547 [NOTICE] switch_cpp.cpp:1274 ### [008f7ba0-f6d4-4a61-8fcb-a186ad86bbda] SWITCH - no route - number: gateway3
2013-03-07 08:40:33.274547 [INFO] switch_cpp.cpp:1274 ### [008f7ba0-f6d4-4a61-8fcb-a186ad86bbda] DIALPLAN end - caller_id: 0160XXXXXXX "0160XXXXXXX", destination: unknown=0/@1, number: gateway3, result: 404 No route
2013-03-07 08:40:33.274547 [NOTICE] mod_sofia.c:2690 Hangup sofia/gemeinschaft/0160X...@fritz.fonwlan.box [CS_EXECUTE] [UNALLOCATED_NUMBER]
2013-03-07 08:40:33.274547 [INFO] switch_cpp.cpp:1274 ### [008f7ba0-f6d4-4a61-8fcb-a186ad86bbda] HANGUP_HOOK: hangup
2013-03-07 08:40:33.296188 [NOTICE] switch_core_session.c:1517 Session 1 (sofia/gemeinschaft/0160X...@fritz.fonwlan.box) Ended
2013-03-07 08:40:33.296188 [NOTICE] switch_core_session.c:1521 Close Channel sofia/gemeinschaft/0160X...@fritz.fonwlan.box [CS_DESTROY]
2013-03-07 08:40:33.314517 [INFO] switch_cpp.cpp:1274 #E# [008f7ba0-f6d4-4a61-8fcb-a186ad86bbda] PRESENCE_INBOUND: account: 0160XXXXXXX, state: idle
2013-03-07 08:40:33.314517 [INFO] switch_cpp.cpp:1274 #E# [008f7ba0-f6d4-4a61-8fcb-a186ad86bbda] CDR_SAVE - account: NULL=NULL, caller: NULL NULL, callee: NULL NULL, cause: "UNALLOCATED_NUMBER"
2013-03-07 08:40:33.334738 [INFO] switch_cpp.cpp:1274 #E# [008f7ba0-f6d4-4a61-8fcb-a186ad86bbda] CALL_HISTORY_SAVE - ignore caller entry - account: =0, local: true
2013-03-07 08:40:33.334738 [INFO] switch_cpp.cpp:1274 #E# [008f7ba0-f6d4-4a61-8fcb-a186ad86bbda] CALL_HISTORY_SAVE - ignore callee entry - account: unknown=0, local: true
Ich habe dann versucht die Variable sip_to_user über die Inbound Regel eben auf eine gültige Rufnummer zu setzen, damit ich diese ganz normal in Gemeinschaft verwenden kann. Hier muss ich dann eben einen Gateway für jede eingehende Rufnummer der Fritzbox anlegen..
Jemand eine Idee?
<?xml version="1.0" encoding="UTF-8"?>
<call_route name="kabel_deutschland_fritzbox" routing_table="inbound" position="3" endpoint_type="phonenumber">
<route_elements count="2">
<route_element position="1" var_out="sip_to_user" var_in="sip_to_user" replacement="00496021YYYYYYY" pattern="^gateway3$" mandatory="true" action="match"/>
<route_element position="2" var_out="sip_to_user" var_in="sip_to_user" replacement="00496021YYYYYYY" pattern="^gateway3$" mandatory="false" action="set"/>
</route_elements>
</call_route>
Brachte Brachte leider keinen Erfolg.. :(
Vielen Danke und Gruß.
Dennis Meyer
On 03/07/2013 09:54 AM, Peter Kozak wrote:
> On 03/07/2013 09:24 AM, d.me...@gmail.com wrote:
>> Brachte Brachte leider keinen Erfolg.. :(
>
> Was passiert, wenn Du einfach
>
> contact = +496021YYYYYYY
Es waere dann keine eingehende Route noetig, die gateway3 in
+496021YYYYYYY umwandelt.
<route_element position="1" var_out="sip_to_user" var_in="sip_to_user"
replacement="00496021YYYYYYY" pattern="^gateway3$" mandatory="true"
action="match"/>
Dies haette wahrscheinlch sogar fast funktioniert. Du haettest in dem
element wohl nur statt var_out="sip_to_user" einfach
var_out="destination_number" verwenden muessen.
Weiterhin wuerde ich bei sowas empfehlen, als Replacement nicht
"00496021YYYYYYY" sondern immer das e164 Format "+496021YYYYYYY" zu
benutzen.
Das spart ein Zeichen ;)
Der Hintergrund ist aber, dass man das moeglichst einheitlich haben
sollte. Das "prerouting" wandelt z.B. eine gewaehlte Nummer auch immer
zunaechst in dieses Format.
Die folgende Route dient dann noch um die Caller-ID anzupassen:
<call_route endpoint_type="phonenumber" name="strip international
prefix" position="1" routing_table="inbound">
<route_elements count="3">
<route_element position="1" var_out="" var_in="destination_number"
replacement="" pattern="^%+496021YYYYYYY$" mandatory="true" action="match"/>
<route_element action="set" mandatory="false" pattern="^00([1-9]%d+)$"
position="2" replacement="+%1" var_in="caller_id_number"
var_out="caller_id_number"/>
<route_element action="set" mandatory="false" pattern="^0([1-9]%d+)$"
position="3" replacement="+49%1" var_in="caller_id_number"
var_out="caller_id_number"/>
</route_elements>
</call_route>
Was passiert, wenn Du einfach
contact = +496021YYYYYYY
in Gateway-Settings eintraegst?
> Weil momentan habe ich f�r Sipgate-Basic und
> Sipgate-Team zwei identische Eintr�ge ;) Und diese zwei Eintr�ge machen
> jetzt aus 00496021 bzw 06021 ein +496021 richtig? :)
"inbound" Regeln? Wie sind diese mit jeweils einem Gateway verknuepft,
wenn pro Gateway eine Regel vorhanden ist?
> Hier erwartet die Fritzbox diese aber nicht im e164 Format, ich denke
> das funktioniert nicht und ich muss diese wieder umwandeln?
Ja. z.B.
<route_element action="match" mandatory="true" pattern="^%+49(%d+)$"
replacement="0%1" var_in="destination_number" var_out="destination_number"/>
Du brauchst aber wahrscheinlich zwei Routen, einmal international und
einmal national, also z.B.