mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 02:37:10 +00:00 
			
		
		
		
	res_pjsip: Add TEL URI support for basic calls.
This change allows TEL URI requests to come through for basic calls. The allowed requests are INVITE, ACK, BYE, and CANCEL. The From and To headers will now allow TEL URIs, as well as the request URI. Support is only for TEL URIs present in traffic from a remote party. Asterisk does not generate any TEL URIs on its own. ASTERISK-26894 Change-Id: If5729e6cd583be7acf666373bf9f1b9d653ec29a
This commit is contained in:
		
				
					committed by
					
						 Friendly Automation
						Friendly Automation
					
				
			
			
				
	
			
			
			
						parent
						
							97b3459bd2
						
					
				
				
					commit
					31b3addce7
				
			| @@ -45,13 +45,11 @@ static void set_id_from_hdr(pjsip_fromto_hdr *hdr, struct ast_party_id *id) | ||||
| { | ||||
| 	char cid_name[AST_CHANNEL_NAME]; | ||||
| 	char cid_num[AST_CHANNEL_NAME]; | ||||
| 	pjsip_sip_uri *uri; | ||||
| 	pjsip_name_addr *id_name_addr = (pjsip_name_addr *) hdr->uri; | ||||
| 	char *semi; | ||||
|  | ||||
| 	uri = pjsip_uri_get_uri(id_name_addr); | ||||
| 	ast_copy_pj_str(cid_name, &id_name_addr->display, sizeof(cid_name)); | ||||
| 	ast_copy_pj_str(cid_num, &uri->user, sizeof(cid_num)); | ||||
| 	ast_copy_pj_str(cid_num, ast_sip_pjsip_uri_get_username(hdr->uri), sizeof(cid_num)); | ||||
|  | ||||
| 	/* Always truncate caller-id number at a semicolon. */ | ||||
| 	semi = strchr(cid_num, ';'); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user